← 返回命令列表

Linux command

argos-translate 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Translate

argos-translate --from-lang [en] --to-lang [es] "[Hello, world]"

Pipe input

echo "[Text]" | argos-translate --from-lang [en] --to-lang [de]

Translate from a file

argos-translate --from-lang [en] --to-lang [fr] < [input.txt]

Install

argospm install translate-[en]_[es]

List installed

argospm list

Update

argospm update && argospm search --from-lang [en]

说明

argos-translate is an open-source, offline translation tool based on OpenNMT neural machine translation models. It runs entirely on the local machine, providing privacy-preserving translation without sending data to cloud services. Languages are provided as downloadable packages named translate-_from_\__to_ (e.g. `translate-en_es`). Packages are managed with the companion argospm command, which supports update, search, install, list, and remove subcommands.

参数

-f _code_, --from-lang _code_
ISO 639-1 source language code (e.g. `en`, `es`, `fr`).
-t _code_, --to-lang _code_
ISO 639-1 target language code.
-h, --help
Show help and exit.

FAQ

What is the argos-translate command used for?

argos-translate is an open-source, offline translation tool based on OpenNMT neural machine translation models. It runs entirely on the local machine, providing privacy-preserving translation without sending data to cloud services. Languages are provided as downloadable packages named translate-_from_\__to_ (e.g. `translate-en_es`). Packages are managed with the companion argospm command, which supports update, search, install, list, and remove subcommands.

How do I run a basic argos-translate example?

Run `argos-translate --from-lang [en] --to-lang [es] "[Hello, world]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _code_, --from-lang _code_ do in argos-translate?

ISO 639-1 source language code (e.g. `en`, `es`, `fr`).