NGramApply

Description

This utility intersects an n-gram model with each FST in an input FST archive. It produces an output FST archive that contains each FST after intersection. The option --bo_arc_type specifies how to handle backoff arcs, either using a phi matcher (failure transitions), treating the backoff as an epsilon, or using a lexicographic semiring with epsilon.

Usage

ngramapply [--options] ngram.fst [in.far [out.far]]
  --bo_arc_type: type = string, one of: phi (default) | epsilon | lexicographic 
 

Examples

$ ngramapply earnest.mod earnest.far >earnest.scored.far

Caveats

References

Topic revision: r4 - 2012-02-22 - BrianRoark
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback