【发布时间】:2019-12-29 20:05:08
【问题描述】:
当用户询问 out_of_scope 问题,其中包含一些用于定义意图的关键字(帮助构建句子的词),然后它选择定义的意图(我没有使用任何实体方法)。
config.yml
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline: supervised_embeddings
# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
- name: MemoizationPolicy
max_history: 5
- name: KerasPolicy
epochs: 400
batch_size: 100
validation_split: 0.2
max_history: 5
- name: MappingPolicy
- name: "FallbackPolicy"
nlu_threshold: 0.7
core_threshold: 0.5
fallback_action_name: "action_default_fallback"
以下是我的意图
intent: ask_faq_how_many _vegetarian_restaurants_are_there_nearby
- how many vegetarian restaurants are there nearby
- vegetarian restaurants near by
- please tell me how many vegetarian restaurants are there
如果用户问:
- “我有什么素食选择”?
- “你喜欢吃素食吗”?
- “素食”
然后 nlu 选择 ask_faq_how_many _vegetarian_restaurants_are_there_nearby 作为意图。
以上 3 个问题与任何意图无关,用户可以使用上述关键字进行许多其他闲聊,并且训练所有关键字可能需要很长时间。 有什么方法可以告诉 nlu 不要仅仅根据几个关键字来选择意图?
【问题讨论】: