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
parser.add_argument("--task_template", type=str, default="Translate text in the {src_start}{src_end} section to the target language as naturally as possible, considering the context in the translation history and ensuring consistency and cultural relevance. Translated text must be enclosed in the {tgt_start}{tgt_end} section. You must respond with only the {tgt_end} section.", help="Template for the translation task")
346
-
parser.add_argument("--specify_language", action="store_true", help="Specify source and target languages in the prompt")
347
-
parser.add_argument("--language_template", type=str, default="Translate from {src_lang} to {tgt_lang}", help="Template for specifying languages")
344
+
parser.add_argument("--task-template", type=str, default="Translate text in the {src_start}{src_end} section to the target language as naturally as possible, considering the context in the translation history and ensuring consistency and cultural relevance. Translated text must be enclosed in the {tgt_start}{tgt_end} section. You must respond with only the {tgt_end} section.", help="Template for the translation task")
345
+
parser.add_argument("--specify-language", action="store_true", help="Specify source and target languages in the prompt")
346
+
parser.add_argument("--language-template", type=str, default="Translate from {src_lang} to {tgt_lang}", help="Template for specifying languages")
348
347
349
348
# Tag Config
350
-
parser.add_argument("--src_start", type=str, default="<src>", help="Start tag for the source language")
351
-
parser.add_argument("--src_end", type=str, default="</src>", help="End tag for the source language")
352
-
parser.add_argument("--tgt_start", type=str, default="<tgt>", help="Start tag for the target language")
353
-
parser.add_argument("--tgt_end", type=str, default="</tgt>", help="End tag for the target language")
349
+
parser.add_argument("--src-start", type=str, default="<src>", help="Start tag for the source language")
350
+
parser.add_argument("--src-end", type=str, default="</src>", help="End tag for the source language")
351
+
parser.add_argument("--tgt-start", type=str, default="<tgt>", help="Start tag for the target language")
352
+
parser.add_argument("--tgt-end", type=str, default="</tgt>", help="End tag for the target language")
354
353
355
354
# System Prompt Config
356
-
parser.add_argument("--use_system_prompt", action="store_true", help="Enable system prompt")
357
-
parser.add_argument("--system_prompt", type=str, help="System prompt to be used")
355
+
parser.add_argument("--use-system-prompt", action="store_true", help="Enable system prompt")
356
+
parser.add_argument("--system-prompt", default="", type=str, help="System prompt to be used")
358
357
359
358
# Configuration Files
360
359
parser.add_argument("--config", type=str, help="Path to the TOML configuration file")
0 commit comments