You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: translator/main.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ def parse_arguments():
49
49
argument_parse.add_argument('--po', action='store_true', help="Translate PO (Portable Object) files instead of text files.")
50
50
argument_parse.add_argument('--force', action='store_true', help="Force translation ignoring cache (text files) or translate all entries including translated ones (PO files).")
51
51
argument_parse.add_argument('-S', '--save', type=str, help="Path to text file to save translations.")
52
-
argument_parse.add_argument('-l', '--max_length', default=max_translation_lenght, help="Max length of output.")
52
+
argument_parse.add_argument('-l', '--max_length', default=max_translation_lenght, type=int, help="Max length of output.")
53
53
argument_parse.add_argument('-m', '--model_id', default=default_translator_model, help="HuggingFace model ID to use.")
54
54
argument_parse.add_argument('-p', '--pipeline', default=default_translator_pipeline, help="Pipeline task to use.")
55
55
argument_parse.add_argument('-b', '--batch_size', default=128, type=int, help="Number of sentences to batch for translation.")
0 commit comments