This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
fastNLP
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
13
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
SpanFMetric增加对encoding_type和tag_vocab的检查
tags/v0.4.10
yh_cc
5 years ago
parent
55e736bf4c
commit
cbe5b347e5
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
fastNLP/core/metrics.py
+ 1
- 1
fastNLP/core/metrics.py
View File
@@ -505,7 +505,7 @@ def _check_tag_vocab_and_encoding_type(vocab:Vocabulary, encoding_type:str):
for tag, idx in vocab:
if idx in (vocab.unknown_idx, vocab.padding_idx):
continue
tag = tag[:1]
tag = tag[:1]
.lower()
tag_set.add(tag)
tags = encoding_type
for tag in tag_set:
Write
Preview
Loading…
Cancel
Save