Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让 Sphinx4 具有确定性。每次我在单元测试中提供相同的输入文件时,我都希望它能够识别相同的单词(具有相同的时间戳)。我尝试过查看源代码并修复对 的所有调用new Random(),但这似乎还不够。我错过了什么?还有哪些其他随机性来源?
new Random()
我与 Sphinx 开发人员进行了交谈。一方面,使用 SimpleAcousticScorer 而不是 ThreadedAcousticScorer 很重要。也可能是 SimpleActiveListFactory 而不是 PartitionActiveListFactory。但即使这样也不够。简而言之,我们无法弄清楚。但如果我取得进展,我会在这里发帖。