LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SvmToolPosTagger.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#ifndef LIMA_LINGUISTICPROCESSING_POSTAGGER_SVMTOOLPOSTAGGER_H
7#define LIMA_LINGUISTICPROCESSING_POSTAGGER_SVMTOOLPOSTAGGER_H
8
13
19
20#include <list>
21#include <vector>
22#include <set>
23#include <map>
24#include <queue>
25
26#include <sstream>
27
28class tagger;
29
30namespace Lima
31{
32
33namespace LinguisticProcessing
34{
35
36namespace PosTagger
37{
38
39#define SVMTOOLPOSTAGGER_CLASSID "SvmToolPosTagger"
40
41class SvmToolPosTaggerPrivate;
51{
53public:
55
56 // TODO delete m_tagger!
57 virtual ~SvmToolPosTagger();
58
59 void init(
61 Manager* manager) override;
62
63 LimaStatusCode process(AnalysisContent& analysis) const override;
64
65private:
66
68};
69
71{
72public:
73
74 virtual std::shared_ptr<MediaProcessUnit> create(
76 MediaProcessUnit::Manager* manager) const override ;
77
78private:
79 SvmToolPosTaggerFactory(const std::string& id);
80 static SvmToolPosTaggerFactory* s_instance;
81
82};
83
84
85}
86
87}
88
89}
90
91#endif
This file is the main header file for the data related to annotation graphs.
A graph structure for linguistic analysis.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Defines Factory for an Initializable Object.
Manage initialization of InitializableObjects using configuration module and parameters.
virtual std::shared_ptr< MediaProcessUnit > create(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, MediaProcessUnit::Manager *manager) const override
A PoS tagger using SVMTool as a backend.
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
initialize with parameters from configuration file.
LimaStatusCode process(AnalysisContent &analysis) const override
Process on data in analysisContent.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236
launch exception related to the configuration file parsing