language-identifier/lib/opener/language_identifier.rb
##
# Builds a KAF document containing the input and the correct XML language
# tag based on the output of the kernel.
#
# @param [String] input The input text.
# @param [String] language The detected language
# @return [String]
#
Builds a KAF document containing the input and the correct XML language
tag based on the output of the kernel.
Builds a KAF document containing the input and the correct XML language tag based on the output of the kernel .
def build_kaf(input, language)
      builder = KafBuilder.new(input, language)
      builder.build
      return builder.to_s
    end
def build_kaf ( input , language ) builder = KafBuilder . new ( input , language ) builder . build return builder . to_s end
Builds a KAF document containing the input and the correct XML language
tag based on the output of the kernel.
Builds a KAF document containing the input and the correct XML language tag based on the output of the kernel .
None
String
input
language
language The detected language
language The detected language