Commit Graph

4 Commits

Author SHA1 Message Date
litagin02
2274087da4 Fmt only (maybe) 2024-05-25 18:15:36 +09:00
gordon0414
7de367b76f moved tokenizer loading inside of g2p function for code integrity. 2024-05-10 11:55:38 +09:00
gordon0414
3018309199 Optimize g2p function for improved speed and efficiency
- Moved global variables (ARPA, _g2p, eng_dict, tokenizer) to top-level scope to avoid redundant initialization.
- Simplified conditions for words with apostrophes.
- Streamlined __post_replace_ph function by removing redundant checks.
- Optimized __refine_syllables function with direct iteration.
- Avoided re-initialization of tokenizer in __text_to_words by moving it to global scope.
- Added performance test in __main__ to validate improvements.
- Resolves issue #104.
2024-05-09 16:12:15 +09:00
tsukumi
e2daa55000 Refactor: split style_bert_vits2.nlp.english package 2024-03-08 08:43:54 +00:00