Stanford NLP-Analysebaumformat

Dies mag eine dumme Frage sein, aber wie durchläuft man einen Analysebaum als Ausgabe eines NLP-Parsers (wie Stanford NLP)? Es sind alles geschachtelte Klammern, die weder ein @ siarray noch eindictionary oder jeder andere Sammlungstyp, den ich verwendet habe.

(ROOT\n  (S\n    (PP (IN As)\n      (NP (DT an) (NN accountant)))\n    (NP (PRP I))\n    (VP (VBP want)\n      (S\n        (VP (TO to)\n          (VP (VB make)\n            (NP (DT a) (NN payment))))))))

Antworten auf die Frage(4)

Ihre Antwort auf die Frage