简单实体Simple entity

简单实体是描述单个概念的通用实体,通过机器学习上下文习得。A simple entity is a generic entity that describes a single concept and is learned from the machine-learning context. 由于简单实体采用概括性的名称,例如公司名称、产品名称或其他类别的名称,因此,在使用简单实体时,请添加一个短语列表,以提升所用名称的信号。Because simple entities are generally names such as company names, product names, or other categories of names, add a phrase list when using a simple entity to boost the signal of the names used.

在以下情况下,非常适合使用此实体:The entity is a good fit when:

  • 数据格式不一致,但指示相同的事物。The data aren't consistently formatted but indicate the same thing.

简单实体

示例 JSONExample JSON

Bob Jones wants 3 meatball pho

在之前的陈述中,Bob Jones 被标记为一个简单的 Customer 实体。In the previous utterance, Bob Jones is labeled as a simple Customer entity.

从终结点返回的数据包括实体名称、从陈述中发现的文本、所发现文本的位置,以及评分:The data returned from the endpoint includes the entity name, the discovered text from the utterance, the location of the discovered text, and the score:

"entities": [
  {
  "entity": "bob jones",
  "type": "Customer",
  "startIndex": 0,
  "endIndex": 8,
  "score": 0.473899543
  }
]
数据对象Data object 实体名称Entity name Value
简单实体Simple Entity Customer bob jones

后续步骤Next steps