gnfinder 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29d70bf23b846d354cfac48bbef42b895a04174f5d40371821aa7b670f86eeab
4
- data.tar.gz: 5f7c4b66647aac2da2b68420512da435b0e3603cc66f6f32c8a5f3f3ab7c0fdd
3
+ metadata.gz: b945abca3968eede077e541acb662ff00ef8ecb9aaeb156874727b651413422d
4
+ data.tar.gz: 9609255c90b14a0f56fed299734a3cbee9035c1a4a63c90c35ba3e0440067b72
5
5
  SHA512:
6
- metadata.gz: 0422f6124bee713b642b931ffb621186733fdb1a409e8b1589f2eec5a19dbf1c60ecb9099487ea6592087c94e98d42d3469b7bd23d554934648ea50efaa27c17
7
- data.tar.gz: 2d645288ac2bd14ab7c49cd3f7890515bd66ad23cb9888140b4307472694da50f2830c7d189562f7767d2554c20173cfd53ff7836dbc77aa7119f8d8d0b37831
6
+ metadata.gz: 6b60a9a647c1f1684fd7ad179b889b99b265bfd5d694fa156092bd40455cad9f306e3c367eeb86d5690f5c74faf31b47811fa1cb2c437eb55682b5f00f27555a
7
+ data.tar.gz: 9b9e3a6e47b016ed26cd044e4e76b81e2c2d9d8181f337e9487fa8a71133306f1f51677ffc589c27fb853e0e85a70cba09be95937eda06f342c4d89a3bc4216b
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gnfinder
4
- GNFINDER_MIN_VERSION = 'v0.10.0'
4
+ GNFINDER_MIN_VERSION = 'v0.10.1'
5
5
 
6
6
  # Gnfinder::Client connects to gnfinder server
7
7
  class Client
@@ -51,6 +51,10 @@ module Gnfinder
51
51
  params[:sources] = opts[:sources]
52
52
  end
53
53
 
54
+ if opts[:tokens_around] && opts[:tokens_around] > 0
55
+ params[:tokens_around] = opts[:tokens_around]
56
+ end
57
+
54
58
  @stub.find_names(Protob::Params.new(params))
55
59
  end
56
60
  # rubocop:enable all
@@ -3,7 +3,7 @@
3
3
  # Gnfinder is a namespace module for gndinfer gem.
4
4
  module Gnfinder
5
5
  # Version corresponds to the minimal supported version of Go gnfinder
6
- VERSION = '0.10.0'
6
+ VERSION = '0.10.1'
7
7
 
8
8
  def self.version
9
9
  VERSION
@@ -20,7 +20,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  optional :language, :string, 4
21
21
  optional :detect_language, :bool, 5
22
22
  optional :verification, :bool, 6
23
- repeated :sources, :int32, 7
23
+ optional :tokens_around, :int32, 7
24
+ repeated :sources, :int32, 8
24
25
  end
25
26
  add_message "protob.Output" do
26
27
  optional :date, :string, 1
@@ -38,9 +39,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
38
39
  optional :verbatim, :string, 2
39
40
  optional :name, :string, 3
40
41
  optional :odds, :float, 4
41
- optional :offset_start, :int32, 5
42
- optional :offset_end, :int32, 6
43
- optional :verification, :message, 7, "protob.Verification"
42
+ optional :annot_nomen, :string, 5
43
+ optional :annot_nomen_type, :enum, 6, "protob.AnnotNomenType"
44
+ optional :offset_start, :int32, 7
45
+ optional :offset_end, :int32, 8
46
+ repeated :words_before, :string, 9
47
+ repeated :words_after, :string, 10
48
+ optional :verification, :message, 11, "protob.Verification"
44
49
  end
45
50
  add_message "protob.Verification" do
46
51
  optional :best_result, :message, 1, "protob.ResultData"
@@ -72,6 +77,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
77
  value :PARTIAL_EXACT, 3
73
78
  value :PARTIAL_FUZZY, 4
74
79
  end
80
+ add_enum "protob.AnnotNomenType" do
81
+ value :NO_ANNOT, 0
82
+ value :SP_NOV, 1
83
+ value :COMB_NOV, 2
84
+ value :SUBSP_NOV, 3
85
+ end
75
86
  end
76
87
  end
77
88
 
@@ -85,4 +96,5 @@ module Protob
85
96
  Verification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.Verification").msgclass
86
97
  ResultData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.ResultData").msgclass
87
98
  MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.MatchType").enummodule
99
+ AnnotNomenType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protob.AnnotNomenType").enummodule
88
100
  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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-24 00:00:00.000000000 Z
11
+ date: 2020-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc