LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventSegmentation.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
17#ifndef LIMA_EVENTANALYSIS_EVENTSEGMENTATION_H
18#define LIMA_EVENTANALYSIS_EVENTSEGMENTATION_H
19
20#include "EventAnalysisExport.h"
30#include "Event.h"
31#include "Paragraph.h"
32
33
34#include <string>
35#include <map>
36
37namespace Lima
38{
39
40namespace LinguisticProcessing
41{
42
43namespace EventAnalysis
44{
45
46#define EVENTSEGMENTATION_CLASSID "EventSegmentation"
47
48
49
51{
52public:
54
55 virtual ~EventSegmentation() {}
56
57 void init(
59 Manager* manager) override;
60
61 LimaStatusCode process(AnalysisContent& analysis) const override;
62
63
64
65private:
66 std::string m_graphId;
67 std::string m_language;
70 std::set<Common::MediaticData::EntityType> m_set_otherentities;
71
72 std::map<Common::MediaticData::EntityType,unsigned short> m_entitiesWeights;
73 std::vector<Event> m_events;
74 std::map<uint64_t,Paragraph*> map_paragraphs;
75
76protected:
77 void compute_events(std::map<std::string,Event*>&, std::vector<Paragraph*>,LinguisticGraph*,Common::AnnotationGraphs::AnnotationData*, std::string) const;
79 bool is_a_bound(LinguisticGraphVertex, SegmentationData*) const;
82
83 bool is_specific_entity_in(LinguisticGraphVertex,Common::AnnotationGraphs::AnnotationData*,std::set<Common::MediaticData::EntityType>) const;
84
86
88
89};
90
91
92
93} // closing namespace EventAnalysis
94} // closing namespace LinguisticProcessing
95} // closing namespace Lima
96
97#endif // LIMA_EVENTANALYSIS_EVENTANALYZER_H
This file is the main header file for the data related to annotation graphs.
#define LIMA_EVENTANALISYS_EXPORT
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
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.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236