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
19
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
20
#include "
bowComplexToken.h
"
21
#include "
common/MediaticData/EntityType.h
"
22
23
namespace
Lima
{
24
namespace
Common {
25
namespace
BagOfWords {
26
27
class
BoWNamedEntityPrivate;
33
class
LIMA_BOW_EXPORT
BoWNamedEntity
:
public
BoWComplexToken
34
{
35
friend
class
BoWNamedEntityPrivate
;
36
public
:
37
BoWNamedEntity
();
38
BoWNamedEntity
(
const
BoWNamedEntity
&);
39
40
BoWNamedEntity
(
const
Lima::LimaString
& lemma,
41
const
Common::MediaticData::EntityType
theType,
42
const
uint64_t position,
43
const
uint64_t length);
44
45
BoWNamedEntity
(
const
Lima::LimaString
& lemma,
46
const
LinguisticCode
theCategory,
47
const
Common::MediaticData::EntityType
theType,
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
92
protected
:
93
BoWNamedEntity
(
BoWNamedEntityPrivate
&);
94
};
95
96
97
}
// namespace BagOfWords
98
}
// namespace Common
99
}
// namespace Lima
100
101
#endif
EntityType.h
LinguisticProcessingCommon.h
LIMA_BOW_EXPORT
#define LIMA_BOW_EXPORT
Definition
LinguisticProcessingCommon.h:80
bowComplexToken.h
Lima::Common::BagOfWords::BoWComplexToken
This is a complex token for an index.
Definition
bowComplexToken.h:43
Lima::Common::BagOfWords::BoWNamedEntityPrivate
Definition
bowNamedEntity.cpp:24
Lima::Common::BagOfWords::BoWNamedEntity
This is a complex token used to represent a named entity token.
Definition
bowNamedEntity.h:34
Lima::Common::BagOfWords::BoWNamedEntity::getType
virtual BoWType getType() const override
Definition
bowNamedEntity.h:66
Lima::Common::BagOfWords::BoWNamedEntity::getVertices
virtual std::set< uint64_t > getVertices() const override
returns a singleton made of the value of the getVertex function.
Definition
bowNamedEntity.h:87
Lima::Common::MediaticData::EntityType
Definition
EntityType.h:38
Lima::Common::PropertyCode::PropertyManager
Provide tools to manage a specific property.
Definition
PropertyManager.h:34
Lima::LinguisticCode
Definition
StdBitset.h:23
Lima::Common::BagOfWords::BoWType
BoWType
enum to characterize the type of the AbstractBoWElement
Definition
AbstractBoWElement.h:38
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaString
QString LimaString
Definition
LimaString.h:33
lima_linguisticprocessing
src
linguisticProcessing
common
BagOfWords
bowNamedEntity.h
Generated by
1.9.8