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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4362832bbbb35ee32747d662b0ed336a4999281474b7866c748f392cd7e4850
|
4
|
+
data.tar.gz: 6882049bcdf93c02dec34023f472691d760f6f200370ba551d59036bf3f3e26b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|