On 10/12/05, enas khalil <[EMAIL PROTECTED]> wrote: > > and got the following error : > Traceback (most recent call last): > File "F:\MSC first Chapters\error correct.py", line 19, in -toplevel- > tagger.train(tagged_txt_token) > File > "C:\Python24\Lib\site-packages\nltk\tagger\__init__.py", > line 332, in train > tag = subtok[TAG] > KeyError: 'TAG' > >>> > please help > thanks > enas
this error is due to TAG = 'TAG' and this key not being in your subtok dictionary. what are you trying to accomplish in your application? it looks like you are following a lesson plan of a course in natural language processing. -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2006,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor