opener-chained-daemon 3.3.27 → 3.3.28

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: e83c74ace7ac1fcea9f3bba67f382d3385c760239f0dcf15c1e25065ae08c32b
4
- data.tar.gz: 2dbbf7d2c944848579447e480cdd4717f38287ecce7f4e1db0082998f064bb1f
3
+ metadata.gz: 9e9df6a9df0e96f3eaa46768ad977b462f184e8c0c3acf885fe329d742ceceb2
4
+ data.tar.gz: 265dabebf7140197d17ff57c6164ee8074faa721a5ada1ead74c95f66b017d82
5
5
  SHA512:
6
- metadata.gz: 3345992a49034902f1365bbc5d5ad49842e7e754878fcc3dd5a7bed74fecb3f3efa5c4b6e1a5b8ec44acb1870591c5785998ab464b6c90130ed70a3399290b5c
7
- data.tar.gz: caa151ca85ec4d7cf4e58bc4b60b8bd70fc25cbecb4cdd4fd2ac3ab0da4c773fc1d423d6c9abe54828024c4ce241dd0927eea535804c35e9dfc23b1e1f500806
6
+ metadata.gz: b7fce08c97922a65291678ce1a1cd5d19c602219bdc61aee29ef138ae4515c882f9dadf9baa4f0ad3b8a66ec7381c135f30521218f937bcf0ec24be10f5bdfce
7
+ data.tar.gz: 546641060babcb2ce262e9e01a7d6d1d1f73daccfe7b7490ff42c88dc22cd532c3c6bd0d043d979f7c18f8ff625033e2a3827fe2282b0727418a1a9b510b5b45
data/bin/chained-daemon CHANGED
@@ -4,4 +4,15 @@ require 'bundler/setup'
4
4
  require_relative '../lib/opener/chained_daemon'
5
5
 
6
6
  cli = Opener::ChainedDaemon::CLI.new
7
- cli.run
7
+ kaf = cli.run
8
+
9
+ require 'kaf_processor'
10
+ Sequel.extension :pg_array, :pg_array_ops
11
+ kaf = KafProcessor::KAF::Document.from_xml kaf
12
+ opinions = KafProcessor::Processor::ReviewOpinions.new(kaf).opinions
13
+ scoring = KafProcessor::Processor::SentimentScoring.new(kaf, opinions: opinions).calculate
14
+ sentences = KafProcessor::Processor::TextNodes.new(kaf).sentences_build
15
+
16
+ pp opinions
17
+ pp sentences
18
+
@@ -61,7 +61,7 @@ module Opener
61
61
  output = xml.to_s
62
62
  end
63
63
 
64
- output = pretty_print output if params.cache_keys.environment == 'staging'
64
+ output = pretty_print output if ENV['DEBUG'] || params.cache_keys.environment == 'staging'
65
65
  output
66
66
 
67
67
  rescue Core::UnsupportedLanguageError
@@ -19,6 +19,7 @@ module Opener
19
19
  #
20
20
  def run argv = ARGV
21
21
  parser.parse argv
22
+ $output
22
23
  end
23
24
 
24
25
  ##
@@ -59,8 +60,8 @@ Example:
59
60
  merged: (true if env == 'staging'),
60
61
  }
61
62
 
62
- output = daemon.run input, params
63
- puts output
63
+ $output = daemon.run input, params
64
+ puts $output
64
65
  end
65
66
  end
66
67
  end
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  class ChainedDaemon
3
3
 
4
- VERSION = '3.3.27'
4
+ VERSION = '3.3.28'
5
5
 
6
6
  end
7
7
  end
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'httpclient'
27
27
  spec.add_dependency 'hashie'
28
28
 
29
+ spec.add_dependency 'rexml'
29
30
  spec.add_dependency 'roda'
30
31
  spec.add_dependency 'rack-timeout'
31
32
  spec.add_dependency 'oni', '>= 4.3.1'
@@ -35,7 +36,7 @@ Gem::Specification.new do |spec|
35
36
  spec.add_dependency 'opener-language-identifier', '>= 4.4.3'
36
37
  spec.add_dependency 'opener-property-tagger', '>= 3.4.3'
37
38
  spec.add_dependency 'opener-polarity-tagger', '>= 3.5.5'
38
- spec.add_dependency 'opener-opinion-detector-basic', '>= 3.2.8'
39
+ spec.add_dependency 'opener-opinion-detector-basic', '>= 3.3.0'
39
40
 
40
41
  spec.add_development_dependency 'bundler', '~> 1.3'
41
42
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-chained-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.27
4
+ version: 3.3.28
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: 2023-05-01 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rexml
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: roda
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +198,14 @@ dependencies:
184
198
  requirements:
185
199
  - - ">="
186
200
  - !ruby/object:Gem::Version
187
- version: 3.2.8
201
+ version: 3.3.0
188
202
  type: :runtime
189
203
  prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
206
  - - ">="
193
207
  - !ruby/object:Gem::Version
194
- version: 3.2.8
208
+ version: 3.3.0
195
209
  - !ruby/object:Gem::Dependency
196
210
  name: bundler
197
211
  requirement: !ruby/object:Gem::Requirement
@@ -279,10 +293,10 @@ dependencies:
279
293
  description: OpeNER daemon for processing multiple queues at once
280
294
  email:
281
295
  executables:
282
- - console
296
+ - chained-daemon
283
297
  - chained-daemon-csv
284
298
  - chained-daemon-daemon
285
- - chained-daemon
299
+ - console
286
300
  extensions: []
287
301
  extra_rdoc_files: []
288
302
  files:
@@ -324,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
338
  - !ruby/object:Gem::Version
325
339
  version: '0'
326
340
  requirements: []
327
- rubygems_version: 3.2.3
341
+ rubygems_version: 3.3.7
328
342
  signing_key:
329
343
  specification_version: 4
330
344
  summary: OpeNER daemon for processing multiple queues at once