simhash_tim_modified 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/string.rb +5 -5
- metadata +6 -6
data/lib/string.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
|
3
3
|
require 'rmmseg'
|
4
|
-
require 'tyccl'
|
4
|
+
#require 'tyccl'
|
5
5
|
require 'debugger'
|
6
6
|
|
7
7
|
class String
|
@@ -30,10 +30,10 @@ class String
|
|
30
30
|
result = []
|
31
31
|
loop do
|
32
32
|
tok = algor.next_token
|
33
|
-
word = (Tyccl.get_similar(tok.text.force_encoding('utf-8')).first.first rescue nil)
|
34
|
-
word = tok.text if word.nil? && !tok.nil?
|
35
|
-
break if
|
36
|
-
result <<
|
33
|
+
#word = (Tyccl.get_similar(tok.text.force_encoding('utf-8')).first.first rescue nil)
|
34
|
+
#word = tok.text if word.nil? && !tok.nil?
|
35
|
+
break if tok.nil?
|
36
|
+
result << tok.text
|
37
37
|
end
|
38
38
|
result
|
39
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simhash_tim_modified
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,14 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rmmseg-cpp-huacnlee
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.2.9
|
22
22
|
type: :development
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 0.2.9
|
30
30
|
- !ruby/object:Gem::Dependency
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 0.0.2
|
54
54
|
type: :development
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.0.2
|
62
62
|
- !ruby/object:Gem::Dependency
|