Skip to content

Commit

Permalink
Merge 2ed4444 into 07657a2
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaguero committed Jul 17, 2019
2 parents 07657a2 + 2ed4444 commit e1828e1
Show file tree
Hide file tree
Showing 4 changed files with 2,497 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ In Swedish:
>>> afinn.score('det är inte bra')
-2.0

In French:

>>> afinn = Afinn(language='fr')
>>> afinn.score('Vive la France')
3.0

In Spanish (source: https://raw.githubusercontent.com/jboscomendoza/rpubs/master/sentimientos_afinn/lexico_afinn.en.es.csv):

>>> afinn = Afinn(language='es')
>>> afinn.score('Esto es absolutamente excelente')
3.0

With emoticons:

>>> afinn = Afinn(emoticons=True)
Expand Down
1 change: 1 addition & 0 deletions afinn/afinn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'en': 'AFINN-en-165.txt',
'emoticons': 'AFINN-emoticon-8.txt',
'fr': 'AFINN-fr-165.txt',
'es': 'AFINN-es-tidytext.txt',
'sv': 'AFINN-sv-165.txt',
}

Expand Down

0 comments on commit e1828e1

Please sign in to comment.