#include <language.h>
Inheritance diagram for sentence:
Public Member Functions | |
sentence () | |
Create a new sentence. | |
void | set_parse_tree (const parse_tree &) |
Set the parse tree. | |
parse_tree & | get_parse_tree (void) |
Obtain the parse tree. | |
bool | is_parsed () const |
Find out whether the sentence is parsed. | |
dep_tree & | get_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< word > | get_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 |
It may include a parse tree.
|
Create a new sentence. It may include a parse tree. |
|
Obtain the parse dependency tree.
|
|
Obtain the parse tree.
|
|
get word list (useful for perl API)
|
|
Find out whether the sentence is dependency parsed.
|
|
Find out whether the sentence is parsed.
|
|
Set the dependency tree.
|
|
Set the parse tree.
|
|
|
|
get iterators to word list (useful for perl/java API)
|
|
|
|
|
|
|
|
|