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
fix a bug
tags/v0.2.0
xuyige
5 years ago
parent
a58d60e64a
commit
19332b8b08
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/dataset.py
+ 1
- 1
fastNLP/core/dataset.py
View File
@@ -30,7 +30,7 @@ class DataSet(list):
return self
def index_field(self, field_name, vocab):
if isinstance(field_name, str)
and isinstance(vocab, Vocabulary)
:
if isinstance(field_name, str):
field_list = [field_name]
vocab_list = [vocab]
else:
Write
Preview
Loading…
Cancel
Save