Skip to content

Commit cda4c3a

Browse files
authored
rollback commit
Wrong branch
1 parent b8b09dc commit cda4c3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythainlp/transliterate/w2p.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _load_variables(self) -> None:
101101

102102
if self.checkpoint is None:
103103
raise RuntimeError("checkpoint path is not set")
104-
self.variables: "NDArray" = np.load(self.checkpoint, allow_pickle=False)
104+
self.variables: "NDArray" = np.load(self.checkpoint, allow_pickle=True)
105105
# (29, 64). (len(graphemes), emb)
106106
self.enc_emb: "NDArray" = self.variables.item().get(
107107
"encoder.emb.weight"

0 commit comments

Comments
 (0)