#include <include/ling_class/EST_Utterance.h>

Public Member Functions | |
| EST_Utterance & | operator= (const EST_Utterance &s) |
| EST_Relation * | operator() (const EST_String &name) |
Constructor and initialisation Functions | |
| EST_Utterance () | |
| default constructor | |
| EST_Utterance (const EST_Utterance &u) | |
| ~EST_Utterance () | |
Utility Functions | |
| void | init () |
| initialise utterance | |
| void | clear () |
| remove everything in utterance | |
| void | clear_relations () |
| clear the contents of the relations only | |
| void | set_highest_id (int n) |
| set the next id to be <parameter>n</parameter> | |
| int | next_id () |
| return the id of the next item | |
File i/o | |
| EST_read_status | load (const EST_String &filename) |
| EST_read_status | load (EST_TokenStream &ts) |
| EST_write_status | save (const EST_String &filename, const EST_String &type="est_ascii") const |
| EST_write_status | save (ostream &outf, const EST_String &type) const |
Friends | |
| ostream & | operator<< (ostream &s, const EST_Utterance &u) |
| EST_Features | f |
| Utterance level features. More... | |
| EST_Features | relations |
| The list of named relations. | |
| void | evaluate_all_features () |
| Evaluate all feature functions in utterance. | |
| int | num_relations () const |
| number of relations in this utterance | |
| bool | relation_present (const EST_String name) const |
| bool | relation_present (EST_StrList &names) const |
| EST_Relation * | relation (const char *name, int err_on_not_found=1) const |
| get relation by name | |
| EST_Item * | id (const EST_String &n) const |
| return EST_Item whose id is <parameter>n</parameter>. | |
| EST_Relation * | create_relation (const EST_String &relname) |
| create a new relation called <parameter>n</parameter>. | |
| void | remove_relation (const EST_String &relname) |
| remove the relation called <parameter>n</parameter>. | |
| void | sub_utterance (EST_Item *i) |
A class that contains <link linkend="est-item">EST_Items</link>
and <link linkend="est-relation">EST_Relations</link> between them. Used for holding interrelated linguistic structures.
Definition at line 54 of file EST_Utterance.h.
| EST_read_status EST_Utterance::load | ( | const EST_String & | filename | ) |
load an utterance from an ascii file
Definition at line 450 of file EST_Utterance.cc.
| EST_read_status EST_Utterance::load | ( | EST_TokenStream & | ts | ) |
load an utterance from a already opened token stream
Definition at line 472 of file EST_Utterance.cc.
| EST_write_status EST_Utterance::save | ( | const EST_String & | filename, |
| const EST_String & | type = "est_ascii" |
||
| ) | const |
save an utterance to an ascii file
Definition at line 512 of file EST_Utterance.cc.
| EST_write_status EST_Utterance::save | ( | ostream & | outf, |
| const EST_String & | type | ||
| ) | const |
save an utterance to an ostream
Definition at line 534 of file EST_Utterance.cc.
| bool EST_Utterance::relation_present | ( | const EST_String | name | ) | const |
returns true if utterance contains named relations. { name} can be either a single string or a bracketed list of strings e.g. "(Word Phone Syl)".
Definition at line 171 of file EST_Utterance.cc.
| bool EST_Utterance::relation_present | ( | EST_StrList & | names | ) | const |
returns true if utterance contains all the relations named in the list { name}.
Definition at line 180 of file EST_Utterance.cc.
| EST_Features EST_Utterance::f |