bayes_on_redis 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/bayes_on_redis.rb +1 -1
  2. metadata +3 -3
@@ -94,7 +94,7 @@ end
94
94
 
95
95
  class Stopword
96
96
  def initialize
97
- @stopwords = File.read(File.join("datasets", "stopwords.txt")).split
97
+ @stopwords = File.read(File.expand_path(File.join(__FILE__, "..", "..", "datasets", "stopwords.txt"))).split
98
98
  end
99
99
 
100
100
  def to_a
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bayes_on_redis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Didip Kerabat