• NLTK下载数据的方法


    NLTK ERROR LOADING 问题解决方法(使用nltk下载)

    参考:https://blog.csdn.net/justlpf/article/details/121707223

    https://www.nltk.org/data.html#

    手动从这歌网站下载zip

    https://github.com/nltk/nltk_data/tree/gh-pages

    如果解压缩失败,使用这个网站下载github的链接,注意是复制zip的链接

    https://d.serctl.com

    输入下面这条

    https://d.serctl.com/?url=https://github.com/nltk/nltk_data/archive/refs/heads/gh-pages.zip

    参考官方文档的要求,需要新建nltk_data文件夹,同时新建相应的文件夹https://www.nltk.org/data.html#

    Manual installation

    Create a folder nltk_data, e.g. C:\nltk_data, or /usr/local/share/nltk_data, and subfolders chunkersgrammarsmiscsentimenttaggerscorporahelpmodelsstemmerstokenizers.

    Download individual packages from https://www.nltk.org/nltk_data/ (see the “download” links). Unzip them to the appropriate subfolder. For example, the Brown Corpus, found at:https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/corpora/brown.zip is to be unzipped to nltk_data/corpora/brown.

    Set your NLTK_DATA environment variable to point to your top level nltk_data folder.

    附上vader的相关链接(与本文下载无关https://www.jianshu.com/p/6d005a14d364)

  • 相关阅读:
    UVA 10131题解
    算法常见概念
    图算法概论
    POJ 1654 area 解题
    大数阶乘的位数和精确值计算
    printf()与 scanf()
    想编程之美竞赛
    所感所想
    Git 入门和常用命令详解
    使用crypto模块实现md5加密功能(解决中文加密前后端不一致的问题)
  • 原文地址:https://www.cnblogs.com/xingnie/p/16122030.html
Copyright © 2020-2023  润新知