FreeLing  4.0
Public Member Functions | Protected Member Functions | Private Attributes | Friends
freeling::semgraph::SG_entity Class Reference

#include <semgraph.h>

List of all members.

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_mentionmentions
 mentions

Friends

class semantic_graph

Constructor & Destructor Documentation

freeling::semgraph::SG_entity::SG_entity ( const std::wstring &  elemma,
const std::wstring &  eclass,
entityType  type,
const std::wstring &  sense = L"" 
)

Member Function Documentation

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
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)

Friends And Related Function Documentation

friend class semantic_graph [friend]

Member Data Documentation

std::wstring freeling::semgraph::SG_entity::id [private]

node id

std::wstring freeling::semgraph::SG_entity::lemma [private]

node lemma

mentions

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>


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