FreeLing
4.0
|
Class document is a list of paragraphs. More...
#include <language.h>
Public Member Functions | |
document () | |
Class document is a list of paragraphs. | |
~document () | |
bool | is_parsed () const |
Add node1 to the group group1 of coreferents. | |
bool | is_dep_parsed () const |
void | add_mention (const mention &m) |
Adds one mention to the doc (the mention is already included in a group of coreferents) | |
int | get_num_words () const |
Adds node2 to the group of node1 void add_positive(const std::wstring &node1, const std::wstring &node2); Gets the id of the coreference group of the node int get_coref_group(const std::wstring&) const; Gets all the nodes in a coreference group id std::list<std::wstring> get_coref_nodes(int) const;. | |
int | get_num_groups () const |
Gets the number of groups found. | |
const std::list< int > & | get_groups () const |
get list of ids of existing groups | |
std::vector< mention > ::const_iterator | begin_mentions () const |
Gets an iterator pointing to the beginning of the mentions. | |
std::vector< mention >::iterator | begin_mentions () |
std::vector< mention > ::const_iterator | end_mentions () const |
Gets an iterator pointing to the end of the mentions. | |
std::vector< mention >::iterator | end_mentions () |
const mention & | get_mention (int) const |
get reference to i-th mention | |
std::list< int > | get_coref_id_mentions (int) const |
Gets all the nodes in a coreference group std::list<int> get_coref_nodes(int) const;. | |
const semgraph::semantic_graph & | get_semantic_graph () const |
Returns if two nodes are in the same coreference group bool is_coref(const std::wstring &, const std::wstring &) const;. | |
semgraph::semantic_graph & | get_semantic_graph () |
Private Attributes | |
paragraph | title |
std::vector< mention > | mentions |
std::multimap< int, int > | group2mentions |
std::list< int > | groups |
semgraph::semantic_graph | sem_graph |
Static Private Attributes | |
static const size_t | DIM = 500 |
Class document is a list of paragraphs.
It may have additional information (such as title)
Class document is a list of paragraphs.
It may have additional information (such as title) Construct or
void freeling::document::add_mention | ( | const mention & | m | ) |
Adds one mention to the doc (the mention is already included in a group of coreferents)
Adds one mention to the doc within a coreference group.
References freeling::mention::get_group(), freeling::mention::get_id(), group2mentions, groups, and mentions.
vector< mention >::const_iterator freeling::document::begin_mentions | ( | ) | const |
Gets an iterator pointing to the beginning of the mentions.
References mentions.
References mentions.
vector< mention >::const_iterator freeling::document::end_mentions | ( | ) | const |
Gets an iterator pointing to the end of the mentions.
References mentions.
References mentions.
list< int > freeling::document::get_coref_id_mentions | ( | int | ith | ) | const |
Gets all the nodes in a coreference group std::list<int> get_coref_nodes(int) const;.
Gets all the nodes in a coreference group id.
Gets all the mentions' ids in the ith coreference group found
Gets all the mentions' ids in the ith coreference group
References group2mentions.
const std::list< int > & freeling::document::get_groups | ( | ) | const |
get list of ids of existing groups
References groups.
const mention & freeling::document::get_mention | ( | int | id | ) | const |
int freeling::document::get_num_groups | ( | ) | const |
Gets the number of groups found.
References groups.
int freeling::document::get_num_words | ( | ) | const |
Adds node2 to the group of node1 void add_positive(const std::wstring &node1, const std::wstring &node2); Gets the id of the coreference group of the node int get_coref_group(const std::wstring&) const; Gets all the nodes in a coreference group id std::list<std::wstring> get_coref_nodes(int) const;.
const semgraph::semantic_graph & freeling::document::get_semantic_graph | ( | ) | const |
Returns if two nodes are in the same coreference group bool is_coref(const std::wstring &, const std::wstring &) const;.
Returns whether two nodes are in the same coreference group.
References sem_graph.
References sem_graph.
bool freeling::document::is_dep_parsed | ( | ) | const |
bool freeling::document::is_parsed | ( | ) | const |
Add node1 to the group group1 of coreferents.
const size_t freeling::document::DIM = 500 [static, private] |
std::multimap<int,int> freeling::document::group2mentions [private] |
Referenced by add_mention(), and get_coref_id_mentions().
std::list<int> freeling::document::groups [private] |
Referenced by add_mention(), get_groups(), and get_num_groups().
std::vector<mention> freeling::document::mentions [private] |
Referenced by add_mention(), begin_mentions(), end_mentions(), and get_mention().
Referenced by get_semantic_graph().
paragraph freeling::document::title [private] |