Skip to content

Commit 90bb505

Browse files
committed
replace_url should be in pre_rules
1 parent 1d26919 commit 90bb505

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythainlp/ulmfit/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,10 @@ def remove_space(toks: Collection):
371371
rm_useless_spaces,
372372
rm_useless_newlines,
373373
rm_brackets,
374+
replace_url,
374375
]
375376

376-
post_rules_th = [replace_wrep_post, ungroup_emoji, lowercase_all, replace_url]
377+
post_rules_th = [replace_wrep_post, ungroup_emoji, lowercase_all,]
377378
# sparse features
378379
pre_rules_th_sparse = pre_rules_th[1:] + [replace_rep_nonum]
379380
post_rules_th_sparse = post_rules_th[1:] + [replace_wrep_post_nonum,

0 commit comments

Comments
 (0)