2017年2月15日 星期三

玩轉 corenlp(2)

第一次執行時可能要做此初始化,速度比較慢,之後速度就很快了。

如果中文的部分出來的結果不好,我覺得常常是專門用語的問題,例如:


"促"這個字單獨出現時,記憶中也只有 TSH 有這種形容詞的詞性,怨不得 CoreNLP 了

P.S. 使用 ant 編譯後,我沒有壓成 jar ,所以執行方式要修正一下:

java -Xmx4g -cp "*;classes" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -serverProperties StanfordCoreNLP-chinese.properties -port 9000 -timeout 15000

沒有留言:

張貼留言