Giter Site home page Giter Site logo

afinn's People

Contributors

fnielsen avatar goker-dev avatar kupolak avatar moamenibrahim avatar mopinion avatar rahmanusta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

afinn's Issues

Character Limit

I've this huge string with tons of sentences and it returns "Neutral" for all of them, I assume it has some character limit, what is it? so that i can break my full string into smaller sentences to parse into Affin and get accurate score?

LICENSE

Hi,

The repo shows the LICENSE change from GPL to Apache-2.0 but not reflected in python library. Dies it still have GPL License?

Double language support

Would it be possible to expand to use double-languages - for example selecting danish and english, and then analysing sentiments from both lists?

Afinn on Turkish error

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')

New version of package

Hi!
Do you plan to release new version of package (which includes French and Swedish languages) for PyPI?

key error for Finnish

I install as suggested in your GitHub page (also tested on Google Colab) but there is a problem with the Finnish language

from afinn import Afinn
afinn = Afinn(language = 'fi')
afinn.score('Siellä on uusi hyvä juttu, katsokaa ja kuunnelkaa ihmeessä.')

Here is the results

KeyError Traceback (most recent call last)
Input In [11], in <cell line: 2>()
1 from afinn import Afinn
----> 2 afinn = Afinn(language = 'fi')
3 afinn.score('Siellä on uusi hyvä juttu, katsokaa ja kuunnelkaa ihmeessä.')

File ~/opt/anaconda3/lib/python3.9/site-packages/afinn/afinn.py:72, in Afinn.init(self, language, emoticons, word_boundary)
57 def init(self, language="en", emoticons=False, word_boundary=True):
58 """Setup dictionary from data file.
59
60 The language parameter can be set to English (en) or Danish (da).
(...)
70
71 """
---> 72 filename = LANGUAGE_TO_FILENAME[language]
73 full_filename = self.full_filename(filename)
74 if emoticons:
75 # Words

KeyError: 'fi'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.