wikipedia.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:spacy-dev-resources 作者: explosion 项目源码 文件源码
def download(corpus_dir, out_file, lang, date=DEFAULT_DATE):
    data_dir = corpus_dir
    if exists(join(data_dir, out_file)):
        return

    url = DUMP_URL.format(lang=lang, date=date)
    local("mkdir -p {dir}".format(dir=data_dir))
    with lcd(data_dir):
        local("wget {}".format(url))
        local("mv {} {}".format(DUMP_FILE.format(lang=lang, date=date), out_file))


# @task
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号