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 6978829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:48:25+00:00 2026-05-27T17:48:25+00:00

Alright, I’ve been pretty interested in natural language processing recently: however, I’ve used C

  • 0

Alright, I’ve been pretty interested in natural language processing recently: however, I’ve used C until now for most of my work. I heard of NLTK, and I didn’t know Python, but it seems quite easy to learn, and it’s looking like a really powerful and interesting language. In particular, the NLTK module seems very, very adapted to what I need to do.

However, when using sample code for NLTK and pasting that into a file called test.py, I’ve noticed it takes a very, very long time to run !

I’m calling it from the shell like so:

time python ./test.py

And on a 2.4 GHz machine with 4 GBs of RAM, it takes 19.187 seconds !

Now, maybe this is absolutely normal, but I was under the impression that NTLK was extremely fast; I may have been mistaken, but is there anything obvious that I’m clearly doing wrong here?

  • 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-05-27T17:48:25+00:00Added an answer on May 27, 2026 at 5:48 pm

    I believe you’re conflating training time with processing time. Training a model, like a UnigramTagger, can take a lot of time. So can loading that trained model from a pickle file on disk. But once you have a model loaded into memory, processing can quite fast. See the section called “Classifier Efficiency” at the bottom of my post on part of speech tagging with NLTK to get an idea of processing speed for different tagging algorithms.

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

Sidebar

Related Questions

Alright I'm pretty new to programming and stuff and I'm now trying to code
Alright, I have been doing the following (variable names have been changed): FileInputStream fis
Alright, so I'm new to Android programming, so far my experience has been quite
Alright, hoping someone can help. I've got a page used to search for employees.
Alright, I or someone I work with broke the syntax here somewhere, and I'm
Alright, so I've been trying to implement a simple binary search tree that uses
Alright so i have been working on this Dynamic load of a spinner from
Alright so I have recently made the decision to put every string in my
Alright, so I've looked around the web and haven't been able to find what
Alright, so I think I'm pretty close to having what I need, but I'm

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.