From 1839a42881296065bfd565bad449cd18778bca0c Mon Sep 17 00:00:00 2001 From: xingchensong Date: Mon, 3 Jun 2024 00:19:24 +0800 Subject: [PATCH] [tn] set whitelist weight = 1.0 --- tn/english/normalizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tn/english/normalizer.py b/tn/english/normalizer.py index d99577d9..cdf33246 100644 --- a/tn/english/normalizer.py +++ b/tn/english/normalizer.py @@ -51,7 +51,7 @@ def build_tagger(self): telephone = add_weight(Telephone().tagger, 1.00) electronic = add_weight(Electronic().tagger, 1.00) word = add_weight(Word().tagger, 100) - whitelist = add_weight(WhiteList().tagger, -100) + whitelist = add_weight(WhiteList().tagger, 1.00) # TODO(xcsong): add roman tagger = (cardinal | ordinal | word | date | decimal | fraction