LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation Class Reference

An annotation between two annotation graph vertices denoting the semantic relation(s) holding between the two tokens. More...

#include <linguisticProcessing/core/SemanticAnalysis/SemanticRelationAnnotation.h>

Public Member Functions

 SemanticRelationAnnotation (const std::string &type)
 
virtual ~SemanticRelationAnnotation ()
 
std::string & type ()
 
const std::string & type () const
 
void type (const std::string &newType)
 
void dump (std::ostream &os)
 

Protected Attributes

std::string m_type
 

Detailed Description

An annotation between two annotation graph vertices denoting the semantic relation(s) holding between the two tokens.

If there is more than one relation between the two vertices, the value of the type should be the list of the relation types concatenated with a '-'.

Definition at line 33 of file SemanticRelationAnnotation.h.

Constructor & Destructor Documentation

◆ SemanticRelationAnnotation()

Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::SemanticRelationAnnotation ( const std::string &  type)
inline

Definition at line 36 of file SemanticRelationAnnotation.h.

◆ ~SemanticRelationAnnotation()

virtual Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::~SemanticRelationAnnotation ( )
inlinevirtual

Definition at line 38 of file SemanticRelationAnnotation.h.

Member Function Documentation

◆ dump()

void Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::dump ( std::ostream &  os)
inline

Definition at line 63 of file SemanticRelationAnnotation.h.

◆ type() [1/3]

std::string & Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::type ( )
inline

Definition at line 51 of file SemanticRelationAnnotation.h.

◆ type() [2/3]

const std::string & Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::type ( ) const
inline

Definition at line 55 of file SemanticRelationAnnotation.h.

◆ type() [3/3]

void Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::type ( const std::string &  newType)
inline

Definition at line 59 of file SemanticRelationAnnotation.h.

Member Data Documentation

◆ m_type

std::string Lima::LinguisticProcessing::SemanticAnalysis::SemanticRelationAnnotation::m_type
protected

Definition at line 48 of file SemanticRelationAnnotation.h.


The documentation for this class was generated from the following file: