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

Move trg_embedder inside decoder #560

Merged
merged 14 commits into from
Jan 10, 2019
Merged

Conversation

armatthews
Copy link
Contributor

See Issue 556.

This PR moves the trg_embedder inside the decoder, and gives the decoder access to the raw sequence of tokens. This is particularly useful if the decoder is generating e.g. a series of RNNG actions, and not simply a linear sequence of words to be embedded.

@msperber
Copy link
Contributor

I can take a look at this, but would you mind adjusting the 01_standard.yaml example or something, so I or others can see the implications better?

Copy link
Contributor

@msperber msperber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and makes sense to me. Could you make sure the configs under the example/ folder (including the programmatic example) and the recipes/ folder are up to date? Also, the docs (experiment_config_files, translator_structure) would need some small updates. With those I think this will be good to merge!

xnmt/modelparts/decoders.py Outdated Show resolved Hide resolved
xnmt/modelparts/decoders.py Outdated Show resolved Hide resolved
xnmt/models/translators.py Outdated Show resolved Hide resolved
@msperber
Copy link
Contributor

LGTM, please feel free to merge!

@armatthews armatthews merged commit 1d89887 into neulab:master Jan 10, 2019
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

Successfully merging this pull request may close these issues.

2 participants