LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
entityTransition.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 *
8 * @file EntityTransition.h
9 * @author besancon (besanconr@zoe.cea.fr)
10 * @date Fri Jul 28 2006
11 * copyright Copyright (C) 2006-2012 by CEA LIST
12 * Project Automaton
13 *
14 * @brief transitions that are previously recognized entities
15 *
16 ***********************************************************************/
17
18#ifndef ENTITYTRANSITION_H
19#define ENTITYTRANSITION_H
20
21#include "AutomatonExport.h"
22#include "automatonCommon.h"
23#include "transitionUnit.h"
24
25namespace Lima {
26namespace LinguisticProcessing {
27namespace Automaton {
28
30{
31 public:
34 virtual ~EntityTransition();
35
36 EntityTransition* clone() const override;
37 EntityTransition* create() const override;
38
39 std::string printValue() const override;
40 bool operator== (const TransitionUnit&) const override;
41
42 bool compare(const LinguisticAnalysisStructure::AnalysisGraph& graph,
43 const LinguisticGraphVertex& vertex,
44 AnalysisContent& analysis,
46 const LinguisticAnalysisStructure::MorphoSyntacticData* data) const override;
47
48 TypeTransition type() const override;
49 Common::MediaticData::EntityType entityType() const { return m_entityType; }
50 void setEntityType(Common::MediaticData::EntityType type) { m_entityType=type; }
51
52 private:
54 static LimaString m_entityAnnotation;
55};
56
57
58/***********************************************************************/
59// inline access functions
60/***********************************************************************/
62
64 return new EntityTransition(*this); }
66 return new EntityTransition(); }
67
68
69} // namespace end
70} // namespace end
71} // namespace end
72
73#endif
#define LIMA_AUTOMATON_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
void setEntityType(Common::MediaticData::EntityType type)
Common::MediaticData::EntityType entityType() const
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.
QString LimaString
Definition LimaString.h:33