Giter VIP home page Giter VIP logo

Comments (6)

vince62s avatar vince62s commented on June 30, 2024

are you working on a translation task or something else ?
I am mostly working on the transformer model, but I was also able to train and translate with a LSTM one.

from opennmt-py.

devinbostIL avatar devinbostIL commented on June 30, 2024

It's a "translation" task, though I'm using the model for classification (by translating a sentence to a category of 1 or 0), rather than translation. It experimental, but it works pretty well in our use case.

from opennmt-py.

vince62s avatar vince62s commented on June 30, 2024

are you saying the target is always 1 or 0 for an input=a sentence ?
and you mean you have empty output at times ?
did it ever work 100% with an output being never empty (with openNMT-py or another toolkit) ?

from opennmt-py.

devinbostIL avatar devinbostIL commented on June 30, 2024

are you saying the target is always 1 or 0 for an input=a sentence ?

That is correct.

and you mean you have empty output at times ?

That's also correct.

did it ever work 100% with an output being never empty (with openNMT-py or another toolkit) ?

I also had this problem when running this particular data model through openNMT-py version 0.3.1.post2.
When run with a different data model (when actually translating a sentence to another sentence), I did not have this issue when running a previous version of openNMT-py, but I'm not sure which version we were using in that case (most likely version 0.3.1.post2 or older).
I have not evaluated the latest version of openNMT-py on a sentence-to-sentence model to determine if it also results in blank lines in the output of running translate.py.

from opennmt-py.

vince62s avatar vince62s commented on June 30, 2024

you could try 2 things:

1- beam_size 1: greedy search may help in your case
2- translate with -min_length 1

from opennmt-py.

vince62s avatar vince62s commented on June 30, 2024

closing this, reopen if needed.

from opennmt-py.

Related Issues (8)

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.