Hi

from nltk.tagger import TaggedTokenizer

 

I’m not familiar with this module but looking at the error it looks like the TaggedTokenizer module maybe misspelled or does not exists or the same with tagger

Maybe an upcase letter or something like that

Check your library for the correct name... If it’s correct then I’m screwed *grin*. Perhaps other tutor

 

Best Regards,

 

Alberto

 

 


De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de enas khalil
Enviado el: Martes, 11 de Octubre de 2005 08:28
Para: python-list@python.org; tutor@python.org
Asunto: [Tutor] 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=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.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to