您的位置:首页 > 其它

LatticeRescorer API

2015-06-24 21:56 302 查看
<span style="font-size:24px;">public class LatticeRescorer
本类为对lattice使用一个新的语言模型进行重新打分。
本类的属性:
protected final Lattice lattice;
protected final LanguageModel model;
private int depth;
private float languageWeigth = 8.0f;
本类的构造方法:
public LatticeRescorer(Lattice lattice, LanguageModel model);给定属性参数创建创建一个lattice重打分器。
private void rescoreEdges() ;在本方法中使用了  float prob = model.getProbability(seq) * languageWeigth;即语言模型通过字序列来概率,来对所有的边进行重新打分。
protected List<String> allPathsTo(String path, Edge edge, int currentDepth);获得到此边的所有路径,返回的是一个字符串列表。currentDepth 来向后的深度。来控制字序列的长度。
public void rescore();对lattice进行重新打分即再次打分。</span>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sphinx 语音识别