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
20
#include "
SyntacticAnalysisExport.h
"
21
#include "
DependencyGraph.h
"
22
#include "
SyntacticData.h
"
23
#include "
common/MediaProcessors/MediaProcessUnit.h
"
24
#include "
linguisticProcessing/core/PosTagger/dotGraphWriter.h
"
25
#include "
linguisticProcessing/core/PosTagger/posTaggingGraphWriter.h
"
26
#include "
linguisticProcessing/core/LinguisticAnalysisStructure/LinguisticGraph.h
"
27
28
namespace
Lima
{
29
30
namespace
Common {
31
namespace
AnnotationGraphs {
32
class
AnnotationData;
33
}
34
}
35
36
namespace
LinguisticProcessing {
37
38
namespace
LinguisticAnalysisStructure {
39
class
AnalysisGraph;
40
}
41
42
namespace
SyntacticAnalysis {
43
44
class
SyntacticData;
45
46
#define DOTDEPENDENCYGRAPHWRITER_CLASSID "DotDependencyGraphWriter"
47
51
class
LIMA_SYNTACTICANALYSIS_EXPORT
DotDependencyGraphWriter
:
public
DotGraphWriter
52
{
53
public
:
60
enum
DependencyGraphOutputMode
61
{
62
SentenceBySentence
,
63
FullGraph
64
};
65
66
DotDependencyGraphWriter
();
67
virtual
~DotDependencyGraphWriter
();
68
69
void
init(
70
Common::XMLConfigurationFiles::GroupConfigurationStructure
& unitConfiguration,
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,
81
const
LinguisticAnalysisStructure::AnalysisGraph
* anagraph,
82
const
LinguisticAnalysisStructure::AnalysisGraph
* posgraph,
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
DependencyGraph.h
A graph that stores the relations of syntactic dependency between the elements of a DependencyGraph.
LinguisticGraph.h
A graph structure for linguistic analysis.
LinguisticGraphVertex
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Definition
LinguisticGraph.h:100
MediaProcessUnit.h
SyntacticAnalysisExport.h
LIMA_SYNTACTICANALYSIS_EXPORT
#define LIMA_SYNTACTICANALYSIS_EXPORT
Definition
SyntacticAnalysisExport.h:30
SyntacticData.h
Data used for the syntactic analyzis of texts.
Lima::AnalysisContent
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Definition
AnalysisContent.h:37
Lima::Common::AnnotationGraphs::AnnotationData
Holds an annotation graph and gives an API to manipulate it.
Definition
AnnotationData.h:35
Lima::Common::XMLConfigurationFiles::GroupConfigurationStructure
Definition
groupConfigurationStructure.h:32
Lima::LinguisticProcessing::DotGraphWriter
Definition
dotGraphWriter.h:21
Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph
An AnalysisData containing a LinguisticGraph with a language and an id.
Definition
AnalysisGraph.h:47
Lima::LinguisticProcessing::SyntacticAnalysis::DotDependencyGraphWriter
This class is a process units that dumps to file a dependency graph in the GraphViz dot file format.
Definition
DotDependencyGraphWriter.h:52
Lima::LinguisticProcessing::SyntacticAnalysis::DotDependencyGraphWriter::DependencyGraphOutputMode
DependencyGraphOutputMode
This enum defines the output modes.
Definition
DotDependencyGraphWriter.h:61
Lima::LinguisticProcessing::SyntacticAnalysis::DotDependencyGraphWriter::SentenceBySentence
@ SentenceBySentence
Definition
DotDependencyGraphWriter.h:62
Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticData
This class points to a graph, its dependency graph and the structure that holds the maping between th...
Definition
SyntacticData.h:51
dotGraphWriter.h
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaStatusCode
LimaStatusCode
Definition
LimaCommon.h:236
posTaggingGraphWriter.h
lima_linguisticprocessing
src
linguisticProcessing
core
SyntacticAnalysis
DotDependencyGraphWriter.h
Generated by
1.9.8