Leaving the British official who twice searched his luggage none the wiser, he managed by meticulous observation to memorize the principal features of the power loom well enough to produce his own version of it on his return to Boston.
( ( Leaving ( ( the ( British official ) ) ( who ( twice ( searched ( ( his ( luggage none ) ) ( the wiser ) ) ) ) ) ) ) ( , ( he ( ( ( managed ( by ( meticulous observation ) ) ) ( to ( memorize ( ( ( the ( principal features ) ) ( of ( the power ) ) ) ( ( loom ( well enough ) ) ( to ( ( ( produce ( ( his ( own version ) ) ( of it ) ) ) ( on ( his return ) ) ) ( to Boston ) ) ) ) ) ) ) ) . ) ) ) )
(ROOT (S (S (VP (VBG Leaving) (NP (NP (DT the) (JJ British) (NN official)) (SBAR (WHNP (WP who)) (S (ADVP (RB twice)) (VP (VBD searched) (NP (NP (PRP$ his) (JJ luggage) (NN none)) (ADJP (DT the) (JJR wiser))))))))) (, ,) (NP (PRP he)) (VP (VBD managed) (PP (IN by) (NP (JJ meticulous) (NN observation))) (S (VP (TO to) (VP (VB memorize) (S (NP (NP (DT the) (JJ principal) (NNS features)) (PP (IN of) (NP (DT the) (NN power)))) (VP (VB loom) (ADVP (RB well) (RB enough)) (S (VP (TO to) (VP (VB produce) (NP (NP (PRP$ his) (JJ own) (NN version)) (PP (IN of) (NP (PRP it)))) (PP (IN on) (NP (PRP$ his) (NN return))) (PP (TO to) (NP (NNP Boston)))))))))))) (. .)))
He failed at retaining the information in his head but managed to build a rough prototype of the power loom anyway.
( He ( ( ( ( failed ( at ( ( retaining ( the information ) ) ( in ( his head ) ) ) ) ) but ) ( managed ( to ( build ( ( ( a ( rough prototype ) ) ( of ( the power ) ) ) ( loom anyway ) ) ) ) ) ) . ) )
(ROOT (S (NP (PRP He)) (VP (VP (VBD failed) (PP (IN at) (S (VP (VBG retaining) (NP (DT the) (NN information)) (PP (IN in) (NP (PRP$ his) (NN head))))))) (CC but) (VP (VBD managed) (S (VP (TO to) (VP (VB build) (S (NP (NP (DT a) (JJ rough) (NN prototype)) (PP (IN of) (NP (DT the) (NN power)))) (VP (VB loom) (ADVP (RB anyway))))))))) (. .)))