From ebd51b17ede578589218b7fc3f788854292f5092 Mon Sep 17 00:00:00 2001 From: kedz Date: Wed, 10 Nov 2021 17:04:43 -0500 Subject: [PATCH 1/9] Add migration guide pointers for removed policies, tokenizers, and featurizers. --- docs/docs/migration-guide.mdx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index 34d43d4fa263..5438c25d4682 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -99,7 +99,7 @@ class TrainingDataImporter: Due to changes in the model architecture the behavior of `rasa train --dry-run` changed. The exit codes now have the following meaning: -* `0 means that the model does not require an expensive retraining. However, the +* `0` means that the model does not require an expensive retraining. However, the responses might still require updating by running `rasa train` * `1` means that one or multiple components require to be retrained. * `8` means that the `--force` flag was used and hence any cached results are ignored @@ -126,6 +126,27 @@ confidences. This change can affect the maximum confidence predicted by the However, the previous behavior can still be enforced by setting `ranking_length=10` and `renormalize_confidences=True`. +#### Removed Policies + +Several dialogue policies that were deprecated in Rasa 2.x have been removed in Rasa 3.x. +If you are trying to migrate a config file with a removed policy, +consult the migration guides for the individual policies: + +- `FallbackPolicy` [migration guide](#manually-migrating-from-the-fallback-policy) +- `TwoStageFallbackPolicy` [migration guide](#manually-migrating-from-the-two-stage-fallback-policy) +- `MappingPolicy` [migration guide](#manually-migrating-from-the-mapping-policy) +- `FormPolicy` [migration guide](#forms) +- `SklearnPolicy` should be replaced with [TedPolicy](policies#ted-policy) + +#### Removed Tokenizers and Featurizers + +The `ConveRTTokenizer`, `LanguageModelTokenizer`, and `HFTransformersNLP` featurizer +components were deprecated in Rasa 2.x and have been removed in Rasa 3.x. See this +[migration guide](#deprecations-2) for replacing these components in your pipeline. + + + + ## Rasa 2.7 to 2.8 :::caution From f9a95461f4acee6cf313a701bcc28d65dbddbda8 Mon Sep 17 00:00:00 2001 From: kedz Date: Wed, 10 Nov 2021 17:18:09 -0500 Subject: [PATCH 2/9] Removed multiple blanklines. --- docs/docs/migration-guide.mdx | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index 5438c25d4682..19c728e36297 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -143,9 +143,6 @@ consult the migration guides for the individual policies: The `ConveRTTokenizer`, `LanguageModelTokenizer`, and `HFTransformersNLP` featurizer components were deprecated in Rasa 2.x and have been removed in Rasa 3.x. See this [migration guide](#deprecations-2) for replacing these components in your pipeline. - - - ## Rasa 2.7 to 2.8 From 161ce0dbb8eac76cd07e5499bf0e1402ee866eb0 Mon Sep 17 00:00:00 2001 From: kedz Date: Wed, 10 Nov 2021 17:33:03 -0500 Subject: [PATCH 3/9] Fix link. --- docs/docs/migration-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index 19c728e36297..86737c67c212 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -136,7 +136,7 @@ consult the migration guides for the individual policies: - `TwoStageFallbackPolicy` [migration guide](#manually-migrating-from-the-two-stage-fallback-policy) - `MappingPolicy` [migration guide](#manually-migrating-from-the-mapping-policy) - `FormPolicy` [migration guide](#forms) -- `SklearnPolicy` should be replaced with [TedPolicy](policies#ted-policy) +- `SklearnPolicy` should be replaced with [TedPolicy](/policies#ted-policy) #### Removed Tokenizers and Featurizers From 9dd75f62ffa200ab4201b47db5e21383fe679585 Mon Sep 17 00:00:00 2001 From: Chris Kedzie Date: Fri, 12 Nov 2021 11:00:46 -0500 Subject: [PATCH 4/9] Update docs/docs/migration-guide.mdx Co-authored-by: Melinda Loubser <32034278+melindaloubser1@users.noreply.github.com> --- docs/docs/migration-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index 86737c67c212..47921fb60dce 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -136,7 +136,7 @@ consult the migration guides for the individual policies: - `TwoStageFallbackPolicy` [migration guide](#manually-migrating-from-the-two-stage-fallback-policy) - `MappingPolicy` [migration guide](#manually-migrating-from-the-mapping-policy) - `FormPolicy` [migration guide](#forms) -- `SklearnPolicy` should be replaced with [TedPolicy](/policies#ted-policy) +- `SklearnPolicy` should be replaced with [TEDPolicy](/policies#ted-policy) #### Removed Tokenizers and Featurizers From 2933fe53c16cc07d497f6f97257d641302109292 Mon Sep 17 00:00:00 2001 From: Chris Kedzie Date: Fri, 12 Nov 2021 14:00:07 -0500 Subject: [PATCH 5/9] Update docs/docs/migration-guide.mdx Co-authored-by: Melinda Loubser <32034278+melindaloubser1@users.noreply.github.com> --- docs/docs/migration-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index c0d117b5fb4a..ae6647dfda71 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -1229,7 +1229,7 @@ However, the previous behavior can still be enforced by setting Several dialogue policies that were deprecated in Rasa 2.x have been removed in Rasa 3.x. If you are trying to migrate a config file with a removed policy, -consult the migration guides for the individual policies: +consult the following migration guides for the individual policies: - `FallbackPolicy` [migration guide](#manually-migrating-from-the-fallback-policy) - `TwoStageFallbackPolicy` [migration guide](#manually-migrating-from-the-two-stage-fallback-policy) From a3d1cf339f349f2ba24ea5826fcb2e5ab1151ab5 Mon Sep 17 00:00:00 2001 From: Chris Kedzie Date: Fri, 12 Nov 2021 14:00:15 -0500 Subject: [PATCH 6/9] Update docs/docs/migration-guide.mdx Co-authored-by: Melinda Loubser <32034278+melindaloubser1@users.noreply.github.com> --- docs/docs/migration-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index ae6647dfda71..19e044e2f8d7 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -1228,7 +1228,7 @@ However, the previous behavior can still be enforced by setting #### Removed Policies Several dialogue policies that were deprecated in Rasa 2.x have been removed in Rasa 3.x. -If you are trying to migrate a config file with a removed policy, +If you are migrating a config file with a removed policy, consult the following migration guides for the individual policies: - `FallbackPolicy` [migration guide](#manually-migrating-from-the-fallback-policy) From ec7c23c8e353ba3a1ce575b286a7e6dd31ea063d Mon Sep 17 00:00:00 2001 From: Chris Kedzie Date: Fri, 12 Nov 2021 14:01:11 -0500 Subject: [PATCH 7/9] Update docs/docs/migration-guide.mdx Co-authored-by: Melinda Loubser <32034278+melindaloubser1@users.noreply.github.com> --- docs/docs/migration-guide.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index 19e044e2f8d7..9226166e9eec 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -1240,8 +1240,8 @@ consult the following migration guides for the individual policies: #### Removed Tokenizers and Featurizers The `ConveRTTokenizer`, `LanguageModelTokenizer`, and `HFTransformersNLP` featurizer -components were deprecated in Rasa 2.x and have been removed in Rasa 3.x. See this -[migration guide](#deprecations-2) for replacing these components in your pipeline. +components were deprecated in Rasa 2.x and have been removed in Rasa 3.x. See the +[migration guide for Rasa 2.x](#deprecations-2) for replacing these components in your pipeline. ## Rasa 2.7 to 2.8 From 4e4fad2748f80faa4cf49745da4c2b4cf3d9aae0 Mon Sep 17 00:00:00 2001 From: kedz Date: Mon, 15 Nov 2021 11:21:07 -0500 Subject: [PATCH 8/9] Added 'featurize' to the typo-ci config. --- .typo-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.typo-ci.yml b/.typo-ci.yml index c4c0c8135921..3b371da4df65 100644 --- a/.typo-ci.yml +++ b/.typo-ci.yml @@ -86,6 +86,7 @@ excluded_words: - extractor - fbmessenger - featurization + - featurize - featurized - featurizer - featurizers From 16e355bd5d51e8ac035edb791e213443969744e3 Mon Sep 17 00:00:00 2001 From: kedz Date: Mon, 15 Nov 2021 20:47:49 -0500 Subject: [PATCH 9/9] Added reference to default config. Changed instances of 'Rasa 3.x' to 'Rasa 3.0' to match the rest of docs. --- docs/docs/migration-guide.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index 9226166e9eec..187ed384f2f1 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -1227,7 +1227,7 @@ However, the previous behavior can still be enforced by setting #### Removed Policies -Several dialogue policies that were deprecated in Rasa 2.x have been removed in Rasa 3.x. +Several dialogue policies that were deprecated in Rasa 2.x have been removed in Rasa 3.0. If you are migrating a config file with a removed policy, consult the following migration guides for the individual policies: @@ -1235,12 +1235,13 @@ consult the following migration guides for the individual policies: - `TwoStageFallbackPolicy` [migration guide](#manually-migrating-from-the-two-stage-fallback-policy) - `MappingPolicy` [migration guide](#manually-migrating-from-the-mapping-policy) - `FormPolicy` [migration guide](#forms) -- `SklearnPolicy` should be replaced with [TEDPolicy](/policies#ted-policy) +- `SklearnPolicy` should be replaced with [TEDPolicy](/policies#ted-policy). + It is recommended to use the [default TEDPolicy config](/model-configuration#suggested-config) as a starting point. #### Removed Tokenizers and Featurizers The `ConveRTTokenizer`, `LanguageModelTokenizer`, and `HFTransformersNLP` featurizer -components were deprecated in Rasa 2.x and have been removed in Rasa 3.x. See the +components were deprecated in Rasa 2.x and have been removed in Rasa 3.0. See the [migration guide for Rasa 2.x](#deprecations-2) for replacing these components in your pipeline. ## Rasa 2.7 to 2.8