LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SemanticRelationData.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 LIMA_ANNOTATION_SEMANTICRELATIONDATA_H
18#define LIMA_ANNOTATION_SEMANTICRELATIONDATA_H
19
26
28#include "boost/tuple/tuple.hpp"
30#include "boost/tuple/tuple_comparison.hpp"
32#include "boost/tuple/tuple_io.hpp"
33
34
35namespace Lima
36{
37namespace LinguisticProcessing
38{
39namespace SemanticAnalysis
40{
41
42class LIMA_SEMANTICANALYSIS_EXPORT SemanticRelation :public boost::tuple< LinguisticGraphVertex, LinguisticGraphVertex, std::string >
43{
44 public:
46 const LinguisticGraphVertex& v2,
47 const std::string relationType)
48 :boost::tuple<LinguisticGraphVertex,LinguisticGraphVertex,std::string>(v1,v2,relationType){};
49};
50
52{
53public:
54
56
57 virtual ~SemanticRelationData();
58
60 {
61 m_relations.clear();
62 return true;
63 }
64
66 bool relation(const LinguisticGraphVertex& v1,
67 const LinguisticGraphVertex& v2,
68 const std::string semanticRelationType);
69
70
72 bool addRelations(AnalysisContent& analysis);
73
74
75private:
76
78 std::set< SemanticRelation > m_relations;
79
80
81};
82
83
84}
85}
86}
87
88#endif
This file is the main header file for the data related to annotation graphs.
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
#define LIMA_SEMANTICANALYSIS_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
just for semantics: base class for analysisData
SemanticRelation(const LinguisticGraphVertex &v1, const LinguisticGraphVertex &v2, const std::string relationType)
NAUTITIA.
STL namespace.