TWiki
>
GRM Web
>
NGramLibrary
>
NGramQuickTour
>
NGramRandGen
(2012-02-23,
BrianRoark
)
(raw view)
E
dit
A
ttach
---+ NGramRandGen ---++ Description This operation randomly generates a set of successful sentences in the input FST and outputs them in finite-state archive format. Backoff transitions, represented as epsilon transitions, are correctly interpreted as failure transitions, which distinguishes this operation from !OpenFst [[http://www.openfst.org/twiki/bin/edit/FST/RandGenDoc][RandGen]] (with the =LogProbArcSelector=). The (maximum) number of sentences generated, their maximum length, and the random seed can all be specified as options. ---++ Usage | <verbatim> ngramrandgen [--opts] [[in.fst [out.far]] --max_sents: type = int64, default = 1 --max_length: type = int, default = INT_MAX --seed: type = int, default = time() </verbatim> || ---++ Examples <verbatim> $ ngramrandgen in.mod >out.far </verbatim> ---++ Caveats ---++ References
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r5 - 2012-02-23
-
BrianRoark
GRM
Log In
or
Register
GRM Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
Contrib
FST
Forum
GRM
Kernel
Main
Sandbox
TWiki
Main
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback