Import Problem - Please help

newb.py seanm.py at gmail.com
Mon Sep 7 22:22:39 EDT 2009


On Sep 7, 6:55 pm, Ned Deily <n... at acm.org> wrote:
> In article
> <8119a298-4660-4680-b460-0924c9baa... at e4g2000prn.googlegroups.com>,
>
>  "newb.py" <seanm... 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,
>  n... at acm.org

Fantastic. Thanks so much!



More information about the Python-list mailing list