opener-polarity-tagger 3.5.2 → 3.5.3

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: afcf1b19a55cbd0c37e6f6adfba85ad3f376cea5bcabd2c3d5d780d45eb5bd4e
4
- data.tar.gz: 86f7473b8ae1cafa47bf78aa5a685280f6a0844065d264c0bb27f944ec3a1c92
3
+ metadata.gz: befa570d0fdb2774fee58f8f7f3154c4d944cee2865015411534d2c2c313837a
4
+ data.tar.gz: 4d95524761db77af92db9ece51dc5ff5bf66744445459a1c3c0b7c570ddb3267
5
5
  SHA512:
6
- metadata.gz: b2eadf5b3e97ff01a8934f03c48e01d0af98209bd37c0884d5dac6e714430eb23bbd878faf036369dca11eadad6f59acff45b9a2271559f95a7f1d1399e78adc
7
- data.tar.gz: d7b70f216f1e10b5085a391c91ede0cb88aec903c892592ee5ab3269e821bf333d3a24ec1b474505688b532e64ece201967cbd6537dc554ef885e9971854c6d8
6
+ metadata.gz: be4cd1daf7cb8f906f2e91d1bba18e64bc713e5d13c6ec090877b4e079153b8fa818915fcc789f6df1bcfe4735b24af2e7a15dbab5517a7037bd6983eba612c8
7
+ data.tar.gz: dfd2058e9b98ea482d65e86d4a82d33865a1ef9cd5350deac4853c5e4b3c9cec39b37766b862a0f459c92644fd4e5f916f35ea4d1568ffdddde5d823b6b7b43b
@@ -98,8 +98,8 @@ module Opener
98
98
  text = terms.map{|t| t.text&.downcase }.join(' ')
99
99
 
100
100
  lexicons.each do |lexicon|
101
- return lexicon if lemma =~ /^#{lexicon.lemma}($|\s)+/
102
- return lexicon if text =~ /^#{lexicon.lemma}($|\s)+/
101
+ return lexicon if lemma =~ /^#{Regexp.escape(lexicon.lemma)}($|\s)+/
102
+ return lexicon if text =~ /^#{Regexp.escape(lexicon.lemma)}($|\s)+/
103
103
  end
104
104
  nil
105
105
  end
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  class PolarityTagger
3
3
 
4
- VERSION = '3.5.2'
4
+ VERSION = '3.5.3'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-polarity-tagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.2
4
+ version: 3.5.3
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: 2021-03-01 00:00:00.000000000 Z
11
+ date: 2021-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-daemons
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  version: '0'
252
252
  requirements: []
253
253
  rubyforge_project:
254
- rubygems_version: 2.7.8
254
+ rubygems_version: 2.7.6
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: Polarity tagger for various languages.