Skip to content

LexiconfreeLabelsyncBeamSearch: Multi-scorer functionality with intermediate pruning#207

Open
SimBe195 wants to merge 7 commits into
masterfrom
multi_scorer_labelsync
Open

LexiconfreeLabelsyncBeamSearch: Multi-scorer functionality with intermediate pruning#207
SimBe195 wants to merge 7 commits into
masterfrom
multi_scorer_labelsync

Conversation

@SimBe195
Copy link
Copy Markdown
Collaborator

The LexiconfreeTimesyncBeamSearch and TreeTimesyncBeamSearch algorithms already have support for multiple LabelScorers applied one after another with intermediate pruning in-between. LexiconfreeLabelsyncBeamSearch on the other hand only supports a single LabelScorer as of now. This PR adds this missing functionality to it.

The implementation already incorporates pre-pruning like in #199.

auto const& scoreAccessor = scoreAccessors[hypIndexToContextIndexMap_[hypIndex]];

if (not scoreAccessor) {
// No extensions for hyps that couldn't be scored
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// No extensions for hyps that couldn't be scored
// No extensions for hyps that can be scored

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand. When the scoreAccessor is None (i.e. the hyp couldn't be scored), it's skipped.

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.

3 participants