Update README.md
Browse files
README.md
CHANGED
@@ -85,15 +85,7 @@ import re
|
|
85 |
import argparse
|
86 |
|
87 |
lang_id = "zh-HK"
|
88 |
-
model_id = "ctl/wav2vec2-large-xlsr-cantonese"
|
89 |
-
|
90 |
-
parser = argparse.ArgumentParser(description='hanles checkpoint loading')
|
91 |
-
parser.add_argument('--checkpoint', type=str, default=None)
|
92 |
-
args = parser.parse_args()
|
93 |
-
model_path = model_id
|
94 |
-
if args.checkpoint is not None:
|
95 |
-
model_path += "/checkpoint-" + args.checkpoint
|
96 |
-
|
97 |
|
98 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:"\“\%\‘\”\�\.\⋯\!\-\:\–\。\》\,\)\,\?\;\~\~\…\︰\,\(\」\‧\《\﹔\、\—\/\,\「\﹖\·\']'
|
99 |
|
|
|
85 |
import argparse
|
86 |
|
87 |
lang_id = "zh-HK"
|
88 |
+
model_id = "ctl/wav2vec2-large-xlsr-cantonese"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:"\“\%\‘\”\�\.\⋯\!\-\:\–\。\》\,\)\,\?\;\~\~\…\︰\,\(\」\‧\《\﹔\、\—\/\,\「\﹖\·\']'
|
91 |
|