title: Java SVM Text Classification , Train & Test Files?
body: <p>I'm trying to Classify a Text Document into Categories , for example :  </p>
  
  <p>Document 1 : " Basketball is a good sport " ---> Category : Sport<br>
  Document 2 : " World war 2 .. " ---> Category : History<br>
  ...  </p>
  
  <p>My gool is to create a Java interface with a SVM Algorithm !<br>
  So, I should use SVM Java Library , I found two :  </p>
  
  <ul>
  <li>SVMLIGH  </li>
  <li>LIBSVM  </li>
  </ul>
  
  <p>Should I use the first one or the second?  </p>
  
  <p>I had do many research , and I found that I should do two things :  </p>
  
  <ul>
  <li><p>I should prepare a training file.<br>
  In SVM there is a special format for this file ( Example : 1 1:317.5 )<br>
  But the question is : From what I Should Generate this file ? From the documents only ?  Or From something else ?  </p></li>
  <li><p>I should have a test file, that's mean a new document to classify. Should I transform the new document to classify  into SVM Test file format?  </p></li>
  </ul>
  
  <p>That's correct?  </p>
  
  <p>Please guide me I'm  truly lost and I don't know what I should do ! PLZ </p>