On that occasion, Lisa had seen a ferocious dog barking behind the chain-linked fence.
( ( On ( that occasion ) ) ( , ( Lisa ( ( had ( seen ( ( a ( ferocious dog ) ) ( barking ( behind ( the ( chain-linked fence ) ) ) ) ) ) ) . ) ) ) )
(ROOT (S (PP (IN On) (NP (DT that) (NN occasion))) (, ,) (NP (NNP Lisa)) (VP (VBD had) (VP (VBN seen) (NP (NP (DT a) (JJ ferocious) (NN dog)) (VP (VBG barking) (PP (IN behind) (NP (DT the) (JJ chain-linked) (NN fence))))))) (. .)))
Lisa had seen a timid cat barking on the sidewalk. 
( Lisa ( ( had ( seen ( ( a ( timid cat ) ) ( barking ( on ( the sidewalk ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Lisa)) (VP (VBD had) (VP (VBN seen) (NP (NP (DT a) (JJ timid) (NN cat)) (VP (VBG barking) (PP (IN on) (NP (DT the) (NN sidewalk))))))) (. .)))