dimus-taxamatch_rb 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/taxamatch_rb/{parser.rb → atomizer.rb} +1 -1
- data/lib/taxamatch_rb.rb +2 -2
- data/spec/taxamatch_rb_spec.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -33,7 +33,7 @@ or
|
|
33
33
|
|
34
34
|
* preparse names for the matching (necessary for large databases of scientific names)
|
35
35
|
|
36
|
-
p = Taxamatch::
|
36
|
+
p = Taxamatch::Atomizer.new
|
37
37
|
parsed_name1 = p.parse('Monacanthus fronticinctus Günther 1867 sec. Eschmeyer 2004')
|
38
38
|
parsed_name2 = p.parse('Monacanthus fronticinctus (Gunther, 1867)')
|
39
39
|
|
data/lib/taxamatch_rb.rb
CHANGED
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
3
3
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
4
4
|
# $:.unshift('taxamatch_rb')
|
5
5
|
require 'taxamatch_rb/damerau_levenshtein_mod'
|
6
|
-
require 'taxamatch_rb/
|
6
|
+
require 'taxamatch_rb/atomizer'
|
7
7
|
require 'taxamatch_rb/normalizer'
|
8
8
|
require 'taxamatch_rb/phonetizer'
|
9
9
|
require 'taxamatch_rb/authmatch'
|
@@ -15,7 +15,7 @@ module Taxamatch
|
|
15
15
|
class Base
|
16
16
|
|
17
17
|
def initialize
|
18
|
-
@parser = Taxamatch::
|
18
|
+
@parser = Taxamatch::Atomizer.new
|
19
19
|
@dlm = Taxamatch::DamerauLevenshteinMod.new
|
20
20
|
end
|
21
21
|
|
data/spec/taxamatch_rb_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dimus-taxamatch_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Mozzherin
|
@@ -44,10 +44,10 @@ extra_rdoc_files:
|
|
44
44
|
files:
|
45
45
|
- README.rdoc
|
46
46
|
- lib/taxamatch_rb.rb
|
47
|
+
- lib/taxamatch_rb/atomizer.rb
|
47
48
|
- lib/taxamatch_rb/authmatch.rb
|
48
49
|
- lib/taxamatch_rb/damerau_levenshtein_mod.rb
|
49
50
|
- lib/taxamatch_rb/normalizer.rb
|
50
|
-
- lib/taxamatch_rb/parser.rb
|
51
51
|
- lib/taxamatch_rb/phonetizer.rb
|
52
52
|
- spec/damerau_levenshtein_mod_test.txt
|
53
53
|
- spec/spec.opts
|