LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
CompoundsXmlLogger.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 COMPOUNDSXMLLOGGERSPECIFICENTITIESXMLLOGGER_H
11#define COMPOUNDSXMLLOGGERSPECIFICENTITIESXMLLOGGER_H
12
19
20namespace Lima
21{
22namespace Common
23{
24namespace AnnotationGraphs
25{
26 class AnnotationData;
27}
28namespace BagOfWords
29{
30 class BoWToken;
31 class BoWTerm;
32}
33}
34namespace LinguisticProcessing
35{
36namespace Compounds
37{
38class BowGenerator;
39
43#define COMPOUNDSXMLLOGGER_CLASSID "CompoundsXmlLogger"
45{
46public:
48
49 virtual ~CompoundsXmlLogger();
50
51 virtual void init(
53 Manager* manager) override;
54
55 virtual LimaStatusCode process(AnalysisContent& analysis) const override;
56
57private:
58 void dumpLimaData(
59 std::ostream& os,
60 uint64_t sentNum,
61 const LinguisticGraphVertex begin,
62 const LinguisticGraphVertex end,
65 const SyntacticAnalysis::SyntacticData* syntacticData,
66 const Common::AnnotationGraphs::AnnotationData* annotationData,
67 const uint64_t offsetBegin=0) const;
68
69 uint64_t getPosition(
70 const uint64_t position,
71 const uint64_t offsetBegin) const;
72
73
74 void outputCompound(
75 std::ostream& os,
76 const Common::BagOfWords::BoWToken* compound,
77 const uint64_t offsetBegin) const;
78
79 MediaId m_language;
80
81 BowGenerator* m_bowGenerator;
82};
83
84} // SyntacticAnalysis
85} // LinguisticProcessing
86} // Lima
87
88#endif
#define LIMA_ANALYSISDUMPERS_EXPORT
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Data used for the syntactic analyzis of texts.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Holds an annotation graph and gives an API to manipulate it.
This class contains the representation of an element of the bag of words.
Definition bowToken.h:46
Manage initialization of InitializableObjects using configuration module and parameters.
A generic process unit to log information in files: contains some common informations such as : outpu...
Parameters retrived in the configuration file:
An AnalysisData containing a LinguisticGraph with a language and an id.
This class points to a graph, its dependency graph and the structure that holds the maping between th...
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236