Interactive Command Line
Octopus interactive cli
octopus_interactivesupport only beam search with the following default setting:
-sor--seq_length: The maximum sequence length value, (default value is 300)
-oor--max_outputs: The maximum of the output tanslations (default value is 1)
-bor--num_beams NUM_BEAMS: Number of beams (default value is 1)
-nor--no_repeat_ngram_size: Number of n-gram that doesn’t appears twice (default value is 2)
octopus_interactivecommand asks you you to input translate your input text. Moreover, you can write q to exsit as shown in the following image.
Usage and Arguments
octopus_interactive -h
(2) Octopus Interactive
- name:
2-octopus-interactive
!octopus_interactive
2023-12-04 02:53:29 | INFO | octopus.interactive_cli | Namespace(cache_dir='./octopus_cache')
2023-12-04 02:53:29 | INFO | octopus.interactive_cli | Loading model from UBC-NLP/octopus
2023-12-04 02:53:34 | INFO | octopus.interactive_cli | Run the model with CPU
2023-12-04 02:53:34 | INFO | octopus.interactive_cli | Loading tasks
--------------------------------------------------
OCTOPUS's tasks:
--------------------------------------------------
Prefix: [diacritize] Task Name: Diartization
Prefix: [correct_grammar] Task Name: Grammatical Error Correction
Prefix: [paraphrase] Task Name: Paraphrase
Prefix: [answer_question] Task Name: Question Answering
Prefix: [generate_question] Task Name: Question Generation
Prefix: [summarize] Task Name: Summarization
Prefix: [generate_title] Task Name: Title Generation
Prefix: [translitrate_ar2en] Task Name: Translitration Arabic-to-English
Prefix: [translitrate_en2ar] Task Name: Translitration English-to-Arabic
Type your <task_prefix> followed by <text> or (q) to STOP: