本文整理了Java中org.cleartk.ml.Feature.setValue()
方法的一些代码示例,展示了Feature.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.setValue()
方法的具体详情如下:
包路径:org.cleartk.ml.Feature
类名称:Feature
方法名:setValue
暂无
代码示例来源:origin: de.unistuttgart.ims/cleartk-util
public List<Feature> extract(JCas view, T focusAnnotation) throws CleartkExtractorException {
Feature f = new Feature();
int c = JCasUtil.selectCovered(goalClass, focusAnnotation).size();
f.setValue(c);
f.setName("count-" + goalClass.getSimpleName() + "-" + c);
return Arrays.asList(f);
}
代码示例来源:origin: de.unistuttgart.ims/cleartk-util
public List<Feature> extract(JCas view, T focusAnnotation) throws CleartkExtractorException {
List<Feature> flist = new LinkedList<Feature>();
for (Annotation anno : JCasUtil.select(view, goalClass)) {
Feature f = new Feature();
f.setName("subtype");
f.setValue(anno.getType().getShortName());
flist.add(f);
}
return flist;
}
代码示例来源:origin: org.apache.ctakes/ctakes-relation-extractor
feature.setValue("NULL");
String message = String.format("Null value found in %s", feature);
System.err.println(message);
代码示例来源:origin: apache/ctakes
feature.setValue("NULL");
String message = String.format("Null value found in %s", feature);
System.err.println(message);
代码示例来源:origin: apache/ctakes
feature.setValue( "NULL" );
String message = String.format( "Null value found in %s from %s", feature, features );
System.err.println( message );
代码示例来源:origin: org.apache.ctakes/ctakes-coreference
feature.setValue("NULL");
String message = String.format("Null value found in %s from %s", feature, features);
System.err.println(message);
代码示例来源:origin: apache/ctakes
feature.setValue("NULL");
String message = String.format("Null value found in %s from %s", feature, features);
System.err.println(message);
代码示例来源:origin: org.apache.ctakes/ctakes-coreference
feature.setValue("NULL");
String message = String.format("Null value found in %s from %s", feature, features);
System.err.println(message);
代码示例来源:origin: apache/ctakes
feat.setValue( ((String)feat.getValue()).toLowerCase() );
代码示例来源:origin: apache/ctakes
feat.setValue( ((String)feat.getValue()).toLowerCase() );
代码示例来源:origin: org.apache.ctakes/ctakes-assertion
if(feat.getName() != null && (feat.getName().contains("_TreeFrag") || feat.getName().contains("_WORD") || feat.getName().contains("_NEG"))) continue;
if(feat.getValue() instanceof String){
feat.setValue(((String)feat.getValue()).toLowerCase());
内容来源于网络,如有侵权,请联系作者删除!