opener-chained-daemon 3.1.4 → 3.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a3d261875bffe0427ec49e37eb23a13dc8ddddb6a0677681f7a21a550961da5
|
4
|
+
data.tar.gz: eaf306aa0f178899dde39b6995efa08985cb00020636a3bcaa81061b2d5bc1c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a9a18b0130a61f41697c38deb88fe48769be4c5263a05aad4bd91b472db3d47b3e1cd36e69a6f6c6a5860a7413a4322cf8853837e7155d0e0adf0087c492cf
|
7
|
+
data.tar.gz: 2783a9005454540407af1a2fd07f748db06ee02716720abc9695f532448e367322fe09e6c28df59e8b690435aa1958c7ae10cc773a23418a1ff6993480984fc2
|
@@ -11,8 +11,8 @@ module Opener
|
|
11
11
|
'stanza-tokenizer-pos': Stanza::TokenizerPos.new, # replace this tokenizer-pos with both below with you dont have a stanza server
|
12
12
|
#'opener-tokenizer': Opener::Tokenizer.new,
|
13
13
|
#'opener-pos-tagger': Opener::POSTagger.new,
|
14
|
-
'opener-polarity-tagger': Opener::PolarityTagger.new,
|
15
14
|
'opener-property-tagger': Opener::PropertyTagger.new,
|
15
|
+
'opener-polarity-tagger': Opener::PolarityTagger.new,
|
16
16
|
'opener-opinion-detector-basic': Opener::OpinionDetectorBasic.new,
|
17
17
|
}
|
18
18
|
end
|
@@ -52,17 +52,25 @@ module Opener
|
|
52
52
|
|
53
53
|
w_index = 0
|
54
54
|
|
55
|
+
miscs = {}
|
56
|
+
tokens.each_with_index do |t, i|
|
57
|
+
miscs[i] ||= {}
|
58
|
+
t.each do |word|
|
59
|
+
word['id'].is_a?(Array) && word['id'].each do |id|
|
60
|
+
puts id
|
61
|
+
miscs[i][id] = word['misc']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
55
66
|
tokens.map{ |t| t.reverse! } if RTL_LANGUAGES.include? kaf.language
|
56
67
|
tokens.each_with_index do |sentence, s_index|
|
57
|
-
miscs = {}
|
58
68
|
sentence.each_with_index do |word|
|
59
69
|
w_index += 1
|
60
70
|
# save misc for later usase in a MWT case
|
61
|
-
if word['id'].is_a? Array
|
62
|
-
|
63
|
-
|
64
|
-
end
|
65
|
-
misc = word['misc'] || miscs[word['id']]
|
71
|
+
next if word['id'].is_a? Array
|
72
|
+
|
73
|
+
misc = word['misc'] || miscs[s_index][word['id']]
|
66
74
|
|
67
75
|
Rollbar.scoped({ input: input, params: params, tokens: tokens, word: word }) do
|
68
76
|
raise 'Missing misc'
|
@@ -35,8 +35,8 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_dependency 'opener-language-identifier', '>= 4.4.0'
|
36
36
|
spec.add_dependency 'opener-tokenizer', '>= 2.2.0'
|
37
37
|
spec.add_dependency 'opener-pos-tagger', '>= 3.2.0'
|
38
|
-
spec.add_dependency 'opener-
|
39
|
-
spec.add_dependency 'opener-
|
38
|
+
spec.add_dependency 'opener-property-tagger', '>= 3.3.6'
|
39
|
+
spec.add_dependency 'opener-polarity-tagger', '>= 3.3.0'
|
40
40
|
spec.add_dependency 'opener-opinion-detector-basic', '>= 3.2.3'
|
41
41
|
|
42
42
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-chained-daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -179,33 +179,33 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 3.2.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name: opener-
|
182
|
+
name: opener-property-tagger
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 3.
|
187
|
+
version: 3.3.6
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 3.
|
194
|
+
version: 3.3.6
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name: opener-
|
196
|
+
name: opener-polarity-tagger
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 3.3.
|
201
|
+
version: 3.3.0
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 3.3.
|
208
|
+
version: 3.3.0
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: opener-opinion-detector-basic
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|