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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:03:42+00:00 2026-05-25T10:03:42+00:00

Suppose i have a post which is something like TITLE: WEB: SEO in 2011

  • 0

Suppose i have a post which is something like

  • TITLE: “WEB: SEO in 2011”
  • DESCRIPTION: “A conference talking about SEO in the web of the 2011”

also, i have a list of categories with keywords associated:

  • “IT” (cat) -> “Web design”, “seo”, “developing”, “web developing” (keywords)

i have multiple categories (it, arts, medicals, literature, machinery etc…)

i need to use java to automatically upgrade my posts with those categories and keywords (a sort of tagging) to improve future searching.

The example above: should match “seo” and “web” so the main_category field should be filled up with “IT” and the subfield_category should be filled up with “seo” or “web” (or maybe both, which isn’t bad too)

my problem is that the only solution i can come up with is waaaaay into the bruteforcing (test all the words, when one matches you have the category and the list of the keywords associated with it) and it will slower my performances…

is there any way i can do the search in a better way? also i can modify my category->keywords structure to do something better (i still don’t know how…)

thanks all in advance!

EDIT: accuracy isn’t so much important, as amit asked in a comment. i don’t need 100% accuracy on tagging, since i know i can have an honest amount of correctness based on raw matching of the strings.

Also, the logic i was thinkinking about is: look at post title/description, search for any keywords matching, tag with category, search for more keywords into this category, save 3 to 5 matching keywords

  • 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-25T10:03:42+00:00Added an answer on May 25, 2026 at 10:03 am

    You might want to try a different approach, using Machine Learning.

    Algorithm Description:

    First, create a learning samples [documents you know for sure how they should be tagged, you can tag a sample manually and give it as input to the algorithm]. Then, create Bag Of Words for these samples, using k bag of words [you will need to decide which k is optimal, by benchmarking the quality, I’ll explain later on].

    Every word is a ‘feature’, and next, for each new document, you will try to find which document from the learning sample is the nearest neighbor [i.e. has most ‘words’ in common in your Bag Of Words], the new document will be tagged as its nearest neighbor.

    How to Benchmark Quality?

    you can check for quality by taking 10% documents out of the learning sample, and learn only on the remaining 90%. after done learning, you can evaluate how accurate your algorithm is by checking the accuracy of the remaining 10%. Note that you will probably need to do this a few times to find optimal k [Bag Of Words size] as mentioned above.

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

Sidebar

Related Questions

In handling a form post I have something like public ActionResult Insert() { Order
Suppose we have the xhr 'POST' request that returns 'redirect' status code. In that
Suppose you have a method with some pre and post-conditions. Is it ok to
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX
Suppose I have a table called Companies that has a DepartmentID column. There's also
Suppose I'm developing a web app that is heavily dependent on JavaScript and which
Suppose I have a body of text (string) like this: str = 'This is
Suppose we have two tables. Post and Comment. Post has many Comments. Pretend they
Suppose I have two methods bool Foo() and bool Bar() . Which of the
Suppose I have posts, which have many categories through categorizations. Suppose that I add

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.