protected void setValue(TOP value) { this.annotation.setFeatureValue(this.feature, value); }
protected void setValue(TOP value) { this.annotation.setFeatureValue(this.feature, value); }
protected void setValue(TOP value) { this.annotation.setFeatureValue(this.feature, value); }
protected void setValue(TOP value) { this.annotation.setFeatureValue(this.feature, value); }
Annotation copy = (Annotation) copier.copyFs(goldMention); Feature sofaFeature = copy.getType().getFeatureByBaseName("sofa"); copy.setFeatureValue(sofaFeature, systemView.getSofa()); copy.addToIndexes();
Annotation copy = (Annotation) copier.copyFs(goldMention); Feature sofaFeature = copy.getType().getFeatureByBaseName("sofa"); copy.setFeatureValue(sofaFeature, systemView.getSofa()); copy.addToIndexes();
copy.setFeatureValue(sofaFeature, systemView.getSofa()); copy.addToIndexes();
copy.setFeatureValue(sofaFeature, systemView.getSofa()); copy.addToIndexes();
for (IdentifiedAnnotation goldMention : goldMentions) { Annotation copy = (Annotation) copier.copyFs(goldMention); copy.setFeatureValue(sofaFeature, systemView.getSofa()); copy.addToIndexes();
for (IdentifiedAnnotation goldMention : goldMentions) { Annotation copy = (Annotation) copier.copyFs(goldMention); copy.setFeatureValue(sofaFeature, systemView.getSofa()); copy.addToIndexes();
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); } } } }
clone.setFeatureValue(modview.getTypeSystem() .getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFA), modview.getSofa()); final int mappedBegin = map[clone.getBegin()];
clone.setFeatureValue(modview.getTypeSystem() .getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFA), modview.getSofa()); final int mappedBegin = map[clone.getBegin()];