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 +4 -4
- data/lib/gnfinder/client.rb +5 -1
- data/lib/gnfinder/version.rb +1 -1
- data/lib/protob_pb.rb +16 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b945abca3968eede077e541acb662ff00ef8ecb9aaeb156874727b651413422d
|
4
|
+
data.tar.gz: 9609255c90b14a0f56fed299734a3cbee9035c1a4a63c90c35ba3e0440067b72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b60a9a647c1f1684fd7ad179b889b99b265bfd5d694fa156092bd40455cad9f306e3c367eeb86d5690f5c74faf31b47811fa1cb2c437eb55682b5f00f27555a
|
7
|
+
data.tar.gz: 9b9e3a6e47b016ed26cd044e4e76b81e2c2d9d8181f337e9487fa8a71133306f1f51677ffc589c27fb853e0e85a70cba09be95937eda06f342c4d89a3bc4216b
|
data/lib/gnfinder/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Gnfinder
|
4
|
-
GNFINDER_MIN_VERSION = 'v0.10.
|
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
|
data/lib/gnfinder/version.rb
CHANGED
data/lib/protob_pb.rb
CHANGED
@@ -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
|
-
|
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 :
|
42
|
-
optional :
|
43
|
-
optional :
|
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.
|
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-
|
11
|
+
date: 2020-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|