sigilyph 0.1.1__tar.gz → 0.2.1__tar.gz

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.

Files changed (25) hide show
  1. {sigilyph-0.1.1/sigilyph.egg-info → sigilyph-0.2.1}/PKG-INFO +1 -1
  2. {sigilyph-0.1.1 → sigilyph-0.2.1}/setup.py +2 -2
  3. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/sigilyph_class.py +5 -5
  4. {sigilyph-0.1.1 → sigilyph-0.2.1/sigilyph.egg-info}/PKG-INFO +1 -1
  5. {sigilyph-0.1.1 → sigilyph-0.2.1}/MANIFEST.in +0 -0
  6. {sigilyph-0.1.1 → sigilyph-0.2.1}/README.md +0 -0
  7. {sigilyph-0.1.1 → sigilyph-0.2.1}/setup.cfg +0 -0
  8. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/__init__.py +0 -0
  9. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/__init__.py +0 -0
  10. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/cache_dir/en_tn_tagger.fst +0 -0
  11. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/cache_dir/en_tn_verbalizer.fst +0 -0
  12. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/cache_dir/zh_tn_tagger.fst +0 -0
  13. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/cache_dir/zh_tn_verbalizer.fst +0 -0
  14. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/g2p_func.py +0 -0
  15. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/norm_func.py +0 -0
  16. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/predict.py +0 -0
  17. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/preprocess.py +0 -0
  18. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/py2phone.dict +0 -0
  19. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/special_dict.json +0 -0
  20. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/symbols.py +0 -0
  21. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph/core/text_process.py +0 -0
  22. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph.egg-info/SOURCES.txt +0 -0
  23. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph.egg-info/dependency_links.txt +0 -0
  24. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph.egg-info/requires.txt +0 -0
  25. {sigilyph-0.1.1 → sigilyph-0.2.1}/sigilyph.egg-info/top_level.txt +0 -0
@@ -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,12 +5,12 @@ Author: Yixiang Chen
5
5
  version:
6
6
  Date: 2025-03-24 15:57:41
7
7
  LastEditors: Yixiang Chen
8
- LastEditTime: 2025-08-12 17:37:26
8
+ LastEditTime: 2025-08-12 19:35:01
9
9
  '''
10
10
 
11
11
  from setuptools import setup, find_packages
12
12
 
13
- VERSION = '0.1.1'
13
+ VERSION = '0.2.1'
14
14
  DESCRIPTION = 'Text Front for TTS'
15
15
  #LONG_DESCRIPTION = 'Data Package for TTS with a slightly longer description'
16
16
  LONG_DESCRIPTION = open("README.md", encoding="utf-8").read()
@@ -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
File without changes
File without changes
File without changes
File without changes