FreeLing
4.0
|
Auxiliary class to store a semantic graph. More...
#include <semgraph.h>
Public Member Functions | |
semantic_graph () | |
~semantic_graph () | |
std::wstring | add_entity (SG_entity &ent) |
std::wstring | add_frame (SG_frame &fr) |
const SG_frame & | get_frame (const std::wstring &fid) const |
SG_frame & | get_frame (const std::wstring &fid) |
std::wstring | get_entity_id_by_mention (const std::wstring &sid, const std::wstring &wid) const |
std::wstring | get_entity_id_by_lemma (const std::wstring &lemma, const std::wstring &sens=L"") const |
SG_entity & | get_entity (const std::wstring &eid) |
const SG_entity & | get_entity (const std::wstring &eid) const |
const std::vector< SG_entity > & | get_entities () const |
std::vector< SG_entity > & | get_entities () |
const std::vector< SG_frame > & | get_frames () const |
std::vector< SG_frame > & | get_frames () |
void | add_mention_to_entity (const std::wstring &eid, const SG_mention &m) |
void | add_argument_to_frame (const std::wstring &fid, const std::wstring &role, const std::wstring &eid) |
bool | is_argument (const std::wstring &eid) const |
bool | has_arguments (const std::wstring &fid) const |
bool | empty () const |
Private Attributes | |
std::vector< SG_entity > | entities |
std::vector< SG_frame > | frames |
std::map< std::wstring, std::wstring > | mention_idx |
std::map< std::wstring, std::wstring > | lemma_idx |
std::map< std::wstring, int > | entity_idx |
std::map< std::wstring, int > | frame_idx |
std::set< std::wstring > | is_arg |
std::set< std::wstring > | has_args |
int | last_id |
Auxiliary class to store a semantic graph.
void freeling::semgraph::semantic_graph::add_argument_to_frame | ( | const std::wstring & | fid, |
const std::wstring & | role, | ||
const std::wstring & | eid | ||
) |
std::wstring freeling::semgraph::semantic_graph::add_entity | ( | SG_entity & | ent | ) |
std::wstring freeling::semgraph::semantic_graph::add_frame | ( | SG_frame & | fr | ) |
void freeling::semgraph::semantic_graph::add_mention_to_entity | ( | const std::wstring & | eid, |
const SG_mention & | m | ||
) |
bool freeling::semgraph::semantic_graph::empty | ( | ) | const |
const std::vector<SG_entity>& freeling::semgraph::semantic_graph::get_entities | ( | ) | const |
std::vector<SG_entity>& freeling::semgraph::semantic_graph::get_entities | ( | ) |
SG_entity& freeling::semgraph::semantic_graph::get_entity | ( | const std::wstring & | eid | ) |
const SG_entity& freeling::semgraph::semantic_graph::get_entity | ( | const std::wstring & | eid | ) | const |
std::wstring freeling::semgraph::semantic_graph::get_entity_id_by_lemma | ( | const std::wstring & | lemma, |
const std::wstring & | sens = L"" |
||
) | const |
std::wstring freeling::semgraph::semantic_graph::get_entity_id_by_mention | ( | const std::wstring & | sid, |
const std::wstring & | wid | ||
) | const |
const SG_frame& freeling::semgraph::semantic_graph::get_frame | ( | const std::wstring & | fid | ) | const |
SG_frame& freeling::semgraph::semantic_graph::get_frame | ( | const std::wstring & | fid | ) |
const std::vector<SG_frame>& freeling::semgraph::semantic_graph::get_frames | ( | ) | const |
std::vector<SG_frame>& freeling::semgraph::semantic_graph::get_frames | ( | ) |
bool freeling::semgraph::semantic_graph::has_arguments | ( | const std::wstring & | fid | ) | const |
bool freeling::semgraph::semantic_graph::is_argument | ( | const std::wstring & | eid | ) | const |
std::vector<SG_entity> freeling::semgraph::semantic_graph::entities [private] |
std::map<std::wstring,int> freeling::semgraph::semantic_graph::entity_idx [private] |
std::map<std::wstring,int> freeling::semgraph::semantic_graph::frame_idx [private] |
std::vector<SG_frame> freeling::semgraph::semantic_graph::frames [private] |
std::set<std::wstring> freeling::semgraph::semantic_graph::has_args [private] |
std::set<std::wstring> freeling::semgraph::semantic_graph::is_arg [private] |
std::map<std::wstring,std::wstring> freeling::semgraph::semantic_graph::lemma_idx [private] |
std::map<std::wstring,std::wstring> freeling::semgraph::semantic_graph::mention_idx [private] |