LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
TextDumper.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 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSING_ANALYSISDUMPERSTEXTDUMPER_H
11#define LIMA_LINGUISTICPROCESSING_ANALYSISDUMPERSTEXTDUMPER_H
12
15
17
20
22
23namespace Lima
24{
25
26namespace LinguisticProcessing
27{
28
29namespace AnalysisDumpers
30{
31
32#define TEXTDUMPER_CLASSID "TextDumper"
33
38{
39public:
40 TextDumper();
41
42 virtual ~TextDumper();
43
44 void init(
46 Manager* manager) override;
47
48 LimaStatusCode process(AnalysisContent& analysis) const override;
49
50private:
51 MediaId m_language;
52 std::string m_property;
53 const Common::PropertyCode::PropertyAccessor* m_propertyAccessor;
54 const Common::PropertyCode::PropertyManager* m_propertyManager;
55 const Common::PropertyCode::PropertyManager* m_timeManager; //Ajout
56 const Common::PropertyCode::PropertyAccessor* m_timeAccessor; //Ajout
57
58 std::string m_graph;
59 std::string m_sep;
60 std::string m_sepPOS;
61 bool m_followGraph;
62 std::string m_verbTenseFlag; //Ajout
63
64 // private member functions
65 void outputVertex(std::ostream& out,
67 const std::vector<LinguisticAnalysisStructure::MorphoSyntacticData*>& data,
68 const FsaStringsPool& sp,
69 uint64_t offset=0) const;
70
71 void outputString(std::ostream& out,const std::string& str) const;
72
73};
74
76{
78 {
79 if (f1->position()!=f2->position()) return f1->position()<f2->position();
80 return f1->length()<f2->length();
81 }
82};
83
84}
85
86}
87
88}
89
90#endif
#define LIMA_ANALYSISDUMPERS_EXPORT
A graph structure for linguistic analysis.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Provide function to read write and check a property.
Provide tools to manage a specific property.
Manage initialization of InitializableObjects using configuration module and parameters.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236
bool operator()(const LinguisticAnalysisStructure::Token *f1, const LinguisticAnalysisStructure::Token *f2) const
Definition TextDumper.h:77