File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ asr_pretrained: !new:speechbrain.utils.parameter_transfer.Pretrainer
185185 encoder : !ref <pretrained_enhance_path>/encoder.ckpt
186186 decoder : !ref <pretrained_enhance_path>/decoder.ckpt
187187 masknet : !ref <pretrained_enhance_path>/masknet.ckpt
188- whisper : !ref <pretrained_whisper_model >/whisper.ckpt
188+ whisper : !ref <pretrained_whisper_path >/whisper.ckpt
189189
190190modules :
191191 encoder : !ref <enhance_model[Encoder]>
Original file line number Diff line number Diff line change @@ -524,7 +524,19 @@ def check_RescueSpeech_data_folders(data_folder):
524524
525525
526526def unicode_normalisation (text ):
527+ """
528+ Normalizes the Unicode representation of a given text.
527529
530+ Arguments
531+ ---------
532+ text : str
533+ The text to be normalized.
534+
535+ Returns
536+ -------
537+ str
538+ The normalized text.
539+ """
528540 try :
529541 text = unicode (text , "utf-8" )
530542 except NameError : # unicode is a default on python 3
@@ -562,6 +574,19 @@ def data_cleaning(words):
562574
563575
564576def strip_accents (text ):
577+ """
578+ Strips accents from a given text string.
579+
580+ Arguments:
581+ ----------
582+ text : str
583+ The text from which accents are to be stripped.
584+
585+ Returns
586+ -------
587+ str
588+ The text with accents stripped.
589+ """
565590
566591 text = (
567592 unicodedata .normalize ("NFD" , text )
You can’t perform that action at this time.
0 commit comments