stimmung 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -3
  3. data/lib/stimmung.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1734c45e6844178361486042c99df57656c81b46
4
- data.tar.gz: ca69f61ad23e55925753920133ded298607763c3
3
+ metadata.gz: cabcb933856e7bbdf3aa844be363c1ce1eb3d341
4
+ data.tar.gz: 7d2dd009a5b9ddb6076f9ca3a4326fb9ccb5094c
5
5
  SHA512:
6
- metadata.gz: 2c078b89f5a60e63b467d818b19dd1ee34ec2894378232d3003ced116f53dfae8696841990f4f89097009cc2e71f5432d9e208f10c4fd1804bb4346644f96389
7
- data.tar.gz: f078c488df289e543e293ce24234c10bf0ae5e343eede2cb57acf4004e3f2ba11c51bb13190b4a7eee87cca90d2a45b216315f5f4cda3e705838450d903a576f
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
+ [![Gem Version](https://badge.fury.io/rb/stimmung.svg)](http://badge.fury.io/rb/stimmung) ![Installs](http://img.shields.io/gem/dt/stimmung.svg)
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 doofer text')
20
- # => 0.666
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
@@ -6,7 +6,7 @@ class Stimmung
6
6
  if dicts.empty?
7
7
  load_dictionary(File.join(File.dirname(__FILE__), 'emoticons.txt'), File.join(File.dirname(__FILE__), 'german.txt'))
8
8
  else
9
- load_dictionary(dicts)
9
+ load_dictionary(*dicts)
10
10
  end
11
11
  end
12
12
 
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.1
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-06-30 00:00:00.000000000 Z
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