def try_download(corpus_name):
store_path = corpus_path(corpus_name)
if os.path.exists(store_path):
return True, store_path
try:
url = download_url(corpus_name)
filename, header = urlretrieve(url, store_path)
return True, filename
except:
print("Can't download: " + corpus_name)
return False, None
leipzig_corpora_downloader.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录