Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future warnings have strange return statements in them #5385

Closed
akelad opened this issue Mar 6, 2020 · 3 comments · Fixed by #5861
Closed

Future warnings have strange return statements in them #5385

akelad opened this issue Mar 6, 2020 · 3 comments · Fixed by #5861
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR

Comments

@akelad
Copy link
Contributor

akelad commented Mar 6, 2020

/Users/akela/Documents/rasa-new/rasa/nlu/components.py:394: FutureWarning: 'EmbeddingIntentClassifier' is deprecated and will be removed in version 2.0. Use 'DIETClassifier' instead.
  return cls(component_config)
/Users/akela/Documents/rasa-new/rasa/core/policies/ensemble.py:310: FutureWarning: 'EmbeddingPolicy' is deprecated and will be removed in version 2.0. Use 'TEDPolicy' instead.
  policy_object = constr_func(**policy)

The last lines of both of those warnings shouldn't be there should they?

@akelad akelad added type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Mar 6, 2020
@Archish27
Copy link
Contributor

Archish27 commented May 20, 2020

@akelad setting from kwargs["stacklevel"] = 3 to kwargs["stacklevel"] = 2 in rasa/utils/common.py worked!
image
Should I raise PR for this ?

@Archish27
Copy link
Contributor

Please review - #5861

@AKaoutar
Copy link

I still have the same error, please can someone help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants