eMention.setId(identifiedAnnotationId++); eMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION); eMention.setConfidence(1);
eMention.setId(identifiedAnnotationId++); eMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION); eMention.setConfidence(1);
static private void fillProperties( final IdentifiedAnnotation annotation, final int polarity, final int uncertainty, final boolean generic, final boolean conditional, final String subject, final float confidence ) { annotation.setPolarity( polarity ); annotation.setUncertainty( uncertainty ); annotation.setGeneric( generic ); annotation.setConditional( conditional ); annotation.setSubject( subject ); annotation.setConfidence( confidence ); }
static private void fillProperties( final IdentifiedAnnotation annotation, final int polarity, final int uncertainty, final boolean generic, final boolean conditional, final String subject, final float confidence ) { annotation.setPolarity( polarity ); annotation.setUncertainty( uncertainty ); annotation.setGeneric( generic ); annotation.setConditional( conditional ); annotation.setSubject( subject ); annotation.setConfidence( confidence ); }
List<DelayedFeature> delayedFeatures) { mention.setTypeID(typeID); mention.setConfidence(1.0f); mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
List<DelayedFeature> delayedFeatures) { mention.setTypeID(typeID); mention.setConfidence(1.0f); mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
List<DelayedFeature> delayedFeatures) { mention.setTypeID(typeID); mention.setConfidence(1.0f); mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
List<DelayedFeature> delayedFeatures) { mention.setTypeID(typeID); mention.setConfidence(1.0f); mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
if (storeAsInterval && ne instanceof IdentifiedAnnotation) { ((IdentifiedAnnotation) ne).setConfidence(1);
if (storeAsInterval && ne instanceof IdentifiedAnnotation) { ((IdentifiedAnnotation) ne).setConfidence(1);
annotation.setConfidence(-2.0f); annotation.setUncertainty(-2); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(true); // NOT DEFAULT VALUE annotation.setConfidence(1.0f); annotation.setUncertainty(1); // NOT DEFAULT VALUE annotation.setConditional(false);
annotation.setConfidence(-2.0f); annotation.setUncertainty(-2); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(false); annotation.setConfidence(1.0f); annotation.setUncertainty(0); annotation.setConditional(true); // NOT DEFAULT VALUE annotation.setConfidence(1.0f); annotation.setUncertainty(1); // NOT DEFAULT VALUE annotation.setConditional(false);
if (!storeAsInterval) { if (possible) ne.setConfidence(-1); if (negated || (this.negatePossibilities && possible)) ne.setPolarity(-1); if (possible) confidence *= 0.5; ne.setConfidence(confidence);
if (!storeAsInterval) { if (possible) ne.setConfidence(-1); if (negated || (this.negatePossibilities && possible)) ne.setPolarity(-1); if (possible) confidence *= 0.5; ne.setConfidence(confidence);
entityOrEventMention.setConfidence(1.0f);
entityOrEventMention.setConfidence(1.0f);
/** * * @param goldAnnotation * @param jcas */ private static void copyAnnotation(Annotation goldAnnotation, JCas jcas) { Annotation newAnno; if (goldAnnotation instanceof IdentifiedAnnotation) { IdentifiedAnnotation ia = new IdentifiedAnnotation(jcas); ia.setConditional(((IdentifiedAnnotation) goldAnnotation).getConditional()); ia.setConfidence(((IdentifiedAnnotation) goldAnnotation).getConfidence()); ia.setDiscoveryTechnique(((IdentifiedAnnotation)goldAnnotation).getDiscoveryTechnique()); ia.setGeneric(((IdentifiedAnnotation) goldAnnotation).getGeneric()); ia.setHistoryOf(((IdentifiedAnnotation) goldAnnotation).getHistoryOf()); ia.setPolarity(((IdentifiedAnnotation) goldAnnotation).getPolarity()); ia.setSegmentID(((IdentifiedAnnotation) goldAnnotation).getSegmentID()); ia.setSentenceID(((IdentifiedAnnotation) goldAnnotation).getSentenceID()); ia.setSubject(((IdentifiedAnnotation) goldAnnotation).getSubject()); ia.setTypeID(((IdentifiedAnnotation) goldAnnotation).getTypeID()); ia.setUncertainty(((IdentifiedAnnotation) goldAnnotation).getUncertainty()); newAnno = ia; } else { throw new RuntimeException("Unexpected class of object " + goldAnnotation.getClass()); } newAnno.setBegin(goldAnnotation.getBegin()); newAnno.setEnd(goldAnnotation.getEnd()); newAnno.addToIndexes(); }
/** * * @param goldAnnotation * @param jcas */ private static void copyAnnotation(Annotation goldAnnotation, JCas jcas) { Annotation newAnno; if (goldAnnotation instanceof IdentifiedAnnotation) { IdentifiedAnnotation ia = new IdentifiedAnnotation(jcas); ia.setConditional(((IdentifiedAnnotation) goldAnnotation).getConditional()); ia.setConfidence(((IdentifiedAnnotation) goldAnnotation).getConfidence()); ia.setDiscoveryTechnique(((IdentifiedAnnotation)goldAnnotation).getDiscoveryTechnique()); ia.setGeneric(((IdentifiedAnnotation) goldAnnotation).getGeneric()); ia.setHistoryOf(((IdentifiedAnnotation) goldAnnotation).getHistoryOf()); ia.setPolarity(((IdentifiedAnnotation) goldAnnotation).getPolarity()); ia.setSegmentID(((IdentifiedAnnotation) goldAnnotation).getSegmentID()); ia.setSentenceID(((IdentifiedAnnotation) goldAnnotation).getSentenceID()); ia.setSubject(((IdentifiedAnnotation) goldAnnotation).getSubject()); ia.setTypeID(((IdentifiedAnnotation) goldAnnotation).getTypeID()); ia.setUncertainty(((IdentifiedAnnotation) goldAnnotation).getUncertainty()); newAnno = ia; } else { throw new RuntimeException("Unexpected class of object " + goldAnnotation.getClass()); } newAnno.setBegin(goldAnnotation.getBegin()); newAnno.setEnd(goldAnnotation.getEnd()); newAnno.addToIndexes(); }
mention.setEnd(original.getEnd()); mention.setConditional(original.getConditional()); mention.setConfidence(original.getConfidence()); mention.setDiscoveryTechnique(original.getDiscoveryTechnique()); mention.setGeneric(original.getGeneric());