opener-property-tagger 3.3.5 → 3.3.6

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: 4498897f273195326764dae62875d3901919f69014df57d0919d88b0755ee777
4
- data.tar.gz: e0c3c1cfcc32cf260024c2c4b5fee4afb7e6a2b4e46ba690499e8b151e959e52
3
+ metadata.gz: 0bdc478005838e629b52e310437c5cac89158b8f33429d477c7096f1210c3249
4
+ data.tar.gz: a8fec4e6229cfd39f1cc0f11c3a8007c2c40442fd6ed2f00a558d2cbd8f01c8d
5
5
  SHA512:
6
- metadata.gz: 0f0557b5cb1604b6edec19c6d5c9b2d3cc892792d7562209d619cfe0f1f09c04fa0a340f3197e8f5963d0dbefbfb890d18e9051f82705eaa346f20682b724eb1
7
- data.tar.gz: 828fb63990b968d4511548b5ed6b05a44574cc9b0ed933745ddb7053cc642400ddf1ff7966f50a55b6dc84223a1fbbb8882c9cb28850dd3a8e98e550e9453183
6
+ metadata.gz: a88d97bd1fff6f57c956024d7d47affe13179a02e068129ddda1be0c577324eafee18c271e465d68dc06a99d7cdd78288e6094f307ab4503ee68c963e618bafc
7
+ data.tar.gz: 6e601c83e09931821e6d00c03114fbaabb72f8c72781f667eea384b7beb916adc3ccc42f83dbd15434779e2dd3e5f574bcb8ef7be022f3154f0afdabec0107b2
@@ -31,10 +31,11 @@ module Opener
31
31
  @pretty = pretty
32
32
 
33
33
  @params = params
34
- @cache_keys = params[:cache_keys] || {lang: language}
35
34
  @remote = !url.nil?
36
35
  @aspects_path = path
37
36
  @aspects_url = url
37
+ @cache_keys = params[:cache_keys]
38
+ @cache_keys.merge! lang: @document.root.attr('xml:lang')
38
39
 
39
40
  @aspects = if @remote then REMOTE_ASPECTS_CACHE[**@cache_keys].aspects else FILE_ASPECTS_CACHE[aspects_file] end
40
41
  end
@@ -78,6 +79,7 @@ module Opener
78
79
 
79
80
  ##
80
81
  # Check which terms belong to an aspect (property)
82
+ # Text have priority over Lemmas, overriding if there is a conflict
81
83
  # @return [Hash]
82
84
  #
83
85
  def extract_aspects
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  class PropertyTagger
3
3
 
4
- VERSION = '3.3.5'
4
+ VERSION = '3.3.6'
5
5
 
6
6
  end
7
7
  end
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.3.5
4
+ version: 3.3.6
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-10 00:00:00.000000000 Z
11
+ date: 2020-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-daemons
@@ -167,9 +167,9 @@ dependencies:
167
167
  description: Property tagger for hotels in Dutch and English.
168
168
  email:
169
169
  executables:
170
+ - property-tagger
170
171
  - property-tagger-daemon
171
172
  - property-tagger-server
172
- - property-tagger
173
173
  extensions: []
174
174
  extra_rdoc_files: []
175
175
  files:
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.7.6
216
+ rubygems_version: 2.7.8
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Property tagger for hotels in Dutch and English.