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
22
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
23
#include "
bowToken.h
"
24
#include "
bowText.h
"
25
#include "
bowBinaryReaderWriter.h
"
26
#include "
AbstractBoWDocumentHandler.h
"
27
#include "
common/Data/genericDocumentProperties.h
"
28
29
namespace
Lima
{
30
namespace
Common {
31
namespace
BagOfWords {
32
33
class
LIMA_BOW_EXPORT
BinaryWriterBoWDocumentHandler
:
34
public
AbstractBoWDocumentHandler
35
{
36
public
:
37
BinaryWriterBoWDocumentHandler
(std::ostream& os);
38
~BinaryWriterBoWDocumentHandler
();
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
AbstractBoWDocumentHandler.h
LinguisticProcessingCommon.h
LIMA_BOW_EXPORT
#define LIMA_BOW_EXPORT
Definition
LinguisticProcessingCommon.h:80
bowBinaryReaderWriter.h
bowText.h
bowToken.h
Lima::Common::BagOfWords::AbstractBoWDocumentHandler
Definition
AbstractBoWDocumentHandler.h:38
Lima::Common::BagOfWords::BinaryWriterBoWDocumentHandler
Definition
BinaryWriterBoWDocumentHandler.h:35
Lima::Common::BagOfWords::BoWBinaryWriter
Definition
bowBinaryReaderWriter.h:90
Lima::Common::BagOfWords::BoWText
This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple...
Definition
bowText.h:48
Lima::Common::Misc::GenericDocumentProperties
Definition
genericDocumentProperties.h:58
genericDocumentProperties.h
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
common
BagOfWords
BinaryWriterBoWDocumentHandler.h
Generated by
1.9.8