Code Monkey home page Code Monkey logo

Comments (5)

alvations avatar alvations commented on June 10, 2024

What is your nltk version?

$ python3
>>> import nltk
>>> print (nltk.__version__)

Try upgrading the NLTK version using:

pip install -U nltk

Perhaps this might help too: https://gist.github.com/alvations/0ed8641d7d2e1941b9f9

After upgrading the NLTK version, you should see:

$ python -m nltk.downloader averaged_perceptron_tagger
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     /Users/liling.tan/nltk_data...
[nltk_data]   Package averaged_perceptron_tagger is already up-to-
[nltk_data]       date!

Do get back if any of the above has helped you to fix the error! =)

from pywsd.

alvations avatar alvations commented on June 10, 2024

If you're still having problems with the NLTK data, please take a look at https://stackoverflow.com/questions/22211525/how-do-i-download-nltk-data

from pywsd.

sheqiZ avatar sheqiZ commented on June 10, 2024

upgrading nlkt and downloading resources work!

from pywsd.

Priyavrat13 avatar Priyavrat13 commented on June 10, 2024

upgrading nlkt Didn't work for me. getting this error: [nltk_data] Error loading averaged_perceptron_tagger: <urlopen error
[nltk_data] [WinError 10054] An existing connection was forcibly
[nltk_data] closed by the remote host>
Please help

from pywsd.

mahaanand7 avatar mahaanand7 commented on June 10, 2024

python -m nltk.downloader averaged_perceptron_tagger

Thank you alvations ! it works

( $ python -m nltk.downloader averaged_perceptron_tagger
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /Users/liling.tan/nltk_data...
[nltk_data] Package averaged_perceptron_tagger is already up-to-
[nltk_data] date! )

from pywsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.