int [][] narrativeSpans = getWindowSpan(jcas, "narrative", MedicationMention.type, neNarrative.getBegin(), neNarrative.getEnd(), false, globalArraySize); for (int elementCount = 0; elementCount < narrativeSpans.length; elementCount ++ ) { windowSpans[globalWindowSize] = narrativeSpans[elementCount]; boolean foundRightParen = false; foundRightParen = findCoveredTextInSpan(jcas, PunctuationToken.type, thisNER.getEnd(), thisNER.getEnd()+3, (new String[]{")","/"})); thisNER.getCoveredText()) == 0) || ((foundRightParen) || nextNER.getBegin() == thisNER.getEnd() + 2))))
int [][] narrativeSpans = getWindowSpan(jcas, "narrative", MedicationMention.type, neNarrative.getBegin(), neNarrative.getEnd(), false, globalArraySize); for (int elementCount = 0; elementCount < narrativeSpans.length; elementCount ++ ) { windowSpans[globalWindowSize] = narrativeSpans[elementCount]; boolean foundRightParen = false; foundRightParen = findCoveredTextInSpan(jcas, PunctuationToken.type, thisNER.getEnd(), thisNER.getEnd()+3, (new String[]{")","/"})); thisNER.getCoveredText()) == 0) || ((foundRightParen) || nextNER.getBegin() == thisNER.getEnd() + 2))))
if ((keepTrackOfDupBegin == neAnnot.getBegin()) && (keepTrackOfDupEnd == neAnnot.getEnd())) && (neAnnot.getEnd() <= seg.getEnd()) && !gotDup) { keepTrackOfDupEnd = neAnnot.getEnd(); && neAnnot.getEnd() <= ca .getEnd()) { chunk = ca.getCoveredText() if (ssAnnot.getSubSectionBodyBegin() <= neAnnot.getBegin() && ssAnnot.getSubSectionBodyEnd() >= neAnnot.getEnd())
if ((keepTrackOfDupBegin == neAnnot.getBegin()) && (keepTrackOfDupEnd == neAnnot.getEnd())) && (neAnnot.getEnd() <= seg.getEnd()) && !gotDup) { keepTrackOfDupEnd = neAnnot.getEnd(); && neAnnot.getEnd() <= ca .getEnd()) { chunk = ca.getCoveredText() if (ssAnnot.getSubSectionBodyBegin() <= neAnnot.getBegin() && ssAnnot.getSubSectionBodyEnd() >= neAnnot.getEnd())
if(nea.getTypeID()==1 || nea.getTypeID()==0) { lastLocation[0]= nea.getBegin(); lastLocation[1] = nea.getEnd(); if ((counter == 0 || lastLocation[0] != location[counter-1][0]) && (nea.getBegin()>=begin && nea.getEnd() <= end)) { location[counter][0]= lastLocation[0]; location[counter][1]= lastLocation[1];
if(nea.getTypeID()==1 || nea.getTypeID()==0) { lastLocation[0]= nea.getBegin(); lastLocation[1] = nea.getEnd(); if ((counter == 0 || lastLocation[0] != location[counter-1][0]) && (nea.getBegin()>=begin && nea.getEnd() <= end)) { location[counter][0]= lastLocation[0]; location[counter][1]= lastLocation[1];
if(nea.getTypeID()==1 || nea.getTypeID()==0) { lastLocation[0]= nea.getBegin(); lastLocation[1] = nea.getEnd(); if ((counter == 0 || lastLocation[0] != location[counter-1][0]) && (nea.getBegin()>=begin && nea.getEnd() <= end)) { location[counter][0]= lastLocation[0]; holdEndElement = location[counter][1] = lastLocation[1];
if(nea.getTypeID()==1 || nea.getTypeID()==0) { lastLocation[0]= nea.getBegin(); lastLocation[1] = nea.getEnd(); if ((counter == 0 || lastLocation[0] != location[counter-1][0]) && (nea.getBegin()>=begin && nea.getEnd() <= end)) { location[counter][0]= lastLocation[0]; holdEndElement = location[counter][1] = lastLocation[1];