Files
sbv2-v2/style_bert_vits2/nlp
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
..
2024-03-15 12:27:46 +09:00