스탠포드 CoreNLP를 사용해야 할 때마다 일반적으로 다운로드하고 로컬 컴퓨터에서 실행합니다. 어떤 경우에는 정말로 설치할 수없는 경우가 있습니다 (일부 제한 사항).웹을 통해 스탠포드 CoreNLP 사용
http://nlp.stanford.edu:8080/corenlp/
내가 pycorenlp 래퍼를 시도하고 작동하지 않았다 :
여기from pycorenlp import StanfordCoreNLP
nlp_st = StanfordCoreNLP('http://nlp.stanford.edu:8080/corenlp/')
parser_output = nlp_st.annotate('Grass is green.', properties={
'annotators': 'tokenize,ssplit,pos,depparse,parse,ner',
'outputFormat': 'json'})
이 반환 것입니다 : 대신 사용할 수 있는지 궁금해
'\n\n\n\n<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">\n<head>\n <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>\n\n <link href="http://nlp.stanford.edu/nlp.css" rel="stylesheet" \n type="text/css" />\n <title>Stanford CoreNLP</title>\n<style type="text/css">\n<!--\n#Footer {\nposition: relative;\nbottom: 0px;\n}\n-->\n</style>\n\n <link rel="icon" type="image/x-icon" href="/ner/favicon.ico" />\n <link rel="shortcut icon" type="image/x-icon" \n href="/ner/favicon.ico" />\n\n</head>\n<body>\n\n<div>\n<h1>Stanford CoreNLP</h1>\n<FORM name="myform" METHOD="POST" ACTION="process" accept-charset="UTF-8">\n <table>\n <tr><td>\n Output format:\n \n <select name="outputFormat">\n <option value="visualise" >Visualise</option>\n <option value="pretty" >Pretty print</option>\n <option value="xml" >XML</option>\n <option value="json" >JSON</option>\n <option value="conll" >CoNLL</option>\n </select>\n </td></tr>\n \n <tr><td colspan=2>\n <br>Please enter your text here:<br><br>\n <textarea valign=top name="input" \n style="width: 400px; height: 8em" rows=31 cols=7></textarea>\n </td></tr>\n\n <tr><td align=left>\n <input type="submit" name="Process"/>\n <input type="button" value="Clear"\n onclick="this.form.elements[\'input\'].value=\'\'"/>\n </td></tr>\n </table>\n</FORM>\n</div>\n <div id="Footer">\r\n Copyright © 2015, \r\n <a href="http://nlp.stanford.edu/software/corenlp.shtml">Stanford University</a>, All Rights Reserved.\r\n </div>\r\n</body>\r\n</html>\r\n'
할까요 게시물과 함께 사용하고 메소드를 얻으려고합니까? 적절한 형식이란 무엇입니까?