All Projects → fnielsen → Afinn

fnielsen / Afinn

Licence: other
AFINN sentiment analysis in Python

Projects that are alternatives of or similar to Afinn

Hey Jetson
Deep Learning based Automatic Speech Recognition with attention for the Nvidia Jetson.
Stars: ✭ 161 (-54.78%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Pytorch Sentiment Analysis
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
Stars: ✭ 3,209 (+801.4%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Weibospider sentimentanalysis
借助Python抓取微博数据,并对抓取的数据进行情绪分析
Stars: ✭ 173 (-51.4%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Tia
Your Advanced Twitter stalking tool
Stars: ✭ 98 (-72.47%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Stock Analysis
Regression, Scrapers, and Visualization
Stars: ✭ 255 (-28.37%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Ajax Movie Recommendation System With Sentiment Analysis
Content-Based Recommender System recommends movies similar to the movie user likes and analyses the sentiments on the reviews given by the user for that movie.
Stars: ✭ 127 (-64.33%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Malaya
Natural Language Toolkit for bahasa Malaysia, https://malaya.readthedocs.io/
Stars: ✭ 239 (-32.87%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Machine Learning From Scratch
Succinct Machine Learning algorithm implementations from scratch in Python, solving real-world problems (Notebooks and Book). Examples of Logistic Regression, Linear Regression, Decision Trees, K-means clustering, Sentiment Analysis, Recommender Systems, Neural Networks and Reinforcement Learning.
Stars: ✭ 42 (-88.2%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Python Ecology Lesson
Data Analysis and Visualization in Python for Ecologists
Stars: ✭ 116 (-67.42%)
Mutual labels:  english, jupyter-notebook
Sentiment Analyser
ML that can extract german and english sentiment
Stars: ✭ 35 (-90.17%)
Mutual labels:  english, sentiment-analysis
Turkish Bert Nlp Pipeline
Bert-base NLP pipeline for Turkish, Ner, Sentiment Analysis, Question Answering etc.
Stars: ✭ 85 (-76.12%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Bertweet
BERTweet: A pre-trained language model for English Tweets (EMNLP-2020)
Stars: ✭ 282 (-20.79%)
Mutual labels:  english, sentiment-analysis
Text Analytics With Python
Learn how to process, classify, cluster, summarize, understand syntax, semantics and sentiment of text data with the power of Python! This repository contains code and datasets used in my book, "Text Analytics with Python" published by Apress/Springer.
Stars: ✭ 1,132 (+217.98%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Amazon Product Recommender System
Sentiment analysis on Amazon Review Dataset available at http://snap.stanford.edu/data/web-Amazon.html
Stars: ✭ 158 (-55.62%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Sentiment Analysis Nltk Ml Lstm
Sentiment Analysis on the First Republic Party debate in 2016 based on Python,NLTK and ML.
Stars: ✭ 61 (-82.87%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Tutorials
AI-related tutorials. Access any of them for free → https://towardsai.net/editorial
Stars: ✭ 204 (-42.7%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Lstm Sentiment Analysis
Sentiment Analysis with LSTMs in Tensorflow
Stars: ✭ 886 (+148.88%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Neural Networks
All about Neural Networks!
Stars: ✭ 34 (-90.45%)
Mutual labels:  jupyter-notebook, sentiment-analysis
Silero Models
Silero Models: pre-trained STT models and benchmarks made embarrassingly simple
Stars: ✭ 522 (+46.63%)
Mutual labels:  english, jupyter-notebook
Introduction Datascience Python Book
Introduction to Data Science: A Python Approach to Concepts, Techniques and Applications
Stars: ✭ 275 (-22.75%)
Mutual labels:  jupyter-notebook, sentiment-analysis

afinn

AFINN sentiment analysis in Python: Wordlist-based approach for sentiment analysis.

Examples

>>> from afinn import Afinn
>>> afinn = Afinn()
>>> afinn.score('This is utterly excellent!')
3.0

In Danish:

>>> afinn = Afinn(language='da')
>>> afinn.score('Hvis ikke det er det mest afskyelige flueknepperi...')
-6.0

In Swedish:

>>> afinn = Afinn(language='sv')
>>> afinn.score('det är inte bra')
-2.0

With emoticons:

>>> afinn = Afinn(emoticons=True)
>>> afinn.score('I saw that yesterday :)')
2.0

With multiple sentences (here with data from an Austen novel available in Gutenberg):

>>> from afinn import Afinn
>>> from nltk.corpus import gutenberg
>>> import textwrap
>>> afinn = Afinn()
>>> sentences = (" ".join(wordlist) for wordlist in gutenberg.sents('austen-sense.txt'))
>>> scored_sentences = ((afinn.score(sent), sent) for sent in sentences)
>>> sorted_sentences = sorted(scored_sentences)
>>> print("\n".join(textwrap.wrap(sorted_sentences[0][1], 70)))
To attach myself to your sister , therefore , was not a thing to be
thought of ;-- and with a meanness , selfishness , cruelty -- which no
indignant , no contemptuous look , even of yours , Miss Dashwood , can
ever reprobate too much -- I was acting in this manner , trying to
engage her regard , without a thought of returning it .-- But one
thing may be said for me : even in that horrid state of selfish vanity
, I did not know the extent of the injury I meditated , because I did
not THEN know what it was to love .

Citation

If you as a scientist use the wordlist or the code please cite this one:

  • Finn Årup Nielsen, "A new ANEW: evaluation of a word list for sentiment analysis in microblogs", Proceedings of the ESWC2011 Workshop on 'Making Sense of Microposts': Big things come in small packages. Volume 718 in CEUR Workshop Proceedings: 93-98. 2011 May. Matthew Rowe, Milan Stankovic, Aba-Sah Dadzie, Mariann Hardey (editors)

Paper with supplement: http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6006/pdf/imm6006.pdf

See also

Travis et al.

.. image:: https://travis-ci.org/fnielsen/afinn.svg?branch=master :target: https://travis-ci.org/fnielsen/afinn

.. image:: https://coveralls.io/repos/fnielsen/afinn/badge.svg?branch=master :target: https://coveralls.io/github/fnielsen/afinn?branch=master

.. image:: https://www.quantifiedcode.com/api/v1/project/0bcc1cd5b8f54a0fbd2f2e6f226cfa4f/badge.svg :target: https://www.quantifiedcode.com/app/project/0bcc1cd5b8f54a0fbd2f2e6f226cfa4f :alt: Code issues

.. image:: https://img.shields.io/pypi/dm/afinn.svg?style=flat :target: https://pypi.python.org/pypi/afinn :alt: Downloads

.. image:: https://www.openhub.net/p/afinn/widgets/project_thin_badge.gif :target: https://www.openhub.net/p/afinn :alt: Open Hub

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].