1 generate
2
3GENERATE(1) General Commands Manual GENERATE(1)
4
5
6
8 generate
9 - random sentence generator from a grammar
10
12 generate [-v] [-t] [-n num] [-s spname] {prefix}
13
15 This small program randomly generates sentences that are acceptable by
16 the given grammar.
17
18 .dfa, .dict and .term files are needed to execute. They can be
19 generated from .grammar and .voca file by mkdfa.pl.
20
22 -t
23 Output in word's category name.
24
25 -n num
26 Set number of sentences to be generated (default: 10)
27
28 -s spname
29 the name string of short-pause word to be supressed (default: "sp")
30
31 -v
32 Debug output mode.
33
35 Exmple output of a sample grammar "fruit":
36
37 % generate fruit
38 Stat: init_voca: read 36 words
39 Reading in term file (optional)...done
40 15 categories, 36 words
41 DFA has 26 nodes and 42 arcs
42 -----
43 <s> I WANT ONE APPLE </s>
44 <s> I WANT TEN PEARS </s>
45 <s> CAN I HAVE A PINEAPPLE </s>
46 <s> I WANT ONE PEAR </s>
47 <s> COULD I HAVE A BANANA </s>
48 <s> I WANT ONE APPLE PLEASE </s>
49 <s> I WANT NINE APPLES </s>
50 <s> NINE APPLES </s>
51 <s> I WANT ONE PINEAPPLE </s>
52 <s> I WANT A PEAR </s>
53
54
56 mkdfa.pl ( 1 ) ,
57 generate-ngram ( 1 )
58
60 Copyright (c) 1991-2013 Kawahara Lab., Kyoto University
61
62 Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan
63
64 Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and
65 Technology
66
67 Copyright (c) 2005-2013 Julius project team, Nagoya Institute of
68 Technology
69
71 The same as Julius.
72
73
74
75 12/19/2013 GENERATE(1)