80 auto annotationData = std::dynamic_pointer_cast< AnnotationData >(analysis.
getData(
"AnnotationData"));
81 if (annotationData==0) {
83 LDEBUG <<
"EntityGroupTransition::compare: no annotation graph available !";
88 std::set<AnnotationGraphVertex> matches = annotationData->matches(graph.
getGraphId(), v,
"annot");
92 LDEBUG <<
"annotation ("<<graph.
getGraphId()<<
", "<<v<<
", \"annot\") available";
97 if (!annotationData->hasAnnotation(annotVertex, m_entityAnnotation))
100 LDEBUG <<
"EntityGroupTransition::compare: No " << m_entityAnnotation <<
" annotation available on " << v;
105 annotationData->annotation(annotVertex, m_entityAnnotation).
106 pointerValue<SpecificEntityAnnotation>();
110 LDEBUG <<
"EntityGroupTransition::compare: m_entityGroupId = " << m_entityGroupId;
111 LDEBUG <<
"EntityGroupTransition::compare: tests m_entityGroupId == type.getGroupId() = " << (m_entityGroupId ==
type.getGroupId());
112 return( m_entityGroupId ==
type.getGroupId() );
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...