ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
translate:libretranslate

install

$ git clone https://github.com/LibreTranslate/LibreTranslate
$ cd LibreTranslate
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -e .
$ du -Hs .
3518928 .
$ libretranslate 
Updating language models
Found 58 models
Downloading Arabic → English (1.0) ...
Downloading Azerbaijani → English (1.5) ...
Downloading Catalan → English (1.7) ...
Downloading Chinese → English (1.7) ...
Downloading Czech → English (1.5) ...
Downloading Danish → English (1.3) ...
Downloading Dutch → English (1.4) ...
Downloading English → Arabic (1.0) ...
Downloading English → Azerbaijani (1.5) ...
Downloading English → Catalan (1.7) ...
Downloading English → Chinese (1.7) ...
Downloading English → Czech (1.5) ...
Downloading English → Danish (1.3) ...
Downloading English → Dutch (1.4) ...
Downloading English → Esperanto (1.5) ...
Downloading English → Finnish (1.5) ...
Downloading English → French (1.0) ...
Downloading English → German (1.0) ...
Downloading English → Greek (1.5) ...
Downloading English → Hebrew (1.5) ...
Downloading English → Hindi (1.1) ...
Downloading English → Hungarian (1.5) ...
Downloading English → Indonesian (1.2) ...
Downloading English → Irish (1.1) ...
Downloading English → Italian (1.0) ...
Downloading English → Japanese (1.1) ...
Downloading English → Korean (1.1) ...
Downloading English → Persian (1.5) ...
Downloading English → Polish (1.1) ...
Downloading English → Portuguese (1.0) ...
Downloading English → Russian (1.7) ...
Downloading English → Slovak (1.5) ...
Downloading English → Spanish (1.0) ...
Downloading English → Swedish (1.5) ...
Downloading English → Turkish (1.5) ...
Downloading English → Ukranian (1.4) ...
Downloading Esperanto → English (1.5) ...
Downloading Finnish → English (1.5) ...
Downloading French → English (1.0) ...
Downloading German → English (1.0) ...
Downloading Greek → English (1.5) ...
Downloading Hebrew → English (1.5) ...
Downloading Hindi → English (1.1) ...
Downloading Hungarian → English (1.5) ...
Downloading Indonesian → English (1.2) ...
Downloading Irish → English (1.1) ...
Downloading Italian → English (1.0) ...
Downloading Japanese → English (1.1) ...
Downloading Korean → English (1.1) ...
Downloading Persian → English (1.5) ...
Downloading Polish → English (1.1) ...
Downloading Portuguese → English (1.0) ...
Downloading Russian → English (1.0) ...
Downloading Slovak → English (1.5) ...
^c
$ du -Hs ~/.local/share/argos-translate/
6137956 /home/matoken/.local/share/argos-translate/

初回実行時には言語モデルがダウンロードされる

$ libretranslate --frontend-language-source en --frontend-language-target ja
Running on http://127.0.0.1:5000

tips

一部の言語が利用できない

WebIFで一部の言語しか選べなかったり,

Cannot translate text: 400 Bad Request: English (en) is not available as a target language from Japanese (ja)

のようなエラーとなる.

初回起動時にダウンロードする言語モデルが壊れていたためのようで一旦削除してダウンロードし直すことで動作するようになった.

$ rm -r ~/.local/share/argos-translate
$ libretranslate                              
Updating language models               
Found 58 models                         
Downloading Arabic → English (1.0) ...
Downloading Azerbaijani → English (1.5) ...
  :

コメント

コメントを入力. Wiki文法が有効です:
   __ __  ____   ___      __   ____
  / // / /_  /  / _ | __ / /  / __/
 / _  /   / /_ / __ |/ // /  / _/  
/_//_/   /___//_/ |_|\___/  /___/
 
translate/libretranslate.txt · 最終更新: 2022/12/17 00:48 by matoken