Times on lattices

如果你明确地想要网格的时间信息(而不是要去数 transition-ids),有 LatticeStateTimes函数(for Lattice)和 CompactLatticeStateTimes函数(for CompactLattice),会给出你每个状态的时间位置(从0到文件的帧数)。要注意的是,一般来讲,词和 transition-ids是没有对齐的,意味着同一个 arc上的 transition-ids不一定都属于 arc上的词标签。也就是说你从网格得到的时间(仅考虑到词标签)是不准确的。对权重来说也是这样,它们并没有和 arc上的词或 transition-ids对齐。如果你想要精确的时间(e.g. 用于转换为 HTK网格,或 sclite scoring),你需要运行lattice-align-words。这个程序只有在你使用 word-position-dependent phones搭建系统时才能发挥作用,而且它需要有特定的命令行选项来告诉它音素在词中的位置。一个例子见 egs/wsj/s3/run.sh。如果你的系统没有 word-position-dependent phones,你可以用另一个程序lattice-align-words-lexicon。

results matching ""

    No results matching ""