#include <language.h>
Inheritance diagram for word:
Public Member Functions | |
word () | |
constructor | |
word (const string &) | |
constructor | |
word (const string &, const list< word > &) | |
constructor | |
word (const string &, const list< analysis > &, const list< word > &) | |
constructor | |
word (const word &) | |
Copy constructor. | |
word & | operator= (const word &) |
assignment | |
bool | is_ambiguous (void) const |
true iff the word has more than one analysis | |
bool | is_multiword (void) const |
true iff the word is a multiword compound | |
int | get_n_words_mw (void) const |
get number of words in compound | |
list< word > | get_words_mw (void) const |
get word objects that compound the multiword | |
string | get_form (void) const |
get word form | |
analysis | get_selected_analysis (void) const |
Get the selected analysis. | |
word::iterator | selected_analysis (void) const |
Get an iterator to the selected analysis. | |
string | get_lemma (void) const |
get lemma for the selected analysis in list | |
string | get_parole (void) const |
get parole for the selected analysis | |
string | get_short_parole (const string &) const |
get parole (short version) for the selected analysis | |
list< string > | get_senses (void) const |
get sense list for the selected analysis | |
void | set_senses (const list< string > &) |
set sense list for the selected analysis | |
unsigned int | get_span_start (void) const |
get token span. | |
unsigned int | get_span_finish (void) const |
bool | found_in_dict (void) const |
get in_dict | |
void | set_found_in_dict (bool) |
set in_dict | |
void | add_analysis (const analysis &) |
add one analysis to current analysis list (no duplicate check!) | |
void | set_analysis (const analysis &) |
set analysis list to one single analysis, overwriting current values | |
void | set_analysis (const list< analysis > &) |
set analysis list, overwriting current values | |
void | set_form (const string &) |
set word form | |
void | set_span (unsigned int, unsigned int) |
set token span | |
void | set_user_data (void *) |
set user data | |
int | get_n_analysis (void) const |
get number of analysis in current list | |
void | copy_analysis (const word &) |
copy analysis list | |
void | select_analysis (word::iterator) |
mark the given analysis as the selected one. | |
list< analysis > | get_analysis (void) const |
get list of analysis (useful for perl API) | |
word::iterator | analysis_begin (void) |
get begin iterator to analysis list (useful for perl/java API) | |
word::const_iterator | analysis_begin (void) const |
word::iterator | analysis_end (void) |
get end iterator to analysis list (useful for perl/java API) | |
word::const_iterator | analysis_end (void) const |
Private Attributes | |
string | form |
lexical form | |
word::iterator | selected |
selected analysis (if any) | |
list< word > | multiword |
empty list if not a multiword | |
unsigned int | start |
token span | |
unsigned int | finish |
bool | in_dict |
word form found in dictionary | |
void * | user |
Private data. |
|
constructor
|
|
constructor
|
|
constructor
|
|
constructor
|
|
Copy constructor.
|
|
add one analysis to current analysis list (no duplicate check!)
|
|
|
|
get begin iterator to analysis list (useful for perl/java API)
|
|
|
|
get end iterator to analysis list (useful for perl/java API)
|
|
copy analysis list
|
|
get in_dict
|
|
get list of analysis (useful for perl API)
|
|
get word form
|
|
get lemma for the selected analysis in list
|
|
get number of analysis in current list
|
|
get number of words in compound
|
|
get parole for the selected analysis
|
|
Get the selected analysis.
|
|
get sense list for the selected analysis
|
|
get parole (short version) for the selected analysis
|
|
|
|
get token span.
|
|
get word objects that compound the multiword
|
|
true iff the word has more than one analysis
|
|
true iff the word is a multiword compound
|
|
assignment
|
|
mark the given analysis as the selected one.
|
|
Get an iterator to the selected analysis.
|
|
set analysis list, overwriting current values
|
|
set analysis list to one single analysis, overwriting current values
|
|
set word form
|
|
set in_dict
|
|
set sense list for the selected analysis
|
|
set token span
|
|
set user data
|
|
|
|
lexical form
|
|
word form found in dictionary
|
|
empty list if not a multiword
|
|
selected analysis (if any)
|
|
token span
|
|
Private data.
|