ai-center
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
UiPath logo, featuring letters U and I in white
AI Center
Automation CloudAutomation SuiteStandalone
Last updated 2024年11月19日

语义相似度

“开箱即用包”>“UiPath 语言分析”>“语义相似度”

备注:

语义相似度模型当前为公开预览版。

UiPath™致力于提高产品的稳定性和质量,但预览功能始终会根据我们从客户收到的反馈而随时更改。 不建议在生产部署中使用预览功能。

此模型允许您将单个参考句子与大量其他候选句子进行比较,并按相似度对这些候选句子进行排名。

模型详细信息

输入类型

JSON

输入说明

包含一个字符串(称为“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
    }
  ]
}

推荐 GPU

当每个参考的候选句子数量超过 100 时,建议使用 GPU。

已启用训练

未启用训练,您无需训练或重新训练此模型。 您可以根据需要部署模型。

  • 模型详细信息
  • 输入类型
  • 输入说明
  • 输出说明
  • 推荐 GPU
  • 已启用训练

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。