FreeLing  3.0
Public Member Functions | Private Attributes
document Class Reference

Class document is a list of paragraphs. More...

#include <language.h>

Inheritance diagram for document:
Inheritance graph
[legend]
Collaboration diagram for document:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 document ()
 Class paragraph is just a list of sentences that someone has validated it as a paragraph.
void add_positive (std::wstring node1, int group1)
 Adds two nodes in a coreference group.
void add_positive (std::wstring, std::wstring)
 Adds two nodes in a coreference group.
int get_coref_group (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 (std::wstring, 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

Detailed Description

Class document is a list of paragraphs.

It may have additional information (such as title)


Constructor & Destructor Documentation

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


Member Function Documentation

void document::add_positive ( std::wstring  node1,
int  group1 
)

Adds two nodes in a coreference group.

void document::add_positive ( std::wstring  ,
std::wstring   
)

Adds two nodes in a coreference group.

int document::get_coref_group ( std::wstring  ) const

Gets the id of the coreference group of the node.

References node2group.

Referenced by is_coref().

list< wstring > document::get_coref_nodes ( int  id) const

Gets all the nodes in a coreference group id.

References group2node.

bool document::is_coref ( std::wstring  ,
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().


Member Data Documentation

std::multimap<int,std::wstring> document::group2node [private]

Referenced by get_coref_nodes().

int document::last_group [private]
std::map<std::wstring,int> document::node2group [private]

Referenced by get_coref_group().


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