39 #ifndef __Utterance_H__ 40 #define __Utterance_H__ int utterance_merge(EST_Utterance &utt, EST_Utterance &sub_utt, EST_Item *utt_root, EST_Item *sub_root)
EST_Utterance(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)
EST_Utterance & operator=(const EST_Utterance &s)
void clear()
remove everything in utterance
EST_Relation * create_relation(const EST_String &relname)
create a new relation called n.
EST_Features f
Utterance level features.
void evaluate_all_features()
Evaluate all feature functions in utterance.
EST_Relation * operator()(const EST_String &name)
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 n.
EST_FMatrix sub(const EST_FMatrix &a, ssize_t row, ssize_t col)
void set_highest_id(int n)
set the next id to be n
void utt_2_flat_repr(const EST_Utterance &utt, EST_String &flat_repr)
void init()
initialise utterance
void sub_utterance(EST_Item *i)
int num_relations() const
number of relations in this utterance
int next_id()
return the id of the next item
friend ostream & operator<<(ostream &s, const EST_Utterance &u)
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 n.