10#ifndef LIMA_LINGUISTICPROCESSING_COMPOUNDSBOWGENERATION_H
11#define LIMA_LINGUISTICPROCESSING_COMPOUNDSBOWGENERATION_H
50namespace AnalysisDumpers
57class BowGeneratorPrivate;
95 std::vector< std::pair< boost::shared_ptr< Common::BagOfWords::BoWRelation >,
96 boost::shared_ptr< Common::BagOfWords::BoWToken > > >
buildTermFor(
101 const uint64_t offset,
104 std::set<LinguisticGraphVertex>& visited)
const;
106 std::vector< std::pair< boost::shared_ptr< Common::BagOfWords::BoWRelation >,
111 const uint64_t offsetBegin,
113 std::set<LinguisticGraphVertex>& visited,
114 bool keepAnyway =
false)
const;
137 std::set< LinguisticGraphVertex >& visited,
138 bool keepAnyway)
const;
151 const uint64_t offset,
#define LIMA_ANALYSISDUMPERS_EXPORT
A graph that stores any data (annotations) referencing primarily nodes of a text anlaysis.
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
Holds an annotation graph and gives an API to manipulate it.
This is a complex token used to represent a named entity token.
This is a BoW element used to represent a predicate (n-ary relation, template or semantic frame).
std::vector< std::pair< boost::shared_ptr< Common::BagOfWords::BoWRelation >, boost::shared_ptr< Common::BagOfWords::BoWToken > > > buildTermFor(const AnnotationGraphVertex &vx, const AnnotationGraphVertex &tgt, const LinguisticGraph &anagraph, const LinguisticGraph &posgraph, const uint64_t offset, const SyntacticAnalysis::SyntacticData *syntacticData, const Common::AnnotationGraphs::AnnotationData *annotationData, std::set< LinguisticGraphVertex > &visited) const
Creates the terms reachable from the given annotation vertex.
friend class BowGeneratorPrivate
boost::shared_ptr< Common::BagOfWords::BoWNamedEntity > createSpecificEntity(const LinguisticGraphVertex &vertex, const AnnotationGraphVertex &v, const Common::AnnotationGraphs::AnnotationData *annotationData, const LinguisticGraph &anagraph, const LinguisticGraph &posgraph, const uint64_t offset, bool frompos) const
std::vector< std::pair< boost::shared_ptr< Common::BagOfWords::BoWRelation >, boost::shared_ptr< Common::BagOfWords::AbstractBoWElement > > > createAbstractBoWElement(const LinguisticGraphVertex v, const LinguisticGraph &anagraph, const LinguisticGraph &posgraph, const uint64_t offsetBegin, const Common::AnnotationGraphs::AnnotationData *annotationData, std::set< LinguisticGraphVertex > &visited, bool keepAnyway=false) const
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, MediaId language)
BowGenerator & operator=(const BowGenerator &)=delete
BowGenerator(const BowGenerator &)=delete
QList< boost::shared_ptr< Common::BagOfWords::BoWPredicate > > createSemanticRelationPredicate(const LinguisticGraphVertex &lgvs, const AnnotationGraphVertex &agvs, const AnnotationGraphVertex &agvt, const SemanticAnalysis::SemanticRelationAnnotation &annot, const Common::AnnotationGraphs::AnnotationData *annotationData, const LinguisticGraph &anagraph, const LinguisticGraph &posgraph, uint64_t offset, std::set< LinguisticGraphVertex > &visited, bool keepAnyway) const
Builds a BoWPredicate corresponding to a semantic relation (an edge in the annotation graph holding a...
An annotation between two annotation graph vertices denoting the semantic relation(s) holding between...
This class points to a graph, its dependency graph and the structure that holds the maping between th...
AnnotationGraph::vertex_descriptor AnnotationGraphVertex