39#ifndef __Utterance_H__
40#define __Utterance_H__
42#include "EST_String.h"
44#include "ling_class/EST_Relation.h"
45#include "ling_class/EST_Item.h"
46#include "EST_Features.h"
EST_Features f
Utterance level features.
EST_read_status load(const EST_String &filename)
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
EST_Item * id(const EST_String &n) const
return EST_Item whose id is <parameter>n</parameter>.
EST_write_status save(const EST_String &filename, const EST_String &type="est_ascii") const
EST_Utterance()
default constructor
int num_relations() const
number of relations in this utterance
EST_Features relations
The list of named relations.
void clear()
remove everything in utterance
EST_Relation * create_relation(const EST_String &relname)
create a new relation called <parameter>n</parameter>.
int next_id()
return the id of the next item
void init()
initialise 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>
void evaluate_all_features()
Evaluate all feature functions in utterance.
void remove_relation(const EST_String &relname)
remove the relation called <parameter>n</parameter>.