Re: [Tutor] Where is the error

2005-10-11 Thread Alberto Troiano
] Where is the error   hello, when i run the following code to Read and tokenize data from a tagged text as follows : from nltk.corpus import brown from nltk.tagger import TaggedTokenizer from nltk.tokenizer import * tagged_txt_str=open('corpus.txt' ).read() tagged_txt_token=

Re: [Tutor] Where is the error

2005-10-11 Thread Kent Johnson
What version of NLTK are you using? From a look at the API docs, nltk.tagger.TaggedTokenizer seems to have been removed in v1.4. Kent enas khalil wrote: > hello, > > > when i run the following code to Read and tokenize data from a > tagged text as follows : > > >

[Tutor] Where is the error

2005-10-11 Thread enas khalil
hello, when i run the following code to Read and tokenize data from a tagged text as follows : from nltk.corpus import brownfrom nltk.tagger import TaggedTokenizerfrom nltk.tokenizer import *tagged_txt_str=open('corpus.txt' ).read()tagged_txt_token=Token(TEXT=tagged_txt_str)TaggedTokenizer.token