 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)) (. .)))
She now knows what was going on in her mind.
( She ( now ( ( knows ( what ( was ( ( going on ) ( in ( her mind ) ) ) ) ) ) . ) ) )
(ROOT (S (NP (PRP She)) (ADVP (RB now)) (VP (VBZ knows) (SBAR (WHNP (WP what)) (S (VP (VBD was) (VP (VBG going) (PRT (RP on)) (PP (IN in) (NP (PRP$ her) (NN mind)))))))) (. .)))