api_utils module

exception api_utils.DownloadError(output)[source]

Bases: Exception

api_utils.fasttext_dowload(language_name, timeout=None)[source]

Downloads a fasttext model with language name

Parameters:language_name (str) – The language name for download
Returns:download in the designated language model to fastent folder
Return type:(void)
api_utils.fasttext_list()[source]

Return a Dictionary of the possible fasttext models

Parameters:None
Returns:Language to Model dictionary
Return type:diction_frac(dict)
api_utils.python_exec()[source]
api_utils.spacy_model_download(model_name, timeout=None)[source]

Downloads a spacy model with name

Parameters:model_name (str) – The model name for download
Returns:download in the designated folder of fastent
Return type:(void)