LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
BinaryWriterBoWDocumentHandler.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 BinaryWriterBoWDocumentHandler.h
9 * @author Mesnard Olivier (olivier.mesnard@.cea.fr)
10 * @date Wed Oct 12 2005
11 * copyright Copyright (C) 2005-2012 by CEA LIST
12 * Project BagOfWords
13 *
14 * @brief handler for structured bow document that produces a text output
15 *
16 *
17 ***********************************************************************/
18
19#ifndef TEXTWRITERBOWDOCUMENTHANDLER_H
20#define TEXTWRITERBOWDOCUMENTHANDLER_H
21
23#include "bowToken.h"
24#include "bowText.h"
28
29namespace Lima {
30namespace Common {
31namespace BagOfWords {
32
35{
36 public:
37 BinaryWriterBoWDocumentHandler(std::ostream& os);
39
40 void openSBoWNode(const Misc::GenericDocumentProperties* properties,
41 const std::string& elementName) override;
42
43 void openSBoWIndexingNode(const Misc::GenericDocumentProperties* properties,
44 const std::string& elementName) override;
45
46 void processSBoWText(const BoWText* boWText,
47 bool useIterators,
48 bool useIndexIterator) override;
49
50 void processProperties(const Misc::GenericDocumentProperties* properties,
51 bool useIterators,
52 bool useIndexIterator) override;
53
54 void closeSBoWNode() override;
55
56 private:
57 BoWBinaryWriter m_writer;
58 std::ostream& m_outputStream;
59};
60
61} // end namespace
62} // end namespace
63} // end namespace
64
65#endif
#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.