code: def from_file(filename, srcLang, destLang, serverEndpoint=ServerEndpoint):
      '''
      Traslates the content of source file to destination language
      :param filename: file whose contents needs translation
      :param srcLang: name of language of input file
      :param destLang: name of language of desired language
      :param serverEndpoint: Tika server end point (Optional)
      :return: translated content
      '''
      jsonOutput = doTranslate1(srcLang+':'+destLang, filename, serverEndpoint)
      return jsonOutput[1f from_file(filename, srcLang, destLang, serverEndpoint=ServerEndpoint):
      '''
      Traslates the content of source file to destination language
      :param filename: file whose contents needs translation
      :param srcLang: name of language of input file
      :param destLang: name of language of desired language
      :param serverEndpoint: Tika server end point (Optional)
      :return: translated content
      '''
      jsonOutput = doTranslate1(srcLang+':'+destLang, filename, serverEndpoint)
      return jsonOutput[1]
docs: Traslates the content of source file to destination language
      :param filename: file whose contents needs translation
      :param srcLang: name of language of input file
      :param destLang: name of language of desired language
      :param serverEndpoint: Tika server end point (Optional)
      :return: translated content