LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
bowDocument.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 bowDocument.h
9 * @author Besancon Romaric (besanconr@zoe.cea.fr)
10 * @date Wed Oct 8 2003
11 * copyright Copyright (C) 2003 by CEA LIST
12 * Project BagOfWords
13 *
14 * @brief bag-of-words representation of a document
15 *
16 *
17 ***********************************************************************/
18
19#ifndef BOWDOCUMENT_H
20#define BOWDOCUMENT_H
21
23#include "bowText.h"
25#include <iostream>
26
27namespace Lima
28{
29namespace Common
30{
31namespace BagOfWords
32{
33
44
45LIMA_BOW_EXPORT std::ostream& operator<<(std::ostream& out,const BoWBlocType& blocType);
46LIMA_BOW_EXPORT QDebug& operator<<(QDebug& out,const BoWBlocType& blocType);
47LIMA_BOW_EXPORT std::istream& operator>>(std::istream& in,BoWBlocType& blocType);
48
50
56 public BoWText
57{
58public:
61 virtual ~BoWDocument();
62 BoWDocument& operator = (const BoWDocument&);
63
64 virtual void clear() override;
65
66 virtual void reinit() override;
67
68 virtual void setProperties(const Misc::GenericDocumentProperties& properties);
69
71 //virtual void read(std::istream& file);
72 //virtual void write(std::ostream& file) const;
73/* virtual void readPart(std::istream& file, */
74/* AbstractBowDocumentHandler& handler, */
75/* bool useIterator, */
76/* std::ostream& os); */
77// //@}
78
79friend LIMA_BOW_EXPORT std::ostream& operator << (std::ostream&, const BoWDocument&);
80friend LIMA_BOW_EXPORT QDebug& operator << (QDebug&, const BoWDocument&);
81
82private:
83};
84
85
86} // end namespace BagOfWords
87} // end namespace Common
88} // end namespace Lima
89
90#endif
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition QsLog.cpp:39
#define LIMA_BOW_EXPORT
represent a document as a Bag Of Word, with associated document properties.
Definition bowDocument.h:57
This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple...
Definition bowText.h:48
std::string getBlocTypeString(BoWBlocType blocType)
std::istream & operator>>(std::istream &in, BoWBlocType &blocType)
T & operator<<(T &qd, const BoWType &bt)
NAUTITIA.