/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public ProcedureMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new LabMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( jcas ); } else { neAnnot = new EntityMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public ProcedureMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
if(p.getBodyLocation() == null){ p.setBodyLocation(locRel); }else{ Annotation a = p.getBodyLocation().getArg2().getArgument(); int oldSize = a.getEnd() - a.getBegin(); int newSize = arg2.getEnd() - arg2.getEnd(); if(newSize > oldSize){ p.setBodyLocation(locRel);
} else if (eventMention instanceof ProcedureMention) { //(eventMention.getTypeID()==CONST.NE_TYPE_ID_PROCEDURE) { ProcedureMention pm = (ProcedureMention) eventMention; pm.setBodyLocation(locationOfTextRelation); } else if (eventMention instanceof SignSymptomMention) { //(eventMention.getTypeID()==CONST.NE_TYPE_ID_FINDING) { SignSymptomMention ssm = (SignSymptomMention) eventMention;
@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; } }
neAnnot = new LabMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( jcas ); } else { neAnnot = new EntityMention( jcas );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public ProcedureMention(JCas jcas) { super(jcas); readObject(); }
if(p.getBodyLocation() == null){ p.setBodyLocation(locRel); }else{ Annotation a = p.getBodyLocation().getArg2().getArgument(); int oldSize = a.getEnd() - a.getBegin(); int newSize = arg2.getEnd() - arg2.getEnd(); if(newSize > oldSize){ p.setBodyLocation(locRel);
@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; } }
/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public ProcedureMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new LabMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( jcas ); } else { neAnnot = new EntityMention( jcas );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public ProcedureMention(JCas jcas) { super(jcas); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public ProcedureMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
static private IdentifiedAnnotation createSemanticAnnotation( final JCas jcas, final int cTakesSemantic ) { switch ( cTakesSemantic ) { case NE_TYPE_ID_DRUG: { return new MedicationMention( jcas ); } case NE_TYPE_ID_ANATOMICAL_SITE: { return new AnatomicalSiteMention( jcas ); } case NE_TYPE_ID_DISORDER: { return new DiseaseDisorderMention( jcas ); } case NE_TYPE_ID_FINDING: { return new SignSymptomMention( jcas ); } case NE_TYPE_ID_LAB: { return new LabMention( jcas ); } case NE_TYPE_ID_PROCEDURE: { return new ProcedureMention( jcas ); } } return new EntityMention( jcas ); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public ProcedureMention(JCas jcas) { super(jcas); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public ProcedureMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
static private IdentifiedAnnotation createSemanticAnnotation( final JCas jcas, final int cTakesSemantic ) { switch ( cTakesSemantic ) { case NE_TYPE_ID_DRUG: { return new MedicationMention( jcas ); } case NE_TYPE_ID_ANATOMICAL_SITE: { return new AnatomicalSiteMention( jcas ); } case NE_TYPE_ID_DISORDER: { return new DiseaseDisorderMention( jcas ); } case NE_TYPE_ID_FINDING: { return new SignSymptomMention( jcas ); } case NE_TYPE_ID_LAB: { return new LabMention( jcas ); } case NE_TYPE_ID_PROCEDURE: { return new ProcedureMention( jcas ); } } return new EntityMention( jcas ); }
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public ProcedureMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
neAnnot = new LabMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( jcas ); } else { neAnnot = new EntityMention( jcas );