marian-nmt / marian

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

how to generate embedding from a bert model with marian ? #372

Open lishaojun412 opened 3 years ago

lishaojun412 commented 3 years ago

How can I generate embedding with commandline, I search the marian document but find no useful information.

I had converted LabSE (https://huggingface.co/sentence-transformers/LaBSE ) to marian format , then how I can specific the args to generate sentence embeddings?