title: Text classification using Java
body: <p>I need to categorize a text or word to a particular category. For example, the text 'Pink Floyd' should be categorized as 'music' or 'Wikimedia' as 'technology' or 'Einstein' as 'science'.  </p>
  
  <p>How can this be done? Is there a way I can use the <a href="http://dbpedia.org/" rel="nofollow">DBpedia</a> for the same? If not, the database has to be trained from time to time, right?</p>