SelectForDualAnnotation.java 文件源码

java
阅读 43 收藏 0 点赞 0 评论 0

项目:tac-kbp-eal 作者:
private static ImmutableMultimap<Symbol, Symbol> makeEventTypesToDocumentsMap(
    AnnotationStore annotationStore, Set<Symbol> targetDocIDs) throws IOException {
  final ImmutableMultimap.Builder<Symbol, Symbol> ret = ImmutableMultimap.builder();

  for (final Symbol docID : targetDocIDs) {
    for (final Response response : annotationStore.readOrEmpty(docID).allResponses()) {
      ret.put(response.type(), docID);
    }
  }

  return ret.build();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号