fix(norm): tag splitting logic

This commit is contained in:
源文雨
2024-08-02 15:18:31 +08:00
parent adf1457886
commit e6b35a989b
+1 -1
View File
@@ -169,7 +169,7 @@ class Normalizer:
if _lang in self.normalizers:
texts, tags = _split_tags(text)
self.logger.debug("split texts %s, tags %s", str(texts), str(tags))
texts = [self.normalizers[_lang](t) for t in text]
texts = [self.normalizers[_lang](t) for t in texts]
self.logger.debug("normed texts %s", str(texts))
text = _combine_tags(texts, tags)
self.logger.debug("combined text %s", text)