我已将 rasa 用于旧版本,我想为新版本(2.0 + )创建故事,但无法找到与我的场景相匹配的内容。
所以假设我有 nlu.yml:
version: "2.0"
nlu:
- intent: aboutAuthor
examples: |
- I want to know about author
- Can you tell me author of [lotr](book)
- Need to know writer of [harry pottar](book)
- Tell me name of writer
- Can I know about creator of [shall we tell](book)
现在在旧版本中,我们可以将故事创建为:
* aboutAuthor
- utter_ask_bookname
* aboutAuthor{"book":"lotr"}
- slot{"book":"lotr"}
- utter_book_info
* aboutAuthor{"book":"harry pottar"}
- slot{"book":"harry pottar"}
- utter_book_info
我尝试使用最新版本创建故事:
version: "2.0"
stories:
- story: without_book_name
steps:
- intent: aboutAuthor
- action: utter_ask_bookname
- story: with_book_name
steps:
- intent: aboutAuthor
entities:
- book : "lotr"
- slot_was_set:
- book: "lotr"
- action: utter_book_info
- story: with_book_name
steps:
- intent: aboutAuthor
entities:
- book : "harry pottar"
- slot_was_set:
- book: "harry pottar"
- action: utter_book_info
由于我找不到很多涉及 2.0+ 版本的示例,这种方法是否正确或者是否可以进行一些改进?