gnfinder 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25997bdf76c472337bca021663af9005619c4b534cad939289dc40b3786015b5
4
- data.tar.gz: b09f9d0cb305c4c1611b570d41fd82b029a16df8f940fdf18cc0a104577d934a
3
+ metadata.gz: 7b7d53d1d5e8028cee3b95c322d63588f18550e57e2dba2e7744806aa233c5d5
4
+ data.tar.gz: 6b0b55b9d8c921c6198e154d0686d08fad8511688177c51bc8fb04cd4d9367c7
5
5
  SHA512:
6
- metadata.gz: 4dbdf6a85055fa652e4684e4e343b2eaba649a720a8613601ad9f1de5fe1dbca9be98180c7520f6608521dc9cd32120ac9c36438b908ae7a63b1dd27114ac93a
7
- data.tar.gz: 8b3b3e3236e5448519e674aa754faaa574e9b80b2c52e222dd18b7843fc4f55c47535cc5b9ec36c047e97a3dec57281f020fc6178597abceff553116416bddc6
6
+ metadata.gz: eb1154eb02d63d4f9e277281d2df0978ceb29bff71e890b9924aa6f0261f40e5ab22f5ea4c11da53b81a9ce050b51db20f65787f672b6a3a9315f2ca0fb003fb
7
+ data.tar.gz: e46b3dbee8f41a6d000c390350093c2666db5ff783e75692152e7bccba7c67c776c8415623e30c7aaf9a9198a75d9163a627c24d597f1a75f95fff27eb030b45
data/CHANGELOG.md CHANGED
@@ -2,20 +2,24 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## [v0.1.3]
6
+
7
+ - Fix [#8]: gRPC output is similar to CLI output for gnfinder.
8
+
5
9
  ## [v0.1.2]
6
10
 
7
- - Fix [#7]: utf-8 diacritics support in input text fails
11
+ - Fix [#7]: utf-8 diacritics support in input text fails.
8
12
 
9
13
  ## [v0.1.1]
10
- - Add [#6]: return start and end of names-strings
14
+ - Add [#6]: return start and end of names-strings.
11
15
 
12
16
  ## [v0.1.0]
13
17
 
14
- - Add [#5]: add an optional list of preferred data-sources for verification
15
- - Add [#4]: add an option for verification of found names
16
- - Add [#3]: enable sending options to gRPC service
17
- - Add [#2]: send a text and receive found names
18
- - Add [#1]: connect to gRPC server of `gnfinder` Go-lang program
18
+ - Add [#5]: add an optional list of preferred data-sources for verification.
19
+ - Add [#4]: add an option for verification of found names.
20
+ - Add [#3]: enable sending options to gRPC service.
21
+ - Add [#2]: send a text and receive found names.
22
+ - Add [#1]: connect to gRPC server of `gnfinder` Go-lang program.
19
23
 
20
24
  ## Footnotes
21
25
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Gnfinder is a namespace module for gndinfer gem.
4
4
  module Gnfinder
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
 
7
7
  def self.version
8
8
  VERSION
data/lib/protob_pb.rb CHANGED
@@ -17,36 +17,49 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  repeated :sources, :int32, 6
18
18
  end
19
19
  add_message "protob.NameStrings" do
20
- optional :text, :bytes, 3
20
+ optional :date, :string, 1
21
+ optional :language, :string, 2
22
+ optional :total_tokens, :int32, 3
23
+ optional :total_candidates, :int32, 4
24
+ optional :total_names, :int32, 5
21
25
  repeated :names, :message, 6, "protob.NameString"
22
26
  end
23
27
  add_message "protob.NameString" do
24
- optional :value, :string, 1
28
+ optional :type, :string, 1
25
29
  optional :verbatim, :string, 2
26
- optional :odds, :float, 3
27
- optional :path, :string, 4
28
- optional :curated, :bool, 5
29
- optional :edit_distance, :int32, 6
30
- optional :edit_distance_stem, :int32, 7
31
- optional :source_id, :int32, 8
32
- optional :match, :enum, 9, "protob.MatchType"
33
- optional :offset_start, :int32, 10
34
- optional :offset_end, :int32, 11
35
- repeated :sources_result, :message, 12, "protob.SourceResult"
36
- end
37
- add_message "protob.SourceResult" do
38
- optional :source_id, :int32, 1
39
- optional :title, :string, 2
30
+ optional :name, :string, 3
31
+ optional :odds, :float, 4
32
+ optional :offset_start, :int32, 5
33
+ optional :offset_end, :int32, 6
34
+ optional :verification, :message, 7, "protob.Verification"
35
+ end
36
+ add_message "protob.Verification" do
37
+ optional :data_source_id, :int32, 1
38
+ optional :data_source_title, :string, 2
39
+ optional :matched_name, :string, 3
40
+ optional :current_name, :string, 4
41
+ optional :classification_path, :string, 5
42
+ optional :databases_num, :int32, 6
43
+ optional :data_source_quality, :string, 7
44
+ optional :edit_distance, :int32, 8
45
+ optional :stem_edit_distance, :int32, 9
46
+ optional :match_type, :enum, 11, "protob.MatchType"
47
+ optional :error, :string, 12
48
+ repeated :preferred_results, :message, 13, "protob.PreferredResult"
49
+ end
50
+ add_message "protob.PreferredResult" do
51
+ optional :data_source_id, :int32, 1
52
+ optional :data_source_title, :string, 2
40
53
  optional :name_id, :string, 3
41
- optional :taxon_id, :string, 4
54
+ optional :name, :string, 4
55
+ optional :taxon_id, :string, 5
42
56
  end
43
57
  add_enum "protob.MatchType" do
44
58
  value :NONE, 0
45
59
  value :EXACT, 1
46
- value :CANONICAL_EXACT, 2
47
- value :CANONICAL_FUZZY, 3
48
- value :PARTIAL_EXACT, 4
49
- value :PARTIAL_FUZZY, 5
60
+ value :FUZZY, 2
61
+ value :PARTIAL_EXACT, 3
62
+ value :PARTIAL_FUZZY, 4
50
63
  end
51
64
  end
52
65
 
@@ -56,6 +69,7 @@ module Protob
56
69
  Params = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.Params").msgclass
57
70
  NameStrings = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.NameStrings").msgclass
58
71
  NameString = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.NameString").msgclass
59
- SourceResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.SourceResult").msgclass
72
+ Verification = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.Verification").msgclass
73
+ PreferredResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.PreferredResult").msgclass
60
74
  MatchType = Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.MatchType").enummodule
61
75
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnfinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-27 00:00:00.000000000 Z
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler