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.
-- http://mail.python.org/mailman/listinfo/python-list