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
20#include "bowToken.h"
21#include "bowComplexToken.h"
22#include <deque>
23
24namespace Lima {
25namespace Common {
26namespace BagOfWords {
27
28class BoWTermPrivate;
29
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
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
66protected:
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
81LIMA_BOW_EXPORT std::ostream& operator<<(std::ostream& os, const BoWTerm& t);
82
83} // namespace BagOfWords
84} // namespace Common
85} // namespace Lima
86
87#endif
#define LIMA_BOW_EXPORT
This is a complex token for an index.
This is a complex token used to represent a multiword term.
Definition bowTerm.h:36
virtual BoWType getType() const override
Definition bowTerm.h:60
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)
Provide tools to manage a specific property.
BoWType
enum to characterize the type of the AbstractBoWElement
T & operator<<(T &qd, const BoWType &bt)
NAUTITIA.
QString LimaString
Definition LimaString.h:33