---+ 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.
This topic: GRM
>
WebHome
>
NGramLibrary
>
NGramQuickTour
>
NGramInfo
Topic revision: r4 - 2012-03-04 - BrianRoark
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