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 in char_language_model.py
tags/v0.1.0
xuyige
6 years ago
parent
650838d118
commit
c77621292b
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
fastNLP/models/char_language_model.py
+ 2
- 0
fastNLP/models/char_language_model.py
View File
@@ -142,6 +142,8 @@ class CharLM(BaseModel):
"char_dict": char_dict,
"reverse_word_dict": reverse_word_dict,
}
if not os.path.exists("cache"):
os.mkdir("cache")
torch.save(objects, "cache/prep.pt")
print("Preprocess done.")
Write
Preview
Loading…
Cancel
Save