Edinburgh Speech Tools  2.4-release
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
scfg_make

Table of Contents

Make the rules for a stochastic context free grammar

Synopsis

scfg_make [options] [-nonterms string] [-terms string] [-domain string] [-values string] [-heap int] [-o ofile]

Builds a stochastic context free grammar from a vocabulary of non-terminal and terminal symbols. An exhaustive set of all possible binary rules are generated with random (or equal) probabilities (or negative log probabilities). This program is designed for making grammars that can be trained using scfg_train.

Options

  • -nonterms: string Number of nonterminals or file containing them
  • -terms: string Number of terminals or file containing them
  • -domain: string " {nlogp}" Values to be nlogp (negative log probabilities) or prob (probabilities)
  • -values: string " {equal}" General initial scores on rules as equal or random
  • -heap: int " {500000}" Set size of Lisp heap, only needed for large grammars
  • -o: ofile File to save grammar (default stdout)