marian-nmt / marian

Fast Neural Machine Translation in C++
https://marian-nmt.github.io
Other
1.22k stars 228 forks source link

How to translate using Python #346

Closed q2044757581 closed 3 years ago

q2044757581 commented 3 years ago

I have trained a model but i want to use Python to write an interaction API Can you give an example?

snukky commented 3 years ago

AFAIK there is no official Python API. Huggingface has one, but you would need to look for examples there. You can also compile and use marian-server, which is a simple web server and the demo client we provide is in Python (https://marian-nmt.github.io/docs/#web-server).

q2044757581 commented 3 years ago

ok, tks