LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
ltrToken.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
20
#ifndef LIMA_COMMON_BAGOFWORDS__LTR_TOKEN__H
21
#define LIMA_COMMON_BAGOFWORDS__LTR_TOKEN__H
22
23
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
24
#include "
linguisticProcessing/common/BagOfWords/bowToken.h
"
25
26
#include <vector>
27
#include <iostream>
28
29
#include <boost/shared_ptr.hpp>
30
31
namespace
Lima
{
32
namespace
Common {
33
namespace
BagOfWords {
34
35
class
LTR_Token;
36
LIMA_LINEARTEXTREPRESENTATION_EXPORT
std::ostream&
operator<<
(std::ostream& os,
const
LTR_Token& tok);
37
LIMA_LINEARTEXTREPRESENTATION_EXPORT
QDebug&
operator<<
(QDebug& os,
const
LTR_Token& tok);
38
47
class
LIMA_LINEARTEXTREPRESENTATION_EXPORT
LTR_Token
:
public
48
std::vector<std::pair< boost::shared_ptr< Lima::Common::BagOfWords::BoWToken >, bool> > {
49
50
public
:
// -- methods
53
LTR_Token
() {}
54
//}@
55
58
~LTR_Token
();
59
//}@
60
63
LTR_Token
(
const
LTR_Token
& tok);
64
//}@
65
68
void
binaryWriteOn(std::ostream& os)
const
;
69
void
binaryReadFrom(std::istream& is);
70
//}@
71
74
friend
LIMA_LINEARTEXTREPRESENTATION_EXPORT
std::ostream&
operator<<
(std::ostream& os,
const
LTR_Token
& tok);
75
friend
LIMA_LINEARTEXTREPRESENTATION_EXPORT
QDebug&
operator<<
(QDebug& os,
const
LTR_Token
& tok);
76
//}@
77
78
private
:
// -- methods
81
// prevent from using affectation
82
LTR_Token
& operator=(
const
LTR_Token
&);
83
//}@
84
};
85
86
87
}
// BagOfWords
88
}
// Common
89
}
// Lima
90
91
92
#endif
// LIMA_COMMON_BAGOFWORDS__LTR_TOKEN__H
operator<<
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition
QsLog.cpp:39
LinguisticProcessingCommon.h
LIMA_LINEARTEXTREPRESENTATION_EXPORT
#define LIMA_LINEARTEXTREPRESENTATION_EXPORT
Definition
LinguisticProcessingCommon.h:85
bowToken.h
Lima::Common::BagOfWords::LTR_Token
a token of a linear text representation Each LTR_Token represents the set of words that start at a po...
Definition
ltrToken.h:48
Lima::Common::BagOfWords::LTR_Token::LTR_Token
LTR_Token()
Definition
ltrToken.h:53
Lima::Common::BagOfWords::operator<<
T & operator<<(T &qd, const BoWType &bt)
Definition
AbstractBoWElement.h:54
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
common
linearTextRepresentation
ltrToken.h
Generated by
1.9.8