sigilyph 0.1.1__py3-none-any.whl → 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sigilyph might be problematic. Click here for more details.

@@ -5,7 +5,7 @@ Author: Yixiang Chen
5
5
  version:
6
6
  Date: 2025-08-12 14:42:50
7
7
  LastEditors: Yixiang Chen
8
- LastEditTime: 2025-08-12 17:26:36
8
+ LastEditTime: 2025-08-12 19:36:22
9
9
  '''
10
10
 
11
11
  import langid
@@ -49,13 +49,13 @@ class Sigilyph:
49
49
 
50
50
  self.special_phrase = special_phrase
51
51
 
52
- def forward(self, text, lang):
53
- phones = self.text_process(text, lang)
52
+ def forward(self, text, lang, spflag=False, norm_use_lang='zh'):
53
+ phones = self.text_process(text, lang, spflag, norm_use_lang)
54
54
  phones = self.replace_sil2label(phones)
55
55
  return phones
56
56
 
57
- def text_process(self, text, lang, spflag=True, use_lang='zh'):
58
- text = preprocess_first(text, self.before_replace_dict, special_word_dict, norm_use_lang='zh')
57
+ def text_process(self, text, lang, spflag=False, norm_use_lang='zh'):
58
+ text = preprocess_first(text, self.before_replace_dict, special_word_dict, norm_use_lang=norm_use_lang)
59
59
 
60
60
  multi_lang_text_list = self.text_split_lang(text, lang)
61
61
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sigilyph
3
- Version: 0.1.1
3
+ Version: 0.2.1
4
4
  Summary: Text Front for TTS
5
5
  Home-page: https://github.com/yixiangchen1995/python-Sigilyph
6
6
  Author: Yixiang Chen
@@ -5,7 +5,7 @@ sigilyph/core/norm_func.py,sha256=HM7ljws4KcBKtzGxIZPiDIuz35DFNIygP4EsjeLRWIQ,30
5
5
  sigilyph/core/predict.py,sha256=Vn7A5TXONqhBe-lJ7uB6Kln9ia1zzYtNzJx5mq_KEBI,1810
6
6
  sigilyph/core/preprocess.py,sha256=l55mqh6TK2cuFQhcl8ouys1-U9XfgNFwXLpFeKI17xk,316
7
7
  sigilyph/core/py2phone.dict,sha256=RdafObGTAX9OxvHkijDEzsvyvXnsJuY7aPpBKHgic9g,24894
8
- sigilyph/core/sigilyph_class.py,sha256=lzLvmEqYIOW-3Z0bt_nvI14zSn5uQOw9hsGZ1H0xr1U,7973
8
+ sigilyph/core/sigilyph_class.py,sha256=T2s-YKbH856VH261waKmvYOMFx002L76rcuK-HBKe3A,8045
9
9
  sigilyph/core/special_dict.json,sha256=LtFVDr6OnW8aLCs3z3IzU6rs57aoW8QAiOcqc2bXwys,899
10
10
  sigilyph/core/symbols.py,sha256=4IHCCRTiKIaWdMmrUozELlDgkWHAo7l1tPT70Lc_5-w,53898
11
11
  sigilyph/core/text_process.py,sha256=NAexBQxTD33pJegQwRPgvun-h6rcJc9Ikx8ZMlsIsNw,11734
@@ -13,7 +13,7 @@ sigilyph/core/cache_dir/en_tn_tagger.fst,sha256=yYMCyIUBnfeq35yr6M0Bn_DSSs-iKoA3
13
13
  sigilyph/core/cache_dir/en_tn_verbalizer.fst,sha256=DcK9hJao5KFpWSSVsV3BhJ1QIJfIo9OHU0ahc3YbSLQ,2121910
14
14
  sigilyph/core/cache_dir/zh_tn_tagger.fst,sha256=tpcrM-0vFE2WfOPgiQMpV9Tj2AJJVU9P43eHSN_m06s,3758522
15
15
  sigilyph/core/cache_dir/zh_tn_verbalizer.fst,sha256=rf-GZBTfZQkzLT402cb6fFktFAnHWNSgto_zPlzZArU,108982
16
- sigilyph-0.1.1.dist-info/METADATA,sha256=gBbNKtKwYGDz6J1zjStbvl3m7zQ3Od2Zk0XmsC1r3zQ,686
17
- sigilyph-0.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
- sigilyph-0.1.1.dist-info/top_level.txt,sha256=caZwwDzakMbaNNk9MOK172HjSUj1HmJr3oK4iOGUyTo,9
19
- sigilyph-0.1.1.dist-info/RECORD,,
16
+ sigilyph-0.2.1.dist-info/METADATA,sha256=Nn2zV3UhEL0KbxRVBLOZhqQz584YfHMF4cb-ZvX9CTs,686
17
+ sigilyph-0.2.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
+ sigilyph-0.2.1.dist-info/top_level.txt,sha256=caZwwDzakMbaNNk9MOK172HjSUj1HmJr3oK4iOGUyTo,9
19
+ sigilyph-0.2.1.dist-info/RECORD,,