stimmung 0.0.1
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 +7 -0
- data/README.md +34 -0
- data/lib/emoticons.txt +56 -0
- data/lib/german.txt +31281 -0
- data/lib/stimmung.rb +25 -0
- metadata +49 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1734c45e6844178361486042c99df57656c81b46
|
4
|
+
data.tar.gz: ca69f61ad23e55925753920133ded298607763c3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2c078b89f5a60e63b467d818b19dd1ee34ec2894378232d3003ced116f53dfae8696841990f4f89097009cc2e71f5432d9e208f10c4fd1804bb4346644f96389
|
7
|
+
data.tar.gz: f078c488df289e543e293ce24234c10bf0ae5e343eede2cb57acf4004e3f2ba11c51bb13190b4a7eee87cca90d2a45b216315f5f4cda3e705838450d903a576f
|
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Stimmung
|
2
|
+
|
3
|
+
Simple sentiment analysis for the German language
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
|
9
|
+
# use this to init with the default dictionaries
|
10
|
+
stimmung = Stimmung.new
|
11
|
+
|
12
|
+
# or this to init with your dictionaries
|
13
|
+
stimmung = Stimmung.new('my_dict1.txt', 'my_dict2.txt', '...')
|
14
|
+
|
15
|
+
# you can always load additional dictionaries later on with
|
16
|
+
stimmung.load_dictionary('my_dict.txt')
|
17
|
+
|
18
|
+
# and to get an analysis you just do
|
19
|
+
stimmung.score('irgendein doofer text')
|
20
|
+
# => 0.666
|
21
|
+
|
22
|
+
```
|
23
|
+
|
24
|
+
## Dictionaries
|
25
|
+
|
26
|
+
The German dictionary is based on SentiWS.
|
27
|
+
|
28
|
+
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
|
+
|
30
|
+
The latest version of SentiWS can be found at http://wortschatz.informatik.uni-leipzig.de/download/.
|
31
|
+
|
32
|
+
## Installation
|
33
|
+
|
34
|
+
gem install stimmung
|
data/lib/emoticons.txt
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
-1.0 %-(
|
2
|
+
-1.0 )-:
|
3
|
+
-1.0 ):
|
4
|
+
-1.0 )o:
|
5
|
+
-1.0 8-0
|
6
|
+
-1.0 8/
|
7
|
+
-1.0 8\
|
8
|
+
-1.0 8c
|
9
|
+
-1.0 :'(
|
10
|
+
-1.0 :'-(
|
11
|
+
-1.0 :(
|
12
|
+
-1.0 :*(
|
13
|
+
-1.0 :,(
|
14
|
+
-1.0 :-(
|
15
|
+
-1.0 :-/
|
16
|
+
-1.0 :-S
|
17
|
+
-1.0 :-\
|
18
|
+
-0.50 :-|
|
19
|
+
-0.50 :/
|
20
|
+
-0.25 :O
|
21
|
+
-0.25 :S
|
22
|
+
-0.25 :\
|
23
|
+
-0.25 :|
|
24
|
+
-1.0 =(
|
25
|
+
-1.0 >:(
|
26
|
+
-1.0 D:
|
27
|
+
-1.0 sux
|
28
|
+
1.0 (o;
|
29
|
+
1.0 8-)
|
30
|
+
1.0 ;)
|
31
|
+
1.0 ;o)
|
32
|
+
1.0 %-)
|
33
|
+
1.0 (-:
|
34
|
+
1.0 :-)
|
35
|
+
1.0 (:
|
36
|
+
1.0 (o:
|
37
|
+
1.0 8)
|
38
|
+
1.0 :)
|
39
|
+
1.0 :-D
|
40
|
+
1.0 :-P
|
41
|
+
1.0 :D
|
42
|
+
1.0 :P
|
43
|
+
1.0 :P
|
44
|
+
1.0 :]
|
45
|
+
1.0 :o)
|
46
|
+
1.0 :p
|
47
|
+
1.0 ;^)
|
48
|
+
1.0 <3
|
49
|
+
1.0 <3
|
50
|
+
1.0 =)
|
51
|
+
1.0 =]
|
52
|
+
1.0 >:)
|
53
|
+
1.0 >:D
|
54
|
+
1.0 >=D
|
55
|
+
1.0 ^_^
|
56
|
+
1.0 }:)
|