org.apache.uima.jcas.tcas.Annotation.setFeatureValue()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(96)

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

Annotation.setFeatureValue介绍

暂无

代码示例

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

protected void setValue(TOP value) {
 this.annotation.setFeatureValue(this.feature, value);
}

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

protected void setValue(TOP value) {
 this.annotation.setFeatureValue(this.feature, value);
}

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

protected void setValue(TOP value) {
 this.annotation.setFeatureValue(this.feature, value);
}

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

protected void setValue(TOP value) {
 this.annotation.setFeatureValue(this.feature, value);
}

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

Annotation copy = (Annotation) copier.copyFs(goldMention);
Feature sofaFeature = copy.getType().getFeatureByBaseName("sofa");
copy.setFeatureValue(sofaFeature, systemView.getSofa());
copy.addToIndexes();

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

Annotation copy = (Annotation) copier.copyFs(goldMention);
Feature sofaFeature = copy.getType().getFeatureByBaseName("sofa");
copy.setFeatureValue(sofaFeature, systemView.getSofa());
copy.addToIndexes();

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

copy.setFeatureValue(sofaFeature, systemView.getSofa());
copy.addToIndexes();

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

copy.setFeatureValue(sofaFeature, systemView.getSofa());
copy.addToIndexes();

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

for (IdentifiedAnnotation goldMention : goldMentions) {
  Annotation copy = (Annotation) copier.copyFs(goldMention);
  copy.setFeatureValue(sofaFeature, systemView.getSofa());
  copy.addToIndexes();

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

for (IdentifiedAnnotation goldMention : goldMentions) {
  Annotation copy = (Annotation) copier.copyFs(goldMention);
  copy.setFeatureValue(sofaFeature, systemView.getSofa());
  copy.addToIndexes();

代码示例来源:origin: ch.epfl.bbp.nlp/bluima_mongodb

public static void readFieldFromDb(String fieldKey, String range,
      Annotation a, Feature f, BasicDBObject dbO, JCas jCas) {

    if (dbO.containsField(fieldKey)) {

      if (range.equals("String")) {
        a.setStringValue(f, dbO.getString(fieldKey));
      } else if (range.equals("StringArray")) {
        BasicDBList vals = (BasicDBList) dbO.get(fieldKey);
        StringArray sa = new StringArray(jCas, vals.size());
        for (int i = 0; i < vals.size(); i++) {
          sa.set(i, vals.get(i).toString());
        }
        a.setFeatureValue(f, sa);
      } else if (range.equals("Integer")) {
        a.setIntValue(f, dbO.getInt(fieldKey));
      } else if (range.equals("Float")) {
        a.setFloatValue(f, (float) dbO.getDouble(fieldKey));
      } else if (range.equals("Boolean")) {
        a.setBooleanValue(f, dbO.getBoolean(fieldKey));
      } else {
        LOG.warn("range not supported " + range);
      }
    }
  }
}

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

clone.setFeatureValue(modview.getTypeSystem()
    .getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFA), modview.getSofa());
final int mappedBegin = map[clone.getBegin()];

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

clone.setFeatureValue(modview.getTypeSystem()
    .getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFA), modview.getSofa());
final int mappedBegin = map[clone.getBegin()];

相关文章