LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::EventAnalysis::EventParagraph Class Reference

#include <linguisticProcessing/core/EventAnalysis/EventParagraph.h>

Public Member Functions

 EventParagraph ()
 EventParagraph (Paragraph *p, Common::AnnotationGraphs::AnnotationData *, std::string graphId, LinguisticGraph *graph)
 EventParagraph (Paragraph *p, bool splitted, Common::AnnotationGraphs::AnnotationData *, std::string graphId, LinguisticGraph *graph)
bool is_splitted ()
bool has_entity (Common::MediaticData::EntityType t) const
void addEventEntities (Paragraph *p, Common::AnnotationGraphs::AnnotationData *, std::string graphId, LinguisticGraph *graph)
void addEntities (Paragraph *p, Common::AnnotationGraphs::AnnotationData *, std::string graphId, LinguisticGraph *graph)
std::map< Common::MediaticData::EntityType, std::vector< Entity * > > getOtherEntities ()
std::pair< Common::MediaticData::EntityType, std::vector< Entity * > > getEventEntities ()
uint64_t getId () const
uint64_t getPosition () const
uint64_t getStart () const
uint64_t getEnd () const
uint64_t getLength () const
void setId (uint64_t id)
void setPosition (uint64_t position)
void setLength (uint64_t length)
void clear ()
void addEntity (const Common::MediaticData::EntityType &type, Entity *entity)
void addEventEntity (const Common::MediaticData::EntityType &type, Entity *entity)
virtual ~EventParagraph ()
virtual void read (std::istream &file)
virtual void write (std::ostream &file) const
std::string toString (std::string parentURI, uint64_t index, bool main) const

Detailed Description

Definition at line 36 of file EventParagraph.h.

Constructor & Destructor Documentation

◆ EventParagraph() [1/3]

Lima::LinguisticProcessing::EventAnalysis::EventParagraph::EventParagraph ( )

Definition at line 40 of file EventParagraph.cpp.

◆ EventParagraph() [2/3]

Lima::LinguisticProcessing::EventAnalysis::EventParagraph::EventParagraph ( Paragraph * p,
Common::AnnotationGraphs::AnnotationData * annotationData,
std::string graphId,
LinguisticGraph * graph )

Definition at line 45 of file EventParagraph.cpp.

◆ EventParagraph() [3/3]

Lima::LinguisticProcessing::EventAnalysis::EventParagraph::EventParagraph ( Paragraph * p,
bool splitted,
Common::AnnotationGraphs::AnnotationData * annotationData,
std::string graphId,
LinguisticGraph * graph )

Definition at line 55 of file EventParagraph.cpp.

◆ ~EventParagraph()

Lima::LinguisticProcessing::EventAnalysis::EventParagraph::~EventParagraph ( )
virtual

Definition at line 227 of file EventParagraph.cpp.

Member Function Documentation

◆ addEntities()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::addEntities ( Paragraph * p,
Common::AnnotationGraphs::AnnotationData * annotationData,
std::string graphId,
LinguisticGraph * graph )

Definition at line 127 of file EventParagraph.cpp.

◆ addEntity()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::addEntity ( const Common::MediaticData::EntityType & type,
Entity * entity )

Definition at line 155 of file EventParagraph.cpp.

◆ addEventEntities()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::addEventEntities ( Paragraph * p,
Common::AnnotationGraphs::AnnotationData * annotationData,
std::string graphId,
LinguisticGraph * graph )

Definition at line 106 of file EventParagraph.cpp.

◆ addEventEntity()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::addEventEntity ( const Common::MediaticData::EntityType & type,
Entity * entity )

Definition at line 149 of file EventParagraph.cpp.

◆ clear()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::clear ( )

Definition at line 232 of file EventParagraph.cpp.

◆ getEnd()

uint64_t Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getEnd ( ) const
inline

Definition at line 101 of file EventParagraph.h.

◆ getEventEntities()

std::pair< Common::MediaticData::EntityType, std::vector< Entity * > > Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getEventEntities ( )
inline

Definition at line 96 of file EventParagraph.h.

◆ getId()

uint64_t Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getId ( ) const
inline

Definition at line 98 of file EventParagraph.h.

◆ getLength()

uint64_t Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getLength ( ) const
inline

Definition at line 102 of file EventParagraph.h.

◆ getOtherEntities()

std::map< Common::MediaticData::EntityType, std::vector< Entity * > > Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getOtherEntities ( )
inline

Definition at line 94 of file EventParagraph.h.

◆ getPosition()

uint64_t Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getPosition ( ) const
inline

Definition at line 99 of file EventParagraph.h.

◆ getStart()

uint64_t Lima::LinguisticProcessing::EventAnalysis::EventParagraph::getStart ( ) const
inline

Definition at line 100 of file EventParagraph.h.

◆ has_entity()

bool Lima::LinguisticProcessing::EventAnalysis::EventParagraph::has_entity ( Common::MediaticData::EntityType t) const

Definition at line 92 of file EventParagraph.cpp.

◆ is_splitted()

bool Lima::LinguisticProcessing::EventAnalysis::EventParagraph::is_splitted ( )
inline

Definition at line 92 of file EventParagraph.h.

◆ read()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::read ( std::istream & file)
virtual

Definition at line 160 of file EventParagraph.cpp.

◆ setId()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::setId ( uint64_t id)
inline

Definition at line 104 of file EventParagraph.h.

◆ setLength()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::setLength ( uint64_t length)
inline

Definition at line 106 of file EventParagraph.h.

◆ setPosition()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::setPosition ( uint64_t position)
inline

Definition at line 105 of file EventParagraph.h.

◆ toString()

std::string Lima::LinguisticProcessing::EventAnalysis::EventParagraph::toString ( std::string parentURI,
uint64_t index,
bool main ) const

Definition at line 250 of file EventParagraph.cpp.

◆ write()

void Lima::LinguisticProcessing::EventAnalysis::EventParagraph::write ( std::ostream & file) const
virtual

Definition at line 193 of file EventParagraph.cpp.


The documentation for this class was generated from the following files:
  • lima_linguisticprocessing/src/linguisticProcessing/core/EventAnalysis/EventParagraph.h
  • lima_linguisticprocessing/src/linguisticProcessing/core/EventAnalysis/EventParagraph.cpp