Skip to content

Commit

Permalink
Fix typo #9012 (#1) (#9038)
Browse files Browse the repository at this point in the history
There is a tiny typo in the code "transformers/examples/language-modeling/run_mlm_wwm.py" at line 284. [Details.](#9012)
  • Loading branch information
NatLun137 authored Dec 10, 2020
1 parent 8d4bb02 commit 91ab02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/language-modeling/run_mlm_wwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def tokenize_function(examples):
# 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
)
Expand Down

0 comments on commit 91ab02a

Please sign in to comment.