python b包_Python PYEVALB包_程序模块 - PyPI - Python中文网

两个语料库得分fromPYEVALBimportscorergold_path='gold_corpus.txt'test_path='test_corpus.txt'result_path='result.txt'scorer.evalb(gold_path,test_path,result_path)

结果是:ID | length | state | recall | prec | matched_brackets | gold_brackets | test_brackets | cross_brackets | words | correct_tags | tag_accracy

---:|-------:|------:|-------:|-----:|-----------------:|--------------:|--------------:|---------------:|------:|-------------:|------------:

0| 44| 0| 0.57| 0.61| 31| 54| 51| 16| 44| 43| 0.98

1| 13| 0| 0.64| 0.60| 9| 14| 15| 3| 13| 12| 0.92

2| 29| 0| 0.97| 0.97| 29| 30| 30| 0| 29| 29| 1.00

3| 20| 0| 0.80| 0.80| 20| 25| 25| 4| 20| 20| 1.00

4| 19| 0| 0.91| 1.00| 21| 23| 21| 0| 19| 19| 1.00

5| 71| 0| 0.67| 0.68| 52| 78| 77| 15| 71| 65| 0.92

6| 16| 0| 0.61| 0.69| 11| 18| 16| 0| 16| 14| 0.88

7| 27| 0| 0.92| 0.96| 24| 26| 25| 0| 27| 26| 0.96

8| 19| 0| 1.00| 1.00| 20| 20| 20| 0| 19| 19| 1.00

9| 41| 0| 0.80| 0.78| 32| 40| 41| 5| 41| 39| 0.95

=================================================================================================================================================

Number of sentence: 10.00

Number of Error sentence: 0.00

Number of Skip sentence: 0.00

Number of Valid sentence: 10.00

Bracketing Recall: 75.91

Bracketing Precision: 77.57

Bracketing FMeasure: 76.73

Complete match: 10.00

Average crossing: 4.30

No crossing: 50.00

Tagging accuracy: 95.65

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值