Skip to content

Commit

Permalink
v0.3.2b2
Browse files Browse the repository at this point in the history
  • Loading branch information
wasertech committed Mar 14, 2023
1 parent 748422f commit 6b78fd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Locate Translator.
Using `translate` from your favorite shell.

```zsh
❯ translate --help
❯ translate help
usage: translate [-h] [-v] [-d DIRECTORY] [-S SAVE] [-l MAX_LENGTH] [-m MODEL_ID] [-p PIPELINE] [-b BATCH_SIZE] [-n NPROC] [-e NEPOCH] [-L]
[_from] [_to] [sentences ...]

Expand Down Expand Up @@ -121,6 +121,11 @@ What would you like to translate?
Cancelled by user
```

Get Translator version.
```zsh
❯ translate version
```

Translate from English in French.
```
❯ translate eng_Latn fra_Latn "This is French."
Expand Down
2 changes: 1 addition & 1 deletion translator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from translator.translate import Translator
from translator.language import get_nllb_lang

__version__ = "0.3.2b1"
__version__ = "0.3.2b2"

LANGS = get_nllb_lang()
4 changes: 2 additions & 2 deletions translator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def parse_arguments():
argument_parse.add_argument('-n', '--nproc', default=4, type=int, help="Number of process(es) to spawn for batch translation.")
argument_parse.add_argument('-e', '--nepoch', default=1, type=int, help="Number of epoch(s) to translate batched sentences.")
argument_parse.add_argument('-L', '--language_list', action='store_true', help="Show list of languages.")
argument_parse.add_argument('-vv', "--debug", action='store_true', help="File debug info")
argument_parse.add_argument('-i', "--interactive", action='store_false', help="Deactive interactiveness.")
argument_parse.add_argument('-vv', "--debug", action='store_true', help="Show debug info")
argument_parse.add_argument('-i', "--interactive", action='store_false', help="Deactivate interactiveness.")

return argument_parse.parse_args(), argument_parse

Expand Down

0 comments on commit 6b78fd2

Please sign in to comment.