Re: Import Problem - Please help

2009-09-07 Thread newb.py
On Sep 7, 6:55 pm, Ned Deily  wrote:
> In article
> <8119a298-4660-4680-b460-0924c9baa...@e4g2000prn.googlegroups.com>,
>
>  "newb.py"  wrote:
> > On Sep 7, 5:40 pm, "newb.py"  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 "", line 1, in 
> > > 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...@acm.org

Fantastic. Thanks so much!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Import Problem - Please help

2009-09-07 Thread Ned Deily
In article 
<8119a298-4660-4680-b460-0924c9baa...@e4g2000prn.googlegroups.com>,
 "newb.py"  wrote:
> On Sep 7, 5:40 pm, "newb.py"  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 "", line 1, in 
> > 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...@acm.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Import Problem - Please help

2009-09-07 Thread newb.py
On Sep 7, 5:40 pm, "newb.py"  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 "", line 1, in 
> ImportError: No module named nltk_lite.utilities
>
> I have installed nltk already and have a problem where I need to
> remove vowels from text. I think I need this module to complete it.
>
> Any help would be much appreciated.
>
> Thanks.

My version of Python is 2.6.2. It seems that might make a difference
here, but I can't figure it out. Again, any help would be fantastic.

Thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list


Import Problem - Please help

2009-09-07 Thread newb.py
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 "", line 1, in 
ImportError: No module named nltk_lite.utilities

I have installed nltk already and have a problem where I need to
remove vowels from text. I think I need this module to complete it.

Any help would be much appreciated.

Thanks.

-- 
http://mail.python.org/mailman/listinfo/python-list