2017-10-11 7 views

답변

1

같은 수있는 방법은 다음과 같습니다 -

등록 소품 = 새 속성(); props.setProperty ("annotators", "tokenize, ssplit, pos, 보조 정리, 구문 분석, 언급, coref, natlog, openie");

props.setProperty ("openie.resolve_coref", "false"); // default = true

감사합니다. Gabor Angeli 팁!

-1

다음은 옵션을 true 또는 false로 설정할 수있는 명령의 예입니다. 기본값은 true입니다.

java -Xmx10g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,depparse,mention,natlog,openie -file sample-sentence.txt -outputFormat text -openie.triple.strict false 
+0

여기에 더 많은 옵션이 설명되어 있습니다. https://stanfordnlp.github.io/CoreNLP/openie.html – StanfordNLPHelp

+0

이 옵션을 CoreNLP API를 통해 어떻게 사용할 수 있습니까? – pHM

+0

파이프 라인을 빌드하면 Properties 개체가 사용됩니다. 해당 Properties 객체에 "openie.triple.strict"를 설정하십시오. – StanfordNLPHelp

관련 문제