LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
greedyPosTagger.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_POSTAGGER_GREEDYPOSTAGGER_H
16#define LIMA_POSTAGGER_GREEDYPOSTAGGER_H
17
18#include "PosTaggerExport.h"
21#include "ngramMatrices.h"
23
25
26namespace Lima
27{
28namespace LinguisticProcessing
29{
30namespace PosTagger
31{
32
33#define GREEDYPOSTAGGER_CLASSID "GreedyPosTagger"
34
36{
37
38public:
39
41
42 virtual ~GreedyPosTagger() {}
43
44 void init(
46 Manager* manager) override;
47
48 LimaStatusCode process(AnalysisContent& analysis) const override;
49
50private:
51
52 std::shared_ptr<TrigramMatrix> m_trigramMatrix;
53 std::shared_ptr<BigramMatrix> m_bigramMatrix;
54 LinguisticCode m_microCatPonctuForte;
55 const Common::PropertyCode::PropertyAccessor* m_macroAccessor;
56 const Common::PropertyCode::PropertyAccessor* m_microAccessor;
57 MediaId m_language;
58
59 void processVertex(LinguisticGraphVertex vx,LinguisticAnalysisStructure::AnalysisGraph* graph) const;
60
61};
62
63
64} // PosTagger
65} // LinguisticProcessing
66} // Lima
67
68#endif
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
#define LIMA_POSTAGGER_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Provide function to read write and check a property.
Manage initialization of InitializableObjects using configuration module and parameters.
An AnalysisData containing a LinguisticGraph with a language and an id.
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
initialize with parameters from configuration file.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236
Defines Bigrams and Trigrams matrices *.