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

Afinn on Turkish error #37

Open
dwicak opened this issue Jun 6, 2022 · 0 comments
Open

Afinn on Turkish error #37

dwicak opened this issue Jun 6, 2022 · 0 comments

Comments

@dwicak
Copy link

dwicak commented Jun 6, 2022

Installing afinn using pip3 and run my code. And got this error:

Traceback (most recent call last):
  File "afinnsentturkish.py", line 6, in <module>
    afn = Afinn(language='tr')
  File "/Users/darmawan/Library/Python/3.8/lib/python/site-packages/afinn/afinn.py", line 72, in __init__
    filename = LANGUAGE_TO_FILENAME[language]
KeyError: 'tr'

In code I'm using this:

#instantiate afinn
afn = Afinn(language='tr')
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

1 participant