 
 
	 
In file ../include/EST_SCFG.h:
| class EST_SCFG | 
A class representing a stochastic context free grammar (SCFG).
| ![[more]](icon1.gif)  | Constructor and initialisation functions 
 | ||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | utility functions 
 | ||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | file i/o functions 
 | 
A class representing a stochastic context free grammar (SCFG).This class includes the representation of the grammar itself and methods for training and testing it against some corpus.
At presnet of grammars in Chomsky Normal Form are supported. That is rules may be binary or unary. If binary the mother an two daughters are nonterminals, if unary the mother must be nonterminal and daughter a terminal symbol.
The terminals and nonterminals symbol sets are derived automatically from the LISP representation of the rules at initialization time and are represented as EST_Discretes. The distinguished symbol is assumed to be the first mother of the first rule in the given grammar.
 Constructor and initialisation functions
 Constructor and initialisation functions 
 EST_SCFG(LISP rules)
 EST_SCFG(LISP rules)
 utility functions
 utility functions 
 void set_rules(LISP rules)
void set_rules(LISP rules)
 LISP get_rules()
LISP get_rules()
 SCFGRuleList rules
SCFGRuleList rules
 void find_terms_nonterms(EST_StrList &nt, EST_StrList &t, LISP rules)
void find_terms_nonterms(EST_StrList &nt, EST_StrList &t, LISP rules)
 EST_String nonterminal(int p) const
EST_String nonterminal(int p) const 
 EST_String terminal(int m) const
EST_String terminal(int m) const 
 int nonterminal(const EST_String &p) const
int nonterminal(const EST_String &p) const 
 int terminal(const EST_String &m) const
int terminal(const EST_String &m) const 
 int num_nonterminals() const
int num_nonterminals() const 
 int num_terminals() const
int num_terminals() const 
 double prob_B(int p, int q, int r) const
double prob_B(int p, int q, int r) const 
 double prob_U(int p, int m) const
double prob_U(int p, int m) const 
 void set_rule_prob_cache()
void set_rule_prob_cache()
 file i/o functions
 file i/o functions 
Alphabetic index HTML hierarchy of classes or Java
 
This page is part of the 
Edinburgh Speech Tools Library documentation
Copyright  University of Edinburgh 1997
Contact:  
         speech_tools@cstr.ed.ac.uk