ai-center
latest
false
- 发行说明
- 入门指南
- 通知
- 项目
- 数据集
- 数据标签
- ML 包
- 开箱即用包
- 管道
- ML 技能
- ML 日志
- AI Center 中的 Document Understanding™
- AI Center API
- 许可
- AI 解决方案模板
- 如何
- 基本故障排除指南
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
AI Center
Last updated 2024年11月19日
语义相似度
“开箱即用包”>“UiPath 语言分析”>“语义相似度”
备注:
语义相似度模型当前为公开预览版。
UiPath™致力于提高产品的稳定性和质量,但预览功能始终会根据我们从客户收到的反馈而随时更改。 不建议在生产部署中使用预览功能。
此模型允许您将单个参考句子与大量其他候选句子进行比较,并按相似度对这些候选句子进行排名。
包含一个字符串(称为“reference”)和一个字符串列表(称为“candidates”)的 JSON。 这意味着不接受多个引用“句子”。 “Candidates”是候选句子的列表。
{"reference": "I like trains because they are fast", "candidates": ["I like trains because they are quick", "I like trains because they are comfortable", "I do not like buses because they are slow", "I do not like trains because they are uncomfortable"]}
{"reference": "I like trains because they are fast", "candidates": ["I like trains because they are quick", "I like trains because they are comfortable", "I do not like buses because they are slow", "I do not like trains because they are uncomfortable"]}
JSON,包含参考候选者和最相似候选者,以及该相似性的相关分数(0-1 之间),按分数降序排列
示例:
{
"response": [
{
"candidate": "I like trains because they are quick",
"score": 0.96463942527771
},
{
"candidate": "I like trains because they are comfortable",
"score": 0.81790685653686523
},
{
"candidate": "I do not like trains because they are uncomfortable",
"score": 0.53707438707351685
},
{
"candidate": "I do not like buses because they are slow",
"score": 0.48663735389709473
}
]
}
{
"response": [
{
"candidate": "I like trains because they are quick",
"score": 0.96463942527771
},
{
"candidate": "I like trains because they are comfortable",
"score": 0.81790685653686523
},
{
"candidate": "I do not like trains because they are uncomfortable",
"score": 0.53707438707351685
},
{
"candidate": "I do not like buses because they are slow",
"score": 0.48663735389709473
}
]
}