Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8080557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:26:55+00:00 2026-06-05T16:26:55+00:00

I am trying to do Part of String tagging to pull out the nouns

  • 0

I am trying to do Part of String tagging to pull out the nouns of a sentence in Python on Google App Engine. So far I have tried to use the nltk library. But I am unable to get nltk working in GAE. The error message complains about a missing numpy module.

This person has had the same problem:
https://groups.google.com/forum/?fromgroups#!topic/nltk-users/2nWZtLgFyvI

I cannot find clear instructions on how to get nltk running on GAE or an alternative POS tagger that runs on GAE

EDIT:

My steps trying to get nltk working (I’m on osx 10.7):

  1. install nltk via terminal “easy_install nltk”
  2. copy nltk to root of appengine project /Library/Python/2.7/site-packages/nltk-2.0.1-py2.7.egg/nltk/
  3. add the following settings to app.yaml:

    runtime: python27
    threadsafe: false
    
    libraries:
      name: numpy
      version: "latest"
    
  4. write test.py with import nltk in it

  5. deploy, run and get the following error (the numpy error is solved, but I get a new one):

Traceback (most recent call last): File
“/base/data/home/apps/s~domain/1.359540170137090086/dynamic/test.py”,
line 4, in
import nltk File “/base/data/home/apps/s~domain/1.359540170137090086/nltk/init.py”,
line 116, in
import ccg File “/base/data/home/apps/s~domain/1.359540170137090086/nltk/ccg/init.py”,
line 14, in
from nltk.ccg.combinator import (UndirectedBinaryCombinator, DirectedBinaryCombinator, File
“/base/data/home/apps/s~domain/1.359540170137090086/nltk/ccg/combinator.py”,
line 8, in
from nltk.parse import ParserI File “/base/data/home/apps/s~domain/1.359540170137090086/nltk/parse/init.py”,
line 68, in
from nltk.parse.util import load_parser, TestGrammar, extract_test_sentences File
“/base/data/home/apps/s~domain/1.359540170137090086/nltk/parse/util.py”,
line 15, in
from nltk.data import load File “/base/data/home/apps/s~domain/1.359540170137090086/nltk/data.py”,
line 75, in
if os.path.expanduser(‘~/’) != ‘~/’: path += [ File “/base/python27_runtime/python27_dist/lib/python2.7/posixpath.py”,
line 259, in expanduser
import pwd ImportError: No module named pwd

The following is from nltk/data.py (around line 75):

######################################################################
# Search Path
######################################################################

path = []
"""A list of directories where the NLTK data package might reside.
These directories will be checked in order when looking for a
resource in the data package.  Note that this allows users to
substitute in their own versions of resources, if they have them
(e.g., in their home directory under ~/nltk_data)."""

# User-specified locations:
path += [d for d in os.environ.get('NLTK_DATA', '').split(os.pathsep) if d]
if os.path.expanduser('~/') != '~/': path += [
os.path.expanduser('~/nltk_data')]

# Common locations on Windows:
if sys.platform.startswith('win'): path += [
r'C:\nltk_data', r'D:\nltk_data', r'E:\nltk_data',
os.path.join(sys.prefix, 'nltk_data'),
os.path.join(sys.prefix, 'lib', 'nltk_data'),
os.path.join(os.environ.get('APPDATA', 'C:\\'), 'nltk_data')]

# Common locations on UNIX & OS X:
else: path += [
'/usr/share/nltk_data',
'/usr/local/share/nltk_data',
'/usr/lib/nltk_data',
'/usr/local/lib/nltk_data']
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:26:55+00:00Added an answer on June 5, 2026 at 4:26 pm

    GAE for python27 supports numpy 1.6.1. Are you specifying

    runtime: python27
    

    in your app.yaml? The link you gave pre-dates Python 2.7 support, so I’m guessing not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to remove part of the path in a string. I have the
I am trying to replace/modify a part of string in a python file from
Trying to make a list out of a string of part names. It's skipping
I am trying to delete part of a string that does not match my
I am trying to extract some part of string and store it to hbase
I am trying to get mid part of string. My table is like below
I am trying to encrypt a string but often only part of the string
I'm trying to return a certain part of a string. I've looked at substr
I am trying to match a string only if it is not part of
I'm trying to match the whole string and not just part of it. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.