39 #ifndef __Utterance_H__ 40 #define __Utterance_H__ 42 #include "EST_String.h" 43 #include "EST_TList.h" 44 #include "ling_class/EST_Relation.h" 45 #include "ling_class/EST_Item.h" 46 #include "EST_Features.h" 101 EST_write_status
save(ostream &outf,
const EST_String &type)
const;
105 friend ostream& operator << (ostream &s,
const EST_Utterance &u);
void clear_relations()
clear the contents of the relations only
EST_write_status save(const EST_String &filename, const EST_String &type="est_ascii") const
EST_read_status load(const EST_String &filename)
void clear()
remove everything in utterance
EST_Relation * create_relation(const EST_String &relname)
create a new relation called <parameter>n</parameter>.
EST_Features f
Utterance level features.
void evaluate_all_features()
Evaluate all feature functions in utterance.
EST_Features relations
The list of named relations.
EST_Utterance()
default constructor
EST_Item * id(const EST_String &n) const
return EST_Item whose id is <parameter>n</parameter>.
void set_highest_id(int n)
set the next id to be <parameter>n</parameter>
void init()
initialise utterance
int num_relations() const
number of relations in this utterance
int next_id()
return the id of the next item
EST_Relation * relation(const char *name, int err_on_not_found=1) const
get relation by name
bool relation_present(const EST_String name) const
void remove_relation(const EST_String &relname)
remove the relation called <parameter>n</parameter>.