[run_translation.py] fix typo (#11372)

fix typo

Co-authored-by: johnson <johnson@github.com>
This commit is contained in:
johnson7788 2021-04-22 20:17:11 +08:00 committed by GitHub
parent 58d8795d74
commit 5b5e4ca366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,7 @@ def main():
forced_bos_token_id = (
tokenizer.lang_code_to_id[data_args.forced_bos_token] if data_args.forced_bos_token is not None else None
)
model.config.foced_bos_token_id = forced_bos_token_id
model.config.forced_bos_token_id = forced_bos_token_id
# Get the language codes for input/target.
source_lang = data_args.source_lang.split("_")[0]