![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
This is a BoW element used to represent a predicate (n-ary relation, template or semantic frame). More...
#include <linguisticProcessing/common/BagOfWords/BoWPredicate.h>
Public Member Functions | |
| BoWPredicate () | |
| BoWPredicate (const BoWPredicate &) | |
| BoWPredicate (const Common::MediaticData::EntityType theType) | |
| BoWPredicate (const Common::MediaticData::EntityType theType, QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< AbstractBoWElement > > pRoles) | |
| virtual | ~BoWPredicate () |
| virtual uint64_t | size (void) const override |
| size of the AbstractBoWElement is the number of parts in the token, 0 for a predicate | |
| virtual BoWPredicate * | clone () const override |
| BoWPredicate & | operator= (const BoWPredicate &) |
| bool | operator== (const BoWPredicate &) |
| MediaticData::EntityType | getPredicateType (void) const |
| void | setPredicateType (const MediaticData::EntityType &) |
| virtual BoWType | getType () const override |
| virtual Lima::LimaString | getString (void) const override |
| virtual uint64_t | getPosition (void) const override |
| virtual uint64_t | getLength (void) const override |
| virtual void | setPosition (const uint64_t pos) override |
| virtual void | setLength (const uint64_t len) override |
| virtual std::string | getOutputUTF8String (const Common::PropertyCode::PropertyManager *macroManager=0) const override |
| get a string of the predicate for output function | |
| virtual std::string | getIdUTF8String (void) const override |
| function used to identify a bowtoken in a text (used in BowDumper) | |
| const QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< AbstractBoWElement > > & | roles () const |
| QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< AbstractBoWElement > > & | roles () |
| void | setRoles (QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< Common::BagOfWords::AbstractBoWElement > > &pRoles) |
| virtual std::set< uint64_t > | getVertices () const override |
| returns the vertices of the predicate and the roles | |
Public Member Functions inherited from Lima::Common::BagOfWords::AbstractBoWElement | |
| AbstractBoWElement () | |
| virtual | ~AbstractBoWElement () |
| virtual void | clear () |
Protected Member Functions | |
| BoWPredicate (BoWPredicatePrivate &) | |
Friends | |
| class | BoWPredicatePrivate |
This is a BoW element used to represent a predicate (n-ary relation, template or semantic frame).
It has a type which is an entity type. It gives access to a collection of typed arguments, its roles.
Definition at line 32 of file BoWPredicate.h.
| Lima::Common::BagOfWords::BoWPredicate::BoWPredicate | ( | ) |
Definition at line 65 of file BoWPredicate.cpp.
| Lima::Common::BagOfWords::BoWPredicate::BoWPredicate | ( | const BoWPredicate & | ne | ) |
Definition at line 84 of file BoWPredicate.cpp.
| Lima::Common::BagOfWords::BoWPredicate::BoWPredicate | ( | const Common::MediaticData::EntityType | theType | ) |
Definition at line 70 of file BoWPredicate.cpp.
| Lima::Common::BagOfWords::BoWPredicate::BoWPredicate | ( | const Common::MediaticData::EntityType | theType, |
| QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< AbstractBoWElement > > | pRoles | ||
| ) |
Definition at line 77 of file BoWPredicate.cpp.
|
virtual |
Definition at line 95 of file BoWPredicate.cpp.
|
protected |
Definition at line 89 of file BoWPredicate.cpp.
|
overridevirtual |
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 144 of file BoWPredicate.cpp.
|
overridevirtual |
function used to identify a bowtoken in a text (used in BowDumper)
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 185 of file BoWPredicate.cpp.
|
overridevirtual |
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 165 of file BoWPredicate.cpp.
|
overridevirtual |
get a string of the predicate for output function
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 177 of file BoWPredicate.cpp.
|
overridevirtual |
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 164 of file BoWPredicate.cpp.
| MediaticData::EntityType Lima::Common::BagOfWords::BoWPredicate::getPredicateType | ( | void | ) | const |
Definition at line 119 of file BoWPredicate.cpp.
|
overridevirtual |
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 172 of file BoWPredicate.cpp.
|
inlineoverridevirtual |
Reimplemented from Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 57 of file BoWPredicate.h.
|
overridevirtual |
returns the vertices of the predicate and the roles
FIXME Vertex of predicate is missing from the class definition. Cannot add it.
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 149 of file BoWPredicate.cpp.
| BoWPredicate & Lima::Common::BagOfWords::BoWPredicate::operator= | ( | const BoWPredicate & | t | ) |
Definition at line 100 of file BoWPredicate.cpp.
| bool Lima::Common::BagOfWords::BoWPredicate::operator== | ( | const BoWPredicate & | t | ) |
Definition at line 111 of file BoWPredicate.cpp.
| QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< AbstractBoWElement > > & Lima::Common::BagOfWords::BoWPredicate::roles | ( | ) |
Definition at line 134 of file BoWPredicate.cpp.
| const QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< AbstractBoWElement > > & Lima::Common::BagOfWords::BoWPredicate::roles | ( | ) | const |
Definition at line 129 of file BoWPredicate.cpp.
|
overridevirtual |
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 167 of file BoWPredicate.cpp.
|
overridevirtual |
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 166 of file BoWPredicate.cpp.
| void Lima::Common::BagOfWords::BoWPredicate::setPredicateType | ( | const MediaticData::EntityType & | predicateType | ) |
Definition at line 124 of file BoWPredicate.cpp.
| void Lima::Common::BagOfWords::BoWPredicate::setRoles | ( | QMultiMap< Common::MediaticData::EntityType, boost::shared_ptr< Common::BagOfWords::AbstractBoWElement > > & | pRoles | ) |
Definition at line 139 of file BoWPredicate.cpp.
|
inlineoverridevirtual |
size of the AbstractBoWElement is the number of parts in the token, 0 for a predicate
Implements Lima::Common::BagOfWords::AbstractBoWElement.
Definition at line 47 of file BoWPredicate.h.
|
friend |
Definition at line 34 of file BoWPredicate.h.