org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation.setTypeID()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation.setTypeID()方法的一些代码示例,展示了IdentifiedAnnotation.setTypeID()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IdentifiedAnnotation.setTypeID()方法的具体详情如下:
包路径:org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation
类名称:IdentifiedAnnotation
方法名:setTypeID

IdentifiedAnnotation.setTypeID介绍

[英]setter for typeID - sets The type of named entity (e.g. drug, disorder, ...)
[中]typeID设置器-设置命名实体的类型(例如药物、疾病等)

代码示例

代码示例来源:origin: org.apache.ctakes/ctakes-dictionary-lookup

neAnnot.setTypeID( CONST.NE_TYPE_ID_DRUG );
neAnnot.setBegin( neBegin );
neAnnot.setEnd( neEnd );

代码示例来源:origin: org.apache.ctakes/ctakes-assertion

eMention.setTypeID(Mapper.getEntityTypeId(entityTypes.get(mentionId)));
eMention.setId(identifiedAnnotationId++);
eMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);

代码示例来源:origin: apache/ctakes

neAnnot.setTypeID( CONST.NE_TYPE_ID_DRUG );
neAnnot.setBegin( neBegin );
neAnnot.setEnd( neEnd );

代码示例来源:origin: apache/ctakes

annotation.setTypeID( cTakesSemantic );
annotation.setBegin( spanCuis.getKey().getStart() );
annotation.setEnd( spanCuis.getKey().getEnd() );

代码示例来源:origin: org.apache.ctakes/ctakes-dictionary-lookup-fast

annotation.setTypeID( cTakesSemantic );
annotation.setBegin( spanCuis.getKey().getStart() );
annotation.setEnd( spanCuis.getKey().getEnd() );

代码示例来源:origin: apache/ctakes

eMention.setTypeID(Mapper.getEntityTypeId(entityTypes.get(mentionId)));
eMention.setId(identifiedAnnotationId++);
eMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);

代码示例来源:origin: apache/ctakes

Map<String, TOP> idAnnotationMap,
 List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);

代码示例来源:origin: org.apache.ctakes/ctakes-dictionary-lookup

neAnnot = new EntityMention( jcas );
neAnnot.setTypeID( conceptKey );
neAnnot.setBegin( neBegin );
neAnnot.setEnd( neEnd );

代码示例来源:origin: apache/ctakes

Map<String, TOP> idAnnotationMap,
 List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);

代码示例来源:origin: org.apache.ctakes/ctakes-core

Map<String, TOP> idAnnotationMap,
 List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);

代码示例来源:origin: apache/ctakes

neAnnot = new EntityMention( jcas );
neAnnot.setTypeID( conceptKey );
neAnnot.setBegin( neBegin );
neAnnot.setEnd( neEnd );

代码示例来源:origin: org.apache.ctakes/ctakes-assertion

Map<String, TOP> idAnnotationMap,
 List<DelayedFeature> delayedFeatures) {
mention.setTypeID(typeID);
mention.setConfidence(1.0f);
mention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);

代码示例来源:origin: org.apache.ctakes/ctakes-dictionary-lookup

neAnnot.setDiscoveryTechnique( CONST.NE_DISCOVERY_TECH_DICT_LOOKUP );
neAnnot.setOntologyConceptArr( ocArr );
neAnnot.setTypeID( typeId );
neAnnot.addToIndexes();

代码示例来源:origin: apache/ctakes

neAnnot.setDiscoveryTechnique( CONST.NE_DISCOVERY_TECH_DICT_LOOKUP );
neAnnot.setOntologyConceptArr( ocArr );
neAnnot.setTypeID( typeId );
neAnnot.addToIndexes();

代码示例来源: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

annotation.setTypeID( group.getCode() );

代码示例来源:origin: apache/ctakes

mention.setSentenceID(original.getSentenceID());
mention.setSubject(original.getSubject());
mention.setTypeID(original.getTypeID());
mention.setUncertainty(original.getUncertainty());
mention.setHistoryOf(original.getHistoryOf());

相关文章

微信公众号

最新文章

更多