![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
This class is used to type the relation between a part and its enclosing complex token. More...
#include <linguisticProcessing/common/BagOfWords/BoWRelation.h>
Public Member Functions | |
| BoWRelation (const Lima::LimaString &realization, uint64_t type) | |
| BoWRelation (const Lima::LimaString &realization, uint64_t type, uint64_t syntype) | |
| BoWRelation (const BoWRelation &tok) | |
| BoWRelation () | |
| virtual | ~BoWRelation () |
| virtual BoWRelation * | clone () const |
| virtual Lima::LimaString | getRealization (void) const |
| uint64_t | getType (void) const |
| uint64_t | getSynType (void) const |
| void | setType (uint64_t type) |
| void | setSynType (uint64_t type) |
| Lima::LimaString | getString (void) const |
| virtual void | read (std::istream &file) |
| virtual void | write (std::ostream &file) const |
| virtual std::string | getOutputUTF8String (void) const |
| get a string of the BoWRelation for output function | |
| virtual std::string | getIdUTF8String () const |
| function used to identify a bowtoken in a text (used in BowDumper) | |
| virtual void | parse (const Lima::LimaString &str, int current) |
| for parsing of input stream | |
| bool | operator== (const BoWRelation &) const |
| redefine equality | |
| bool | operator!= (const BoWRelation &) const |
| redefine inequality as negation of equality. | |
Static Public Member Functions | |
| static void | setUseOnlyRealization (const bool b) |
| static bool | getUseOnlyRealization () |
| static void | setCompoundSeparator (const LimaChar c) |
| static LimaChar | getCompoundSeparator () |
| static Lima::LimaString | findNextElement (const Lima::LimaString &str, int ¤t, const LimaChar &separator) |
Protected Member Functions | |
| void | convertSpaces (void) |
| convert the spaces in the realization string into a non-space character (defined by the m_compoundSeparator member) | |
Protected Attributes | |
| Lima::LimaString | m_realization |
| uint64_t | m_type |
| uint64_t | s_type |
Static Protected Attributes | |
| static LimaChar | m_separator =DEFAULT_SEPARATOR |
| static LimaChar | m_compoundSeparator =DEFAULT_COMPOUND_SEPARATOR |
| static bool | m_useOnlyRealization =false |
Friends | |
| LIMA_BOW_EXPORT std::ostream & | operator<< (std::ostream &, const BoWRelation &) |
| LIMA_BOW_EXPORT QDebug & | operator<< (QDebug &, const BoWRelation &) |
This class is used to type the relation between a part and its enclosing complex token.
This will be used primarily to represent the type of the relation in compounds but could be later be used as the basis to more structured indexing
Definition at line 49 of file BoWRelation.h.
| Lima::Common::BagOfWords::BoWRelation::BoWRelation | ( | const Lima::LimaString & | realization, |
| uint64_t | type | ||
| ) |
| Lima::Common::BagOfWords::BoWRelation::BoWRelation | ( | const Lima::LimaString & | realization, |
| uint64_t | type, | ||
| uint64_t | syntype | ||
| ) |
| Lima::Common::BagOfWords::BoWRelation::BoWRelation | ( | const BoWRelation & | tok | ) |
Definition at line 78 of file BoWRelation.cpp.
| Lima::Common::BagOfWords::BoWRelation::BoWRelation | ( | ) |
Definition at line 48 of file BoWRelation.cpp.
|
virtual |
Definition at line 91 of file BoWRelation.cpp.
|
inlinevirtual |
Definition at line 159 of file BoWRelation.h.
|
protected |
convert the spaces in the realization string into a non-space character (defined by the m_compoundSeparator member)
Definition at line 121 of file BoWRelation.cpp.
|
static |
Definition at line 154 of file BoWRelation.cpp.
|
inlinestatic |
Definition at line 154 of file BoWRelation.h.
|
virtual |
function used to identify a bowtoken in a text (used in BowDumper)
Definition at line 230 of file BoWRelation.cpp.
|
virtual |
get a string of the BoWRelation for output function
Definition at line 222 of file BoWRelation.cpp.
|
inlinevirtual |
Definition at line 65 of file BoWRelation.h.
| LimaString Lima::Common::BagOfWords::BoWRelation::getString | ( | void | ) | const |
Definition at line 98 of file BoWRelation.cpp.
|
inline |
Definition at line 67 of file BoWRelation.h.
|
inline |
Definition at line 66 of file BoWRelation.h.
|
inlinestatic |
Definition at line 77 of file BoWRelation.h.
| bool Lima::Common::BagOfWords::BoWRelation::operator!= | ( | const BoWRelation & | t | ) | const |
redefine inequality as negation of equality.
Definition at line 145 of file BoWRelation.cpp.
| bool Lima::Common::BagOfWords::BoWRelation::operator== | ( | const BoWRelation & | t | ) | const |
redefine equality
Definition at line 138 of file BoWRelation.cpp.
|
virtual |
for parsing of input stream
Definition at line 177 of file BoWRelation.cpp.
|
virtual |
Definition at line 188 of file BoWRelation.cpp.
|
inlinestatic |
Definition at line 149 of file BoWRelation.h.
|
inline |
Definition at line 72 of file BoWRelation.h.
|
inline |
Definition at line 71 of file BoWRelation.h.
|
inlinestatic |
Definition at line 76 of file BoWRelation.h.
|
virtual |
Definition at line 196 of file BoWRelation.cpp.
|
friend |
Definition at line 212 of file BoWRelation.cpp.
|
friend |
Definition at line 206 of file BoWRelation.cpp.
|
staticprotected |
Definition at line 133 of file BoWRelation.h.
|
protected |
Definition at line 128 of file BoWRelation.h.
|
staticprotected |
Definition at line 132 of file BoWRelation.h.
|
protected |
Definition at line 129 of file BoWRelation.h.
|
staticprotected |
Definition at line 135 of file BoWRelation.h.
|
protected |
Definition at line 131 of file BoWRelation.h.