# Configuration for Rasa NLU.# https://rasa.com/docs/rasa/nlu/components/
language: zh
pipeline:# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.# # If you'd like to customize it, uncomment and adjust the pipeline.# # See https://rasa.com/docs/rasa/tuning-your-model for more information.- name: compoments.nlu.tokenizers.bert_tokenizer.CustomBertTokenizer
cache_dir:./tmp
model_weights: pre_models
- name: LanguageModelFeaturizer
cache_dir:./tmp
model_name: bert
model_weights: pre_models
- name: DIETClassifier
epochs:100- name: RegexEntityExtractor
- name: EntitySynonymMapper
- name: ResponseSelector
epochs:100
retrieval_intent: rasa_faq
- name: FallbackClassifier
threshold:0.3
ambiguity_threshold:0.1# Configuration for Rasa Core.# https://rasa.com/docs/rasa/core/policies/
policies:# # No configuration for policies was provided. The following default policies were used to train your model.# # If you'd like to customize them, uncomment and adjust the policies.# # See https://rasa.com/docs/rasa/policies for more information.- name: AugmentedMemoizationPolicy
- name: TEDPolicy
max_history:5
epochs:100- name: compoments.polices.ask_again_policy.AskAgainRulePolicy
core_fallback_threshold:0.5
ask_again_intent:"再问一次"
need_ask_again_intents:-"查询天气"
version:"2.0"
intents:- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
responses:
utter_greet:- text:"Hey! How are you?"
buttons:- title:"great"
payload:"/mood_great"- title:"super sad"
payload:"/mood_unhappy"
utter_cheer_up:- text:"Here is something to cheer you up:"
image:"https://i.imgur.com/nGF1K8f.jpg"
utter_did_that_help:- text:"Did that help you?"
utter_happy:- text:"Great, carry on!"
utter_goodbye:- text:"Bye"
utter_iamabot:- text:"I am a bot, powered by Rasa."
session_config:
session_expiration_time:60# value in minutes
carry_over_slots_to_new_session: true
version:"2.0"
actions:- utter_greet
- utter_suggest_cuisine
- utter_search_restaurants
intents:- greet
- affirm
- deny
- search_restaurant
responses:
utter_greet:- text:"hi!"
utter_suggest_cuisine:- text:"how about greek food?"- text:"how about chinese food?"- text:"how about italian food?"- text:"how about sushi?"
utter_search_restaurants:- text:"great! here's what I found ..."
version:"2.0"
nlu:- intent: greet
examples:|- 你好
- 嗨
- 您好
- 早上好
- 下午好
- 晚上好
- 早
- 冲
- intent: goodbye
examples:|- good afternoon
- cu
- good by
- cee you later
- good night
- bye
- goodbye
- have a nice day
- see you around
- bye bye
- see you later
- 明天见
- 下次再见
- 有缘再见
- 江湖再见