分句功能参考 Stanford Tokenizer

在edu.stanford.nlp.pipeline包中实现了一系列分词分句功能,其中SentenceAnnotator类实现了对文件分句功能.

运行Demo程序:在edu.stanford.nlp.pipeline.demo包中找到StanfordCoreNlpDemo类,设置propsprops.setProperty("annotators", "tokenize,ssplit"); ssplit表示分句,设置Arguments为要分句的文件,默认以句号+空格分句,输出如下:

Stanford CoreNLP--Split Sentence

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-01-08
  • 2021-10-02
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-08-31
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案