![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
An AnalysisData containing a LinguisticGraph with a language and an id. More...
#include <linguisticProcessing/core/LinguisticAnalysisStructure/AnalysisGraph.h>
Public Member Functions | |
| AnalysisGraph (const std::string &graphId, MediaId language, bool deleteTokenWhenDestroyed, bool deleteDataWhenDestroyed) | |
| AnalysisGraph (const std::string &graphId, MediaId language, bool deleteTokenWhenDestroyed, bool deleteDataWhenDestroyed, const AnalysisGraph &graph) | |
| virtual | ~AnalysisGraph () |
| const LinguisticGraphVertex & | firstVertex (void) const |
| Returns the first vertex of the graph. | |
| const LinguisticGraphVertex & | lastVertex (void) const |
| Returns the last vertex of the graph. | |
| const LinguisticGraph * | getGraph (void) const |
| Returns the underlying graph structure. | |
| LinguisticGraph * | getGraph (void) |
| Returns the underlying graph structure. | |
| const std::string & | getGraphId (void) const |
| LinguisticGraphVertex | nextMainPathVertex (LinguisticGraphVertex start, const Common::PropertyCode::PropertyAccessor µAccessor, const std::list< LinguisticCode > microFilters, LinguisticGraphVertex end) |
| Finds the next unambiguated vertex for which micro categories are all included in the microFilters list. | |
| LinguisticGraphVertex | nextChainsBreakFrom (const LinguisticGraphVertex &v, const Common::PropertyCode::PropertyAccessor ¯oAccessor, const LinguisticCode &ponctu, const Common::PropertyCode::PropertyAccessor µAccessor, LinguisticGraphVertex &nextSentenceBreak) |
| Finds the next vertex after the input vertex that: | |
| void | populateAnnotationGraph (Common::AnnotationGraphs::AnnotationData *annotData, const std::string &src) |
| Creates the annotations in the agdata corresponding to this graphs vertices. | |
| bool | ownsTokens () const |
| bool | ownsMorphData () const |
Public Member Functions inherited from Lima::AnalysisData | |
| virtual | ~AnalysisData () |
An AnalysisData containing a LinguisticGraph with a language and an id.
Definition at line 46 of file AnalysisGraph.h.
| Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph::AnalysisGraph | ( | const std::string & | graphId, |
| MediaId | language, | ||
| bool | deleteTokenWhenDestroyed, | ||
| bool | deleteDataWhenDestroyed | ||
| ) |
Definition at line 32 of file AnalysisGraph.cpp.
| Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph::AnalysisGraph | ( | const std::string & | graphId, |
| MediaId | language, | ||
| bool | deleteTokenWhenDestroyed, | ||
| bool | deleteDataWhenDestroyed, | ||
| const AnalysisGraph & | graph | ||
| ) |
Definition at line 44 of file AnalysisGraph.cpp.
|
virtual |
Definition at line 68 of file AnalysisGraph.cpp.
|
inline |
Returns the first vertex of the graph.
Definition at line 63 of file AnalysisGraph.h.
|
inline |
Returns the underlying graph structure.
Definition at line 79 of file AnalysisGraph.h.
|
inline |
Returns the underlying graph structure.
Definition at line 73 of file AnalysisGraph.h.
|
inline |
Definition at line 81 of file AnalysisGraph.h.
|
inline |
Returns the last vertex of the graph.
Definition at line 67 of file AnalysisGraph.h.
| LinguisticGraphVertex Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph::nextChainsBreakFrom | ( | const LinguisticGraphVertex & | v, |
| const Common::PropertyCode::PropertyAccessor & | macroAccessor, | ||
| const LinguisticCode & | ponctu, | ||
| const Common::PropertyCode::PropertyAccessor & | microAccessor, | ||
| LinguisticGraphVertex & | nextSentenceBreak | ||
| ) |
Finds the next vertex after the input vertex that:
| v | IN LinguisticGraphVertex& The vertex from which to start the search |
| g | IN LinguisticGraph& The graph containing v |
| v | IN LinguisticGraphVertex& The vertex from which to start the search |
| g | IN LinguisticGraph& The graph containing v |
Definition at line 301 of file AnalysisGraph.cpp.
| LinguisticGraphVertex Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph::nextMainPathVertex | ( | LinguisticGraphVertex | start, |
| const Common::PropertyCode::PropertyAccessor & | microAccessor, | ||
| const std::list< LinguisticCode > | microFilters, | ||
| LinguisticGraphVertex | end | ||
| ) |
Finds the next unambiguated vertex for which micro categories are all included in the microFilters list.
Returns last vertex if has reached it.
| start | IN vertex from which to start |
Definition at line 189 of file AnalysisGraph.cpp.
|
inline |
Definition at line 130 of file AnalysisGraph.h.
|
inline |
Definition at line 128 of file AnalysisGraph.h.
| void Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph::populateAnnotationGraph | ( | Common::AnnotationGraphs::AnnotationData * | annotData, |
| const std::string & | src | ||
| ) |
Creates the annotations in the agdata corresponding to this graphs vertices.
| anagraph | IN/OUT AnnotationData& The annatation graph data to be populated |
Definition at line 397 of file AnalysisGraph.cpp.