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

This class represents a list of elements, that are pointers on polymmorphic annotations that can be datatype property annotations or object property annotations. More...

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

Inheritance diagram for Lima::LinguisticProcessing::EventAnalysis::Event:

Public Member Functions

 Event ()
 
virtual ~Event ()
 
bool hasFragment () const
 
void addParagraph (Paragraph *, bool, bool, Common::AnnotationGraphs::AnnotationData *, std::string graphId, LinguisticGraph *graph)
 
virtual void read (std::istream &file)
 
virtual void write (std::ostream &file) const
 
std::string toString (std::string parentURI, uint64_t index) const
 
void compute_entities_weight (std::map< Common::MediaticData::EntityType, unsigned short >, Common::AnnotationGraphs::AnnotationData *, std::string graphId)
 
void compute_main_entities ()
 
Common::MediaticData::EntityType getEntityType (LinguisticGraphVertex, Common::AnnotationGraphs::AnnotationData *, std::string graphId) const
 
void setDate (std::pair< Common::MediaticData::EntityType, std::pair< std::string, LinguisticGraphVertex > >)
 
uint64_t get_weight () const
 
void setWeight (uint64_t w)
 
void setMain ()
 
bool getMain () const
 
bool has_entity (Common::MediaticData::EntityType) const
 

Friends

LIMA_EVENTANALISYS_EXPORT std::ostream & operator<< (std::ostream &, const Event &)
 

Detailed Description

This class represents a list of elements, that are pointers on polymmorphic annotations that can be datatype property annotations or object property annotations.

Definition at line 43 of file Event.h.

Constructor & Destructor Documentation

◆ Event()

Lima::LinguisticProcessing::EventAnalysis::Event::Event ( )

Definition at line 39 of file Event.cpp.

◆ ~Event()

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

Definition at line 46 of file Event.cpp.

Member Function Documentation

◆ addParagraph()

void Lima::LinguisticProcessing::EventAnalysis::Event::addParagraph ( Paragraph *  p,
bool  firstpos,
bool  split,
Common::AnnotationGraphs::AnnotationData *  annotationData,
std::string  graphId,
LinguisticGraph *  graph 
)

Definition at line 130 of file Event.cpp.

◆ compute_entities_weight()

void Lima::LinguisticProcessing::EventAnalysis::Event::compute_entities_weight ( std::map< Common::MediaticData::EntityType, unsigned short >  map_weights,
Common::AnnotationGraphs::AnnotationData *  annotation,
std::string  graphId 
)

Definition at line 83 of file Event.cpp.

◆ compute_main_entities()

void Lima::LinguisticProcessing::EventAnalysis::Event::compute_main_entities ( )

Definition at line 58 of file Event.cpp.

◆ get_weight()

uint64_t Lima::LinguisticProcessing::EventAnalysis::Event::get_weight ( ) const
inline

Definition at line 94 of file Event.h.

◆ getEntityType()

Common::MediaticData::EntityType Lima::LinguisticProcessing::EventAnalysis::Event::getEntityType ( LinguisticGraphVertex  v,
Common::AnnotationGraphs::AnnotationData *  annotationData,
std::string  graphId 
) const

Definition at line 112 of file Event.cpp.

◆ getMain()

bool Lima::LinguisticProcessing::EventAnalysis::Event::getMain ( ) const
inline

Definition at line 90 of file Event.h.

◆ has_entity()

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

Definition at line 99 of file Event.cpp.

◆ hasFragment()

bool Lima::LinguisticProcessing::EventAnalysis::Event::hasFragment ( ) const
inline

Definition at line 101 of file Event.h.

◆ read()

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

Definition at line 176 of file Event.cpp.

◆ setDate()

void Lima::LinguisticProcessing::EventAnalysis::Event::setDate ( std::pair< Common::MediaticData::EntityType, std::pair< std::string, LinguisticGraphVertex > >  date)
inline

Definition at line 99 of file Event.h.

◆ setMain()

void Lima::LinguisticProcessing::EventAnalysis::Event::setMain ( )
inline

Definition at line 85 of file Event.h.

◆ setWeight()

void Lima::LinguisticProcessing::EventAnalysis::Event::setWeight ( uint64_t  w)
inline

Definition at line 69 of file Event.h.

◆ toString()

std::string Lima::LinguisticProcessing::EventAnalysis::Event::toString ( std::string  parentURI,
uint64_t  index 
) const

Definition at line 201 of file Event.cpp.

◆ write()

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

Definition at line 189 of file Event.cpp.

Friends And Related Symbol Documentation

◆ operator<<

LIMA_EVENTANALISYS_EXPORT std::ostream & operator<< ( std::ostream &  os,
const Event &  text 
)
friend

Definition at line 212 of file Event.cpp.


The documentation for this class was generated from the following files: