LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
ConcatenatedDataHandler.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
* Copyright (C) 2004-2012 by CEA LIST *
8
* *
9
***************************************************************************/
10
#ifndef LIMA_LINGUISTICPROCESSING_MORPHOLOGICANALYSISCONCATENATEDDATAHANDLER_H
11
#define LIMA_LINGUISTICPROCESSING_MORPHOLOGICANALYSISCONCATENATEDDATAHANDLER_H
12
13
#include "
MorphologicAnalysisExport.h
"
14
#include "
linguisticProcessing/core/AnalysisDict/AbstractDictionaryEntryHandler.h
"
15
#include "
linguisticProcessing/core/LinguisticAnalysisStructure/LinguisticGraph.h
"
16
17
namespace
Lima
18
{
19
20
namespace
LinguisticProcessing
21
{
22
23
namespace
MorphologicAnalysis
24
{
25
29
class
LIMA_MORPHOLOGICANALYSIS_EXPORT
ConcatenatedDataHandler
:
public
AnalysisDict::AbstractDictionaryEntryHandler
30
{
31
public
:
32
ConcatenatedDataHandler
(
33
LinguisticGraph
* outputGraph,
34
LinguisticAnalysisStructure::Token
* sourceToken,
35
LinguisticAnalysisStructure::MorphoSyntacticType
type,
36
const
FsaStringsPool
* sp);
37
38
virtual
~ConcatenatedDataHandler
();
39
40
virtual
void
foundLingInfos(StringsPoolIndex lemma,StringsPoolIndex norm)
override
;
41
virtual
void
endLingInfos()
override
;
42
43
virtual
void
foundConcatenated()
override
;
44
virtual
void
foundComponent(uint64_t position, uint64_t length,StringsPoolIndex form)
override
;
45
virtual
void
endComponent()
override
;
46
virtual
void
endConcatenated()
override
;
47
48
virtual
void
foundProperties(
LinguisticCode
lings)
override
;
49
50
const
std::vector<std::vector<LinguisticGraphVertex> >& getConcatVertices()
const
;
51
52
private
:
53
LinguisticGraph
* m_graph;
54
LinguisticAnalysisStructure::Token
* m_srcToken;
55
const
FsaStringsPool
* m_stringsPool;
56
57
std::vector<std::vector<LinguisticGraphVertex> > m_concatVertices;
58
59
LinguisticAnalysisStructure::Token
* m_currentToken;
60
LinguisticAnalysisStructure::MorphoSyntacticData
* m_currentData;
61
LinguisticAnalysisStructure::LinguisticElement
m_currentElement;
62
};
63
64
inline
const
std::vector<std::vector<LinguisticGraphVertex> >&
ConcatenatedDataHandler::getConcatVertices
()
const
65
{
66
return
m_concatVertices;
67
}
68
69
70
}
71
72
}
73
74
}
75
76
#endif
AbstractDictionaryEntryHandler.h
LinguisticGraph.h
A graph structure for linguistic analysis.
LinguisticGraph
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
Definition
LinguisticGraph.h:93
MorphologicAnalysisExport.h
LIMA_MORPHOLOGICANALYSIS_EXPORT
#define LIMA_MORPHOLOGICANALYSIS_EXPORT
Definition
MorphologicAnalysisExport.h:28
Lima::FsaStringsPool
Definition
fsaStringsPool.h:32
Lima::LinguisticCode
Definition
StdBitset.h:23
Lima::LinguisticProcessing::AnalysisDict::AbstractDictionaryEntryHandler
Definition
AbstractDictionaryEntryHandler.h:22
Lima::LinguisticProcessing::LinguisticAnalysisStructure::MorphoSyntacticData
Holds morphosyntactic informations.
Definition
MorphoSyntacticData.h:60
Lima::LinguisticProcessing::LinguisticAnalysisStructure::Token
holds surface data of a token
Definition
Token.h:32
Lima::LinguisticProcessing::MorphologicAnalysis::ConcatenatedDataHandler
Definition
ConcatenatedDataHandler.h:30
Lima::LinguisticProcessing::MorphologicAnalysis::ConcatenatedDataHandler::getConcatVertices
const std::vector< std::vector< LinguisticGraphVertex > > & getConcatVertices() const
Definition
ConcatenatedDataHandler.h:64
Lima::LinguisticProcessing::LinguisticAnalysisStructure::MorphoSyntacticType
MorphoSyntacticType
Definition
MorphoSyntacticData.h:29
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LinguisticProcessing::LinguisticAnalysisStructure::LinguisticElement
Definition
MorphoSyntacticData.h:46
lima_linguisticprocessing
src
linguisticProcessing
core
MorphologicAnalysis
ConcatenatedDataHandler.h
Generated by
1.9.8