ruby-stemmer 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -1
- data/VERSION +1 -1
- data/ext/lingua/extconf.rb +2 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -33,7 +33,7 @@ For more details about libstemmer_c please visit http://snowball.tartarus.org.
|
|
33
33
|
|
34
34
|
=== More details
|
35
35
|
|
36
|
-
* RDoc: http://ruby-stemmer.rubyforge.
|
36
|
+
* RDoc: http://ruby-stemmer.rubyforge.org/ruby-stemmer
|
37
37
|
* Test: http://github.com/aurelian/ruby-stemmer/blob/master/test/lingua/test_stemmer.rb
|
38
38
|
|
39
39
|
== Install
|
@@ -77,6 +77,14 @@ For further reference on stem vs. root, please check wikipedia articles on the t
|
|
77
77
|
bump version in a commit by itself I can ignore when I pull
|
78
78
|
* Send me a pull request. Bonus points for topic branches.
|
79
79
|
|
80
|
+
== Alternative Stemmers for Ruby
|
81
|
+
|
82
|
+
* stemmer4r: http://rubyforge.org/projects/stemmer4r (ext)
|
83
|
+
* fast-stemmer: http://github.com/romanbsd/fast-stemmer (ext)
|
84
|
+
* stemmer: http://rubyforge.org/projects/stemmer (pure ruby)
|
85
|
+
* uea-stemmer: http://github.com/ealdent/uea-stemmer
|
86
|
+
* [add yours]
|
87
|
+
|
80
88
|
== Copyright
|
81
89
|
|
82
90
|
Copyright (c) 2009 Aurelian Oancea. See MIT-LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
data/ext/lingua/extconf.rb
CHANGED
@@ -5,9 +5,10 @@ ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
|
|
5
5
|
LIBSTEMMER = File.join(ROOT, 'libstemmer_c')
|
6
6
|
|
7
7
|
# build libstemmer_c
|
8
|
+
make= (RUBY_PLATFORM =~ /freebsd/)? 'gmake' : 'make'
|
8
9
|
ENV['ARCHFLAGS']= "-arch #{Config::CONFIG['host_cpu']}" if RUBY_PLATFORM =~ /darwin/
|
9
10
|
ENV['ARCHFLAGS']= "-arch x86_64" if Config::CONFIG['host_cpu'] == 'i686' && RUBY_PLATFORM =~ /darwin/
|
10
|
-
system "cd #{LIBSTEMMER}; make libstemmer.o; cd #{ROOT};"
|
11
|
+
system "cd #{LIBSTEMMER}; #{make} libstemmer.o; cd #{ROOT};"
|
11
12
|
|
12
13
|
$CFLAGS += " -I#{File.join(LIBSTEMMER, 'include')} "
|
13
14
|
$libs += " -L#{LIBSTEMMER} #{File.join(LIBSTEMMER, 'libstemmer.o')} "
|