Closed katphlab closed 4 years ago
You may need to edit the services.json https://github.com/Helsinki-NLP/Opus-MT/blob/master/services.json as per your models(add more languages or change the entries to point correct files)
Yes, but the pre-trained models do not have the bpe files or the decoder.yml file, only .npz file. Can you refer me to some docs which can explain how to use a pre-trained model?
Thanks for the quick response.
Please refer the entries in https://github.com/Helsinki-NLP/Opus-MT/blob/master/services.json - it has examples for both bpe and spm. https://object.pouta.csc.fi/OPUS-MT-models/en-es/opus-2019-12-04.zip has decoder.yaml with contents like:
models:
- opus.bpe32k-bpe32k.enml.transformer.model1.npz.best-perplexity.npz
vocabs:
- opus.bpe32k-bpe32k.enml.vocab.yml
- opus.bpe32k-bpe32k.enml.vocab.yml
beam-size: 6
normalize: 1
word-penalty: 0
mini-batch: 1
maxi-batch: 1
maxi-batch-sort: src
relative-paths: true
Thanks. The confusion was that files are present in the en-es and not es-en, resolved it. Same is true for rest of the models too.
I am a bit confused - do you mean that the pre-trained es-en model package does not have the bpe model files included? They should be there and I would need to check/fix this if they are not there ...
I just downloaded the files again and it seems the files are indeed there. I had downloaded the same files a few days back and the files were not there.
Interesting. Well, good to know that this is fine. I'll close the issue again.
Hi, I've built Opus MT using docker when I try to run it, the following error shows up:
I've downloaded the pretrained models but it doesn't contain the bpe files only .npz files. Kindly help.
Thanks!!!