LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
bowTerm.h
Go to the documentation of this file.
1
// Copyright 2002-2020 CEA LIST
2
// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3
//
4
// SPDX-License-Identifier: MIT
5
6
/************************************************************************
7
* @file bowTerm.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 BOWTERM_H
17
#define BOWTERM_H
18
19
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
20
#include "
bowToken.h
"
21
#include "
bowComplexToken.h
"
22
#include <deque>
23
24
namespace
Lima
{
25
namespace
Common {
26
namespace
BagOfWords {
27
28
class
BoWTermPrivate;
29
35
class
LIMA_BOW_EXPORT
BoWTerm
:
public
BoWComplexToken
36
{
37
public
:
38
BoWTerm
();
39
BoWTerm
(
const
BoWTerm
&);
40
41
BoWTerm
(
const
Lima::LimaString
& lemma,
42
const
LinguisticCode
category,
43
const
uint64_t position,
44
const
uint64_t length);
45
46
BoWTerm
(
const
Lima::LimaString
& lemma,
47
const
LinguisticCode
category,
48
const
uint64_t position,
49
const
uint64_t length,
50
std::deque< boost::shared_ptr< Lima::Common::BagOfWords::BoWToken > >& parts,
51
const
uint64_t head);
52
53
virtual
~BoWTerm
();
54
55
virtual
BoWTerm
* clone()
const override
;
56
// virtual BoWTerm* clone(const std::map<BoWToken*,BoWToken*>&) const;
57
58
BoWTerm
& operator=(
const
BoWTerm
&);
59
60
virtual
BoWType
getType
()
const override
{
return
BoWType::BOW_TERM; }
61
63
virtual
std::string getOutputUTF8String(
const
Common::PropertyCode::PropertyManager
* macroManager = 0)
const override
;
64
virtual
std::string getIdUTF8String(
void
)
const override
;
65
66
protected
:
67
BoWTerm
(
BoWTermPrivate
&);
68
};
69
//**************************************************************
70
// inline functions
71
//**************************************************************
72
// inline BoWTerm* BoWTerm::clone() const
73
// {
74
// return new BoWTerm(*this);
75
// }
76
// inline BoWTerm* BoWTerm::clone(const std::map<BoWToken*,BoWToken*>& map) const
77
// {
78
// return new BoWTerm(*this,map);
79
// }
80
81
LIMA_BOW_EXPORT
std::ostream&
operator<<
(std::ostream& os,
const
BoWTerm& t);
82
83
}
// namespace BagOfWords
84
}
// namespace Common
85
}
// namespace Lima
86
87
#endif
LinguisticProcessingCommon.h
LIMA_BOW_EXPORT
#define LIMA_BOW_EXPORT
Definition
LinguisticProcessingCommon.h:80
bowComplexToken.h
bowToken.h
Lima::Common::BagOfWords::BoWComplexToken
This is a complex token for an index.
Definition
bowComplexToken.h:43
Lima::Common::BagOfWords::BoWTermPrivate
Definition
bowTerm.cpp:24
Lima::Common::BagOfWords::BoWTerm
This is a complex token used to represent a multiword term.
Definition
bowTerm.h:36
Lima::Common::BagOfWords::BoWTerm::getType
virtual BoWType getType() const override
Definition
bowTerm.h:60
Lima::Common::BagOfWords::BoWTerm::BoWTerm
BoWTerm(const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length, std::deque< boost::shared_ptr< Lima::Common::BagOfWords::BoWToken > > &parts, const uint64_t head)
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::Common::BagOfWords::operator<<
T & operator<<(T &qd, const BoWType &bt)
Definition
AbstractBoWElement.h:54
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaString
QString LimaString
Definition
LimaString.h:33
lima_linguisticprocessing
src
linguisticProcessing
common
BagOfWords
bowTerm.h
Generated by
1.9.8