-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
DeprecationWarning: inspect.getargspec() is deprecated in phrases.py:317 #1878
Comments
Hello @Diyago, thanks for the report, this is an only warning, not an error, the model works fine. |
@menshikh-iv what is the expected behavior in python 2.7? I think we should still use correct me if I'm wrong |
@naveenkumarmarri for 2.7 |
@menshikh-iv This is what I get:
The chunkize part is fine. The file I'm running has the code provided by @Diyago |
@aneesh-joshi try to force warnings: |
@menshikh-iv However, it is only for python 3 and won't work for python 2. Is there any way to use different functions depending on the python version. Moreover, forcing warnings brings out some other deprecation warnings
Should I do anything about this? |
@aneesh-joshi yes, you can fix this if you use needed function (depends on python version) or probably About |
@menshikh-iv |
Description
I wanted to add bigrams/trigrams by using
Phrases()
but something went wrongSteps/Code/Corpus to Reproduce
Expected Results
Two get bigrams. I have got them, but I have confused by the errors/warnings below
Actual Results
Please paste or specifically describe the actual output or traceback. -->
Versions
The text was updated successfully, but these errors were encountered: