LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
DesagglutinationResources.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
15#ifndef LIMA_MORPHOLOGICANALYSIS_DESAGGLUTINATIONRESOURCES_H
16#define LIMA_MORPHOLOGICANALYSIS_DESAGGLUTINATIONRESOURCES_H
17
23
24#include <map>
25#include <set>
26
27namespace Lima
28{
29namespace LinguisticProcessing
30{
31namespace MorphologicAnalysis
32{
33namespace Desagglutination
34{
35
42
43typedef std::set<Lima::LimaString> Delimiters;
44
45typedef std::map<LinguisticCode,CompoundCategories> CategoriesMapping;
46
47#define DESAGGLUTINATIONRESOURCES_CLASSID "DesagglutinationResources"
48
50{
51 Q_OBJECT
52
53public:
54 void init(
56 Manager* manager)
57 ;
58
59 const CategoriesMapping& getCategoriesMapping() const;
60 const Delimiters& getDelimiters() const;
61
62private:
63
64 MediaId m_language;
65 CategoriesMapping m_categoriesMapping;
66 Delimiters m_delimiters;
67
68 void loadMicroCategoriesMappingFromFile(const std::string& microcategoriesMappingFile);
69 void loadDelimitersFromFile(const std::string& delimitersFile);
70
71};
72
74{
75 return m_categoriesMapping;
76}
77
79{
80 return m_delimiters;
81}
82
83
84
85} // Desagglutination
86} // MorphologicAnalysis
87} // LinguisticProcessing
88} // Lima
89
90#endif
#define LIMA_MORPHOLOGICANALYSIS_EXPORT
Manage initialization of InitializableObjects using configuration module and parameters.
NAUTITIA.