Class: Opener::LanguageIdentifier::Server
- Inherits:
-
Webservice
- Object
- Webservice
- Opener::LanguageIdentifier::Server
- Defined in:
- lib/opener/language_identifier/server.rb
Overview
A basic language identification server powered by Sinatra.
Instance Method Summary collapse
-
#analyze(options) ⇒ String, Symbol
Gets the Analyzed output of an input.
Instance Method Details
#analyze(options) ⇒ String, Symbol
Gets the Analyzed output of an input.
24 25 26 27 28 29 30 |
# File 'lib/opener/language_identifier/server.rb', line 24 def analyze() [:kaf] = true if [:kaf].nil? processor = text_processor.new() output = processor.run([:input]) return output end |