opener-opinion-detector-base 2.1.5 → 2.2.0

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: 7de801f3bbc36a458a70d1f6ef87685609c099ba
4
- data.tar.gz: e32ddc8aa9e72a993a59ea7c14c0fd3ff1d67f07
3
+ metadata.gz: 79fa0e700f6ba048c6f75dbbc469c3b9cfbd8fab
4
+ data.tar.gz: cd9a57b63b72a9aa26e5cd674122e81cf24deb75
5
5
  SHA512:
6
- metadata.gz: a50fa0cee6a32cb981754ff353201dd1d81de5031e63879268cbfc53fa719e39420a66c42e7e634da807740f0c187e1743c1ef9646696e24c5ef146f617f99c3
7
- data.tar.gz: 2b3804870b0f73e460d9e79a7024192e25e194da4526420f77b8e5c584dd4adae6746cf629120dd800657a28f86ced5b768acc376a26910a689d75be09628733
6
+ metadata.gz: a5fa8ae55da335a24686f6ea27e9b1998a8578a8af57198e701cef1f14712176ad2a5261628079734abcb4b7584b9fe30cea7911488ed66bf1112c83786517bc
7
+ data.tar.gz: 6e6d92169df09a1cea035ac529e281c8a5d085ae98b7ecb022c079ea990a0a46df4a4818df888f3d781e4c699c1a17e24457c0a0dc7b72297b09060e4f9eaee9
@@ -10,10 +10,5 @@ else
10
10
  end
11
11
 
12
12
  kernel = Opener::OpinionDetectors::Base.new(:args => ARGV)
13
- stdout, stderr, process = kernel.run(input)
14
13
 
15
- if process.success?
16
- puts stdout
17
- else
18
- abort stderr
19
- end
14
+ puts kernel.run(input)
@@ -59,7 +59,7 @@ module Opener
59
59
  # process information.
60
60
  #
61
61
  # @param [String] input The input to tag.
62
- # @return [Array]
62
+ # @return [String]
63
63
  #
64
64
  def run(input)
65
65
  language = language(input)
@@ -68,11 +68,14 @@ module Opener
68
68
  options[:domain],
69
69
  options[:resource_path]
70
70
  )
71
+
71
72
  stdout, stderr, process = capture(conf.config_file_path, input)
73
+
72
74
  conf.close_config
73
-
74
-
75
- return stdout, stderr, process
75
+
76
+ raise stderr unless process.success?
77
+
78
+ return stdout
76
79
  end
77
80
 
78
81
  protected
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  module OpinionDetectors
3
3
  class Base
4
- VERSION = "2.1.5"
4
+ VERSION = "2.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-opinion-detector-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.2.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-06-12 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -112,14 +112,22 @@ files:
112
112
  - core/python-scripts/run_basic.py
113
113
  - core/python-scripts/run_experiment.sh
114
114
  - core/python-scripts/scripts/__init__.py
115
+ - core/python-scripts/scripts/__init__.pyo
115
116
  - core/python-scripts/scripts/config_manager.py
117
+ - core/python-scripts/scripts/config_manager.pyo
116
118
  - core/python-scripts/scripts/crfutils.py
119
+ - core/python-scripts/scripts/crfutils.pyo
117
120
  - core/python-scripts/scripts/extract_feats_relations.py
121
+ - core/python-scripts/scripts/extract_feats_relations.pyo
118
122
  - core/python-scripts/scripts/extract_features.py
123
+ - core/python-scripts/scripts/extract_features.pyo
119
124
  - core/python-scripts/scripts/feats_to_crf.exp.py
120
125
  - core/python-scripts/scripts/lexicons.py
126
+ - core/python-scripts/scripts/lexicons.pyo
121
127
  - core/python-scripts/scripts/link_entities_distance.py
128
+ - core/python-scripts/scripts/link_entities_distance.pyo
122
129
  - core/python-scripts/scripts/relation_classifier.py
130
+ - core/python-scripts/scripts/relation_classifier.pyo
123
131
  - core/python-scripts/train.py
124
132
  - core/vendor/src/crfsuite/AUTHORS
125
133
  - core/vendor/src/crfsuite/COPYING