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
22
#include "
MorphologicAnalysisExport.h
"
23
#include "
linguisticProcessing/core/LinguisticAnalysisStructure/AnalysisGraph.h
"
24
#include "
common/MediaProcessors/MediaProcessUnit.h
"
25
26
namespace
Lima
{
27
namespace
LinguisticProcessing {
28
namespace
FlatTokenizer {
29
class
CharChart;
30
}
31
namespace
AnalysisDict
32
{
33
class
AbstractAnalysisDictionary;
34
}
35
namespace
MorphologicAnalysis {
36
37
#define DEFAULTPROPERTIES_CLASSID "DefaultProperties"
38
39
class
LIMA_MORPHOLOGICANALYSIS_EXPORT
DefaultProperties
:
public
MediaProcessUnit
{
40
41
public
:
42
DefaultProperties
();
43
virtual
~DefaultProperties
();
44
45
void
init(
46
Common::XMLConfigurationFiles::GroupConfigurationStructure
& unitConfiguration,
47
Manager
* manager)
override
;
48
49
LimaStatusCode
process(
50
AnalysisContent
& analysis)
const override
;
51
52
protected
:
53
54
private
:
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
AnalysisGraph.h
MediaProcessUnit.h
MorphologicAnalysisExport.h
LIMA_MORPHOLOGICANALYSIS_EXPORT
#define LIMA_MORPHOLOGICANALYSIS_EXPORT
Definition
MorphologicAnalysisExport.h:28
Lima::AnalysisContent
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Definition
AnalysisContent.h:37
Lima::Common::XMLConfigurationFiles::GroupConfigurationStructure
Definition
groupConfigurationStructure.h:32
Lima::InitializableObjectManager
Manage initialization of InitializableObjects using configuration module and parameters.
Definition
InitializableObjectManager.h:32
Lima::LinguisticProcessing::MorphologicAnalysis::DefaultProperties
Definition
DefaultProperties.h:39
Lima::MediaProcessUnit
Definition
MediaProcessUnit.h:33
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaStatusCode
LimaStatusCode
Definition
LimaCommon.h:236
lima_linguisticprocessing
src
linguisticProcessing
core
MorphologicAnalysis
DefaultProperties.h
Generated by
1.9.8