IdentifiedAnnotation neAnnot = new MedicationMention( jcas ); // medication NEs are EventMention neAnnot.setTypeID( CONST.NE_TYPE_ID_DRUG ); neAnnot.setBegin( neBegin );
IdentifiedAnnotation neAnnot = new MedicationMention( jcas ); // medication NEs are EventMention neAnnot.setTypeID( CONST.NE_TYPE_ID_DRUG ); neAnnot.setBegin( neBegin );
final int conceptKey = conceptEntry.getKey(); if ( conceptKey == CONST.NE_TYPE_ID_DRUG ) { neAnnot = new MedicationMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas );
final int conceptKey = conceptEntry.getKey(); if ( conceptKey == CONST.NE_TYPE_ID_DRUG ) { neAnnot = new MedicationMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas );
mention = new MedicationMention(jcas); mapToMentions.put(original, mention); setAttributesFromOriginal(mention, original);
neAnnot = new MedicationMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas );
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 ); }
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 ); }
neAnnot = new MedicationMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas );
delayedFeatures.add(new DelayedFeature(mention, "deltaFlag", deltaFlag)); } else if ("Medications/Drugs".equals(annotation.type)) { MedicationMention mention = new MedicationMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
MedicationMention mention = new MedicationMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
delayedFeatures.add(new DelayedFeature(mention, "deltaFlag", deltaFlag)); } else if ("Medications/Drugs".equals(annotation.type)) { MedicationMention mention = new MedicationMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
MedicationMention mention = new MedicationMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
MedicationMention mem = new MedicationMention(jcas, globalDrugNER.get(i).getBegin(), globalDrugNER.get(i).getEnd()); addMedicationSpecificAttributes(jcas, globalDrugNER.get(i), mem); mem.addToIndexes(jcas);
MedicationMention mem = new MedicationMention(jcas, globalDrugNER.get(i).getBegin(), globalDrugNER.get(i).getEnd()); addMedicationSpecificAttributes(jcas, globalDrugNER.get(i), mem); mem.addToIndexes(jcas);
int originalEndSpan = endSpan; int originalBeginSpan = beginSpan; MedicationMention neAnnot = new MedicationMention(jcas, tokenDrugNER.getBegin(), tokenDrugNER.getEnd()); int beginChunk = drugChangeStatus.getEnd();
int originalEndSpan = endSpan; int originalBeginSpan = beginSpan; MedicationMention neAnnot = new MedicationMention(jcas, tokenDrugNER.getBegin(), tokenDrugNER.getEnd()); int beginChunk = drugChangeStatus.getEnd();