This commit is contained in:
igeni 2025-04-28 05:05:34 +00:00 committed by GitHub
commit 4007888ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ def validate_case_matches_checkpoint(do_lower_case, init_checkpoint):
if not init_checkpoint:
return
m = re.match("^.*?([A-Za-z0-9_-]+)/bert_model.ckpt", init_checkpoint)
m = re.match("^.*?([\w-]+)/bert_model.ckpt", init_checkpoint)
if m is None:
return