是否可以使用StanfordNLP API发送fileList?

时间:2018-06-27 00:12:58

标签: stanford-nlp

据我所知,需要使用文本数据调用StanfordNLP API,但是根据那里的文档,建议使用fileList来加快处理速度并避免模型加载,因此有一种方法可以在StanfordNLP中发送fileList NER或coref或任何其他子模块的API?

1 个答案:

答案 0 :(得分:0)

使用此命令:

java -Xmx14g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner -fileList file_list.txt -outputFormat text

您可以将所需的任何属性添加到管道中。

更多详细信息在这里:

https://stanfordnlp.github.io/CoreNLP/cmdline.html https://stanfordnlp.github.io/CoreNLP/api.html