/** @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 LabMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
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 );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public LabMention(JCas jcas) { super(jcas); readObject(); }
/** * @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; }
Annotation value = null; final LabMention nextLab = (i + 1 < sortedLabs.size()) ? sortedLabs.get( i + 1 ) : null; final int nextLabBegin = nextLab != null ? nextLab.getBegin() : newLines.get( newLines.size() - 1 ); final int windowBegin = lab.getEnd(); final int windowEnd = getValueWindowEnd( windowBegin, nextLabBegin, newLines ); final RelationArgument arg2 = new RelationArgument( jCas ); arg2.setArgument( value ); lab.getLabValue().setArg2( arg2 );
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 );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public LabMention(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 LabMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
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 );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public LabMention(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 LabMention(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 LabMention(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 LabMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
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 );
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public LabMention(JCas jcas) { super(jcas); 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 LabMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
LabMention mention = new LabMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation,
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public LabMention(int addr, TOP_Type type) { super(addr, type); readObject(); }