Sha256: f7a613199bd0eb00f19556688508c20b1e1992f9345de9eadbb261545a4806be
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
gem 'slop', '~> 3.0' require 'active_support/all' require 'slop' require 'hashie' require 'nokogiri' require 'rexml/document' require 'rexml/formatters/pretty' require_relative 'opinion_detector_basic/kaf/document' require_relative 'opinion_detector_basic/kaf/term' require_relative 'opinion_detector_basic/kaf/opinion' require_relative 'opinion_detector_basic/version' require_relative 'opinion_detector_basic/cli' require_relative 'opinion_detector_basic/base_processor' require_relative 'opinion_detector_basic/processor' require_relative 'opinion_detector_basic/legacy_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 @klass = if ENV['OPINION_LEGACY'] then LegacyProcessor else Processor end end ## # Processes the input KAF document. # # @param [String] input # @return [String] # def run input, params = {} @klass.new(input, options).process end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opener-opinion-detector-basic-3.2.4 | lib/opener/opinion_detector_basic.rb |