Sha256: 5e50fe5923c2843c93589a731694e2ae6bf727cb236d469aa9c9adc2956b9931

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require 'open3'
require 'opener/core'
require 'nokogiri'
require 'hashie'

require_relative 'polarity_tagger/version'
require_relative 'polarity_tagger/cli'
require_relative 'polarity_tagger/external'

require_relative 'polarity_tagger/internal'

module Opener
  class PolarityTagger

    def initialize options = {}
      @args    = options.delete(:args) || []
      @options = options
      @klass   = if ENV['LEGACY'] then External else Internal end
      @proc    = @klass.new args: @args
    end

    def run input
      @proc.run input
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opener-polarity-tagger-3.1.3 lib/opener/polarity_tagger.rb
opener-polarity-tagger-3.1.2 lib/opener/polarity_tagger.rb
opener-polarity-tagger-3.1.1 lib/opener/polarity_tagger.rb
opener-polarity-tagger-3.1.0 lib/opener/polarity_tagger.rb