All Projects → oliverguhr → german-sentiment-lib

oliverguhr / german-sentiment-lib

Licence: MIT license
An easy to use python package for deep learning-based german sentiment classification.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to german-sentiment-lib

german-sentiment
A data set and model for german sentiment classification.
Stars: ✭ 37 (+12.12%)
Mutual labels:  sentiment-analysis, sentiment-classification, bert-model
Tia
Your Advanced Twitter stalking tool
Stars: ✭ 98 (+196.97%)
Mutual labels:  sentiment-analysis, sentiment-classification
Senti4SD
An emotion-polarity classifier specifically trained on developers' communication channels
Stars: ✭ 41 (+24.24%)
Mutual labels:  sentiment-analysis, sentiment-classification
analyzing-reddit-sentiment-with-aws
Learn how to use Kinesis Firehose, AWS Glue, S3, and Amazon Athena by streaming and analyzing reddit comments in realtime. 100-200 level tutorial.
Stars: ✭ 40 (+21.21%)
Mutual labels:  sentiment-analysis, sentiment-classification
Twitter Sentiment Analysis
Sentiment analysis on tweets using Naive Bayes, SVM, CNN, LSTM, etc.
Stars: ✭ 978 (+2863.64%)
Mutual labels:  sentiment-analysis, sentiment-classification
Absa Pytorch
Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。
Stars: ✭ 1,181 (+3478.79%)
Mutual labels:  sentiment-analysis, sentiment-classification
Dan Jurafsky Chris Manning Nlp
My solution to the Natural Language Processing course made by Dan Jurafsky, Chris Manning in Winter 2012.
Stars: ✭ 124 (+275.76%)
Mutual labels:  sentiment-analysis, sentiment-classification
ML2017FALL
Machine Learning (EE 5184) in NTU
Stars: ✭ 66 (+100%)
Mutual labels:  sentiment-analysis, sentiment-classification
Multimodal Sentiment Analysis
Attention-based multimodal fusion for sentiment analysis
Stars: ✭ 172 (+421.21%)
Mutual labels:  sentiment-analysis, sentiment-classification
sentiment analysis dict
sentiment analysis、情感分析、文本分类、基于字典、python、classification
Stars: ✭ 111 (+236.36%)
Mutual labels:  sentiment-analysis, sentiment-classification
brand-sentiment-analysis
Scripts utilizing Heartex platform to build brand sentiment analysis from the news
Stars: ✭ 21 (-36.36%)
Mutual labels:  sentiment-analysis, sentiment-classification
Tensorflow Sentiment Analysis On Amazon Reviews Data
Implementing different RNN models (LSTM,GRU) & Convolution models (Conv1D, Conv2D) on a subset of Amazon Reviews data with TensorFlow on Python 3. A sentiment analysis project.
Stars: ✭ 34 (+3.03%)
Mutual labels:  sentiment-analysis, sentiment-classification
Awesome Sentiment Analysis
Repository with all what is necessary for sentiment analysis and related areas
Stars: ✭ 459 (+1290.91%)
Mutual labels:  sentiment-analysis, sentiment-classification
Senta
Baidu's open-source Sentiment Analysis System.
Stars: ✭ 1,187 (+3496.97%)
Mutual labels:  sentiment-analysis, sentiment-classification
hashformers
Hashformers is a framework for hashtag segmentation with transformers.
Stars: ✭ 18 (-45.45%)
Mutual labels:  sentiment-analysis, sentiment-classification
Context
ConText v4: Neural networks for text categorization
Stars: ✭ 120 (+263.64%)
Mutual labels:  sentiment-analysis, sentiment-classification
Sentiment-analysis-amazon-Products-Reviews
NLP with NLTK for Sentiment analysis amazon Products Reviews
Stars: ✭ 37 (+12.12%)
Mutual labels:  sentiment-analysis, sentiment-classification
wink-sentiment
Accurate and fast sentiment scoring of phrases with #hashtags, emoticons :) & emojis 🎉
Stars: ✭ 51 (+54.55%)
Mutual labels:  sentiment-analysis, sentiment-classification
billboard
🎤 Lyrics/associated NLP data for Billboard's Top 100, 1950-2015.
Stars: ✭ 53 (+60.61%)
Mutual labels:  sentiment-analysis, sentiment-classification
Absa keras
Keras Implementation of Aspect based Sentiment Analysis
Stars: ✭ 126 (+281.82%)
Mutual labels:  sentiment-analysis, sentiment-classification

Downloads

German Sentiment Classification with Bert

This package provides a very simple interface to detect the sentiment of German texts. It uses the Googles Bert architecture trained on 1.834 million samples. The training data contains texts from various domains like Twitter, Facebook and movie, app and hotel reviews. You can find more information about the dataset and the training process in the paper.

Install

To get started install the package from pypi:

pip install germansentiment

Usage

from germansentiment import SentimentModel

model = SentimentModel()

texts = [
    "Mit keinem guten Ergebniss","Das ist gar nicht mal so gut",
    "Total awesome!","nicht so schlecht wie erwartet",
    "Der Test verlief positiv.","Sie fährt ein grünes Auto."]
       
result = model.predict_sentiment(texts)
print(result)

The code above will output following list:

["negative","negative","positive","positive","neutral", "neutral"]

Output class probabilities

from germansentiment import SentimentModel

model = SentimentModel()

classes, probabilities = model.predict_sentiment(["das ist super"], output_probabilities = True) 
print(classes, probabilities)
['positive'] [[['positive', 0.9761366844177246], ['negative', 0.023540444672107697], ['neutral', 0.00032294404809363186]]]

Results

If you are interested in code and data that was used to train this model please have a look at this repository and our paper. Here is a table of the F1 scores that his model achieves on following datasets. Since we trained this model on a newer version of the transformer library, the results are slightly better than reported in the paper.

Dataset F1 micro Score
holidaycheck 0.9568
scare 0.9418
filmstarts 0.9021
germeval 0.7536
PotTS 0.6780
emotions 0.9649
sb10k 0.7376
Leipzig Wikipedia Corpus 2016 0.9967
all 0.9639

Cite

For feedback and questions contact me via e-mail or Twitter @oliverguhr. Please cite us if you found this useful:

@InProceedings{guhr-EtAl:2020:LREC,
  author    = {Guhr, Oliver  and  Schumann, Anne-Kathrin  and  Bahrmann, Frank  and  Böhme, Hans Joachim},
  title     = {Training a Broad-Coverage German Sentiment Classification Model for Dialog Systems},
  booktitle      = {Proceedings of The 12th Language Resources and Evaluation Conference},
  month          = {May},
  year           = {2020},
  address        = {Marseille, France},
  publisher      = {European Language Resources Association},
  pages     = {1620--1625},
  url       = {https://www.aclweb.org/anthology/2020.lrec-1.202.pdf}
}
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].