opener-polarity-tagger 3.1.2 → 3.1.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: ee937e14a2da85b39cc76765d221ac23f9df4d713953482cd58bee4acebd1f0d
4
- data.tar.gz: d86cd682deb902951b93a3c217a9ccfff677956c39adc4b21a29597483f4b28b
3
+ metadata.gz: b4362832bbbb35ee32747d662b0ed336a4999281474b7866c748f392cd7e4850
4
+ data.tar.gz: 6882049bcdf93c02dec34023f472691d760f6f200370ba551d59036bf3f3e26b
5
5
  SHA512:
6
- metadata.gz: d400f873a98d0426b4090f4155339ab2e2bb6743218d65dde59ed40d3ae61a5f66c836fb2f4bd197058e12c1646f473bbc7fc460ba83c1accfc6b27778d2259d
7
- data.tar.gz: 5957d89cce03e50eb7d554aac1c39cd06c80d9f9381142ec7e0fc40931e3910b06a7298a9c9a3f1fcac58332edca175afe7fd2e26271f60b2c672471c05f2ebd
6
+ metadata.gz: af13174d0deb82c077403daadb9ad046e945eae79e24f7cf2a1e50961b1e901ec94553da428057a9eeccaa2c0e5a8e007b28f685874ea21253a8e36701bb7599
7
+ data.tar.gz: 3cd67f602a84d8674203579dc8e4bbba271ee49a57c5a34969e0cbef4bc29f32b25393ea0a45c77cff0d518e4355196734055d3f7774140d713bf675d0486fc0
@@ -26,9 +26,9 @@ module Opener
26
26
  end
27
27
 
28
28
  def add_linguistic_processor name, version, layer, timestamp: false
29
- header = @document.at('kafHeader') || @document.root.add_child('<kafHeader/>')
29
+ header = @document.at('kafHeader') || @document.root.add_child('<kafHeader/>').first
30
30
  procs = header.css('linguisticProcessors').find{ |l| l.attr(:layer) == layer }
31
- procs ||= header.add_child("<linguisticProcessors layer='#{layer}'/>")
31
+ procs ||= header.add_child("<linguisticProcessors layer='#{layer}'/>").first
32
32
  lp = procs.add_child('<lp/>')
33
33
  lp.attr(
34
34
  timestamp: if timestamp then Time.now.iso8601 else '*' end,
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  class PolarityTagger
3
3
 
4
- VERSION = '3.1.2'
4
+ VERSION = '3.1.3'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-polarity-tagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com