opener-opinion-detector-basic 1.0.8 → 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/LICENSE.txt +13 -0
- data/lib/opener/opinion_detector_basic.rb +5 -6
- data/lib/opener/opinion_detector_basic/version.rb +1 -1
- data/opener-opinion-detector-basic.gemspec +2 -0
- metadata +75 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15594a72e55cc49a04e35a1d9d798fa3642b2a98
|
4
|
+
data.tar.gz: 2c91b6ed446a7135046b9dc3450769aaf8f9cec6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5cc2d1a82f6c1e3f3332b46274604326321bcade393cf57f30c0c3e0ca50d06d2472da9c27458ed71d3957e904ea41e31459c61136991bfc84565382e5b3cd4
|
7
|
+
data.tar.gz: 500b0cd9fbfc621dee215d42e5c173768607a4c5e0abfc10f8b74d935b6df74188183a6094cd2949d3ed92adf808e9701e3d116f60ecd243b075e7f68b65881a
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2014 OpeNER Project Consortium
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
@@ -28,7 +28,7 @@ module Opener
|
|
28
28
|
# @param [Array] args Commandline arguments passed to the command.
|
29
29
|
#
|
30
30
|
def command
|
31
|
-
return "#{adjust_python_path} python -E
|
31
|
+
return "#{adjust_python_path} python -E #{kernel} #{args.join(' ')}"
|
32
32
|
end
|
33
33
|
|
34
34
|
##
|
@@ -40,11 +40,10 @@ module Opener
|
|
40
40
|
#
|
41
41
|
def run(input)
|
42
42
|
begin
|
43
|
-
capture(input)
|
44
43
|
stdout, stderr, process = capture(input)
|
45
44
|
raise stderr unless process.success?
|
46
45
|
return stdout
|
47
|
-
|
46
|
+
|
48
47
|
rescue Exception => error
|
49
48
|
return Opener::Core::ErrorLayer.new(input, error.message, self.class).add
|
50
49
|
end
|
@@ -59,10 +58,10 @@ module Opener
|
|
59
58
|
"env PYTHONPATH=#{site_packages}:$PYTHONPATH"
|
60
59
|
end
|
61
60
|
##
|
62
|
-
# capture3 method doesn't work properly with Jruby, so
|
61
|
+
# capture3 method doesn't work properly with Jruby, so
|
63
62
|
# this is a workaround
|
64
63
|
#
|
65
|
-
|
64
|
+
|
66
65
|
def capture(input)
|
67
66
|
Open3.popen3(*command.split(" ")) {|i, o, e, t|
|
68
67
|
out_reader = Thread.new { o.read }
|
@@ -72,7 +71,7 @@ module Opener
|
|
72
71
|
[out_reader.value, err_reader.value, t.value]
|
73
72
|
}
|
74
73
|
end
|
75
|
-
|
74
|
+
|
76
75
|
##
|
77
76
|
# @return [String]
|
78
77
|
#
|
@@ -8,6 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.description = gem.summary
|
9
9
|
gem.homepage = 'http://opener-project.github.com/'
|
10
10
|
gem.extensions = ['ext/hack/Rakefile']
|
11
|
+
gem.license = 'Apache 2.0'
|
11
12
|
|
12
13
|
gem.required_ruby_version = '>= 1.9.2'
|
13
14
|
|
@@ -20,6 +21,7 @@ Gem::Specification.new do |gem|
|
|
20
21
|
'*.gemspec',
|
21
22
|
'*_requirements.txt',
|
22
23
|
'README.md',
|
24
|
+
'LICENSE.txt',
|
23
25
|
'exec/**/*',
|
24
26
|
'task/*'
|
25
27
|
]).select { |file| File.file?(file) }
|
metadata
CHANGED
@@ -1,179 +1,180 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-opinion-detector-basic
|
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
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
15
|
requirement: !ruby/object:Gem::Requirement
|
21
16
|
requirements:
|
22
|
-
- -
|
17
|
+
- - ">="
|
23
18
|
- !ruby/object:Gem::Version
|
24
19
|
version: '0'
|
25
|
-
prerelease: false
|
26
20
|
type: :runtime
|
27
|
-
|
28
|
-
name: sinatra
|
21
|
+
prerelease: false
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
23
|
requirements:
|
31
|
-
- -
|
24
|
+
- - ">="
|
32
25
|
- !ruby/object:Gem::Version
|
33
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sinatra
|
34
29
|
requirement: !ruby/object:Gem::Requirement
|
35
30
|
requirements:
|
36
|
-
- -
|
31
|
+
- - ">="
|
37
32
|
- !ruby/object:Gem::Version
|
38
33
|
version: '0'
|
39
|
-
prerelease: false
|
40
34
|
type: :runtime
|
41
|
-
|
42
|
-
name: httpclient
|
35
|
+
prerelease: false
|
43
36
|
version_requirements: !ruby/object:Gem::Requirement
|
44
37
|
requirements:
|
45
|
-
- -
|
38
|
+
- - ">="
|
46
39
|
- !ruby/object:Gem::Version
|
47
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: httpclient
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
44
|
requirements:
|
50
|
-
- -
|
45
|
+
- - ">="
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
|
-
prerelease: false
|
54
48
|
type: :runtime
|
55
|
-
|
56
|
-
name: puma
|
49
|
+
prerelease: false
|
57
50
|
version_requirements: !ruby/object:Gem::Requirement
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: puma
|
62
57
|
requirement: !ruby/object:Gem::Requirement
|
63
58
|
requirements:
|
64
|
-
- -
|
59
|
+
- - ">="
|
65
60
|
- !ruby/object:Gem::Version
|
66
61
|
version: '0'
|
67
|
-
prerelease: false
|
68
62
|
type: :runtime
|
69
|
-
|
70
|
-
name: opener-daemons
|
63
|
+
prerelease: false
|
71
64
|
version_requirements: !ruby/object:Gem::Requirement
|
72
65
|
requirements:
|
73
|
-
- -
|
66
|
+
- - ">="
|
74
67
|
- !ruby/object:Gem::Version
|
75
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: opener-daemons
|
76
71
|
requirement: !ruby/object:Gem::Requirement
|
77
72
|
requirements:
|
78
|
-
- -
|
73
|
+
- - ">="
|
79
74
|
- !ruby/object:Gem::Version
|
80
75
|
version: '0'
|
81
|
-
prerelease: false
|
82
76
|
type: :runtime
|
83
|
-
|
84
|
-
name: opener-core
|
77
|
+
prerelease: false
|
85
78
|
version_requirements: !ruby/object:Gem::Requirement
|
86
79
|
requirements:
|
87
|
-
- -
|
80
|
+
- - ">="
|
88
81
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: opener-core
|
90
85
|
requirement: !ruby/object:Gem::Requirement
|
91
86
|
requirements:
|
92
|
-
- - ~>
|
87
|
+
- - "~>"
|
93
88
|
- !ruby/object:Gem::Version
|
94
89
|
version: '1.0'
|
95
|
-
prerelease: false
|
96
90
|
type: :runtime
|
97
|
-
|
98
|
-
name: opener-webservice
|
91
|
+
prerelease: false
|
99
92
|
version_requirements: !ruby/object:Gem::Requirement
|
100
93
|
requirements:
|
101
|
-
- -
|
94
|
+
- - "~>"
|
102
95
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: opener-webservice
|
104
99
|
requirement: !ruby/object:Gem::Requirement
|
105
100
|
requirements:
|
106
|
-
- -
|
101
|
+
- - ">="
|
107
102
|
- !ruby/object:Gem::Version
|
108
103
|
version: '0'
|
109
|
-
prerelease: false
|
110
104
|
type: :runtime
|
111
|
-
|
112
|
-
name: nokogiri
|
105
|
+
prerelease: false
|
113
106
|
version_requirements: !ruby/object:Gem::Requirement
|
114
107
|
requirements:
|
115
|
-
- -
|
108
|
+
- - ">="
|
116
109
|
- !ruby/object:Gem::Version
|
117
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: nokogiri
|
118
113
|
requirement: !ruby/object:Gem::Requirement
|
119
114
|
requirements:
|
120
|
-
- -
|
115
|
+
- - ">="
|
121
116
|
- !ruby/object:Gem::Version
|
122
117
|
version: '0'
|
123
|
-
prerelease: false
|
124
118
|
type: :runtime
|
125
|
-
|
126
|
-
name: cliver
|
119
|
+
prerelease: false
|
127
120
|
version_requirements: !ruby/object:Gem::Requirement
|
128
121
|
requirements:
|
129
|
-
- -
|
122
|
+
- - ">="
|
130
123
|
- !ruby/object:Gem::Version
|
131
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: cliver
|
132
127
|
requirement: !ruby/object:Gem::Requirement
|
133
128
|
requirements:
|
134
|
-
- -
|
129
|
+
- - ">="
|
135
130
|
- !ruby/object:Gem::Version
|
136
131
|
version: '0'
|
137
|
-
prerelease: false
|
138
132
|
type: :runtime
|
139
|
-
|
140
|
-
name: rspec
|
133
|
+
prerelease: false
|
141
134
|
version_requirements: !ruby/object:Gem::Requirement
|
142
135
|
requirements:
|
143
|
-
- -
|
136
|
+
- - ">="
|
144
137
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
146
141
|
requirement: !ruby/object:Gem::Requirement
|
147
142
|
requirements:
|
148
|
-
- - ~>
|
143
|
+
- - "~>"
|
149
144
|
- !ruby/object:Gem::Version
|
150
145
|
version: '3.0'
|
151
|
-
prerelease: false
|
152
146
|
type: :development
|
153
|
-
|
154
|
-
name: cucumber
|
147
|
+
prerelease: false
|
155
148
|
version_requirements: !ruby/object:Gem::Requirement
|
156
149
|
requirements:
|
157
|
-
- -
|
150
|
+
- - "~>"
|
158
151
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
152
|
+
version: '3.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: cucumber
|
160
155
|
requirement: !ruby/object:Gem::Requirement
|
161
156
|
requirements:
|
162
|
-
- -
|
157
|
+
- - ">="
|
163
158
|
- !ruby/object:Gem::Version
|
164
159
|
version: '0'
|
165
|
-
prerelease: false
|
166
160
|
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
167
|
description: Basic Opinion Detector.
|
168
|
-
email:
|
168
|
+
email:
|
169
169
|
executables:
|
170
|
+
- opinion-detector-basic-server
|
170
171
|
- opinion-detector-basic
|
171
172
|
- opinion-detector-basic-daemon
|
172
|
-
- opinion-detector-basic-server
|
173
173
|
extensions:
|
174
174
|
- ext/hack/Rakefile
|
175
175
|
extra_rdoc_files: []
|
176
176
|
files:
|
177
|
+
- LICENSE.txt
|
177
178
|
- README.md
|
178
179
|
- bin/opinion-detector-basic
|
179
180
|
- bin/opinion-detector-basic-daemon
|
@@ -334,26 +335,28 @@ files:
|
|
334
335
|
- task/submodules.rake
|
335
336
|
- task/test.rake
|
336
337
|
homepage: http://opener-project.github.com/
|
337
|
-
licenses:
|
338
|
+
licenses:
|
339
|
+
- Apache 2.0
|
338
340
|
metadata: {}
|
339
|
-
post_install_message:
|
341
|
+
post_install_message:
|
340
342
|
rdoc_options: []
|
341
343
|
require_paths:
|
342
344
|
- lib
|
343
345
|
required_ruby_version: !ruby/object:Gem::Requirement
|
344
346
|
requirements:
|
345
|
-
- -
|
347
|
+
- - ">="
|
346
348
|
- !ruby/object:Gem::Version
|
347
349
|
version: 1.9.2
|
348
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
351
|
requirements:
|
350
|
-
- -
|
352
|
+
- - ">="
|
351
353
|
- !ruby/object:Gem::Version
|
352
354
|
version: '0'
|
353
355
|
requirements: []
|
354
|
-
rubyforge_project:
|
356
|
+
rubyforge_project:
|
355
357
|
rubygems_version: 2.2.2
|
356
|
-
signing_key:
|
358
|
+
signing_key:
|
357
359
|
specification_version: 4
|
358
360
|
summary: Basic Opinion Detector.
|
359
361
|
test_files: []
|
362
|
+
has_rdoc:
|