From 2a406e8f870a0e64ffba081b73cfbe8e4d3f11c9 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Thu, 3 Feb 2022 01:05:02 +0530 Subject: [PATCH] migrate to rasa 3.x pretraining --- config.yml | 8 +++++--- data/nlu.yml | 4 +++- data/rules.yml | 5 +++++ data/stories.yml | 2 ++ domain.yml | 2 +- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/config.yml b/config.yml index b470b60..91f7489 100644 --- a/config.yml +++ b/config.yml @@ -1,3 +1,5 @@ +recipe: default.v1 + language: en pipeline: - name: WhitespaceTokenizer @@ -9,14 +11,14 @@ pipeline: min_ngram: 1 max_ngram: 4 - name: DIETClassifier - epochs: 100 + epochs: 10 - name: EntitySynonymMapper - name: ResponseSelector - epochs: 100 + epochs: 10 policies: - name: MemoizationPolicy - name: RulePolicy - name: TEDPolicy max_history: 5 - epochs: 100 \ No newline at end of file + epochs: 10 \ No newline at end of file diff --git a/data/nlu.yml b/data/nlu.yml index 787b015..87aa9e8 100644 --- a/data/nlu.yml +++ b/data/nlu.yml @@ -1,3 +1,5 @@ +version: "3.0" + nlu: - intent: greet examples: | @@ -15,7 +17,7 @@ nlu: - Can you sign me up for an account? - How do I sign up? -- intent: inform +- intent: inform_email examples: | - My email is example@example.com - random@example.com diff --git a/data/rules.yml b/data/rules.yml index ec47769..d130f3e 100644 --- a/data/rules.yml +++ b/data/rules.yml @@ -1,3 +1,8 @@ +version: "3.0" + +policies: +- name: RulePolicy + rules: - rule: activate signup form steps: diff --git a/data/stories.yml b/data/stories.yml index abf9396..0e3f0f8 100644 --- a/data/stories.yml +++ b/data/stories.yml @@ -1,3 +1,5 @@ +version: "3.0" + stories: - story: greet and signup steps: diff --git a/domain.yml b/domain.yml index 0ee3619..afc4c1e 100644 --- a/domain.yml +++ b/domain.yml @@ -1,4 +1,4 @@ -version: '2.0' +version: '3.0' session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true