opener-scorer 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/scorer/output_processor.rb +5 -4
- data/lib/opener/scorer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4187df29dee8957fae802117f08a7ec12650227
|
4
|
+
data.tar.gz: 1066aa4aadd7ae98f9542ab7eefa665401916eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81598a43002dddbb215da11e8f0d5e2d50d513a20ef86b0d55a853a420b25c30680a361562d6daac4bbe5ab132c99b2782b52cf40567fd5869245cc8aca8a4af
|
7
|
+
data.tar.gz: b5bad591a495a08dbf2e5c5fd7de25c8d419bb3e4b066de533b065ed32244c12a80579a39489e2059cf7c0effeaf6c2c1c01861f2dea39489477ed7260152e09
|
@@ -86,10 +86,11 @@ module Opener
|
|
86
86
|
polarities_hash[target.attr('id')] << polarity
|
87
87
|
end
|
88
88
|
end
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
89
|
+
if targets = opinion.at('opinion_expression')
|
90
|
+
opinion.at('opinion_expression').css('span target').each do |target|
|
91
|
+
polarities_hash[target.attr('id')] ||= []
|
92
|
+
polarities_hash[target.attr('id')] << polarity
|
93
|
+
end
|
93
94
|
end
|
94
95
|
end
|
95
96
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-scorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
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: 2014-05-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|