LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
TextWriterBoWDocumentHandler.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 TextWriterBoWDocumentHandler.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
24#include <vector>
25
26namespace Lima {
27namespace Common {
28 namespace Misc {
29 class GenericDocumentProperties;
30 }
31namespace BagOfWords {
32
33class BoWText;
34
35class TextWriterBoWDocumentHandlerPrivate;
37{
38 public:
39 TextWriterBoWDocumentHandler(std::ostream& os);
41
42 void openSBoWNode(const Misc::GenericDocumentProperties* properties,
43 const std::string& elementName) override;
44 void openSBoWIndexingNode(const Misc::GenericDocumentProperties* properties,
45 const std::string& elementName) override;
46 void processSBoWText(const BoWText* boWText,
47 bool useIterators, bool useIndexIterator) override;
48 void processProperties(const Misc::GenericDocumentProperties* properties,
49 bool useIterators, bool useIndexIterator) override;
50 void closeSBoWNode() override;
51
52 private:
56};
57
58} // end namespace
59} // end namespace
60} // end namespace
61
62#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.