快捷方式

torcheval.metrics.functional.word_information_lost

torcheval.metrics.functional.word_information_lost(input: str | List[str], target: str | List[str]) Tensor

单词信息丢失率是自动语音识别系统性能的一个指标。此值表示错误预测的字符百分比。该值越低,ASR 系统的性能越好,单词信息丢失率为 0 表示完美得分。

其类版本为 torcheval.metrics.WordInformationLost

参数:
  • input – 要评分的转录文本(字符串或字符串列表)

  • target – 每个语音输入的参考文本(字符串或字符串列表)

返回值:

单词信息丢失率

示例

>>> from torcheval.metrics.functional import word_information_lost
>>> input = ["this is the prediction", "there is an other sample"]
>>> target = ["this is the reference", "there is another one"]
>>> word_information_lost(input, target)
tensor(0.6528)

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

获取适合初学者和高级开发者的深度教程

查看教程

资源

查找开发资源并获得问题的解答

查看资源