title: Find number of grammatical parses for a Chinese sentence using Stanford Parser in NLTK
body: <p>I'm working on a project to categorize Chinese sentences by reading difficulty, and I want to try the feature: # of grammatically correct parsings (readings) of the sentence. </p>
  
  <p><strong>ex.</strong> In English, "I hit the man with a ruler" could be either <code>"I hit [the man with a ruler]"</code> or <code>"I hit [the man] with a ruler."</code> So I would want</p>
  
  <pre><code>sentence = ["I","hit","the","man","with","the","ruler"]
  print(function(sentence))
  </code></pre>
  
  <p>to print <code>2</code>.</p>
  
  <p>I'm working within NLTK's interface to the Stanford's Chinese Parser to try this with Chinese sentences (that have already been tokenized into a List of words). <a href="http://nlp.stanford.edu/software/parser-faq.shtml#h" rel="nofollow noreferrer">Stanford NLP's FAQ page</a> says that you can obtain multiple parse trees for a single input sentence using the "-printPCFGkBest n" option, and this seems to be a step in the right direction, but<br>
  1. I can't figure out how to use this option in NLTK and<br>
  2. Is it possible to get all grammatical parses this way?</p>