2017-10-29 2 views
0
나는 일부 중국 Coreference resolution.My 코드를 처리하기 위해 스탠포드 coreNLP를 사용하려면

은 다음과 같습니다스탠포드 CoreNLP 중국어 coreference 해상도

--- 
coref chains 
--- 
mentions 
    奥巴马出生在夏威夷 , 他是美国总统 , 他在2008年当选 

아무것도에서 coref chain은 환경을 올바르게 설정하고 중국어를 지원하지만 coref chain은 어떻게 얻을 수 있습니까?

답변

0

코드에서 파이프 라인을 두 번 만들고 있습니다.

참고 : 코드에이를 추가해야합니다 :

import edu.stanford.nlp.util.StringUtils; 

당신의 코드는 다음과 같이해야한다 :

Properties props = StringUtils.argsToProperties("-props", "StanfordCoreNLP-chinese.properties"); 
props.setProperty("annotators", "tokenize,ssplit,pos,lemma,ner,parse,mention,coref"); 
StanfordCoreNLP pipeline = new StanfordCoreNLP(props); 
관련 문제