How to choose model at start in argostranslate?

hi !
i see several models available Models – Google Drive
for my language.

how to change them at start ? i.e. how to load (not install) specific model in inference ?

You can use the --load-only option to select models

thanks.
but in python ?

Installing Argos Translate package in Python

import pathlib

import argostranslate.package

package_path = pathlib.Path("/root/translate-en_it-2_0.argosmodel")

argostranslate.package.install_from_path(package_path)

https://argos-translate.readthedocs.io/en/latest/source/examples.html#install-package-from-file-path

2 Likes