From 7a65f83b1777a6d27bcbf5e47f0da77d925b94c0 Mon Sep 17 00:00:00 2001 From: Shivam Mehta Date: Thu, 14 Nov 2024 06:42:06 +0100 Subject: [PATCH] Updating the version --- matcha/VERSION | 2 +- matcha/text/cleaners.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/matcha/VERSION b/matcha/VERSION index ea5abc8..10507a3 100644 --- a/matcha/VERSION +++ b/matcha/VERSION @@ -1 +1 @@ -0.0.7.0 +0.0.7.1 diff --git a/matcha/text/cleaners.py b/matcha/text/cleaners.py index 0d97b00..788776b 100644 --- a/matcha/text/cleaners.py +++ b/matcha/text/cleaners.py @@ -74,9 +74,11 @@ def expand_abbreviations(text): def lowercase(text): return text.lower() + def remove_brackets(text): return re.sub(_brackets_re, "", text) + def collapse_whitespace(text): return re.sub(_whitespace_re, " ", text) @@ -107,7 +109,7 @@ def english_cleaners2(text): text = expand_abbreviations(text) phonemes = global_phonemizer.phonemize([text], strip=True, njobs=1)[0] # Added in some cases espeak is not removing brackets - phonemes = remove_brackets(phonemes) + phonemes = remove_brackets(phonemes) phonemes = collapse_whitespace(phonemes) return phonemes