TWiki
>
GRM Web
>
NGramLibrary
>
NGramQuickTour
>
NGramInfo
(revision 3) (raw view)
Edit
Attach
---+ NGramInfo ---++ Description The command-line utility =ngraminfo= prints various information about an n-gram model obtained from the [[NGramQuickTour#LibraryUse][NGramModel]] class and the underlying [[http://www.openfst.org/twiki/bin/view/FST/FstAdvancedUsage#Base_Fsts][FST]] class. ---++ Usage |<verbatim> ngraminfo [in.mod] </verbatim> | | ---++ Examples See [[NGramQuickTour#ModelIo][here]] for an example use of the command-line utility. At the C++ level, it corresponds to: <verbatim> cout << "# of states: " << model->GetFst()->NumStates(); cout << "unigram state: " << model->UnigramState(); cout << "n-gram order: " << model-<HiOrder(); cout << "well-formed: " << model->CheckTopology(); cout << "normalized: " << model->CheckNormalization(); </verbatim> and so forth. -- Main.MichaelRiley - 10 Dec 2011
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r3 - 2011-12-14
-
MichaelRiley
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