title: How to convert Stanford Parser string output to data table format
body: <p>I am experimenting with the Stanford NLP Parser in Python, calling Stanford tools from <code>nltk</code> module. I have already parsed a chunk of text, which is returned as a string in the following form:</p>
  
  <pre><code>(ROOT
    (S
      (S
        (NP
          (NP (NNS MEPs))
          (PP (IN from) (PP (IN across) (NP (DT the) (NNP EU)))))
        (VP
          (VBP are)
          (VP
            (VBG organising)
            (S
              (VP
                (TO to)
                (VP
                  (VB trigger)
  
  
  [... continues ]
  </code></pre>
  
  <p>Now I need to represent these data into table format (e.g. a <code>numpy</code> array), so that I can run some ML model on it.</p>
  
  <p>I want to feed some processed sequence of words into an RNN. I thought parsing information would be very useful for the understanding of the structure of the sentence, but I don't know how this is usually done. How parsing data are fed into language models?</p>
  
  <p>How to do that?</p>