opener-property-tagger 3.2.0 → 3.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168a0501dc6567285dd70b1a304fdc885b6d9493f9ca62863a428068b42d284e
|
4
|
+
data.tar.gz: 6e9dd2b446eca6e75d4644e5cb59ec8ad64ec6f7f88e79266142129ce5ee59eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a209b8da679c06ea5fce64a11142b22b8b7a3c4da2775f832f4266af152c624f8ddb9e81bf7cbb96d668babc303fedb1243988b243faa2c72a5b7438c47c9b6
|
7
|
+
data.tar.gz: 621b9a11a6c2230aee345fc4d072b8636d1c63b6533960103de475355a54baac7924867eb59176850d7b0aaaccdbc1a4a6eccf9af62652bbaf6f26097163778d
|
@@ -51,10 +51,7 @@ module Opener
|
|
51
51
|
|
52
52
|
@path = options[:resource_path] || ENV['RESOURCE_PATH'] ||
|
53
53
|
ENV['PROPERTY_TAGGER_LEXICONS_PATH']
|
54
|
-
|
55
|
-
unless @path
|
56
|
-
raise ArgumentError, 'No lexicon path provided'
|
57
|
-
end
|
54
|
+
return unless @path
|
58
55
|
|
59
56
|
@path = File.expand_path @path
|
60
57
|
end
|
@@ -26,6 +26,7 @@ module Opener
|
|
26
26
|
url = "#{@url}&language_code=#{lang}"
|
27
27
|
lexicons = JSON.parse HTTPClient.new.get(url).body
|
28
28
|
lexicons = lexicons['data'].map{ |l| Hashie::Mash.new l }
|
29
|
+
puts "#{lang}: loaded aspects from #{url}"
|
29
30
|
|
30
31
|
lexicons.each do |l|
|
31
32
|
mapping[l.lemma.to_sym] << l.aspect
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-property-tagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
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-09-
|
11
|
+
date: 2020-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opener-daemons
|