LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SimpleEventBuilder.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
16#ifndef LIMA_EVENTANALYSIS_SIMPLEEVENTBUILDER_H
17#define LIMA_EVENTANALYSIS_SIMPLEEVENTBUILDER_H
18
19#include "EventAnalysisExport.h"
27#include "Entity.h"
28
29#include <string>
30#include <map>
31
32namespace Lima {
33namespace LinguisticProcessing {
34namespace EventAnalysis {
35
36#define SIMPLEEVENTBUILDER_CLASSID "SimpleEventBuilder"
37
39{
40public:
42
44
45 void init(
47 Manager* manager) override;
48
49 LimaStatusCode process(AnalysisContent& analysis) const override;
50
51private:
52 std::string m_segmData;
53 std::string m_segmentType;
54 std::vector<Common::MediaticData::EntityType> m_entities;
55
56 void getEntitiesFromSegment(std::map<Common::MediaticData::EntityType,std::vector<Entity> >& entities,
58 LinguisticGraphVertex firstVertex,
59 LinguisticGraphVertex lastVertex,
60 const Common::AnnotationGraphs::AnnotationData* annotationData) const;
62 getSpecificEntity(LinguisticAnalysisStructure::AnalysisGraph* graph,
63 const Common::AnnotationGraphs::AnnotationData* annotationData,
64 LinguisticGraphVertex v) const;
65
66};
67
68} // end namespace
69} // end namespace
70} // end namespace
71
72#endif
This file is the main header file for the data related to annotation graphs.
#define LIMA_EVENTANALISYS_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Holds an annotation graph and gives an API to manipulate it.
An AnalysisData containing a LinguisticGraph with a language and an id.
A representation of a specific entity to store in the annotation graph.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236
static const struct TextHtmlEntity entities[]