Skip to content

Commit a17dd90

Browse files
authored
Merge pull request #1464 from PyThaiNLP/fix-1462
Change loop limit from 20 to dec_maxlen
2 parents 2b0f652 + 681e02c commit a17dd90

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
@@ -294,7 +294,7 @@ def _predict(self, word: str) -> str:
294294
h = last_hidden
295295

296296
preds: list[int] = []
297-
for _ in range(20):
297+
for _ in range(hp.dec_maxlen):
298298
h = self._grucell(
299299
dec,
300300
h,

0 commit comments

Comments
 (0)