public class LatticeRescorer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Lattice |
lattice |
protected LanguageModel |
model |
Constructor and Description |
---|
LatticeRescorer(Lattice lattice,
LanguageModel model)
Create a new Lattice optimizer
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
allPathsTo(java.lang.String path,
Edge edge,
int currentDepth) |
void |
rescore() |
protected final Lattice lattice
protected final LanguageModel model
public LatticeRescorer(Lattice lattice, LanguageModel model)
lattice
- lattice to rescoremodel
- language model to rescoreprotected java.util.List<java.lang.String> allPathsTo(java.lang.String path, Edge edge, int currentDepth)
public void rescore()