opener-opinion-detector-basic 2.0.2 → 2.0.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
  SHA1:
3
- metadata.gz: 3136ceb65314b0d7dc582e7aac21a3ca6784e5e6
4
- data.tar.gz: 0eea4c8f9f873b1cd70d992e914aa7c0388f801c
3
+ metadata.gz: cda3ea002522fd4a4894a43e4f6afec229106f59
4
+ data.tar.gz: c699bc22b64097d82f62fa341ba212b9fe2febbb
5
5
  SHA512:
6
- metadata.gz: a2d2593c526226a25ca9046db8f6b20b29daeab64da8a489bf9ff4680759d8fce7606c889936835b8c3fdab23eabb8542fe6b16dd29005650527064614597534
7
- data.tar.gz: f3504ad57b9bcc15f29a989380501c293bfd136afd5f762cc488da603422dc24cc70072b5e4fac0a52bfcb9fbe7c8bf4f2152c2c2187c8cdd2be7b0af588d281
6
+ metadata.gz: 5526a04d8349a9b3b0b4f06a7b14412ae3a0204cc6ea36e5d3c53178089d7133ff7f5f6eb0c6702abb189c6c0ec5d4652b9a65ed9b60942c6043b327a0342879
7
+ data.tar.gz: c800e71953621313a98171baf7a4f550fd48fbfd2efcfbcf288fb2190d18d5f1530e3b5e7bcef3fcc0d706d7f29708016d9272ef4b3222953a2cb7bf5fec3f33
@@ -113,9 +113,9 @@ def obtain_opinion_expressions(tokens,lang='nl'):
113
113
  ## There are 2 negators/intensifiers next to each other
114
114
  ## The first one is deactivated and the second one is modified
115
115
  my_tokens[t].use_it = False
116
- my_tokens[t+1].value *= my_tokens[t].value
116
+ my_tokens[t+1].value += my_tokens[t].value
117
117
  my_tokens[t+1].list_ids += my_tokens[t].list_ids
118
- logging.debug(' Accucumating '+'-'.join(my_tokens[t+1].list_ids))
118
+ logging.debug(' Accumulating '+'-'.join(my_tokens[t+1].list_ids))
119
119
  t+=1
120
120
  ###########################################
121
121
 
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class OpinionDetectorBasic
3
- VERSION = '2.0.2'
3
+ VERSION = '2.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,195 +1,194 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-opinion-detector-basic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-12 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-daemons
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.2'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - "~>"
22
+ - - ~>
25
23
  - !ruby/object:Gem::Version
26
24
  version: '2.2'
25
+ prerelease: false
26
+ type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opener-webservice
29
- requirement: !ruby/object:Gem::Requirement
29
+ version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.1'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
37
35
  requirements:
38
- - - "~>"
36
+ - - ~>
39
37
  - !ruby/object:Gem::Version
40
38
  version: '2.1'
39
+ prerelease: false
40
+ type: :runtime
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opener-core
43
- requirement: !ruby/object:Gem::Requirement
43
+ version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.2'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
51
49
  requirements:
52
- - - "~>"
50
+ - - ~>
53
51
  - !ruby/object:Gem::Version
54
52
  version: '2.2'
53
+ prerelease: false
54
+ type: :runtime
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
- - - ">="
64
+ - - '>='
60
65
  - !ruby/object:Gem::Version
61
66
  version: '0'
62
- type: :runtime
63
67
  prerelease: false
68
+ type: :runtime
69
+ - !ruby/object:Gem::Dependency
70
+ name: nokogiri
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - ">="
73
+ - - '>='
67
74
  - !ruby/object:Gem::Version
68
75
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: nokogiri
71
76
  requirement: !ruby/object:Gem::Requirement
72
77
  requirements:
73
- - - ">="
78
+ - - '>='
74
79
  - !ruby/object:Gem::Version
75
80
  version: '0'
76
- type: :runtime
77
81
  prerelease: false
82
+ type: :runtime
83
+ - !ruby/object:Gem::Dependency
84
+ name: cliver
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
- - - ">="
87
+ - - '>='
81
88
  - !ruby/object:Gem::Version
