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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:12:35+00:00 2026-06-09T10:12:35+00:00

Anyone know of a simple way to use Python and NLTK to get the

  • 0

Anyone know of a simple way to use Python and NLTK to get the article that follows closest to a search query? For example, I would like to take 10 articles from Wikipedia, find the frequency distributions for each of them (along with another method of classification, if you have any recommendations), and based on a search query, return the most likely articles that you may be referring to.

Any ideas? I would like a better method other than frequency distribution but I thought I would start there.

  • 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-09T10:12:37+00:00Added an answer on June 9, 2026 at 10:12 am

    Rocchio’s algorithm aka TFxIDF aka aka tf-idf aka tfidf aka even tf/idf (sic) is pretty much the standard solution. Instead of the bare frequency, you calculate the term frequency for the whole document set, then express the term’s weight as the document’s term frequency divided by the total frequency count. That way, you don’t need stop words, because the IDF of a common word will make its weight nearly zero.

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

Sidebar

Related Questions

Does anyone know of a simple way to set a selected index or item
Does anyone know a simple way to manage several tableViews in one viewController? Here
Does anyone know any simple yet effective way to build all Maven projects in
Does anyone know of a way to simply and effectively brighten a UIImage by
Does anyone know a better (shorter/more elegant) way than simply writing a loop and
Does anyone know of a simple HTML5/CSS3 framework which applies a minimum of formatting
Does anyone know of some (very) simple tutorials on line on the WCF? Basically
Does anyone know of any tools to provide simple, fast queries of flat files
Does anyone know where I may find a really simple easy jQuery and PHP
Possible Duplicate: PHP: Script for generating Crossword game? Does anyone know any PHP-based simple

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.