Aug-27-2018, 04:59 AM
(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.
(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.