LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SimpleWord.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 8-OCT-2002
9//
10// SimpleWord is the implementation of the 1st module of
11// Morphological Analysis. Each token from the main tokens
12// path is searched into the specified dictionary.
13
14#ifndef LIMA_MORPHOLOGICANALYSIS_SIMPLEWORD_H
15#define LIMA_MORPHOLOGICANALYSIS_SIMPLEWORD_H
16
22#include "AlternativesReader.h"
24
25namespace Lima
26{
28{
29namespace MorphologicAnalysis
30{
31
32#define SIMPLEWORD_CLASSID "SimpleWord"
33
35{
36
37public:
38 SimpleWord();
39 virtual ~SimpleWord();
40
41 void init(
43 Manager* manager) override;
44
46 AnalysisContent& analysis) const override;
47
48private:
49 std::shared_ptr<AnalysisDict::AbstractAnalysisDictionary> m_dictionary;
50 std::shared_ptr<AlternativesReader> m_reader;
51 bool m_confidentMode;
52 bool m_parseConcatenated;
53 FsaStringsPool* m_sp;
54 std::shared_ptr<FlatTokenizer::CharChart> m_charChart;
55
56 void linkConcatVertices(
57 LinguisticGraph* graph,
58 LinguisticGraphVertex srcToken,
59 const std::vector<std::vector<LinguisticGraphVertex> >& concats) const;
60};
61
62} // MorphologicAnalysis
63} // LinguisticProcessing
64} // Lima
65
66#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.
#define LIMA_MORPHOLOGICANALYSIS_EXPORT
Defines a Factory to create Object of type Base.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
InitializableObjectManager< MediaProcessUnit, MediaProcessUnitInitializationParameters > Manager
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
LimaStatusCode process(AnalysisContent &analysis) const override
Process on data in analysisContent.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236