/** @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 AnatomicalSiteMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new MedicationMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public AnatomicalSiteMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
AnatomicalSiteMention anatomicalSiteMention = new AnatomicalSiteMention(jCas, begin, end); anatomicalSiteMention.setTypeID(CONST.NE_TYPE_ID_ANATOMICAL_SITE); anatomicalSiteMention.addToIndexes(); idToAnnotation.put(annotationId, anatomicalSiteMention); } else {
/** * @param anatomicalSite - * @return a line of text with body laterality and side ; if available */ static private String getAnatomicalProperties( final AnatomicalSiteMention anatomicalSite ) { StringBuilder sb = new StringBuilder(); final BodyLateralityModifier laterality = anatomicalSite.getBodyLaterality(); if ( laterality != null ) { final Attribute normalized = laterality.getNormalizedForm(); if ( normalized != null && normalized instanceof BodyLaterality ) { sb.append( ", " ); sb.append( ((BodyLaterality)normalized).getValue() ); } } final BodySideModifier bodySide = anatomicalSite.getBodySide(); if ( bodySide != null ) { final Attribute normalized = bodySide.getNormalizedForm(); if ( normalized != null && normalized instanceof BodySide ) { sb.append( ", " ); sb.append( ((BodySide)normalized).getValue() ); } } return sb.toString(); }
neAnnot = new MedicationMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas ); } else if ( conceptKey == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public AnatomicalSiteMention(int addr, TOP_Type type) { super(addr, type); readObject(); }
AnatomicalSiteMention anatomicalSiteMention = new AnatomicalSiteMention(jCas, begin, end); anatomicalSiteMention.setTypeID(CONST.NE_TYPE_ID_ANATOMICAL_SITE); anatomicalSiteMention.addToIndexes(); idToAnnotation.put(annotationId, anatomicalSiteMention); } else {
/** * @param anatomicalSite - * @return a line of text with body laterality and side ; if available */ static private String getAnatomicalProperties( final AnatomicalSiteMention anatomicalSite ) { StringBuilder sb = new StringBuilder(); final BodyLateralityModifier laterality = anatomicalSite.getBodyLaterality(); if ( laterality != null ) { final Attribute normalized = laterality.getNormalizedForm(); if ( normalized != null && normalized instanceof BodyLaterality ) { sb.append( ", " ); sb.append( ((BodyLaterality)normalized).getValue() ); } } final BodySideModifier bodySide = anatomicalSite.getBodySide(); if ( bodySide != null ) { final Attribute normalized = bodySide.getNormalizedForm(); if ( normalized != null && normalized instanceof BodySide ) { sb.append( ", " ); sb.append( ((BodySide)normalized).getValue() ); } } return sb.toString(); }
/** @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 AnatomicalSiteMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new MedicationMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public AnatomicalSiteMention(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 AnatomicalSiteMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
neAnnot = new MedicationMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { neAnnot = new AnatomicalSiteMention( jcas ); } else if ( typeId == CONST.NE_TYPE_ID_DISORDER ) { neAnnot = new DiseaseDisorderMention( jcas );
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public AnatomicalSiteMention(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 AnatomicalSiteMention(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 AnatomicalSiteMention(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 ); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public AnatomicalSiteMention(JCas jcas) { super(jcas); readObject(); }