Comments (6)
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.
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.
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.
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.
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.
closing this, reopen if needed.
from opennmt-py.
Related Issues (8)
- Training crashes at end HOT 7
- bug coverage_attn in multi-gpu mode HOT 25
- UserWarning: Implicit dimension choice for softmax has been deprecated. HOT 1
- How to train without gpu? HOT 2
- TypeError: __init__() got an unexpected keyword argument 'dtype' HOT 2
- Fully merged into OpenNMT-py master? HOT 1
- 'ZeroDivisionError: division by zero' while training HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opennmt-py.