/** @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 DiseaseDisorderMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new AnatomicalSiteMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public DiseaseDisorderMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
DiseaseDisorderMention diseaseDisorderMention = new DiseaseDisorderMention(jCas, begin, end); diseaseDisorderMention.setTypeID(CONST.NE_TYPE_ID_DISORDER); diseaseDisorderMention.addToIndexes(); idToAnnotation.put(annotationId, diseaseDisorderMention); List<String> anatomicalSiteIds = Lists.newArrayList();
if(d.getBodyLocation() == null){ d.setBodyLocation(locRel); }else{ Annotation a = d.getBodyLocation().getArg2().getArgument(); int oldSize = a.getEnd() - a.getBegin(); int newSize = arg2.getEnd() - arg2.getEnd(); if(newSize > oldSize){ d.setBodyLocation(locRel);
ddm.setBodyLocation(locationOfTextRelation); } else if (eventMention instanceof ProcedureMention) { //(eventMention.getTypeID()==CONST.NE_TYPE_ID_PROCEDURE) { ProcedureMention pm = (ProcedureMention) eventMention; if (eventMention instanceof DiseaseDisorderMention) { DiseaseDisorderMention ddm = (DiseaseDisorderMention) eventMention; ddm.setSeverity(degreeOfTextRelation); } else if (eventMention instanceof SignSymptomMention) { SignSymptomMention ssm = (SignSymptomMention) eventMention;
neAnnot = new AnatomicalSiteMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public DiseaseDisorderMention(JCas jcas) { super(jcas); readObject(); }
DiseaseDisorderMention diseaseDisorderMention = new DiseaseDisorderMention(jCas, begin, end); diseaseDisorderMention.setTypeID(CONST.NE_TYPE_ID_DISORDER); diseaseDisorderMention.addToIndexes(); idToAnnotation.put(annotationId, diseaseDisorderMention); List<String> anatomicalSiteIds = Lists.newArrayList();
if(d.getBodyLocation() == null){ d.setBodyLocation(locRel); }else{ Annotation a = d.getBodyLocation().getArg2().getArgument(); int oldSize = a.getEnd() - a.getBegin(); int newSize = arg2.getEnd() - arg2.getEnd(); if(newSize > oldSize){ d.setBodyLocation(locRel);
/** @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 DiseaseDisorderMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new AnatomicalSiteMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public DiseaseDisorderMention(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 DiseaseDisorderMention(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 DiseaseDisorderMention(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 DiseaseDisorderMention(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 DiseaseDisorderMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
neAnnot = new AnatomicalSiteMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_FINDING ) { neAnnot = new SignSymptomMention( jcas );