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

outdated example on Readme? #3

Closed
Zincr0 opened this issue Jun 2, 2021 · 4 comments
Closed

outdated example on Readme? #3

Zincr0 opened this issue Jun 2, 2021 · 4 comments

Comments

@Zincr0
Copy link

Zincr0 commented Jun 2, 2021

Following the example you will get

In [1]: from pysentimiento import SentimentAnalyzer

In [2]: analyzer = SentimentAnalyzer(lang="es")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-479bef79285e> in <module>
----> 1 analyzer = SentimentAnalyzer(lang="es")

TypeError: __init__() got an unexpected keyword argument 'lang'

Edit: looks like the pip version is different to the one on github

@finiteautomata
Copy link
Collaborator

finiteautomata commented Jun 2, 2021

Hum, have you installed 0.2.0? The lang argument was introduced in that version

Check out the Colab example

@Zincr0
Copy link
Author

Zincr0 commented Jun 2, 2021

for some reason pip installs an old version by default, ended up cloning this repo

@finiteautomata
Copy link
Collaborator

Strange. I just tested installing it on 3.8.5 and it correctly installs 0.2.0 version. Check you are not specifying a version and just use pip install pysentimiento

@finiteautomata
Copy link
Collaborator

Ok, I guess it was a confusion. Closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants