zoukankan      html  css  js  c++  java
  • sklearn word2vec 实践

    源代码: https://blog.csdn.net/github_38705794/article/details/75452729

    一、复现时报错:

    Traceback (most recent call last):
    File "D:Programpython3libsite-packages ltkcorpusutil.py", line 80, in __load
    try: root = nltk.data.find('{}/{}'.format(self.subdir, zip_name))
    File "D:Programpython3libsite-packages ltkdata.py", line 675, in find
    raise LookupError(resource_not_found)
    LookupError:

    解决方法:

    https://stackoverflow.com/questions/26693736/nltk-and-stopwords-fail-lookuperror

    You don't seem to have the stopwords corpus on your computer.

    You need to start the NLTK Downloader and download all the data you need.

    Open a Python console and do the following:

    >>> import nltk
    >>> nltk.download()
    showing info http://nltk.github.com/nltk_data/

    In the GUI window that opens simply press the 'Download' button to download all corpora or go to the 'Corpora' tab and only download the ones you need/want.

  • 相关阅读:
    docker
    redis 3.2.6 on ubuntu 14.04
    go异常处理
    go语言的命令行库
    iptables
    nsq
    etcd-v2第一集
    rabbitmq, windows/linux, c/c++/node.js/golang/dotnet
    zeromq:c,c++,golang及nodejs使用
    golang下的grpc
  • 原文地址:https://www.cnblogs.com/Allen-rg/p/9568042.html
Copyright © 2011-2022 走看看