@SuppressWarnings("unused") private static LocationOfTextRelation getLocation(IdentifiedAnnotation annot){ LocationOfTextRelation rel = null; if(annot instanceof ProcedureMention){ rel = ((ProcedureMention)annot).getBodyLocation(); }else if(annot instanceof DiseaseDisorderMention){ rel = ((DiseaseDisorderMention)annot).getBodyLocation(); }else if(annot instanceof SignSymptomMention){ rel = ((SignSymptomMention)annot).getBodyLocation(); } return rel; } }
@SuppressWarnings("unused") private static LocationOfTextRelation getLocation(IdentifiedAnnotation annot){ LocationOfTextRelation rel = null; if(annot instanceof ProcedureMention){ rel = ((ProcedureMention)annot).getBodyLocation(); }else if(annot instanceof DiseaseDisorderMention){ rel = ((DiseaseDisorderMention)annot).getBodyLocation(); }else if(annot instanceof SignSymptomMention){ rel = ((SignSymptomMention)annot).getBodyLocation(); } return rel; } }
if(s.getBodyLocation() == null){ s.setBodyLocation(locRel); }else{ Annotation a = s.getBodyLocation().getArg2().getArgument(); int oldSize = a.getEnd() - a.getBegin(); int newSize = arg2.getEnd() - arg2.getEnd();
if(s.getBodyLocation() == null){ s.setBodyLocation(locRel); }else{ Annotation a = s.getBodyLocation().getArg2().getArgument(); int oldSize = a.getEnd() - a.getBegin(); int newSize = arg2.getEnd() - arg2.getEnd();