Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

sentence Class Reference

Class sentence is just a list of words that someone (the splitter) has validated it as a complete sentence. More...

#include <language.h>

Inheritance diagram for sentence:

Inheritance graph
[legend]
Collaboration diagram for sentence:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sentence ()
 Create a new sentence.
void set_parse_tree (const parse_tree &)
 Set the parse tree.
parse_treeget_parse_tree (void)
 Obtain the parse tree.
bool is_parsed () const
 Find out whether the sentence is parsed.
dep_treeget_dep_tree ()
 Obtain the parse dependency tree.
void set_dep_tree (const dep_tree &)
 Set the dependency tree.
bool is_dep_parsed () const
 Find out whether the sentence is dependency parsed.
vector< wordget_words () const
 get word list (useful for perl API)
sentence::iterator words_begin (void)
 get iterators to word list (useful for perl/java API)
sentence::const_iterator words_begin (void) const
sentence::iterator words_end (void)
sentence::const_iterator words_end (void) const

Private Attributes

parse_tree pt
dep_tree dt

Detailed Description

Class sentence is just a list of words that someone (the splitter) has validated it as a complete sentence.

It may include a parse tree.


Constructor & Destructor Documentation

sentence::sentence  ) 
 

Create a new sentence.

It may include a parse tree.


Member Function Documentation

dep_tree & sentence::get_dep_tree  ) 
 

Obtain the parse dependency tree.

parse_tree & sentence::get_parse_tree void   ) 
 

Obtain the parse tree.

vector< word > sentence::get_words  )  const
 

get word list (useful for perl API)

bool sentence::is_dep_parsed  )  const
 

Find out whether the sentence is dependency parsed.

bool sentence::is_parsed  )  const
 

Find out whether the sentence is parsed.

void sentence::set_dep_tree const dep_tree  ) 
 

Set the dependency tree.

void sentence::set_parse_tree const parse_tree  ) 
 

Set the parse tree.

sentence::const_iterator sentence::words_begin void   )  const
 

sentence::iterator sentence::words_begin void   ) 
 

get iterators to word list (useful for perl/java API)

sentence::const_iterator sentence::words_end void   )  const
 

sentence::iterator sentence::words_end void   ) 
 


Member Data Documentation

dep_tree sentence::dt [private]
 

parse_tree sentence::pt [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 26 12:59:11 2006 for FreeLing by  doxygen 1.4.4