我是新来的智慧ai并开始在我的代码中实现它。我在考虑一种比硬编码更简单的方法,从给定的数据中提取所有的置信度智慧aiAPI输出。你知道吗
例如(API输出):
{
"_text": "I believe I am a human",
"entities": {
"statement": [
{
"confidence": 0.97691847787856,
"value": "I",
"type": "value"
},
{
"confidence": 0.91728476663947,
"value": "I",
"type": "value"
}
],
"query": [
{
"confidence": 1,
"value": "am",
"type": "value"
}
]
},
"msg_id": "0YKCUvDvHC2gyydiU"
}
先谢谢你。你知道吗
您可以迭代
entities
以获得confidence
。你知道吗比如:
这给了我们:
希望这有帮助
相关问题 更多 >
编程相关推荐