Elisa
Elisa

Reputation: 13

Output generated is different with output in NLTK tutorial

Today I start to learn Python because I need to use NLTK in my assignment. In order to learn it, I follow the tutorial in this site http://www.nltk.org/book/ch01.html. However, when I run the programme in Python interpreter, the output produced is not same with what has been shown in the website and I have no idea on what thing that this output wants to tell me.

(Below is the picture of the output:)

Input: >>> from nltk.book import *

Output (After I hit 'Enter'):

So now my questions are what is the error about and if there is a way to solve it, then what should I need to do?

Thanks for looking into my problem.

Upvotes: 0

Views: 51

Answers (1)

John Wiseman
John Wiseman

Reputation: 3137

This appears to be a known bug with nltk and Python 3. It seems to have been fixed within the past two weeks, but I expect you'll have to wait until there's a release that contains the fix. You could try installing from source.

Upvotes: 1

Related Questions