opener-opinion-detector-basic 3.2.1 → 3.2.2

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: 6f7a562496546cf0e5fd8f4d506b8d0d0dda91e48f252c189f23eff5e3df7e6b
4
- data.tar.gz: f97435237464279c9ca2ff30dcaebb93e89ffe2040fbe8078f4dd9f7ceef6428
3
+ metadata.gz: d90cb88e3b8224dc8d308e0c14aee257451869d6ae4c79db007b0247aaae6c2b
4
+ data.tar.gz: 0546c8e56ce77a995e259cb1567be5b7444044944f6ee017a7497780f6ee98c5
5
5
  SHA512:
6
- metadata.gz: ae07678330cbc48f42fbcd4e3532f064280eb200b689750c6a87111d6980188424460441db97dad337a0c2f61299aec2081eb375fe3a9953113bc6cd473ec86d
7
- data.tar.gz: 9cd7f7af2869ae4e63623d029e084caa8363884fd758c364a8475b1ed26b468b01d3fcf2da0e90cd88bde6bb6d49631b9e1be4e4c0d62521619c87434882fc46
6
+ metadata.gz: 8db793d069cec098dcc50d3732820bbf83756e2dfaff54975ff6b2ef47af116efe140416e40c92ac5a6e011d161c6f398388282e59ea60b50ec6c596520437e9
7
+ data.tar.gz: 70dde9675a2b3038d9883e24f378abe597a6823ec5aa2e88d0806be5b71d20cc174c68fd0ef3da3a141931559a9c81be54ab2d1f100e3f9573d568042d2c0890
@@ -76,7 +76,7 @@ module Opener
76
76
  def obtain_holders(sentences, language)
77
77
  sentence_terms = sentences[sentence]
78
78
  sentence_terms.each do |term|
79
- if OPINION_HOLDERS[language].include?(term.lemma)
79
+ if OPINION_HOLDERS[language]&.include?(term.lemma)
80
80
  @holders << term.id
81
81
  break
82
82
  end
@@ -79,7 +79,7 @@ module Opener
79
79
  #
80
80
  @opinions = terms.map do |term|
81
81
  if term.is_expression? && term.accumulated_strength != 0
82
- o = Opinion.new(term)
82
+ Opinion.new(term)
83
83
  end
84
84
  end.compact
85
85
 
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  class OpinionDetectorBasic
3
3
 
4
- VERSION = '3.2.1'
4
+ VERSION = '3.2.2'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-opinion-detector-basic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
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-10-28 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-daemons
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.7.8
178
+ rubygems_version: 2.7.6
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Basic Opinion Detector.