generate
GENERATE(1) GENERATE(1)
NAME
generate
- random sentence generator from a grammar
SYNOPSIS
generate [-v] [-t] [-n num] [-s spname] {prefix}
DESCRIPTION
This small program randomly generates sentences that are acceptable by
the given grammar.
.dfa, .dict and .term files are needed to execute. They can be
generated from .grammar and .voca file by mkdfa.pl.
OPTIONS
-t
Output in word's category name.
-n num
Set number of sentences to be generated (default: 10)
-s spname
the name string of short-pause word to be supressed (default: "sp")
-v
Debug output mode.
EXAMPLES
Exmple output of a sample grammar "fruit":
% generate fruit
Stat: init_voca: read 36 words
Reading in term file (optional)...done
15 categories, 36 words
DFA has 26 nodes and 42 arcs
-----
I WANT ONE APPLE
I WANT TEN PEARS
CAN I HAVE A PINEAPPLE
I WANT ONE PEAR
COULD I HAVE A BANANA
I WANT ONE APPLE PLEASE
I WANT NINE APPLES
NINE APPLES
I WANT ONE PINEAPPLE
I WANT A PEAR
SEE ALSO
mkdfa.pl ( 1 ) ,
generate-ngram ( 1 )
COPYRIGHT
Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan
Copyright (c) 1991-2008 Kawahara Lab., Kyoto University
Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and
Technology
Copyright (c) 2005-2008 Julius project team, Nagoya Institute of
Technology
LICENSE
The same as Julius.
10/02/2008 GENERATE(1)