( Endoscopy ( ( ( A procedure ) ( whereby ( ( a ( flexible ( fiber-optic tube ) ) ) ( is ( ( ( ( inserted ( into ( ( the ( esophagus ( , ( stomach ( or ( small intestine ) ) ) ) ) ) ( ( ( through ( ( the mouth ) ( -LRB- ( ( upper endoscopy ) -RRB- ) ) ) ) or ) ( into ( the ( large intestine ) ) ) ) ) ) ) ( through ( the anus ) ) ) ( -LRB- ( ( lower endoscopy ) -RRB- ) ) ) ( to ( look ( for abnormalities ) ) ) ) ) ) ) ) . ) )
(ROOT (FRAG (ADVP (RB Endoscopy)) (NP (NP (DT A) (NN procedure)) (SBAR (WHADVP (WRB whereby)) (S (NP (DT a) (JJ flexible) (JJ fiber-optic) (NN tube)) (VP (VBZ is) (VP (VBN inserted) (PP (IN into) (NP (NP (DT the) (NNS esophagus) (, ,) (NN stomach) (CC or) (JJ small) (NN intestine)) (PP (PP (IN through) (NP (NP (DT the) (NN mouth)) (PRN (-LRB- -LRB-) (NP (JJ upper) (NN endoscopy)) (-RRB- -RRB-)))) (CC or) (PP (IN into) (NP (DT the) (JJ large) (NN intestine)))))) (PP (IN through) (NP (DT the) (NNS anus))) (PRN (-LRB- -LRB-) (S (VP (VB lower) (ADVP (RB endoscopy)))) (-RRB- -RRB-)) (S (VP (TO to) (VP (VB look) (PP (IN for) (NP (NNS abnormalities))))))))))) (. .)))
Endoscopy A procedure whereby a flexible fiber-optic tube is inserted into the esophagus, stomach or small intestine through the mouth (upper endoscopy) or into the large intestine through the anus (lower endoscopy) to look for abnormalities.
(ROOT (S (NP (DT The) (JJ large) (NN intestine)) (VP (VBZ is) (NP (NP (DT a) (JJ wide) (NN tube)) (VP (VBG connecting) (NP (DT the) (JJ small) (NN intestine)) (PP (IN with) (NP (DT the) (NNS anus)))))) (. .)))