本文整理了Java中org.apache.uima.cas.text.AnnotationFS.getBooleanValue()
方法的一些代码示例,展示了AnnotationFS.getBooleanValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AnnotationFS.getBooleanValue()
方法的具体详情如下:
包路径:org.apache.uima.cas.text.AnnotationFS
类名称:AnnotationFS
方法名:getBooleanValue
暂无
代码示例来源:origin: fr.univ-nantes.julestar/uima-tokens-regex
private Object getValue(AnnotationFS annotation) {
switch(valueType) {
case TYPE_BOOLEAN:
return annotation.getBooleanValue(getFeature(annotation));
case TYPE_STRING:
return annotation.getStringValue(getFeature(annotation));
case TYPE_INT:
return annotation.getIntValue(getFeature(annotation));
case TYPE_FLOAT:
return annotation.getFloatValue(getFeature(annotation));
default:
throw new IllegalStateException("Unknown value type: " + this.valueType);
}
}
代码示例来源:origin: org.apache.uima/ruta-core
} else if (environment.getVariableType(variable).equals(Boolean.class)
&& featName.equals(CAS.TYPE_NAME_BOOLEAN)) {
Object value = annotationFS.getBooleanValue(featureByBaseName);
environment.setVariableValue(variable, value);
} else if (environment.getVariableType(variable).equals(Type.class)
代码示例来源:origin: org.apache.uima/textmarker-core
} else if (environment.getVariableType(variable).equals(Boolean.class)
&& featName.equals(UIMAConstants.TYPE_BOOLEAN)) {
Object value = annotationFS.getBooleanValue(featureByBaseName);
environment.setVariableValue(variable, value);
} else if (environment.getVariableType(variable).equals(Type.class)
代码示例来源:origin: org.apache.uima/textmarker-core
boolean value = annotation.getBooleanValue(featureByBaseName);
boolean v = booleanExpr.getBooleanValue(element.getParent());
boolean result = value == v;
内容来源于网络,如有侵权,请联系作者删除!