I'm trying to get text processing working with NLTK. I have successfully gotten a simple program running to use a text file from the web, and I can't figure out how to get it to point at one of my own files. I've looked at the PA advice about setting a path to one of my own files, but if I start the address with /home I get "ValueError: unknown url type:"--I think because it doesn't start with http?
Here's the code. It works fine if the URL is, say, a Project Gutenberg text file address. How can I substitute one of my uploaded files?
1 2 3 4 5 6 7 8 9 10 11 12 |
|