我正在尝试提取由默认 ANNIE 处理资源生成的注释集的各个文本值。
当我遍历注释集时,每个条目只给出注释引用的开始和结束位置,但不给出 .value() 方法。有没有一种简单的方法来获取值,或者我是否需要使用 FileWriter 或其他等效方法来直接从我正在使用注释的开始和结束位置处理的语料库中提取值?
annotTypesRequired.add("Location");
Set<Annotation> organization = new HashSet<Annotation>(
defaultAnnotSet.get(annotTypesRequired));