"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "1a113fcf65c9231d3aece817960fbfe521e7e275"
Unverified Commit 91ab02af authored by NatLun137's avatar NatLun137 Committed by GitHub
Browse files

Fix typo #9012 (#1) (#9038)

There is a tiny typo in the code "transformers/examples/language-modeling/run_mlm_wwm.py" at line 284. [Details.](https://github.com/huggingface/transformers/issues/9012)
parent 8d4bb020
......@@ -281,7 +281,7 @@ def main():
# Add the chinese references if provided
if data_args.train_ref_file is not None:
tokenized_datasets["train"] = add_chinese_references(tokenized_datasets["train"], data_args.train_ref_file)
if data_args.valid_ref_file is not None:
if data_args.validation_ref_file is not None:
tokenized_datasets["validation"] = add_chinese_references(
tokenized_datasets["validation"], data_args.validation_ref_file
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment