LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
DotDependencyGraphWriter.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
17#ifndef DEPENDENCYGRAPHWRITER_H
18#define DEPENDENCYGRAPHWRITER_H
19
21#include "DependencyGraph.h"
22#include "SyntacticData.h"
27
28namespace Lima {
29
30namespace Common {
31namespace AnnotationGraphs {
32 class AnnotationData;
33}
34}
35
36namespace LinguisticProcessing {
37
38namespace LinguisticAnalysisStructure {
39 class AnalysisGraph;
40}
41
42namespace SyntacticAnalysis {
43
44class SyntacticData;
45
46#define DOTDEPENDENCYGRAPHWRITER_CLASSID "DotDependencyGraphWriter"
47
52{
53 public:
65
68
69 void init(
71 Manager* manager) override;
72
73 LimaStatusCode process(AnalysisContent& analysis) const override;
74
75 private:
76 void write_graphviz(
77 std::ostream& os,
78 uint64_t sentNum,
79 const LinguisticGraphVertex begin,
80 const LinguisticGraphVertex end,
83 const SyntacticData* syntacticData,
84 const Common::AnnotationGraphs::AnnotationData* annotationData) const;
85
93 bool m_onlyDepEdges;
94
95 std::map<std::string,std::string> m_graphDotOptions;
96 std::map<std::string,std::string> m_nodeDotOptions;
97 std::map<std::string,std::string> m_edgeDotOptions;
98
99 DependencyGraphOutputMode m_outputMode;
100 std::deque<std::string> m_vertexDisplay;
101};
102
103#include "DotDependencyGraphWriter.tcc"
104
105} // end namespace
106} // end namespace
107} // end namespace
108
109#endif
A graph that stores the relations of syntactic dependency between the elements of a DependencyGraph.
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
#define LIMA_SYNTACTICANALYSIS_EXPORT
Data used for the syntactic analyzis of texts.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Holds an annotation graph and gives an API to manipulate it.
An AnalysisData containing a LinguisticGraph with a language and an id.
This class is a process units that dumps to file a dependency graph in the GraphViz dot file format.
This class points to a graph, its dependency graph and the structure that holds the maping between th...
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236