ruby-stemmer 0.9.6-x86-mswin32-60 → 2.0.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +5 -4
- data/Gemfile.lock +4 -5
- data/README.rdoc +27 -40
- data/lib/lingua/stemmer.rb +1 -1
- data/lib/lingua/version.rb +1 -1
- data/ruby-stemmer.gemspec +1 -3
- data/test/lingua/test_stemmer.rb +6 -0
- metadata +17 -28
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ODY3MTJhMWNhNWMyMjQ1YjIxNjE3NTFlNWJlMTc2Zjk3YzllM2I4NQ==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: faaecaca91791a46c3b7e7f01af0335e1a8f14759eb890b3a08dd28e53a7fe61
|
4
|
+
data.tar.gz: 58863465f456c84d30a4cee1e1db493d3e0e632ecc36cb9708a0156e3da2c63c
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YTNjZTg0ZTMxMzRlZmU1OTkxOTI2YjU5NGNmMWRlMGM0MDEwNzIyYzk5OWNl
|
11
|
-
MjhhNDY5ZTQyNTgwZTY3YWJlZTY3NmY4Y2ZlMTMwY2UyYjIzMWU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
M2JlMGFkY2QzZGRkYzQxYmEzNmIzMjI4YjU3ZThkZmI1OTVjNTkwZDk0YmM3
|
14
|
-
MDA5YzY0MjE4NDVkNmJkMGQ4YTcwMmUxYTQ5NjQwNThjOTQxMDcwNzI4NzYz
|
15
|
-
NDkxMDQ0MTJiMDdjYzJhZDFkZmJmYTI5ZmVjNWYwYjhhYTc1Mjk=
|
6
|
+
metadata.gz: 474a391f1fe690852ad927454e5fb19074d117a54a71d1af5fdd62c9052e1eb651ea9573be9326145b43be330127cf025ba6ed3b41ee27d323cc4f0dfee9c070
|
7
|
+
data.tar.gz: 34f85e830b1c72a0318e2ba02375711ffa801dafbfd93807a085117068e6954fa1facbdce795e71cb01cc59f788d27f5893fb1a2aeb2b4ed1b2bd51a88617d9a
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-stemmer (0.
|
4
|
+
ruby-stemmer (2.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
json (1.8.2)
|
10
9
|
minitest (5.5.1)
|
11
10
|
rake (10.4.2)
|
12
11
|
rake-compiler (0.9.5)
|
13
12
|
rake
|
14
|
-
rdoc (4.2.0)
|
15
|
-
json (~> 1.4)
|
16
13
|
|
17
14
|
PLATFORMS
|
18
15
|
ruby
|
@@ -20,5 +17,7 @@ PLATFORMS
|
|
20
17
|
DEPENDENCIES
|
21
18
|
minitest (~> 5.5)
|
22
19
|
rake-compiler (~> 0.9)
|
23
|
-
rdoc (~> 4.2)
|
24
20
|
ruby-stemmer!
|
21
|
+
|
22
|
+
BUNDLED WITH
|
23
|
+
1.16.1
|
data/README.rdoc
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
= Ruby-Stemmer
|
2
|
-
|
3
|
-
rdoc-image:https://travis-ci.org/aurelian/ruby-stemmer.svg?branch=master
|
1
|
+
= Ruby-Stemmer
|
4
2
|
|
5
3
|
Ruby-Stemmer exposes SnowBall API to Ruby.
|
6
4
|
|
7
|
-
|
8
|
-
|
5
|
+
{Travis CI Status}[https://api.travis-ci.org/aurelian/ruby-stemmer.png]
|
6
|
+
|
7
|
+
This package includes libstemmer_c library released under BSD licence and available for free {here}[https://snowballstem.org/download.html].
|
9
8
|
|
10
|
-
Support for latin language is also included and it has been generated with the snowball compiler using
|
11
|
-
{schinke contribution}[http://snowball.tartarus.org/otherapps/schinke/intro.html].
|
9
|
+
Support for latin language is also included and it has been generated with the snowball compiler using {schinke contribution}[https://snowballstem.org/otherapps/schinke/].
|
12
10
|
|
13
|
-
For more details about libstemmer_c please visit the {SnowBall website}[
|
11
|
+
For more details about libstemmer_c please visit the {SnowBall website}[https://snowballstem.org/].
|
14
12
|
|
15
13
|
== Usage
|
16
14
|
|
@@ -31,36 +29,30 @@ For more details about libstemmer_c please visit the {SnowBall website}[http://s
|
|
31
29
|
puts "~> #{word}" #=> "instal"
|
32
30
|
end # => #<Lingua::Stemmer:0x102501e48>
|
33
31
|
|
34
|
-
===
|
35
|
-
|
36
|
-
|
37
|
-
config.gem 'ruby-stemmer', :version => '>=0.6.2', :lib => 'lingua/stemmer'
|
38
|
-
|
39
|
-
# Rails3: -- Gemfile
|
40
|
-
gem 'ruby-stemmer', '>=0.8.3', :require => 'lingua/stemmer'
|
32
|
+
=== Gemfile
|
33
|
+
|
34
|
+
gem 'ruby-stemmer', '>=2.0.0', :require => 'lingua/stemmer'
|
41
35
|
|
42
|
-
=== More details
|
36
|
+
=== More details
|
43
37
|
|
44
38
|
* Complete API in {RDoc format}[http://rdoc.info/github/aurelian/ruby-stemmer/master/frames]
|
45
|
-
* More usage on the {test file}[
|
39
|
+
* More usage on the {test file}[https://github.com/aurelian/ruby-stemmer/blob/master/test/lingua/test_stemmer.rb]
|
46
40
|
|
47
41
|
== Install
|
48
42
|
|
49
|
-
=== Standard install with:
|
50
|
-
|
51
43
|
gem install ruby-stemmer
|
52
44
|
|
53
45
|
==== Windows
|
54
46
|
|
55
|
-
There's also a Windows (Fat bin)
|
47
|
+
There's also a Windows (Fat bin)
|
56
48
|
|
57
49
|
gem install ruby-stemmer --platform=x86-mingw32
|
58
50
|
|
59
|
-
As far as I know the above should work with {rubyinstaller}[http://rubyinstaller.org/]. If
|
51
|
+
As far as I know the above should work with {rubyinstaller}[http://rubyinstaller.org/]. If it fails, you could try with:
|
60
52
|
|
61
53
|
gem install ruby-stemmer --platform=x86-mswin32
|
62
54
|
|
63
|
-
{It's known}[
|
55
|
+
{It's known}[https://cl.ly/BX9o] to work under Windows XP.
|
64
56
|
|
65
57
|
=== Development version
|
66
58
|
|
@@ -72,30 +64,28 @@ As far as I know the above should work with {rubyinstaller}[http://rubyinstaller
|
|
72
64
|
|
73
65
|
==== Cross Compiling
|
74
66
|
|
75
|
-
Install {rake-compiler-
|
76
|
-
Inside vagrant box run:
|
67
|
+
Install {rake-compiler-dock}[https://github.com/rake-compiler/rake-compiler-dock] and follow the setup.
|
77
68
|
|
78
|
-
|
79
|
-
$ RUBY_CC_VERSION=1.8.7:1.9.3:2.1.5:2.2.0 package_win32_fat_binary ruby-stemmer
|
69
|
+
Then, inside the docker image:
|
80
70
|
|
81
|
-
|
71
|
+
$ AR=i686-w64-mingw32-ar CC=i686-w64-mingw32-gcc LD=i686-w64-mingw32-ld rake cross native gem
|
82
72
|
|
83
73
|
== NOT A BUG
|
84
74
|
|
85
75
|
The stemming process is an algorithm to allow one to find the stem of an word (not the root of it).
|
86
76
|
For further reference on stem vs. root, please check wikipedia articles on the topic:
|
87
77
|
|
88
|
-
*
|
89
|
-
*
|
78
|
+
* https://en.wikipedia.org/wiki/Word_stem
|
79
|
+
* https://en.wikipedia.org/wiki/Root_(linguistics)
|
90
80
|
|
91
81
|
== TODO
|
92
82
|
|
93
|
-
* {Open issues}[
|
83
|
+
* {Open issues}[https://github.com/aurelian/ruby-stemmer/issues]
|
94
84
|
|
95
85
|
== Note on Patches/Pull Requests
|
96
86
|
|
97
|
-
* Fork the project from {github}[
|
98
|
-
* Make your feature addition or {bug fix}[
|
87
|
+
* Fork the project from {github}[https://github.com/aurelian/ruby-stemmer]
|
88
|
+
* Make your feature addition or {bug fix}[https://github.com/aurelian/ruby-stemmer/issues]
|
99
89
|
* Add tests for it. This is important so I don't break it in a
|
100
90
|
future version unintentionally.
|
101
91
|
* Commit, do not mess with rakefile, version, or history.
|
@@ -106,15 +96,15 @@ For further reference on stem vs. root, please check wikipedia articles on the t
|
|
106
96
|
|
107
97
|
== Alternative Stemmers for Ruby
|
108
98
|
|
109
|
-
* {stemmer4r}[
|
110
|
-
* {fast-stemmer}[
|
111
|
-
* {uea-stemmer}[
|
112
|
-
* {stemmer}[
|
99
|
+
* {stemmer4r}[https://rubygems.org/gems/stemmer4r] (ext)
|
100
|
+
* {fast-stemmer}[https://rubygems.org/gems/fast-stemmer] (ext)
|
101
|
+
* {uea-stemmer}[https://rubygems.org/gems/uea-stemmer] (ext)
|
102
|
+
* {stemmer}[https://rubygems.org/gems/stemmer] (pure ruby)
|
113
103
|
* add yours
|
114
104
|
|
115
105
|
== Copyright
|
116
106
|
|
117
|
-
Copyright (c) 2008-
|
107
|
+
Copyright (c) 2008-2020 {Aurelian Oancea}[http://locknet.ro]. See MIT-LICENSE for details.
|
118
108
|
|
119
109
|
== Contributors
|
120
110
|
|
@@ -123,7 +113,4 @@ Copyright (c) 2008-2015 {Aurelian Oancea}[http://locknet.ro]. See MIT-LICENSE fo
|
|
123
113
|
* {Aaron Patterson}[https://github.com/tenderlove] - rake compiler (windows support), code cleanup
|
124
114
|
* {Damián Silvani}[https://github.com/munshkr] - Ruby 1.9 encoding
|
125
115
|
|
126
|
-
== Real life usage
|
127
|
-
* http://planet33.ru is using Ruby-Stemmer together with {Classifier}[http://github.com/yury/classifier] to automatically rate places based on users comments.
|
128
|
-
|
129
116
|
# encoding: utf-8
|
data/lib/lingua/stemmer.rb
CHANGED
data/lib/lingua/version.rb
CHANGED
data/ruby-stemmer.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.version = Lingua::Stemmer::VERSION
|
9
9
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
|
-
s.required_ruby_version = ">= 1.
|
11
|
+
s.required_ruby_version = ">= 1.9.3"
|
12
12
|
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Aurelian Oancea", "Yury Korolev"]
|
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.description = "Expose the bundled libstemmer_c library to Ruby."
|
17
17
|
s.email = "oancea@gmail.com"
|
18
18
|
s.extensions = ["ext/lingua/extconf.rb"]
|
19
|
-
s.has_rdoc = true
|
20
19
|
s.extra_rdoc_files = ["README.rdoc"]
|
21
20
|
s.files = `git ls-files`.split("\n")
|
22
21
|
s.homepage = "http://github.com/aurelian/ruby-stemmer"
|
@@ -25,6 +24,5 @@ Gem::Specification.new do |s|
|
|
25
24
|
|
26
25
|
s.add_development_dependency 'rake-compiler', '~> 0.9'
|
27
26
|
s.add_development_dependency 'minitest', '~> 5.5'
|
28
|
-
s.add_development_dependency 'rdoc', '~> 4.2'
|
29
27
|
end
|
30
28
|
|
data/test/lingua/test_stemmer.rb
CHANGED
@@ -50,6 +50,12 @@ class TestStemmer < Minitest::Test
|
|
50
50
|
assert_kind_of Array, results
|
51
51
|
end
|
52
52
|
|
53
|
+
def test_array_stemmer_issue_22
|
54
|
+
results= ::Lingua.stemmer(["one"], :language => "de", :encoding => "ISO_8859_1")
|
55
|
+
assert_equal 1, results.size
|
56
|
+
assert_kind_of Array, results
|
57
|
+
end
|
58
|
+
|
53
59
|
def test_stemmer_subclass
|
54
60
|
assert_raises(RuntimeError) do
|
55
61
|
Class.new(Lingua::Stemmer) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-stemmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 2.0.0
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Aurelian Oancea
|
@@ -9,50 +9,36 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-11-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0.9'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: minitest
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '5.5'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '5.5'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rdoc
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ~>
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '4.2'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '4.2'
|
56
42
|
description: Expose the bundled libstemmer_c library to Ruby.
|
57
43
|
email: oancea@gmail.com
|
58
44
|
executables: []
|
@@ -60,8 +46,8 @@ extensions: []
|
|
60
46
|
extra_rdoc_files:
|
61
47
|
- README.rdoc
|
62
48
|
files:
|
63
|
-
- .gitignore
|
64
|
-
- .travis.yml
|
49
|
+
- ".gitignore"
|
50
|
+
- ".travis.yml"
|
65
51
|
- Gemfile
|
66
52
|
- Gemfile.lock
|
67
53
|
- MIT-LICENSE
|
@@ -69,8 +55,11 @@ files:
|
|
69
55
|
- Rakefile
|
70
56
|
- ext/lingua/extconf.rb
|
71
57
|
- ext/lingua/stemmer.c
|
72
|
-
- lib/lingua/
|
73
|
-
- lib/lingua/
|
58
|
+
- lib/lingua/2.2/stemmer_native.so
|
59
|
+
- lib/lingua/2.3/stemmer_native.so
|
60
|
+
- lib/lingua/2.4/stemmer_native.so
|
61
|
+
- lib/lingua/2.5/stemmer_native.so
|
62
|
+
- lib/lingua/2.6/stemmer_native.so
|
74
63
|
- lib/lingua/stemmer.rb
|
75
64
|
- lib/lingua/version.rb
|
76
65
|
- libstemmer_c/MANIFEST
|
@@ -170,17 +159,17 @@ require_paths:
|
|
170
159
|
- lib
|
171
160
|
required_ruby_version: !ruby/object:Gem::Requirement
|
172
161
|
requirements:
|
173
|
-
- -
|
162
|
+
- - ">="
|
174
163
|
- !ruby/object:Gem::Version
|
175
|
-
version: 1.
|
164
|
+
version: 1.9.3
|
176
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
166
|
requirements:
|
178
|
-
- -
|
167
|
+
- - ">="
|
179
168
|
- !ruby/object:Gem::Version
|
180
169
|
version: '0'
|
181
170
|
requirements: []
|
182
171
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
172
|
+
rubygems_version: 2.7.9
|
184
173
|
signing_key:
|
185
174
|
specification_version: 4
|
186
175
|
summary: Expose libstemmer_c to Ruby.
|