FreeLing
4.0
|
#include <semgraph.h>
Public Member Functions | |
SG_entity () | |
SG_entity (const std::wstring &elemma, const std::wstring &eclass, entityType type, const std::wstring &sense=L"") | |
~SG_entity () | |
void | set_lemma (const std::wstring &lem) |
std::wstring | get_id () const |
std::wstring | get_lemma () const |
std::wstring | get_semclass () const |
entityType | get_type () const |
std::wstring | get_sense () const |
const std::vector< SG_mention > & | get_mentions () const |
const std::list< std::wstring > & | get_synonyms () const |
const std::list< std::pair < std::wstring, std::wstring > > & | get_URIs () const |
void | set_synonyms (const std::list< std::wstring > &syn) |
void | add_URI (const std::wstring &kb, const std::wstring &uri) |
Protected Member Functions | |
void | add_mention (const SG_mention &m) |
void | set_id (const std::wstring &eid) |
Private Attributes | |
std::wstring | id |
node id | |
std::wstring | lemma |
node lemma | |
std::wstring | semclass |
entity semantic class (person,location,..) | |
entityType | type |
node type (ENTITY|WORD) | |
std::wstring | sense |
WN sense (for "word" type nodes) | |
std::list< std::wstring > | synonyms |
Synset synonyms. | |
std::list< std::pair < std::wstring, std::wstring > > | uris |
URI descriptors, list of pairs <knowledgeBase,URI> | |
std::vector< SG_mention > | mentions |
mentions | |
Friends | |
class | semantic_graph |
freeling::semgraph::SG_entity::SG_entity | ( | const std::wstring & | elemma, |
const std::wstring & | eclass, | ||
entityType | type, | ||
const std::wstring & | sense = L"" |
||
) |
void freeling::semgraph::SG_entity::add_mention | ( | const SG_mention & | m | ) | [protected] |
void freeling::semgraph::SG_entity::add_URI | ( | const std::wstring & | kb, |
const std::wstring & | uri | ||
) |
std::wstring freeling::semgraph::SG_entity::get_id | ( | ) | const |
std::wstring freeling::semgraph::SG_entity::get_lemma | ( | ) | const |
const std::vector<SG_mention>& freeling::semgraph::SG_entity::get_mentions | ( | ) | const |
std::wstring freeling::semgraph::SG_entity::get_semclass | ( | ) | const |
std::wstring freeling::semgraph::SG_entity::get_sense | ( | ) | const |
const std::list<std::wstring>& freeling::semgraph::SG_entity::get_synonyms | ( | ) | const |
const std::list<std::pair<std::wstring,std::wstring> >& freeling::semgraph::SG_entity::get_URIs | ( | ) | const |
void freeling::semgraph::SG_entity::set_id | ( | const std::wstring & | eid | ) | [protected] |
void freeling::semgraph::SG_entity::set_lemma | ( | const std::wstring & | lem | ) |
void freeling::semgraph::SG_entity::set_synonyms | ( | const std::list< std::wstring > & | syn | ) |
friend class semantic_graph [friend] |
std::wstring freeling::semgraph::SG_entity::id [private] |
node id
std::wstring freeling::semgraph::SG_entity::lemma [private] |
node lemma
std::vector<SG_mention> freeling::semgraph::SG_entity::mentions [private] |
mentions
std::wstring freeling::semgraph::SG_entity::semclass [private] |
entity semantic class (person,location,..)
std::wstring freeling::semgraph::SG_entity::sense [private] |
WN sense (for "word" type nodes)
std::list<std::wstring> freeling::semgraph::SG_entity::synonyms [private] |
Synset synonyms.
node type (ENTITY|WORD)
std::list<std::pair<std::wstring,std::wstring> > freeling::semgraph::SG_entity::uris [private] |
URI descriptors, list of pairs <knowledgeBase,URI>