 It took me really a long time to sort what was going on in my mind out,  she said.
( ( It ( ( ( ( took me ) really ) ( a ( long time ) ) ) ( to ( sort ( what ( was ( ( ( going on ) ( in ( my mind ) ) ) out ) ) ) ) ) ) ) ( , ( she ( said . ) ) ) )
(ROOT (S (S (NP (PRP It)) (VP (VBD took) (NP (PRP me)) (ADVP (RB really)) (NP (DT a) (JJ long) (NN time)) (PP (TO to) (NP (NP (NN sort)) (SBAR (WHNP (WP what)) (S (VP (VBD was) (VP (VBG going) (PRT (RP on)) (PP (IN in) (NP (PRP$ my) (NN mind))) (ADVP (RB out)))))))))) (, ,) (NP (PRP she)) (VP (VBD said)) (. .)))
My friend helped me to make sense of what was going on in my mind, she said.
( ( ( My friend ) ( helped ( me ( to ( make ( sense ( of ( what ( was ( ( going on ) ( in ( my mind ) ) ) ) ) ) ) ) ) ) ) ) ( , ( she ( said . ) ) ) )
(ROOT (S (S (NP (PRP$ My) (NN friend)) (VP (VBD helped) (S (NP (PRP me)) (VP (TO to) (VP (VB make) (NP (NP (NN sense)) (PP (IN of) (SBAR (WHNP (WP what)) (S (VP (VBD was) (VP (VBG going) (PRT (RP on)) (PP (IN in) (NP (PRP$ my) (NN mind)))))))))))))) (, ,) (NP (PRP she)) (VP (VBD said)) (. .)))