I was asleep, but Luigi was awake, and he thought he detected a vague form nearing the bed.
( ( ( ( ( I ( was asleep ) ) , ) but ) ( ( ( ( Luigi ( was awake ) ) , ) and ) ( he ( thought ( he ( ( detected ( a ( vague form ) ) ) ( nearing ( the bed ) ) ) ) ) ) ) ) . )
(ROOT (S (S (NP (PRP I)) (VP (VBD was) (ADJP (RB asleep)))) (, ,) (CC but) (S (S (NP (NNP Luigi)) (VP (VBD was) (ADJP (RB awake)))) (, ,) (CC and) (S (NP (PRP he)) (VP (VBD thought) (SBAR (S (NP (PRP he)) (VP (VBD detected) (NP (DT a) (JJ vague) (NN form)) (S (VP (VBG nearing) (NP (DT the) (NN bed)))))))))) (. .)))
Luigi found a form getting close to the bed.
( Luigi ( ( found ( ( a form ) ( getting ( close ( to ( the bed ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Luigi)) (VP (VBD found) (NP (NP (DT a) (NN form)) (VP (VBG getting) (ADVP (RB close) (PP (TO to) (NP (DT the) (NN bed))))))) (. .)))