Skip to content

FrankGrimm/node-germansentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-germansentiment

Usage

Please refer to example.js in the root folder

Options

options.wordlist: "sentiws" (default) or "bawlr"

options.datadirectory: Location of wordlist data files

options.storeinflections: false (default) sentiws only: Indicates whether inflections will be exported for token assessments (note: this largely increases memory requirements)

options.encoding: input file encoding (defaults to utf-8)

options.normalizetokens: true (default)/false - Use lowercase tokens in all cases (otherwise lookup will be case-sensitive

options.normalizescore: true (default)/false - Normalize scoring results to the interval [-1:1] (only applies if the wordlist doesn't already contain normalized values)

Test script

To run some tests on the included analysis, simply run:

npm run test-sentiws

To run all tests (including the BAWL-R wordlist), run:

npm test

Datasets

SentiWS

SentiWS is a german-language sentiment wordlist available at under a CC-BY-NC-SA 3.0 Unported license

R. Remus, U. Quasthoff & G. Heyer: SentiWS - a Publicly Available German-language Resource for Sentiment Analysis.
In: Proceedings of the 7th International Language Ressources and Evaluation (LREC'10), pp. 1168--1171, 2010

BAWL-R

BAWL-R is not available in this package, please see the license file for more information. After obtaining the rights to use this dataset, export the wordlist to bawlr.csv (using a semicolon as the delimiter) and adjust options.datadirectory accordingly.

About

german sentiment analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published