LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SemanticRelationAnnotation.cpp
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
13
14namespace Lima
15{
16namespace LinguisticProcessing
17{
18namespace SemanticAnalysis
19{
20
21
23{
25 try
26 {
28 return SUCCESS_ID;
29 }
30 catch (const boost::bad_any_cast& e)
31 {
32 LERROR << "This annotation is not a SemanticRelationAnnotation ; nothing dumped";
33 return UNKNOWN_ERROR;
34 }
35}
36
37} // closing namespace SemanticAnalysis
38} // closing namespace LinguisticProcessing
39} // closing namespace Lima
#define LERROR
Definition LimaCommon.h:161
#define PROCESSORSLOGINIT
Definition LimaCommon.h:211
This class allows to convert any object into an annotation by inheritance.
virtual int dump(std::ostream &os, Common::AnnotationGraphs::GenericAnnotation &ga) const override
An annotation between two annotation graph vertices denoting the semantic relation(s) holding between...
NAUTITIA.
@ UNKNOWN_ERROR
Definition LimaCommon.h:238
@ SUCCESS_ID
Definition LimaCommon.h:237