Simple german sentiment
Project description
GerSent
GerSent is a project that tries to make a relativ good sentiment of a german sentence. Our first approach will be simple techniques like wordlist or interpration to assess the given sentence.
Getting Started
First you have to install our package.
pip install gersent
Now you are able to run a simple sentiment analysis over a german sentence.
from gersent import GerSent
ger_senti = GerSent()
print(ger_senti.sentiment('Ich bin ein guter Satz.')
Configurations
Examples
Positiv
# Die Äpfel schmecken gut.
{'negative': 0.0, 'positive': 0.3716, 'composite': 0.3716}
# Die Äpfel schmecken gut!
{'negative': 0.0, 'positive': 0.39018, 'composite': 0.39018}
# Die Äpfel schmecken gut!!!
{'negative': 0.0, 'positive': 0.42733999999999994, 'composite': 0.42733999999999994}
# Die Äpfel schmecken sehr gut!
{'negative': 0.0, 'positive': 0.39018, 'composite': 0.39018}
Negativ
# Die Äpfel schmecken nicht gut.
{'negative': -0.0, 'positive': -0.3716, 'composite': -0.3716}
References
Wordlists
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), 2010
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gersent-0.0.6.tar.gz.
File metadata
- Download URL: gersent-0.0.6.tar.gz
- Upload date:
- Size: 103.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d287abbb054d047d683ed225a8e96c26d206004a8ce80c44f959c3ca7fb2a969
|
|
| MD5 |
6ec3095e9ba24bc3ac02655750a91765
|
|
| BLAKE2b-256 |
901672ddfe60191ee204ba33d9ad870b1b220a368593224315127a45fc5c6b71
|
File details
Details for the file gersent-0.0.6-py3-none-any.whl.
File metadata
- Download URL: gersent-0.0.6-py3-none-any.whl
- Upload date:
- Size: 111.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002cc032417d5838cbb528963185cd2038619a02a4142b6dd4e4a506133f99f1
|
|
| MD5 |
a2f297c9ab52294cb9abe4de42f10665
|
|
| BLAKE2b-256 |
8acdb866bb7446e0debb5fd597c52e19c9f0ae8429a9eb84ec4eae44af3ce446
|