Sha256: 1182c2db8fab630fdd3c674f98cca771d9700224f0c0826107615d4b6068a8e1

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

require 'opener/webservice'

module Opener
  class LanguageIdentifier
    ##
    # A basic language identification server powered by Sinatra.
    #
    class Server < Opener::Webservice::Server
      set :views, File.expand_path('../views', __FILE__)

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
opener-language-identifier-4.4.3 lib/opener/language_identifier/server.rb
opener-language-identifier-4.4.1 lib/opener/language_identifier/server.rb
opener-language-identifier-4.4.0 lib/opener/language_identifier/server.rb
opener-language-identifier-4.3.2 lib/opener/language_identifier/server.rb
opener-language-identifier-4.3.1 lib/opener/language_identifier/server.rb
opener-language-identifier-4.3.0 lib/opener/language_identifier/server.rb
opener-language-identifier-4.2.2 lib/opener/language_identifier/server.rb
opener-language-identifier-4.2.1 lib/opener/language_identifier/server.rb
opener-language-identifier-4.2.0 lib/opener/language_identifier/server.rb
opener-language-identifier-4.1.0 lib/opener/language_identifier/server.rb