LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
MorphoSyntacticDataHandler.cpp
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 ***************************************************************************/
11
13
14namespace Lima
15{
16
17namespace LinguisticProcessing
18{
19
20namespace MorphologicAnalysis
21{
22
26 m_output(output),
27 m_current(),
28 m_inConcat(false)
29{
30 m_current.type=type;
31}
32
34
35void MorphoSyntacticDataHandler::startEntry(StringsPoolIndex form)
36{
37 m_current.inflectedForm=form;
38}
39
42
43void MorphoSyntacticDataHandler::foundLingInfos(StringsPoolIndex lemma,StringsPoolIndex norm)
44{
45 m_current.lemma=lemma;
46 m_current.normalizedForm=norm;
47}
48
51
53{
54#ifdef DEBUG_LP
56 LDEBUG << "MorphoSyntacticDataHandler::foundAccentedForm" << form;
57#endif
58 m_current.inflectedForm=form;
59}
60
64
66{
67#ifdef DEBUG_LP
69 LDEBUG << "MorphoSyntacticDataHandler::foundProperties" << lings
70 << "("<<m_inConcat<<")";
71#endif
72 if (!m_inConcat) {
73 m_current.properties=lings;
74 m_output.push_back(m_current);
75 }
76}
77
79{
80 m_inConcat=true;
81}
82
84{
85 m_inConcat=false;
86}
87
88
89
90}
91
92}
93
94}
#define LDEBUG
Definition LimaCommon.h:157
#define MORPHOLOGINIT
MorphoSyntacticDataHandler(LinguisticAnalysisStructure::MorphoSyntacticData &output, LinguisticAnalysisStructure::MorphoSyntacticType type)
virtual void foundLingInfos(StringsPoolIndex lemma, StringsPoolIndex norm) override
NAUTITIA.