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 thought that he saw a ghost and was going crazy.
( Luigi ( ( thought ( that ( he ( ( ( saw ( a ghost ) ) and ) ( was ( going crazy ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Luigi)) (VP (VBD thought) (SBAR (IN that) (S (NP (PRP he)) (VP (VP (VBD saw) (NP (DT a) (NN ghost))) (CC and) (VP (VBD was) (VP (VBG going) (ADJP (JJ crazy)))))))) (. .)))