Skip to content
Projects

Liebeck/spacy-sentiws has 38 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-14 19:29 UTC. Last push 2026-04-13.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

German sentiment scores with SentiWS as extension for spaCy

Developer Tools

README.md

Original

spacy-sentiws

license Build Status

This package uses the spaCy 3 extensions to add SentiWS as German sentiment score directly into your spaCy pipeline.

Usage

import spacy
from spacy_sentiws import spaCySentiWS

nlp = spacy.load('de_core_news_sm')
nlp.add_pipe('sentiws', config={'sentiws_path': 'data/sentiws/'})
doc = nlp('Die Dummheit der Unterwerfung blüht in hübschen Farben.')

for token in doc:
    print('{}, {}, {}'.format(token.text, token._.sentiws, token.pos_))

Installation

  1. Use pip to install spacy-sentiws
pip install spacy-sentiws
  1. Download the SentiWS http://pcai056.informatik.uni-leipzig.de/downloads/etc/SentiWS/SentiWS_v2.0.zip and unzip it. The directory data/sentiws will be used by default.

Local development

Use develop.py to extend the functionality

How to run the tests

python -m unittest

How to update pip package: https://widdowquinn.github.io/coding/update-pypi-package/

python setup.py sdist bdist_wheel 
twine upload dist/PACKAGENAME-VERSION.tar.gz

Contributors