Skip to content

Commit 9fc6f98

Browse files
authored
Merge pull request RasaHQ#5349 from RasaHQ/deprecation
Remove deprecation warnings
2 parents 012e6d0 + ae9a5af commit 9fc6f98

File tree

4 files changed

+1
-21
lines changed

4 files changed

+1
-21
lines changed

changelog/5348.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove deprecation warnings for ``CRFEntityExtractor`` and ``SklearnIntentClassifier``.

docs/nlu/components.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -676,10 +676,6 @@ MitieIntentClassifier
676676
SklearnIntentClassifier
677677
~~~~~~~~~~~~~~~~~~~~~~~
678678

679-
.. warning::
680-
``SklearnIntentClassifier`` is deprecated and should be replaced by ``DIETClassifier``. See
681-
:ref:`migration guide <migration-to-rasa-1.8>` for more details.
682-
683679
:Short: Sklearn intent classifier
684680
:Outputs: ``intent`` and ``intent_ranking``
685681
:Requires: ``dense_features`` for user messages
@@ -1267,10 +1263,6 @@ CRFEntityExtractor
12671263
.. note::
12681264
If "pattern" features are used, you need to have ``RegexFeaturizer`` in your pipeline.
12691265

1270-
.. warning::
1271-
``CRFEntityExtractor`` is deprecated and should be replaced by ``DIETClassifier``. See
1272-
:ref:`migration guide <migration-to-rasa-1.8>` for more details.
1273-
12741266
:Configuration:
12751267
``CRFEntityExtractor`` has a list of default features to use.
12761268
However, you can overwrite the default configuration.

rasa/nlu/classifiers/sklearn_intent_classifier.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ def __init__(
6565
self.le = LabelEncoder()
6666
self.clf = clf
6767

68-
common_utils.raise_warning(
69-
"'SklearnIntentClassifier' is deprecated and will be removed in version "
70-
"2.0. Use 'DIETClassifier' instead.",
71-
category=FutureWarning,
72-
docs=DOCS_URL_MIGRATION_GUIDE,
73-
)
74-
7568
@classmethod
7669
def required_packages(cls) -> List[Text]:
7770
return ["sklearn"]

rasa/nlu/extractors/crf_entity_extractor.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ def __init__(
114114

115115
self._validate_configuration()
116116

117-
common_utils.raise_warning(
118-
"'CRFEntityExtractor' is deprecated and will be removed in version "
119-
"2.0. Use 'DIETClassifier' instead.",
120-
docs=DOCS_URL_MIGRATION_GUIDE,
121-
)
122-
123117
def _validate_configuration(self) -> None:
124118
if len(self.component_config.get("features", [])) % 2 != 1:
125119
raise ValueError(

0 commit comments

Comments
 (0)