Sha256: 5b4270b1f6631f41bfa0facfffa735789745ae2d2d04b2293dde3be99fafa38e
Contents?: true
Size: 886 Bytes
Versions: 2
Compression:
Stored size: 886 Bytes
Contents
module Opener class ChainedDaemon DEFAULT_OPTIONS = { } def initialize options = {} @options = DEFAULT_OPTIONS.merge options @queue_map = { 'opener-language-identifier': Opener::LanguageIdentifier.new, 'opener-tokenizer': Opener::Tokenizer.new, 'opener-pos-tagger': Opener::POSTagger.new, 'opener-polarity-tagger': Opener::PolarityTagger.new, 'opener-property-tagger': Opener::PropertyTagger.new, 'opener-ner': Opener::Ner.new, 'opener-opinion-detector-basic': Opener::OpinionDetectorBasic.new, } end def run input output = nil @queue_map.each do |queue, component| File.write "input-#{queue}", input if ENV['DEBUG'] output = component.run input input = output end output end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opener-chained-daemon-1.0.1 | lib/opener/chained_daemon/chained_daemon.rb |
opener-chained-daemon-1.0.0 | lib/opener/chained_daemon/chained_daemon.rb |