Sha256: 168631d05ed64d96633d996351ff2d52bce90ed7476562ed243593e3d4783e03
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
require 'slop' require 'oga' require 'monitor' require 'rexml/document' require 'rexml/formatters/pretty' require_relative 'opinion_detector_basic/version' require_relative 'opinion_detector_basic/cli' require_relative 'opinion_detector_basic/processor' module Opener ## # Rule based opinion detector. # # @!attribute [r] args # @return [Array] # # @!attribute [r] options # @return [Hash] # class OpinionDetectorBasic attr_reader :args, :options ## # @param [Hash] options # # @option options [Array] :args Command-line arguments to pass to the # underlying Python kernel. # def initialize(options = {}) @args = options.delete(:args) || [] @options = options end ## # Processes the input KAF document. # # @param [String] input # @return [String] # def run(input) options[:timestamp] = !options.delete(:no_time) return Processor.new(input, options).process end end # OpinionDetectorBasic end # Opener
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opener-opinion-detector-basic-3.0.1 | lib/opener/opinion_detector_basic.rb |
opener-opinion-detector-basic-3.0.0 | lib/opener/opinion_detector_basic.rb |