【问题标题】:Why AIML is considered as a pattern matching? Not a string matching?为什么将 AIML 视为模式匹配?不是字符串匹配?
【发布时间】:2019-12-03 09:57:02
【问题描述】:

AIML 并不真正关心主语、谓语或宾语,它关心的是我们定义的作为聊天机器人回答的响应,感觉像字符串匹配吗?为什么我们称其为 AIML 模式匹配?

【问题讨论】:

    标签: pattern-matching chatbot string-matching aiml


    【解决方案1】:

    因为它匹配模式而不是字符串。假设您有一个具有以下模式的类别:

    <pattern>WHAT IS *</pattern>
    

    有人问“你叫什么名字”。如果机器人搜索此字符串,我们将找不到任何内容,因此机器人会搜索与用户输入匹配的模式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-22
      • 1970-01-01
      • 2013-07-11
      • 2010-10-18
      • 1970-01-01
      • 2011-08-09
      相关资源
      最近更新 更多