Anaphora resolution using Stanford Coref

后端 未结 1 1390
暖寄归人
暖寄归人 2021-02-04 22:41

I have sentences (Text I):

Tom is a smart boy. He know a lot of thing.

I want to change <

相关标签:
1条回答
  • 2021-02-04 22:56
    List<Pair<IntTuple, IntTuple>> coref = document.get(CorefGraphAnnotation.class);
    

    This is an old coref output format.

    You can change this line to

    Map<Integer, CorefChain> graph = document.get(CorefChainAnnotation.class);
    

    or you can use the oldCorefFormat option:

    props.put("oldCorefFormat", "true");
    
    0 讨论(0)
提交回复
热议问题