Skip to content

Commit cb18b9a

Browse files
wannaphongbact
andauthored
Update pythainlp/generate/thai2fit.py
Co-authored-by: Arthit Suriyawongkul <arthit@gmail.com>
1 parent 55f76ba commit cb18b9a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pythainlp/generate/thai2fit.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@
6868
" CLI: thainlp data get json_itos_fname"
6969
)
7070

71-
# Loads a pickle file from PyThaiNLP's official repository with MD5 verification.
72-
# WARNING:
73-
# Pickle deserialization can execute arbitrary code if the file is malicious.
74-
# Users should only use files from trusted sources.
7571
with open(thwiki["json_itos_fname"], "r") as f:
7672
thwiki_itos: list[str] = json.load(f)
7773
thwiki_vocab: "Vocab" = fastai.text.transform.Vocab(thwiki_itos)

0 commit comments

Comments
 (0)