FreeLing  3.1
Public Member Functions | Private Attributes
freeling::document Class Reference

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

#include <language.h>

Inheritance diagram for freeling::document:
Inheritance graph
[legend]
Collaboration diagram for freeling::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 (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, intnode2group
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 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

Gets the id of the coreference group of the node.

References node2group.

Referenced by is_coref().

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().


Member Data Documentation

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

Referenced by get_coref_nodes().

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

Referenced by get_coref_group().


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