language-identifier/lib/opener/language_identifier.rb
def run(input)
      if options[:probs]
        output = @detector.probabilities(input)
      else
        output = @detector.detect(input)
        output = build_kaf(input, output) if options[:kaf]
      end

      return output
    end
##
# Processes the input and returns an Array containing the output of STDOUT,
# STDERR and an object containing process information.
#
# @param [String] input The text of which to detect the language.
# @return [Array]
#
Processes the input and returns an Array containing the output of STDOUT,
STDERR and an object containing process information.
Processes the input and returns an Array containing the output of STDOUT STDERR and an object containing process information .
def run(input)
      if options[:probs]
        output = @detector.probabilities(input)
      else
        output = @detector.detect(input)
        output = build_kaf(input, output) if options[:kaf]
      end
      return output
    end
def run ( input ) if options [ :probs ] output = @detector . probabilities ( input ) else output = @detector . detect ( input ) output = build_kaf ( input , output ) if options [ :kaf ] end return output end
Processes the input and returns an Array containing the output of STDOUT,
STDERR and an object containing process information.
Processes the input and returns an Array containing the output of STDOUT STDERR and an object containing process information .
None
Array
input
input The text of which to detect the language.
input The text of which to detect the language .