LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SpecificEntityAnnotation.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) 2005 by CEA LIST *
8 * *
9 ***************************************************************************/
10
11#ifndef LIMA_LINGUISTICPROCESSING_SPECIFICENTITIESSPECIFICENTITYANNOTATION_H
12#define LIMA_LINGUISTICPROCESSING_SPECIFICENTITIESSPECIFICENTITYANNOTATION_H
13
14#include "AutomatonExport.h"
19
20#include <vector>
21
22namespace Lima
23{
24
25namespace LinguisticProcessing
26{
27
28namespace SpecificEntities
29{
30
31class SpecificEntityAnnotationPrivate;
36{
38public:
39
41 FsaStringsPool& sp);
42 SpecificEntityAnnotation( const std::deque<LinguisticGraphVertex>& vertices,
44 const LimaString& form,
45 const LimaString& normalizedForm,
46 int nbError,
47 uint64_t startPos,
48 uint64_t length,
49 FsaStringsPool& sp);
52 SpecificEntityAnnotation& operator=(const SpecificEntityAnnotation& annotation);
53
54 LinguisticGraphVertex getHead() const;
55 void setHead(const LinguisticGraphVertex& head);
57 void setType(const Common::MediaticData::EntityType& type);
58 const Automaton::EntityFeatures& getFeatures() const;
59 void setFeatures(const Automaton::EntityFeatures& features);
60 StringsPoolIndex getString() const;
61 StringsPoolIndex getNormalizedString() const;
62 StringsPoolIndex getNormalizedForm() const;
63 uint64_t getPosition() const;
64 uint64_t getLength() const;
65 const std::vector< LinguisticGraphVertex>& vertices() const;
66
68 void dump(std::ostream& os) const;
69
70
71private:
73};
74
75
87{
88public:
90 virtual int dump(std::ostream& os,
92};
93
94
95
96} // SpecificEntities
97} // LinguisticProcessing
98} // Lima
99
100#endif
This file is the main header file for the data related to annotation graphs.
#define LIMA_AUTOMATON_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
This class allows to convert any object into an annotation by inheritance.
a list of generic features: each feature is unique (only one feature for a name)
Definition of a function suitable to be used as a dumper for specific entities annotations of an anno...
A representation of a specific entity to store in the annotation graph.
NAUTITIA.
QString LimaString
Definition LimaString.h:33