In addition to what Jeff said, you can use zipimport to reduce the
number of files in your project (there is a 1,000-files limit).

This article explains how to do it by the example of Django 1.0 source
code:
http://code.google.com/appengine/articles/django10_zipimport.html

--
www.muspy.com

On Nov 14, 4:42 am, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi Alex,
>
> I'm not familiar with NLTK but in general the way to include Python
> libraries in your app is to place the source code in the top level
> directory of your app so that it is uploaded along with your app's
> code. Your app's directory structure might look something like this:
>
> app_name/
>   |- app.yaml
>   |- <your code>
>   |- ntlk
>      |- chat
>      |- chunk
>      |- classify
>      |- ...
>
> If NLTK has other Python libraries which it depends on, those will
> also need to be included in your app. If these libraries are not pure
> Python (contain C code) then you will not be able to use them on App
> Engine.
>
> http://code.google.com/appengine/kb/commontasks.html#thirdparty
>
> Happy coding,
>
> Jeff
>
> On Nov 12, 7:42 am, alexarsh <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I have appengine project and I would like to use nltk libraries.
> > Can someone give me a step by step instructions how to include nltk
> > libraries to my project in order to be able to do "import nltk" from
> > my appengine project?
>
> > Thanks, Alex Arshavski.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to