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
19
#include "
MorphologicAnalysisExport.h
"
20
#include "
linguisticProcessing/core/LinguisticAnalysisStructure/AnalysisGraph.h
"
21
#include "
common/MediaProcessors/MediaProcessUnit.h
"
22
23
namespace
Lima
24
{
25
namespace
LinguisticProcessing
26
{
27
namespace
FlatTokenizer {
28
class
CharChart;
29
}
30
namespace
MorphologicAnalysis
31
{
32
33
#define SIMPLEDEFAULTPROPERTIES_CLASSID "SimpleDefaultProperties"
34
35
class
LIMA_MORPHOLOGICANALYSIS_EXPORT
SimpleDefaultProperties
:
public
MediaProcessUnit
36
{
37
38
public
:
39
SimpleDefaultProperties
();
40
virtual
~SimpleDefaultProperties
();
41
42
void
init(
43
Common::XMLConfigurationFiles::GroupConfigurationStructure
& unitConfiguration,
44
Manager
* manager)
override
;
45
46
LimaStatusCode
process(
47
AnalysisContent
& analysis)
const override
;
48
49
protected
:
50
51
private
:
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(
60
Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph
& tokenList)
const
;
61
62
};
63
64
}
// MorphologicAnalysis
65
}
// LinguisticProcessing
66
}
// Lima
67
68
#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::LinguisticAnalysisStructure::AnalysisGraph
An AnalysisData containing a LinguisticGraph with a language and an id.
Definition
AnalysisGraph.h:47
Lima::LinguisticProcessing::MorphologicAnalysis::SimpleDefaultProperties
Definition
SimpleDefaultProperties.h:36
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
SimpleDefaultProperties.h
Generated by
1.9.8