vue 实现命令行界面_OpenNLP命令行界面

OpenNLP提供了一个命令行界面(CLI),通过命令行执行不同的操作。在本章中,我们将举一些例子来说明如何使用OpenNLP命令行界面。

令牌化

input.txt

Hi. How are you? Welcome to Tutorialspoint. We provide free tutorials on various technologies

用法

> opennlp TokenizerME path_for_models../en-token.bin outputfile..

命令

C:> opennlpTokenizerMEC:OpenNLP_models/en-token.binoutput.txt

输出

Loading Tokenizer model ... done (0.207s)

Average: 214.3 sent/s

Total: 3 sent

Runtime: 0.014s

output.txt

Hi . How are you ? Welcome to Tutorialspoint . We provide free tutorials on various technologies

句子检测

input.txt

Hi. How are you? Welcome to Tutorialspoint. We provide free tutorials on various technologies

用法

> opennlp SentenceDetector path_for_models../en-token.bin outputfile..

命令

C:> opennlpSentenceDetectorC:OpenNLP_models/en-sent.binoutput_sendet.txt

输出

Loading Sentence Detector model ... done (0.067s)

Average: 750.0 sent/s

Total: 3 sent

Runtime: 0.004s

Output_sendet.txt

Hi. How are you?

Welcome to Tutorialspoint.

We provide free tutorials on various technologies

命名实体识别

input.txt

Mike is senior programming manager and

Rama is a clerk both are working at Tutorialspoint

用法

> opennlp TokenNameFinder path_for_models../en-token.bin

命令

C:>opennlpTokenNameFinderC:OpenNLP_modelsen-ner-person.bin

输出

Loading Token Name Finder model ... done (0.730s)

Mike is senior programming manager and

Rama is a clerk both are working at Tutorialspoint

Average: 55.6 sent/s

Total: 1 sent

Runtime: 0.018s

部分语音标签

Input.txt

Hi. How are you? Welcome to Tutorialspoint. We provide free tutorials on various technologies

用法

> opennlp POSTagger path_for_models../en-token.bin

命令

C:>opennlpPOSTaggerC:OpenNLP_models/en-pos-maxent.bin

输出

Loading POS Tagger model ... done (1.315s)

Hi._NNP How_WRB are_VBP you?_JJ Welcome_NNP to_TO Tutorialspoint._NNP We_PRP

provide_VBP free_JJ tutorials_NNS on_IN various_JJ technologies_NNS

Average: 66.7 sent/s

Total: 1 sent

Runtime: 0.015s

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值