Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using generated output for further calculation #1189

Open
ChristopherBrix opened this issue May 3, 2017 · 2 comments
Open

Using generated output for further calculation #1189

ChristopherBrix opened this issue May 3, 2017 · 2 comments

Comments

@ChristopherBrix
Copy link
Contributor

I'd like to use the already translated part of the target for the calculation of the following part.
Is this supported by blocks?

@dmitriy-serdyuk
Copy link
Contributor

Can you give an example? Perhaps with a pseudocode?

@ChristopherBrix
Copy link
Contributor Author

ChristopherBrix commented May 4, 2017

To my knowledge, the target sentence is generated word by word. Usually, the next word is calculated based on the input sequence and the decoder state.
I'd like to pass all previously generated target words to the decoder as well (I'll use a RNN to iterate over them, so the varying sequence length isn't a problem).
So if I'm translating the german "Ich bin hungrig", and already generated "I am", the decoder should calculate decoder(previous_decoder_state, input_sequence, "I am") = hungry

But how do I access the previously generated target words?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants