Where is the error

enas khalil enas_khalil at yahoo.com
Tue Oct 11 08:28:00 EDT 2005


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=Token(TEXT=tagged_txt_str)
TaggedTokenizer.tokenize(tagged_txt_token)
print tagged_txt_token

 


i got the following error :
Traceback (most recent call last):
File "C:\My Documents\TAGGING.PY", line 3, in -toplevel-
from nltk.tagger import TaggedTokenizer
ImportError: cannot import name TaggedTokenizer


 

 

 

could anyone help me 

thanks in advance

enas





		
---------------------------------
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051011/5c05ad31/attachment.html>


More information about the Python-list mailing list