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