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 bug in preprocessor: reported in issue 47
tags/v0.1.0
FengZiYjun
6 years ago
parent
6f59384d6c
commit
31eac4a795
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/preprocess.py
+ 1
- 1
fastNLP/core/preprocess.py
View File
@@ -268,7 +268,7 @@ class ClassPreprocess(BasePreprocess):
for word in sent:
if word not in word2index:
word2index[word
[0]
] = len(word2index)
word2index[word] = len(word2index)
return word2index, label2index
def to_index(self, data):
Write
Preview
Loading…
Cancel
Save