I follow the command,
sent = nltk.corpus.treebank.tagged_sents()[22]
>>> print nltk.ne_chunk(sent, binary=True) [1]
but there is a error
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: ne_chunk() got an unexpected keyword argument 'binary'
CHeers,
--
Wei WANG
wei....@ensta.fr
ENSTA, ParisTech
Yes, they're slightly out of sync, sorry. I hoped to have 0.9.9 final
released before traveling to New Guinea for a field trip. It won't
happen until I get back at the end of the month, unless Edward has
time.
If anyone can hang out on nltk-users and answer questions there, it
would be much appreciated.
Thanks,
-Steven
Hi,
I did take a look at the nltk/chunk/named_entity.py. That is what gave
rise to the question. I thought I might have been missing the data.
But since, as you pointed out, the data is not free, everything makes
sense.
Thanks,
Petro