Chinese-NLP-book / rasa_chinese_book_code

《Rasa实战:构建开源对话机器人》官方随书代码 | The official source code of Rasa in Action: Building Open Source Conversational AI
https://item.jd.com/13624358.html
330 stars 110 forks source link

第五章cities.yml问题 #5

Closed Kac001 closed 1 year ago

Kac001 commented 2 years ago

nlu:

Vinke2 commented 2 years ago

我好像也发现这个问题了

howl-anderson commented 1 year ago

Hi, Lookup table 的名字和 intent 和 entity 名字之间无需存在对应关系。

The name of a regex in this case is a human readable description. It can help you remember what a regex is used for, and it is the title of the corresponding pattern feature. It does not have to match any intent or entity name.

详见文档 https://rasa.com/docs/rasa/nlu-training-data#lookup-tableshttps://rasa.com/docs/rasa/nlu-training-data#regular-expressions-for-intent-classification

如果对相关机制的工作原理非常感兴趣的,可以阅读 Rasa 代码,可以更深入的理解 It only provides a feature that the intent classifier will use to learn patterns for intent classification.