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
22
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
23
#include "
AbstractBoWDocumentHandler.h
"
24
#include <vector>
25
26
namespace
Lima
{
27
namespace
Common {
28
namespace
Misc {
29
class
GenericDocumentProperties;
30
}
31
namespace
BagOfWords {
32
33
class
BoWText;
34
35
class
TextWriterBoWDocumentHandlerPrivate;
36
class
LIMA_BOW_EXPORT
TextWriterBoWDocumentHandler
:
public
AbstractBoWDocumentHandler
37
{
38
public
:
39
TextWriterBoWDocumentHandler
(std::ostream& os);
40
~TextWriterBoWDocumentHandler
();
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
:
53
TextWriterBoWDocumentHandler
(
const
TextWriterBoWDocumentHandler
&);
54
TextWriterBoWDocumentHandler
& operator=(
const
TextWriterBoWDocumentHandler
&);
55
TextWriterBoWDocumentHandlerPrivate
* m_d;
56
};
57
58
}
// end namespace
59
}
// end namespace
60
}
// end namespace
61
62
#endif
AbstractBoWDocumentHandler.h
LinguisticProcessingCommon.h
LIMA_BOW_EXPORT
#define LIMA_BOW_EXPORT
Definition
LinguisticProcessingCommon.h:80
Lima::Common::BagOfWords::AbstractBoWDocumentHandler
Definition
AbstractBoWDocumentHandler.h:38
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::BagOfWords::TextWriterBoWDocumentHandlerPrivate
Definition
TextWriterBoWDocumentHandler.cpp:29
Lima::Common::BagOfWords::TextWriterBoWDocumentHandler
Definition
TextWriterBoWDocumentHandler.h:37
Lima::Common::Misc::GenericDocumentProperties
Definition
genericDocumentProperties.h:58
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
common
BagOfWords
TextWriterBoWDocumentHandler.h
Generated by
1.9.8