What's the future of the argos-translate dependency in LibreTranslate

I’m hardly an expert on this, but it looks like you can mark a dependency as optional by appending [some_feature_name] after the dependency. E.g.:

ctranslate2>=4.0,<5
sentencepiece>=0.2.0,<0.3
spacy [spacy]
stanza [stanza] == 1.10.1
packaging
sacremoses>=0.0.53,<0.2
minisbd

Then you’d run pip install argos-translate[stanza] to install it with stanza support.

2 Likes