LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventTemplateFillingActions.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 *
8 * @file EventTemplateFilling.h
9 * @author besancon (besanconr@zoe.cea.fr)
10 * @date Thu Sep 01 2011
11 * copyright Copyright (C) 2011 by CEA - LIST
12 * Project LIMA
13 *
14 * @brief
15 *
16 *
17 ***********************************************************************/
18#ifndef LIMA_LINGUISTICPROCESSING_EVENTTEMPLATEFILLING_H
19#define LIMA_LINGUISTICPROCESSING_EVENTTEMPLATEFILLING_H
20
21#include "EventAnalysisExport.h"
25
26namespace Lima {
27namespace LinguisticProcessing {
28namespace EventAnalysis {
29
30//**********************************************************************
31// action function for entity template filling in rules
32#define AddTemplateElementId "AddTemplateElement"
33#define CreateEventTemplateId "CreateEventTemplate"
34#define ClearEventTemplateId "ClearEventTemplate"
35
37{
38public:
39 AddTemplateElement(MediaId language,
40 const LimaString& complement);
42 bool operator()(const LinguisticAnalysisStructure::AnalysisGraph& graph,
43 const LinguisticGraphVertex& v,
44 AnalysisContent& analysis) const override;
45 bool operator()(const LinguisticAnalysisStructure::AnalysisGraph& graph,
46 const LinguisticGraphVertex& v1,
47 const LinguisticGraphVertex& v2,
48 AnalysisContent& analysis) const override;
49private:
50 std::string m_role;
52};
53
55{
56public:
57 CreateEventTemplate(MediaId language,
58 const LimaString& complement);
60 bool operator()(AnalysisContent& analysis) const override;
61
62private:
63 std::string m_eventType;
64};
65
67{
68public:
69 ClearEventTemplate(MediaId language,
70 const LimaString& complement);
72 bool operator()(AnalysisContent& analysis) const override;
73
74 //bool actionNeedsRecognizedExpression() { return true; }
75private:
76};
77
78} // end namespace
79} // end namespace
80} // end namespace
81
82#endif
#define LIMA_EVENTANALISYS_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.
QString LimaString
Definition LimaString.h:33