title: How to use Stanford Parser to get POS tags using java?
body: <p>I am working on a project for plagiarism detection. I need to use Stanford Parser API to get Part of Speech (POS) tags for words in sentences stored in a text file. </p>
  
  <p>I understand that the class <code>edu.Stanford.nlp.parser.lexparser.LexicalizedParser</code> can be used for this purpose. But I am unable to get it working. </p>
  
  <p>Can anyone please tell me how I can write a code in java that can make use of this class or some other class available in the API to get POS tags?</p>
  
  <p>Thank you very much</p>