title: How to use OpenNLP with Java?
body: <p>I want to POStag an English sentence and do some processing. I would like to use openNLP. I have it installed </p>
  
  <p>When I execute the command</p>
  
  <pre><code>I:\Workshop\Programming\nlp\opennlp-tools-1.5.0-bin\opennlp-tools-1.5.0&gt;java -jar opennlp-tools-1.5.0.jar POSTagger models\en-pos-maxent.bin &lt; Text.txt
  </code></pre>
  
  <p>It gives output POSTagging the input in Text.txt</p>
  
  <pre><code>    Loading POS Tagger model ... done (4.009s)
  My_PRP$ name_NN is_VBZ Shabab_NNP i_FW am_VBP 22_CD years_NNS old._.
  
  
  Average: 66.7 sent/s
  Total: 1 sent
  Runtime: 0.015s
  </code></pre>
  
  <p>I hope it installed properly?</p>
  
  <p>Now how do i do this POStagging from inside a java application? I have added the openNLPtools, jwnl, maxent jar to the project but how do i invoke the POStagging?</p>