Commit
•
80689ba
1
Parent(s):
b92cd0d
adjust README
Browse files
README.md
CHANGED
@@ -94,7 +94,7 @@ CHARS_TO_IGNORE = [",", "?", ".", "!", "-", ";", ":", '""', "%", "'", '"', "�"
|
|
94 |
test_dataset = load_dataset("common_voice", LANG_ID, split="test")
|
95 |
wer = load_metric("wer")
|
96 |
|
97 |
-
chars_to_ignore_regex = f"[{re.escape(
|
98 |
|
99 |
processor = Wav2Vec2Processor.from_pretrained(MODEL_ID)
|
100 |
model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
|
|
|
94 |
test_dataset = load_dataset("common_voice", LANG_ID, split="test")
|
95 |
wer = load_metric("wer")
|
96 |
|
97 |
+
chars_to_ignore_regex = f"[{re.escape(''.join(CHARS_TO_IGNORE))}]"
|
98 |
|
99 |
processor = Wav2Vec2Processor.from_pretrained(MODEL_ID)
|
100 |
model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
|