/** @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 SignSymptomMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new DiseaseDisorderMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public SignSymptomMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
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(newSize > oldSize){ s.setBodyLocation(locRel);
} else if (eventMention instanceof SignSymptomMention) { //(eventMention.getTypeID()==CONST.NE_TYPE_ID_FINDING) { SignSymptomMention ssm = (SignSymptomMention) eventMention; ssm.setBodyLocation(locationOfTextRelation); } else { logger.error("Need to implement more cases for handling EventMention " + eventMention + " within relation: " + relation); } else if (eventMention instanceof SignSymptomMention) { SignSymptomMention ssm = (SignSymptomMention) eventMention; ssm.setSeverity(degreeOfTextRelation); } else { logger.error("Need to implement more cases for handling EventMention " + eventMention + " within relation: " + relation);
@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 DiseaseDisorderMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public SignSymptomMention(JCas jcas) { super(jcas); readObject(); }
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(newSize > oldSize){ s.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 SignSymptomMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new DiseaseDisorderMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public SignSymptomMention(int addr, TOP_Type type) { super(addr, type); 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 SignSymptomMention(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 SignSymptomMention(int addr, TOP_Type type) { super(addr, type); 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 SignSymptomMention(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 SignSymptomMention(JCas jcas) { super(jcas); readObject(); }
neAnnot = new DiseaseDisorderMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas );