FreeLing  4.0
Public Member Functions | Private Attributes | Static 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 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 mentionget_mention (int) const
 get reference to i-th mention
std::list< intget_coref_id_mentions (int) const
 Gets all the nodes in a coreference group std::list<int> get_coref_nodes(int) const;.
const semgraph::semantic_graphget_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_graphget_semantic_graph ()

Private Attributes

paragraph title
std::vector< mentionmentions
std::multimap< int, intgroup2mentions
std::list< intgroups
semgraph::semantic_graph sem_graph

Static Private Attributes

static const size_t DIM = 500

Detailed Description

Class document is a list of paragraphs.

It may have additional information (such as title)


Constructor & Destructor Documentation

Class document is a list of paragraphs.

It may have additional information (such as title) Construct or


Member Function Documentation

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.

Gets an iterator pointing to the beginning of the mentions.

References mentions.

References mentions.

Gets an iterator pointing to the end of the mentions.

References mentions.

References mentions.

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.

get reference to i-th mention

get reference to mention id

References mentions.

Gets the number of groups found.

References groups.

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;.

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.

Add node1 to the group group1 of coreferents.


Member Data Documentation

const size_t freeling::document::DIM = 500 [static, private]
std::multimap<int,int> freeling::document::group2mentions [private]
std::list<int> freeling::document::groups [private]
std::vector<mention> freeling::document::mentions [private]

Referenced by get_semantic_graph().


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