She was taken to the infirmary, and on recovering consciousness gave her name as Jane Finn.
( She ( ( was ( taken ( ( ( ( to ( the infirmary ) ) , ) and ) ( on ( recovering ( consciousness ( ( gave ( her name ) ) ( as ( Jane Finn ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (PRP She)) (VP (VBD was) (VP (VBN taken) (PP (PP (TO to) (NP (DT the) (NN infirmary))) (, ,) (CC and) (PP (IN on) (S (VP (VBG recovering) (SBAR (S (NP (NN consciousness)) (VP (VBD gave) (NP (PRP$ her) (NN name)) (PP (IN as) (NP (NNP Jane) (NNP Finn)))))))))))) (. .)))
When she came to, she said her name was Bob.  
( ( When ( she ( came to ) ) ) ( , ( she ( ( said ( ( her name ) ( was Bob ) ) ) . ) ) ) )
(ROOT (S (SBAR (WHADVP (WRB When)) (S (NP (PRP she)) (VP (VBD came) (PP (TO to))))) (, ,) (NP (PRP she)) (VP (VBD said) (SBAR (S (NP (PRP$ her) (NN name)) (VP (VBD was) (NP (NNP Bob)))))) (. .)))