fastnlp / fastNLP

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.
https://gitee.com/fastnlp/fastNLP
Apache License 2.0
3.06k stars 450 forks source link

[new]revised confusion class #278

Closed ROGERDJQ closed 4 years ago

ROGERDJQ commented 4 years ago

Description:代码解构,增加数据提取方法,格式化输出方法,增加元素占比计算方法

Main reason: 功能完善,代码结构调整

Checklist 检查下面各项是否完成

Please feel free to remove inapplicable items for your PR.

Changes: 逐项描述修改的内容

Mention: 找人review你的PR

@修改过这个文件的人 @核心开发人员

codecov-io commented 4 years ago

Codecov Report

Merging #278 into master will decrease coverage by 0.05%. The diff coverage is 80.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #278      +/-   ##
==========================================
- Coverage   78.72%   78.66%   -0.06%     
==========================================
  Files          85       85              
  Lines       10476    10532      +56     
==========================================
+ Hits         8247     8285      +38     
- Misses       2229     2247      +18     
Impacted Files Coverage Δ
fastNLP/core/utils.py 71.55% <80.41%> (-0.41%) :arrow_down:
fastNLP/core/metrics.py 82.78% <84.61%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bb88bb4...aa7edfa. Read the comment docs.