.\" Title:
generate
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.71.0
.\" Date: 10/02/2008
.\" Manual:
.\" Source:
.\"
.TH "GENERATE" "1" "10/02/2008" "" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
generate
\- random sentence generator from a grammar
.SH "SYNOPSIS"
.HP 9
\fBgenerate\fR [\-v] [\-t] [\-n\ \fInum\fR] [\-s\ \fIspname\fR] {prefix}
.SH "DESCRIPTION"
.PP
This small program randomly generates sentences that are acceptable by the given grammar.
.PP
\fI.dfa\fR,
\fI.dict\fR
and
\fI.term\fR
files are needed to execute. They can be generated from
\fI.grammar\fR
and
\fI.voca\fR
file by
\fBmkdfa.pl\fR.
.SH "OPTIONS"
.PP
\fB \-t \fR
.RS 3n
Output in word's category name.
.RE
.PP
\fB \-n \fR \fInum\fR
.RS 3n
Set number of sentences to be generated (default: 10)
.RE
.PP
\fB \-s \fR \fIspname\fR
.RS 3n
the name string of short\-pause word to be supressed (default: "sp")
.RE
.PP
\fB \-v \fR
.RS 3n
Debug output mode.
.RE
.SH "EXAMPLES"
.PP
Exmple output of a sample grammar "fruit":
.sp
.RS 3n
.nf
% \fBgenerate\fR 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
.fi
.RE
.sp
.SH "SEE ALSO"
.PP
\fB mkdfa.pl \fR( 1 )
,
\fB generate\-ngram \fR( 1 )
.SH "COPYRIGHT"
.PP
Copyright (c) 1997\-2000 Information\-technology Promotion Agency, Japan
.PP
Copyright (c) 1991\-2008 Kawahara Lab., Kyoto University
.PP
Copyright (c) 2000\-2005 Shikano Lab., Nara Institute of Science and Technology
.PP
Copyright (c) 2005\-2008 Julius project team, Nagoya Institute of Technology
.SH "LICENSE"
.PP
The same as Julius.