【问题标题】:how to match concept values in chatscript如何匹配聊天脚本中的概念值
【发布时间】:2019-10-27 21:03:54
【问题描述】:

如果我使用 ~concept,我怎么知道用户输入了什么? 这就像典型 NLP 框架中的实体。 例如

u: (I am from ~country )
  ^keep() ^repeat()
  you come from _0?

如果用户键入I am from FRANCE,似乎无法提取FRANCE 的值以供~country 回显给用户或稍后与$country=_0 一起使用它

我认为_0 可能会对此有所帮助,但没有工作

这可行,但不使用通配符的概念

u: (I was born [in near close by] _* )
  ^keep() ^repeat()
  you were born in _0?

参考文档 https://github.com/ChatScript/ChatScript/blob/master/WIKI/OVERVIEWS-AND-TUTORIALS/ChatScript-Tutorial.md#short-term-memory--_

【问题讨论】:

    标签: named-entity-extraction chatscript


    【解决方案1】:

    似乎_ 之前的~concept 将允许捕获:

    u: (I am from _~country )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多