stimmung 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/lib/stimmung.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cabcb933856e7bbdf3aa844be363c1ce1eb3d341
|
4
|
+
data.tar.gz: 7d2dd009a5b9ddb6076f9ca3a4326fb9ccb5094c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd7f86db207dc8748c61e33927f169e2ca60030ff5cc20958db98d11243790041c7c46c5d648b6ba4f9256da40ce32d581c07de9fc3c2c44a3c60c982afc876
|
7
|
+
data.tar.gz: 4f5beb6caddecd13c09f11d5ebd0a6101ad958b428a55ade161139739c7191a2deaf69bc63c9db64cc7f88e083c4222c7a2697cdeb1690886a0f385a4058c3fc
|
data/README.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Simple sentiment analysis for the German language
|
4
4
|
|
5
|
+
[](http://badge.fury.io/rb/stimmung) 
|
6
|
+
|
7
|
+
|
5
8
|
## Usage
|
6
9
|
|
7
10
|
```ruby
|
@@ -16,8 +19,10 @@ stimmung = Stimmung.new('my_dict1.txt', 'my_dict2.txt', '...')
|
|
16
19
|
stimmung.load_dictionary('my_dict.txt')
|
17
20
|
|
18
21
|
# and to get an analysis you just do
|
19
|
-
stimmung.score('irgendein
|
20
|
-
# => 0.
|
22
|
+
stimmung.score('irgendein toller text')
|
23
|
+
# => 0.5066
|
24
|
+
|
25
|
+
# this score will be between -1 (super negative) and 1 (super positive)
|
21
26
|
|
22
27
|
```
|
23
28
|
|
@@ -27,7 +32,9 @@ The German dictionary is based on SentiWS.
|
|
27
32
|
|
28
33
|
SentiWS is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License (http://creativecommons.org/licenses/by-nc-sa/3.0/).
|
29
34
|
|
30
|
-
The latest version of SentiWS can be found at http://wortschatz.informatik.uni-leipzig.de/download
|
35
|
+
The latest version of SentiWS can be found at http://wortschatz.informatik.uni-leipzig.de/download/
|
36
|
+
|
37
|
+
You can use the crude importer script to import new files in case there is a new version. Hey why don't you open an issue or make a pull request when that happens too? It would be appreciated :)
|
31
38
|
|
32
39
|
## Installation
|
33
40
|
|
data/lib/stimmung.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stimmung
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pachacamac
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Sentiment analysis for the German language
|
14
14
|
email: pachacamac@inboxalias.com
|