We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm trying to use 'How to Do Things with Words' notebook but...
NameError Traceback (most recent call last) in () ----> 1 TEXT = file('big.txt').read() 2 len(TEXT)
NameError: name 'file' is not defined
I think this should be replaced to use open() instead of file().
I was able to use 'big.txt' downloading from https://norvig.com/big.txt .Not sure if its the same.
I'll upload a PR to make it py3 compatible.
The text was updated successfully, but these errors were encountered:
Good catch. Probably best to put 'big.txt', and any other such files, in the data directory (under, say, a /text subdirectory).
Sorry, something went wrong.
You will find attached the zipped python 3 code (including links to related stackoverflow pages and the actualized link for the Turing Picture).
Thank you Peter Norvig for this (2.6) very nice code !
How to Do Things with Words_modified_for_PY3.zip
Closing since #50 is merged
No branches or pull requests
Hello,
I'm trying to use 'How to Do Things with Words' notebook but...
NameError Traceback (most recent call last)
in ()
----> 1 TEXT = file('big.txt').read()
2 len(TEXT)
NameError: name 'file' is not defined
I think this should be replaced to use open() instead of file().
I was able to use 'big.txt' downloading from https://norvig.com/big.txt .Not sure if its the same.
I'll upload a PR to make it py3 compatible.
The text was updated successfully, but these errors were encountered: