NGramInfo

Description

The command-line utility ngraminfo prints various information about an n-gram model obtained from the NGramModel class and the underlying FST class.

Usage

 ngraminfo [in.mod]
 

Examples

See here for an example use of the command-line utility. At the C++ level, it corresponds to:

 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();

and so forth.

-- MichaelRiley - 10 Dec 2011


This topic: GRM > WebHome > NGramLibrary > NGramQuickTour > NGramInfo
Topic revision: r3 - 2011-12-14 - MichaelRiley
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback