Import Problem - Please help

Ned Deily nad at acm.org
Tue Sep 8 03:55:09 CEST 2009


In article 
<8119a298-4660-4680-b460-0924c9baa756 at e4g2000prn.googlegroups.com>,
 "newb.py" <seanm.py at gmail.com> wrote:
> On Sep 7, 5:40 pm, "newb.py" <seanm... at gmail.com> wrote:
> > I am trying to learn NLP with Python and am getting the following
> > error when trying to do an import statement:
> >
> > >>> import nltk
> > >>> import re
> > >>> from nltk_lite.utilities import re_show
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > ImportError: No module named nltk_lite.utilities

Guessing from the current documentation, try replacing the third line 
with:

>>> from nltk.util import re_show

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list