title: Check Grammar of a sentence using Parse score given by Stanford parser
body: <p>I am able to parse a sentence and get the parse score using Stanford parser with the java code below</p>
  
  <pre><code>LexicalizedParser lp = LexicalizedParser.loadModel(
      "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz"
  );
  
  lp.setOptionFlags(new String[]{"-maxLength", "80", "-retainTmpSubcategories"});
  
  String sent = "My name is Rahul";
  Tree parse = (Tree) lp.apply(sent);
  double score = parse.score();
  </code></pre>
  
  <p>Is there any way to check the grammaticality of a sentence using this parse score given by Stanford parser? </p>
  
  <p>Thanks.</p>