LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SpecificEntitiesXmlLogger.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 SPECIFICENTITIESXMLLOGGERSPECIFICENTITIESXMLLOGGER_H
11#define SPECIFICENTITIESXMLLOGGERSPECIFICENTITIESXMLLOGGER_H
12
17
18namespace Lima
19{
21{
22namespace SpecificEntities
23{
24
28#define SPECIFICENTITIESXMLLOGGER_CLASSID "SpecificEntitiesXmlLogger"
29
31{
32public:
34
35 virtual ~SpecificEntitiesXmlLogger() = default;
36
37 virtual void init(
39 Manager* manager) override;
40
41 virtual LimaStatusCode process(AnalysisContent& analysis) const override;
42
43private:
44 bool m_compactFormat; // compact format is the same as the RecognizerResultLogger
45 MediaId m_language;
46 std::string m_graph;
47 bool m_followGraph;
48
49 //member private members
51 getSpecificEntityAnnotation(LinguisticGraphVertex v,
52 const Common::AnnotationGraphs::AnnotationData* annotationData) const;
53 void outputEntity(Common::AnnotationGraphs::AnnotationData* annotationData,
54 std::ostream& out,
56 const SpecificEntityAnnotation* annot,
57 const VertexTokenPropertyMap& tokenMap,
58 uint64_t offset) const;
59
60};
61
62} // SpecificEntities
63} // LinguisticProcessing
64} // Lima
65
66#endif
boost::property_map< LinguisticGraph, vertex_token_t >::type VertexTokenPropertyMap
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
#define LIMA_SPECIFICENTITIES_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Holds an annotation graph and gives an API to manipulate it.
InitializableObjectManager< MediaProcessUnit, MediaProcessUnitInitializationParameters > Manager
virtual LimaStatusCode process(AnalysisContent &analysis) const override
Process on data in analysisContent.
virtual void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
A representation of a specific entity to store in the annotation graph.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236