facebookresearch/TransCoder

Error on line43 for translation

ericguan8 opened this issue · 0 comments

Got the error below when trying to run the translation command (python translate.py --src_lang python --tgt_lang java --model_path model_1.pth < count_ten.py). Please advise what causes it and how to fix it?

File "translate.py", line 43
help=f"Source language, should be either {', '.join(SUPPORTED_LANGUAGES[:-1])} or {SUPPORTED_LANGUAGES[-1]}")
^
SyntaxError: invalid syntax