Python Forum

Full Version: parse tree to json dictionary in python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(S
(NP
(NP (NNP Takahama) (POS 's))
(JJ problematic))
(VP (VBP restart)
(NP
(NP (NN https://t.co/3hx12xWrnf) (NN #G7summit) (NN #summit) (NN #G7) (NN #Hiroshima) (NN #fukushima) (NN #NoNukes))
(NP (JJ #nuclear) (NN #Nagasaki) (NN #Japan))))))


How can i convert this parse tree to json dictionary in python.