Sha256: a522ad5b505dc64ef430d680f1c560c7014addedb563761121b8dc15e539acd4

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

require 'opener/webservice'

module Opener
  class Tokenizer
    ##
    # Text tokenizer server powered by Sinatra.
    #
    class Server < Webservice::Server
      set :views, File.expand_path('../views', __FILE__)

      self.text_processor  = Tokenizer
      self.accepted_params = [:input, :kaf, :language]
    end # Server
  end # Tokenizer
end # Opener

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opener-tokenizer-2.2.0 lib/opener/tokenizer/server.rb
opener-tokenizer-2.1.2 lib/opener/tokenizer/server.rb
opener-tokenizer-2.1.1 lib/opener/tokenizer/server.rb
opener-tokenizer-2.1.0 lib/opener/tokenizer/server.rb
opener-tokenizer-2.0.0 lib/opener/tokenizer/server.rb