LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventTemplateStructure.h
Go to the documentation of this file.
1// Copyright (C) 2011 by CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef EVENTTEMPLATESTRUCTURE_H
7#define EVENTTEMPLATESTRUCTURE_H
8
11#include <string>
12#include <map>
13
14
15namespace Lima {
16namespace LinguisticProcessing {
17namespace EventAnalysis {
18
20{
21 public:
24
25 void setName(const std::string& name) { m_name=name; }
26 void setMention(const std::string& name) { m_mention=name; }
27 void addTemplateElement(const std::string& role, const std::string entityType);
28
29 const std::string& getName(void) const { return m_name; }
30 const std::string& getMention(void) const { return m_mention; }
31 const std::map<std::string,Common::MediaticData::EntityType>& getStructure(void) const
32 { return m_structure; }
33
34 private:
35 std::string m_name;
36 std::map<std::string,Common::MediaticData::EntityType> m_structure;
37 std::string m_mention;
38};
39
40} // end namespace
41} // end namespace
42} // end namespace
43
44#endif
#define LIMA_EVENTANALISYS_EXPORT
const std::map< std::string, Common::MediaticData::EntityType > & getStructure(void) const
NAUTITIA.