LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SemanticRelationAnnotation.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
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10
11#ifndef PATTERNPROCESSING_SEMANTICANALYSIS_H
12#define PATTERNPROCESSING_SEMANTICANALYSIS_H
13
18
19namespace Lima
20{
21namespace LinguisticProcessing
22{
23namespace SemanticAnalysis
24{
25
34{
35public:
36 SemanticRelationAnnotation(const std::string& type) : m_type(type) {}
37
39
40 inline std::string& type();
41 inline const std::string& type() const;
42 inline void type(const std::string& newType);
43 inline void dump(std::ostream& os);
44
45private:
46
47protected:
48 std::string m_type;
49};
50
52{
53 return m_type;
54}
55inline const std::string& SemanticRelationAnnotation::type() const
56{
57 return m_type;
58}
59inline void SemanticRelationAnnotation::type(const std::string& newType)
60{
61 m_type = newType;
62}
63inline void SemanticRelationAnnotation::dump(std::ostream& os)
64{
65 os << m_type;
66}
67
68
70{
71 public:
72 virtual int dump(std::ostream& os, Common::AnnotationGraphs::GenericAnnotation& ga) const override;
73};
74
75
76} // closing namespace SemanticAnalysis
77} // closing namespace LinguisticProcessing
78} // closing namespace Lima
79
80#endif // PATTERNPROCESSING_SEMANTICANALYSIS_H
This file is the main header file for the data related to annotation graphs.
#define LIMA_SEMANTICANALYSIS_EXPORT
This class allows to convert any object into an annotation by inheritance.
An annotation between two annotation graph vertices denoting the semantic relation(s) holding between...
NAUTITIA.