Universe

spacy-sentiws

German sentiment scores with SentiWS

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

Example

import spacy from spacy_sentiws import spaCySentiWS nlp = spacy.load('de') sentiws = spaCySentiWS(sentiws_path='data/sentiws/') nlp.add_pipe(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_))
Author info

Matthias Liebeck

GitHubLiebeck/spacy-sentiws

Categories pipeline

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source