patrickvonplaten commited on
Commit
036c66d
1 Parent(s): 9540fd0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -23,6 +23,7 @@ model-index:
23
  type: wer
24
  value:xxx
25
  ---
 
26
  # wav2vec2-large-xlsr-polish
27
  Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) in Polish using the [Common Voice](https://huggingface.co/datasets/common_voice)
28
  When using this model, make sure that your speech input is sampled at 16kHz.
@@ -64,7 +65,7 @@ wer = load_metric("wer")
64
  processor = Wav2Vec2Processor.from_pretrained("alexcleu/wav2vec2-large-xlsr-polish")
65
  model = Wav2Vec2ForCTC.from_pretrained("alexcleu/wav2vec2-large-xlsr-polish")
66
  model.to("cuda")
67
- chars_to_ignore_regex = '[\\\\,\\\\?\\\\.\\\\!\\\\-\\\\;\\\\:\\\\"\\\\“]'
68
  resampler = torchaudio.transforms.Resample(48_000, 16_000)
69
  # Preprocessing the datasets.
70
  # We need to read the aduio files as arrays
 
23
  type: wer
24
  value:xxx
25
  ---
26
+
27
  # wav2vec2-large-xlsr-polish
28
  Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) in Polish using the [Common Voice](https://huggingface.co/datasets/common_voice)
29
  When using this model, make sure that your speech input is sampled at 16kHz.
 
65
  processor = Wav2Vec2Processor.from_pretrained("alexcleu/wav2vec2-large-xlsr-polish")
66
  model = Wav2Vec2ForCTC.from_pretrained("alexcleu/wav2vec2-large-xlsr-polish")
67
  model.to("cuda")
68
+ chars_to_ignore_regex = '[\\\\\\\\,\\\\\\\\?\\\\\\\\.\\\\\\\\!\\\\\\\\-\\\\\\\\;\\\\\\\\:\\\\\\\\"\\\\\\\\“]'
69
  resampler = torchaudio.transforms.Resample(48_000, 16_000)
70
  # Preprocessing the datasets.
71
  # We need to read the aduio files as arrays