81 auto annotationData = std::dynamic_pointer_cast< AnnotationData >(analysis.
getData(
"AnnotationData"));
82 if (annotationData==0) {
84 LDEBUG <<
"no annotation graph available !";
89 std::set<AnnotationGraphVertex> matches = annotationData->matches(graph.
getGraphId(), v,
"annot");
91 if (! matches.empty())
94 if (annotationData->hasAnnotation(annotVertex, m_entityAnnotation))
97 annotationData->annotation(annotVertex, m_entityAnnotation).
98 pointerValue<SpecificEntityAnnotation>();
102 LDEBUG <<
"EntityTransition: compare entity types " << m_entityType <<
" and " << se->
getType();
114 std::set< AnnotationGraphVertex > anaVertices = annotationData->matches(
"PosGraph",v,
"AnalysisGraph");
116 for (
const auto& anaVertex : anaVertices) {
118 std::set< AnnotationGraphVertex > matches = annotationData->matches(
"AnalysisGraph",anaVertex,
"annot");
120 for (
const auto& vx: matches)
126 pointerValue<SpecificEntityAnnotation>();
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
std::shared_ptr< AnalysisData > getData(const QString &id)
return AnalysisData by id
bool compare(const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &vertex, AnalysisContent &analysis, const LinguisticAnalysisStructure::Token *token, const LinguisticAnalysisStructure::MorphoSyntacticData *data) const override
comparison of the transition with a token : can use the graph and vertex info, associated with genera...