title: Naive Bayes Text Classification Algorithm
body: <p>Hye there! I just need the help for implementing Naive Bayes Text Classification Algorithm in Java to just test my Data Set for research purposes. It is compulsory to implement the algorithm in Java; rather using Weka or Rapid Miner tools to get the results!</p>
  
  <hr>
  
  <p>My Data Set has the following type of Data:</p>
  
  <pre><code>    Doc  Words   Category
  </code></pre>
  
  <p>Means that I have the Training Words and Categories for each training (String) known in advance. Some of the Data Set is given below:</p>
  
  <pre><code>             Doc      Words                                                              Category        
      Training
                 1      Integration Communities Process Oriented Structures...(more string)       A
                 2      Integration Communities Process Oriented Structures...(more string)       A
                 3      Theory Upper Bound Routing Estimate global routing...(more string)        B
                 4      Hardware Design Functional Programming Perfect Match...(more string)      C
                 .
                 .
                 .
      Test
                 5      Methodology Toolkit Integrate Technological  Organisational
                 6      This test contain string naive bayes test text text test
  </code></pre>
  
  <hr>
  
  <p>SO the Data Set comes from a MySQL DataBase and it may contain multiple training strings and test strings as well! The thing is I just need to implement Naive Bayes Text Classification Algorithm in Java.</p>
  
  <p>The algorithm should follow the following example mentioned <a href="http://i.stack.imgur.com/vO4OC.png">here</a> <strong><em>Table 13.1</em></strong></p>
  
  <p>Source: <a href="http://nlp.stanford.edu/IR-book/html/htmledition/naive-bayes-text-classification-1.html">Read here</a></p>
  
  <hr>
  
  <p>The thing is that I can implement the algorithm in Java Code myself but i just need to know if it is possible that there exist some kind a Java library with source code documentation available to allow me to just test the results.</p>
  
  <p>The problem is I just need the results for just one time only means its just a test for results.</p>
  
  <p><em>So, come to the point can somebody tell me about any good java library that helps my code this algorithm in Java and that could made my dataset possible to process the results, or can somebody give me any good ideas how to do it easily...something good that can help me.</em></p>
  
  <p>I will be thankful for your help.
  Thanks in advance  </p>