![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
Parameters retrived in the configuration file: More...
#include <linguisticProcessing/core/AnalysisDumpers/BowGeneration.h>
Public Member Functions | |
| BowGenerator () | |
| virtual | ~BowGenerator () |
| BowGenerator (const BowGenerator &)=delete | |
| BowGenerator & | operator= (const BowGenerator &)=delete |
| void | init (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, MediaId language) |
| 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. | |
| 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 |
| 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 SemanticRelation annotation. | |
| 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 |
Friends | |
| class | BowGeneratorPrivate |
Parameters retrived in the configuration file:
Definition at line 73 of file BowGeneration.h.
| Lima::LinguisticProcessing::Compounds::BowGenerator::BowGenerator | ( | ) |
Definition at line 226 of file BowGeneration.cpp.
|
virtual |
Definition at line 231 of file BowGeneration.cpp.
|
delete |
| std::vector< std::pair< boost::shared_ptr< BoWRelation >, boost::shared_ptr< BoWToken > > > Lima::LinguisticProcessing::Compounds::BowGenerator::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.
Supposes that all edges pointing to vx are edges to be used in the term Builds terms for vertex vx, possibly extension of vertex tgt. If this is the case, the edge between vx and tgt is used to build the BoWRelations of the returned vector
Definition at line 353 of file BowGeneration.cpp.
| std::vector< std::pair< boost::shared_ptr< BoWRelation >, boost::shared_ptr< AbstractBoWElement > > > Lima::LinguisticProcessing::Compounds::BowGenerator::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 |
Definition at line 708 of file BowGeneration.cpp.
| QList< boost::shared_ptr< Common::BagOfWords::BoWPredicate > > Lima::LinguisticProcessing::Compounds::BowGenerator::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 SemanticRelation annotation.
Note that if several semantic relations hold between the source and target vertices, then the annotation type value is the comma-concatenated list of the semantic relations ids
| lgvs | source linguistic graph vertex |
| agvs | source annotation graph vertex matching lgvs |
| agvt | target annotation graph vertex of the relation |
| annot | the semantic relation itself (holding its type) |
Definition at line 1473 of file BowGeneration.cpp.
| boost::shared_ptr< BoWNamedEntity > Lima::LinguisticProcessing::Compounds::BowGenerator::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 |
Definition at line 1175 of file BowGeneration.cpp.
| void Lima::LinguisticProcessing::Compounds::BowGenerator::init | ( | Common::XMLConfigurationFiles::GroupConfigurationStructure & | unitConfiguration, |
| MediaId | language | ||
| ) |
Definition at line 236 of file BowGeneration.cpp.
|
delete |
|
friend |
Definition at line 75 of file BowGeneration.h.