LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
bowNamedEntity.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 * @file bowNamedEntity.h
8 * @author Besancon Romaric
9 * @date Tue Oct 7 2003
10 * copyright Copyright (C) 2003 by CEA LIST
11 *
12 * @brief
13 *
14 ***********************************************************************/
15
16#ifndef BOWNAMEDENTITY_H
17#define BOWNAMEDENTITY_H
18
20#include "bowComplexToken.h"
22
23namespace Lima {
24namespace Common {
25namespace BagOfWords {
26
27class BoWNamedEntityPrivate;
34{
36public:
39
42 const uint64_t position,
43 const uint64_t length);
44
46 const LinguisticCode theCategory,
48 const uint64_t position,
49 const uint64_t length);
50
51 virtual ~BoWNamedEntity();
52
53 virtual BoWNamedEntity* clone() const override;
54// virtual BoWNamedEntity* clone(const std::map<BoWToken*,BoWToken*>&) const;
55
56 BoWNamedEntity& operator=(const BoWNamedEntity&);
57 bool operator==(const BoWNamedEntity&);
58
59 Common::MediaticData::EntityType getNamedEntityType(void) const;
60 void setNamedEntityType(const Common::MediaticData::EntityType&);
61
62 const std::map<std::string, LimaString>& getFeatures() const;
63 void setFeature(const std::string& attribute,
64 const LimaString& value);
65
66 virtual BoWType getType() const override { return BoWType::BOW_NAMEDENTITY; }
67
72 std::string getFeaturesUTF8String(void) const;
74 virtual std::string getOutputUTF8String(const Common::PropertyCode::PropertyManager* macroManager = 0) const override;
75 virtual std::string getIdUTF8String(void) const override;
76
87 virtual std::set< uint64_t > getVertices() const override
88 {
89 return BoWToken::getVertices();
90 }
91
92protected:
94};
95
96
97} // namespace BagOfWords
98} // namespace Common
99} // namespace Lima
100
101#endif
#define LIMA_BOW_EXPORT
This is a complex token for an index.
This is a complex token used to represent a named entity token.
virtual BoWType getType() const override
virtual std::set< uint64_t > getVertices() const override
returns a singleton made of the value of the getVertex function.
Provide tools to manage a specific property.
BoWType
enum to characterize the type of the AbstractBoWElement
NAUTITIA.
QString LimaString
Definition LimaString.h:33