82
89
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: cliver
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - ">="
92
+ - - '>='
88
93
  - !ruby/object:Gem::Version
89
94
  version: '0'
90
- type: :runtime
91
95
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
96
+ type: :runtime
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: slop
99
- requirement: !ruby/object:Gem::Requirement
99
+ version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '3.5'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
104
+ requirement: !ruby/object:Gem::Requirement
107
105
  requirements:
108
- - - "~>"
106
+ - - ~>
109
107
  - !ruby/object:Gem::Version
110
108
  version: '3.5'
109
+ prerelease: false
110
+ type: :runtime
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
- requirement: !ruby/object:Gem::Requirement
113
+ version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: '3.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
118
+ requirement: !ruby/object:Gem::Requirement
121
119
  requirements:
122
- - - "~>"
120
+ - - ~>
123
121
  - !ruby/object:Gem::Version
124
122
  version: '3.0'
123
+ prerelease: false
124
+ type: :development
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: cucumber
127
- requirement: !ruby/object:Gem::Requirement
127
+ version_requirements: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
132
+ requirement: !ruby/object:Gem::Requirement
135
133
  requirements:
136
- - - ">="
134
+ - - '>='
137
135
  - !ruby/object:Gem::Version
138
136
  version: '0'
137
+ prerelease: false
138
+ type: :development
139
139
  description: Basic Opinion Detector.
140
- email:
140
+ email:
141
141
  executables:
142
- - opinion-detector-basic-server
143
142
  - opinion-detector-basic
144
143
  - opinion-detector-basic-daemon
144
+ - opinion-detector-basic-server
145
145
  extensions:
146
146
  - ext/hack/Rakefile
147
147
  extra_rdoc_files: []
148
148
  files:
149
- - LICENSE.txt
150
- - README.md
151
- - bin/opinion-detector-basic
152
- - bin/opinion-detector-basic-daemon
153
- - bin/opinion-detector-basic-server
154
- - config.ru
155
149
  - core/opinion_detector_basic_multi.py
156
- - exec/opinion-detector-basic.rb
157
150
  - ext/hack/Rakefile
158
151
  - lib/opener/opinion_detector_basic.rb
159
152
  - lib/opener/opinion_detector_basic/cli.rb
160
- - lib/opener/opinion_detector_basic/public/markdown.css
161
153
  - lib/opener/opinion_detector_basic/server.rb
162
154
  - lib/opener/opinion_detector_basic/version.rb
155
+ - lib/opener/opinion_detector_basic/public/markdown.css
163
156
  - lib/opener/opinion_detector_basic/views/index.erb
157
+ - config.ru
164
158
  - opener-opinion-detector-basic.gemspec
165
159
  - pre_install_requirements.txt
160
+ - README.md
161
+ - LICENSE.txt
162
+ - exec/opinion-detector-basic.rb
166
163
  - task/compile.rake
167
164
  - task/python.rake
168
165
  - task/requirements.rake
169
166
  - task/test.rake
167
+ - bin/opinion-detector-basic
168
+ - bin/opinion-detector-basic-daemon
169
+ - bin/opinion-detector-basic-server
170
170
  homepage: http://opener-project.github.com/
171
171
  licenses:
172
172
  - Apache 2.0
173
173
  metadata: {}
174
- post_install_message:
174
+ post_install_message:
175
175
  rdoc_options: []
176
176
  require_paths:
177
177
  - lib
178
178
  required_ruby_version: !ruby/object:Gem::Requirement
179
179
  requirements:
180
- - - ">="
180
+ - - '>='
181
181
  - !ruby/object:Gem::Version
182
182
  version: 1.9.2
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
185
+ - - '>='
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubyforge_project:
190
- rubygems_version: 2.2.2
191
- signing_key:
189
+ rubyforge_project:
190
+ rubygems_version: 2.1.9
191
+ signing_key:
192
192
  specification_version: 4
193
193
  summary: Basic Opinion Detector.
194
194
  test_files: []
195
- has_rdoc: