Giter Club home page Giter Club logo

Comments (7)

santhoshtr avatar santhoshtr commented on May 9, 2024

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)

from opus-mt.

katphlab avatar katphlab commented on May 9, 2024

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.

from opus-mt.

santhoshtr avatar santhoshtr commented on May 9, 2024

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

from opus-mt.

katphlab avatar katphlab commented on May 9, 2024

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.

from opus-mt.

jorgtied avatar jorgtied commented on May 9, 2024

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 ...

from opus-mt.

katphlab avatar katphlab commented on May 9, 2024

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.

from opus-mt.

jorgtied avatar jorgtied commented on May 9, 2024

Interesting. Well, good to know that this is fine. I'll close the issue again.

from opus-mt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.