FreeLing
4.0
|
#include <semgraph_extract.h>
Public Member Functions | |
semgraph_extract (const std::wstring &erFile) | |
Constructor. | |
~semgraph_extract () | |
Destructor. | |
void | extract (freeling::document &doc) const |
extract graph from given document | |
Private Member Functions | |
template<class T > | |
void | add_semantic_info (T &e) const |
Add semantic information (synonyms, sumo, cyc, etc) to a SG element (entity or frame) | |
Private Attributes | |
ent_extract * | entities_extr |
entity extractor to use | |
rel_extract * | relations_extr |
relation extractor to use | |
semanticDB * | semdb |
access to WN | |
std::list< std::pair < std::wstring, std::wstring > > | KBs |
Known knowledge bases. |
freeling::semgraph_extract::semgraph_extract | ( | const std::wstring & | erFile | ) |
Constructor.
Destructor.
void freeling::semgraph_extract::add_semantic_info | ( | T & | e | ) | const [private] |
Add semantic information (synonyms, sumo, cyc, etc) to a SG element (entity or frame)
References freeling::sense_info::cyc, freeling::semanticDB::get_sense_info(), KBs, semdb, freeling::sense_info::sumo, and freeling::sense_info::words.
void freeling::semgraph_extract::extract | ( | freeling::document & | doc | ) | const |
extract graph from given document
entity extractor to use
std::list<std::pair<std::wstring,std::wstring> > freeling::semgraph_extract::KBs [private] |
Known knowledge bases.
Referenced by add_semantic_info().
relation extractor to use
semanticDB* freeling::semgraph_extract::semdb [private] |
access to WN
Referenced by add_semantic_info().