【发布时间】:2021-12-08 17:36:08
【问题描述】:
我正在使用IBM Speech to Text。结果还可以,但我想知道为什么它们没有首先按最高置信度排序。是否有返回此排序的参数,以便我可以选择第一个选项?最好只在还找到传递的关键字时才返回结果。
有一个 max_alternatives 参数默认为 1,但当明确指定此参数时,会返回多个替代选项。
我目前正在手动对响应进行排序,我不需要代码示例来完成此操作。
JSON 示例:
"result": {
"result_index": 0,
"results": [
{
"final": true,
"alternatives": [
{
"transcript": "l\u00f6schen es tut echte betroffen ",
"confidence": 0.71
}
],
"keywords_result": {}
},
{
"final": true,
"alternatives": [
{
"transcript": "sie sp\u00fcren dass eine \u00e4ra zu ende ",
"confidence": 0.91
}
],
"keywords_result": {}
},
{
"final": true,
"alternatives": [
{
"transcript": "auto fahre eins zwei drei vier ",
"confidence": 0.95
}
],
"keywords_result": {
"auto": [
{
"start_time": 6.31,
"end_time": 7.19,
"confidence": 0.99,
"normalized_text": "auto"
}
]
}
}
]
},
...
【问题讨论】:
标签: websphere speech-to-text ibm-speech-to-text