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

some question about alignments #2135

Closed
Andrewlesson opened this issue Dec 15, 2021 · 1 comment
Closed

some question about alignments #2135

Andrewlesson opened this issue Dec 15, 2021 · 1 comment

Comments

@Andrewlesson
Copy link

Is the data of alignments during training the same as that of alignments during inference? If not, how did the inferred alignment corpus come from? can it be converted from training data?

image

image

@francoishernandez
Copy link
Member

It's not the same thing.
The alignment that can be passed when training are for "guided alignments", see details in #1615 and the docs.
Then, when inferring you would retrieve the alignments in the form of one of the attention matrices.

The -phrase_table flag is to be used at inference only, but it was more meant to be used with an RNN+attention architecture, where the single attention matrix is supposed to carry the alignment information relatively explicitly.

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