LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
DicoConcatenatedAlternatives.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// NAUTITIA
7//
8// jys 17-JAN-2003
9//
10// DicoConcatenatedAlternatives is the module which creates split alternatives
11// for concatenated expression tokens found into dictionary.
12// Rules :
13// <each FullToken of the main path is processed. Alternative paths
14// are not processed>
15// <there are as many created alternative paths as there are concatenated
16// entries associated with main Token and orthographic alternative Tokens>
17// <each concatenated entry gives FullToken path. Each token has the original
18// FullToken localization>
19// <if concatenated entry supplies dictionary entry, main Token of the just
20// created FullToken takes this entry. Otherwise, a dictionary access is
21// performed to find dictionary entry>
22
23#ifndef LIMA_MORPHOLOGICANALYSIS_DICOCONCATENATEDALTERNATIVES_H
24#define LIMA_MORPHOLOGICANALYSIS_DICOCONCATENATEDALTERNATIVES_H
25
29
30namespace Lima
31{
33{
35class Token;
36}
37
38namespace MorphologicAnalysis
39{
40
41#define DICOCONCATENATEDALTERNATIVES_CLASSID "DicoConcatenatedAlternatives"
42
44{
45
46public:
47
50
51 void init(
53 Manager* manager);
54
56 AnalysisContent& analysis) const;
57
58private:
59
60 MediaId m_language;
61
62 void expandConcatenatedEntries(
64 LinguisticGraph* graph,
66 Dictionary::DictionaryEntry* entry) const;
67
68};
69
70} // MorphologicAnalysis
71} // LinguisticProcessing
72} // Lima
73
74#endif
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
InitializableObjectManager< MediaProcessUnit, MediaProcessUnitInitializationParameters > Manager
LimaStatusCode process(AnalysisContent &analysis) const
Process on data in analysisContent.
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager)
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236