LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SimpleDefaultProperties.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// DefaultProperties is the implementation of the last module of
8// Morphological Analysis. Each token from the main tokens
9// path and alla recursive alternatives which remains without
10// linguistic properties receives
11// properties by default found into dictionnary using Tokenizer
12// status names as keys.
13//<if token has any linguistic properties, directly or by its
14// orthographic alternatives, default properties are not applied>
15
16#ifndef LIMA_LINGUISTICPROCESSING_SIMPLEDEFAULTPROPERTIES_H
17#define LIMA_LINGUISTICPROCESSING_SIMPLEDEFAULTPROPERTIES_H
18
22
23namespace Lima
24{
25namespace LinguisticProcessing
26{
27namespace FlatTokenizer {
28class CharChart;
29}
30namespace MorphologicAnalysis
31{
32
33#define SIMPLEDEFAULTPROPERTIES_CLASSID "SimpleDefaultProperties"
34
36{
37
38public:
41
42 void init(
44 Manager* manager) override;
45
46 LimaStatusCode process(
47 AnalysisContent& analysis) const override;
48
49protected:
50
51private:
52
53 std::vector<LinguisticCode> m_defaultProperties;
54 std::shared_ptr<FlatTokenizer::CharChart> m_charChart;
55 MediaId m_language;
56
57 // Each token of the specified path without dictionnary entry is
58 // searched into the specified dictionary.
59 void affectPropertiesOnePath(
61
62};
63
64} // MorphologicAnalysis
65} // LinguisticProcessing
66} // Lima
67
68#endif
#define LIMA_MORPHOLOGICANALYSIS_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Manage initialization of InitializableObjects using configuration module and parameters.
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236