本文整理了Java中org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation.setConfidence()
方法的一些代码示例,展示了IdentifiedAnnotation.setConfidence()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IdentifiedAnnotation.setConfidence()
方法的具体详情如下:
包路径:org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation
类名称:IdentifiedAnnotation
方法名:setConfidence
[英]setter for confidence - sets The confidence of the annotation.
[中]置信度设置器-设置注释的置信度。
代码示例来源:origin: apache/ctakes
eMention.setId(identifiedAnnotationId++);
eMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
eMention.setConfidence(1);
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
eMention.setId(identifiedAnnotationId++);
eMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
eMention.setConfidence(1);
代码示例来源:origin: apache/ctakes
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 );
}
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
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 );
}
代码示例来源:origin: apache/ctakes
List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
代码示例来源:origin: org.apache.ctakes/ctakes-core
List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
代码示例来源:origin: apache/ctakes
List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
代码示例来源:origin: org.apache.ctakes/ctakes-ytex-uima
if (storeAsInterval && ne instanceof IdentifiedAnnotation) {
((IdentifiedAnnotation) ne).setConfidence(1);
代码示例来源:origin: apache/ctakes
if (storeAsInterval && ne instanceof IdentifiedAnnotation) {
((IdentifiedAnnotation) ne).setConfidence(1);
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
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);
代码示例来源:origin: apache/ctakes
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);
代码示例来源:origin: apache/ctakes
if (!storeAsInterval) {
if (possible)
ne.setConfidence(-1);
if (negated || (this.negatePossibilities && possible))
ne.setPolarity(-1);
if (possible)
confidence *= 0.5;
ne.setConfidence(confidence);
代码示例来源:origin: org.apache.ctakes/ctakes-ytex-uima
if (!storeAsInterval) {
if (possible)
ne.setConfidence(-1);
if (negated || (this.negatePossibilities && possible))
ne.setPolarity(-1);
if (possible)
confidence *= 0.5;
ne.setConfidence(confidence);
代码示例来源:origin: apache/ctakes
entityOrEventMention.setConfidence(1.0f);
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
entityOrEventMention.setConfidence(1.0f);
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
/**
*
* @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();
}
代码示例来源:origin: apache/ctakes
/**
*
* @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();
}
代码示例来源:origin: apache/ctakes
mention.setEnd(original.getEnd());
mention.setConditional(original.getConditional());
mention.setConfidence(original.getConfidence());
mention.setDiscoveryTechnique(original.getDiscoveryTechnique());
mention.setGeneric(original.getGeneric());
内容来源于网络,如有侵权,请联系作者删除!