nlpaug.util.file.download¶
-
class
nlpaug.util.file.download.
DownloadUtil
[source]¶ Bases:
object
Helper function for downloading external dependency
>>> from nlpaug.util.file.download import DownloadUtil
-
static
download_fasttext
(model_name, dest_dir)[source]¶ Parameters: - model_name (str) – GloVe pre-trained model name. Possible values are ‘wiki-news-300d-1M’, ‘wiki-news-300d-1M-subword’, ‘crawl-300d-2M’ and ‘crawl-300d-2M-subword’
- dest_dir (str) – Directory of saving file
>>> DownloadUtil.download_fasttext('glove.6B', '.')
-
static
download_glove
(model_name, dest_dir)[source]¶ Parameters: - model_name (str) – GloVe pre-trained model name. Possible values are ‘glove.6B’, ‘glove.42B.300d’, ‘glove.840B.300d’ and ‘glove.twitter.27B’
- dest_dir (str) – Directory of saving file
>>> DownloadUtil.download_glove('glove.6B', '.')
-
static