neAnnot = new SignSymptomMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( jcas );
neAnnot = new SignSymptomMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( jcas );
/** * @param jCas - * @param concepts Lab concepts. * @param begin begin index for a new LabMention. * @param end end index for a new LabMention. * @return a new LabMention with the given attributes. */ static private LabMention createLabMention( final JCas jCas, final Collection<UmlsConcept> concepts, final int begin, final int end ) { final LabMention lab = new LabMention( jCas, begin, end ); lab.setId( CONST.NE_TYPE_ID_LAB ); lab.setDiscoveryTechnique( CONST.NE_DISCOVERY_TECH_EXPLICIT_AE ); // copy in the concepts. final FSArray conceptArray = new FSArray( jCas, concepts.size() ); int arrIdx = 0; for ( UmlsConcept umlsConcept : concepts ) { conceptArray.set( arrIdx, umlsConcept ); arrIdx++; } lab.setOntologyConceptArr( conceptArray ); // create value relation, argument 1 is the lab mention. initValueRelation( jCas, lab ); lab.addToIndexes(); LOGGER.debug( "created " + getDebugText( lab ) ); return lab; }
neAnnot = new SignSymptomMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( 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 SignSymptomMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_LAB ) { neAnnot = new LabMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_PROCEDURE ) { neAnnot = new ProcedureMention( 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 ); }
LabMention mention = new LabMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
LabMention mention = new LabMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
LabMention mention = new LabMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
LabMention mention = new LabMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,