Pattern.any 实体Pattern.any entity

Patterns.any 是一种长度可变的占位符,仅在模式的模板话语中使用,用于标记实体的起始和结束位置。Pattern.any is a variable-length placeholder used only in a pattern's template utterance to mark where the entity begins and ends.

需要在“模式”模板示例而不是意向用户示例中标记 Pattern.any 实体。Pattern.any entities need to be marked in the Pattern template examples, not the intent user examples.

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

  • 实体的末尾可能与话语的其余文本相混淆。The ending of the entity can be confused with the remaining text of the utterance.

使用情况Usage

假设某个客户端应用程序需要基于标题搜索书籍,则 pattern.any 会提取完整的标题。Given a client application that searches for books based on title, the pattern.any extracts the complete title. 一个使用 pattern.any 进行这种书籍搜索的模板话语是 Was {BookTitle} written by an American this year[?]A template utterance using pattern.any for this book search is Was {BookTitle} written by an American this year[?].

在下表中,每行包含话语的两个版本。In the following table, each row has two versions of the utterance. 最上面的话语是 LUIS 最初看到的话语。The top utterance is how LUIS initially sees the utterance. 不清楚书名在哪里开始和在哪里结束。It isn't clear where the book title begins and ends. 最下面的话语使用 Pattern.any 实体来标记实体的开头和结尾。The bottom utterance uses a Pattern.any entity to mark the beginning and end of the entity.

以粗体显示带实体的话语Utterance with entity in bold
Was The Man Who Mistook His Wife for a Hat and Other Clinical Tales written by an American this year?

《错把太太当成帽子的男人与其他医疗故事》是某位美国人在今年撰写的吗? Was The Man Who Mistook His Wife for a Hat and Other Clinical Tales written by an American this year?
Was Half Asleep in Frog Pajamas written by an American this year?

《在宽大睡衣中半梦半睡》是某位美国人在今年撰写的吗? Was Half Asleep in Frog Pajamas written by an American this year?
Was The Particular Sadness of Lemon Cake: A Novel written by an American this year?

《小说:柠檬蛋糕的特种忧伤》 是某位美国人在今年撰写的吗?Was The Particular Sadness of Lemon Cake: A Novel written by an American this year?
Was There's A Wocket In My Pocket! written by an American this year?

《口袋里的毛怪!》 Was There's A Wocket In My Pocket! 是某位美国人在今年撰写的吗?written by an American this year?

示例 JSONExample JSON

请考虑下列查询:Consider the following query:

where is the form Understand your responsibilities as a member of the community and who needs to sign it after I read it?

将嵌入式窗体名称提取为 Pattern.any:With the embedded form name to extract as a Pattern.any:

Understand your responsibilities as a member of the community

"entities": [
  {
    "entity": "understand your responsibilities as a member of the community",
    "type": "FormName",
    "startIndex": 18,
    "endIndex": 78,
    "role": ""
  }