nltk/nltk — Issue #136: typo which generates object is unsubscriptable error 
Author: alexrudnick
Created: 2012-01-17 06:26:53+00:00
State: open

Which version of the book are you using?
interent version
Please specify the chapter and section number(s)
chapter 4: http://nltk.googlecode.com/svn/trunk/doc/book/ch04.html
section: Parameter Passing
last code snippet.
Please describe any problems in as much detail as possible, and feel free
to suggest fixes.
in the section's last code snippet, the following generates an error (TypeError: 'builtin_function_or_method' object is unsubscriptable):

properties.append['noun']

square brackets should be replaced by parenthesis:

properties.append('noun')

thank you.

Migrated from http://code.google.com/p/nltk/issues/detail?id=622

earlier comments

StevenBird1 said, at 2011-01-27T22:48:26.000Z:

Thanks for reporting this error. I will fix it in the repository. The online version will be updated in a few days (and the book when it is reprinted next).