FreeLing
3.1
|
Class document is a list of paragraphs. More...
#include <language.h>
Public Member Functions | |
document () | |
Class paragraph is just a list of sentences that someone has validated it as a paragraph. | |
void | add_positive (const std::wstring &node, int group) |
Ads one node to a coreference group. | |
void | add_positive (const std::wstring &node1, const std::wstring &node2) |
Adds node2 to the group of node1. | |
int | get_coref_group (const std::wstring &) const |
Gets the id of the coreference group of the node. | |
std::list< std::wstring > | get_coref_nodes (int) const |
Gets all the nodes in a coreference group id. | |
bool | is_coref (const std::wstring &, const std::wstring &) const |
Returns if two nodes are in the same coreference group. | |
Private Attributes | |
paragraph | title |
std::multimap< int, std::wstring > | group2node |
std::map< std::wstring, int > | node2group |
int | last_group |
Class document is a list of paragraphs.
It may have additional information (such as title)
Class paragraph is just a list of sentences that someone has validated it as a paragraph.
Class document is a list of paragraphs. It may have additional information (such as title) Constructor
void freeling::document::add_positive | ( | const std::wstring & | node, |
int | group | ||
) |
Ads one node to a coreference group.
void freeling::document::add_positive | ( | const std::wstring & | node1, |
const std::wstring & | node2 | ||
) |
Adds node2 to the group of node1.
int freeling::document::get_coref_group | ( | const std::wstring & | ) | const |
list< wstring > freeling::document::get_coref_nodes | ( | int | id | ) | const |
Gets all the nodes in a coreference group id.
References group2node.
bool freeling::document::is_coref | ( | const std::wstring & | , |
const std::wstring & | |||
) | const |
Returns if two nodes are in the same coreference group.
Returns whether two nodes are in the same coreference group.
References get_coref_group().
std::multimap<int,std::wstring> freeling::document::group2node [private] |
Referenced by get_coref_nodes().
int freeling::document::last_group [private] |
std::map<std::wstring,int> freeling::document::node2group [private] |
Referenced by get_coref_group().
paragraph freeling::document::title [private] |