NLP를 처음 사용하고 StanfordNLP 파서의 openie 속성에서 openie.triple.strict 옵션을 사용하는 방법을 이해하는 데 도움이되는 예제가 필요합니다.StanfordNLP 파서에서 openie.triple.strict 옵션을 사용하는 방법은 무엇입니까?
1
A
답변
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
여기에 더 많은 옵션이 설명되어 있습니다. https://stanfordnlp.github.io/CoreNLP/openie.html – StanfordNLPHelp
이 옵션을 CoreNLP API를 통해 어떻게 사용할 수 있습니까? – pHM
파이프 라인을 빌드하면 Properties 개체가 사용됩니다. 해당 Properties 객체에 "openie.triple.strict"를 설정하십시오. – StanfordNLPHelp