LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
DefaultProperties.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 22-OCT-2002
9//
10// DefaultProperties is the implementation of the last module of
11// Morphological Analysis. Each token from the main tokens
12// path and alla recursive alternatives which remains without
13// linguistic properties receives
14// properties by default found into dictionnary using Tokenizer
15// status names as keys.
16//<if token has any linguistic properties, directly or by its
17// orthographic alternatives, default properties are not applied>
18
19#ifndef DefaultProperties_H
20#define DefaultProperties_H
21
25
26namespace Lima {
27namespace LinguisticProcessing {
28namespace FlatTokenizer {
29class CharChart;
30}
31namespace AnalysisDict
32{
33class AbstractAnalysisDictionary;
34}
35namespace MorphologicAnalysis {
36
37#define DEFAULTPROPERTIES_CLASSID "DefaultProperties"
38
40
41public:
43 virtual ~DefaultProperties();
44
45 void init(
47 Manager* manager) override;
48
49 LimaStatusCode process(
50 AnalysisContent& analysis) const override;
51
52protected:
53
54private:
55
56 std::shared_ptr<FlatTokenizer::CharChart> m_charChart;
57 std::set<LimaString> m_skipUnmarkStatus;
58 MediaId m_language;
59 std::map<LimaString,std::vector<LinguisticCode> > m_defaults;
60
61 void readDefaultsFromFile(const std::string& filename);
62};
63
64
65} // MorphologicAnalysis
66} // LinguisticProcessing
67} // Lima
68
69#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.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236