Skip to content

Commit

Permalink
Merge e6b8356 into e2c8233
Browse files Browse the repository at this point in the history
  • Loading branch information
goker-dev committed Dec 3, 2017
2 parents e2c8233 + e6b8356 commit 111a57e
Show file tree
Hide file tree
Showing 6 changed files with 3,432 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ target/
*.*~

# IPython Notebook checkpoints
notebooks/.ipynb_checkpoints/*
notebooks/.ipynb_checkpoints/*

#PyCharm
.idea/
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ In Swedish:
>>> afinn.score('det är inte bra')
-2.0

In Turkish:

>>> afinn = Afinn(language='tr')
>>> afinn.score(u('iyi de\u011Fil'))
-2.0

>>> afinn = Afinn(language='tr')
>>> afinn.score('iyi değil'.decoce('UTF-8'))
-2.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 @@ -16,6 +16,7 @@
'emoticons': 'AFINN-emoticon-8.txt',
'fr': 'AFINN-fr-165.txt',
'sv': 'AFINN-sv-165.txt',
'tr': 'AFINN-tr-165.txt',
}


Expand Down

0 comments on commit 111a57e

Please sign in to comment.