LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
bowText.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 *
8 * @file bowText.h
9 * @author Besancon Romaric
10 * @date Tue Oct 7 17:13:26 2003
11 * copyright Copyright (C) 2003 by CEA LIST
12 *
13 * @brief
14 *
15 *
16 ***********************************************************************/
17
18#ifndef BOWTEXT_H
19#define BOWTEXT_H
20
22
23#include <boost/shared_ptr.hpp>
24
25#include <vector>
26#include <iostream>
27
28namespace Lima {
29namespace Common {
30namespace BagOfWords {
31
32class AbstractBoWElement;
33
47class LIMA_BOW_EXPORT BoWText : public std::vector< boost::shared_ptr< AbstractBoWElement > >
48{
49public:
50 BoWText();
51 BoWText(const BoWText&);
52 BoWText& operator = (const BoWText&);
53 virtual ~BoWText();
54 virtual void clear();
55
56 friend LIMA_BOW_EXPORT std::ostream& operator << (std::ostream&, const BoWText&);
57 friend LIMA_BOW_EXPORT QDebug& operator << (QDebug&, const BoWText&);
58
59 void writeBoWText(std::ostream& stream);
60
61 std::string lang;
62};
63
64} // namespace BagOfWords
65} // namespace Common
66} // namespace Lima
67
68#endif
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition QsLog.cpp:39
#define LIMA_BOW_EXPORT
This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple...
Definition bowText.h:48
NAUTITIA.