views:

46

answers:

0

Hello,

can someone please post some kind of example for using this to read a file.

for example: the fox{{some_tag}} jumped over the((some_other_tag)) lazy dog.

the api for it is in: http://nltk.googlecode.com/svn/trunk/doc/api/nltk.corpus.reader.chunked.ChunkedCorpusReader-class.html

i can get it to read files and split them over commas periods etc.. however i can't get it to see the tags, that it to understand them, all it does now is for example: (fox{{some_tag}} , none)

which is kind of useless...

I've spent an hour trying to make it work... now I'm just doing it manually, but I'd still like to know.

Thank you