Yes, he said.
( Yes ( , ( he ( said . ) ) ) )
(ROOT (S (INTJ (UH Yes)) (, ,) (NP (PRP he)) (VP (VBD said)) (. .)))
He said yes to that idea.
( He ( ( ( said yes ) ( to ( that idea ) ) ) . ) )
(ROOT (S (NP (PRP He)) (VP (VBD said) (INTJ (UH yes)) (PP (TO to) (NP (DT that) (NN idea)))) (. .)))