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

questions about number_required #1

Open
JuliRao opened this issue Jul 29, 2019 · 1 comment
Open

questions about number_required #1

JuliRao opened this issue Jul 29, 2019 · 1 comment

Comments

@JuliRao
Copy link

JuliRao commented Jul 29, 2019

Why do you use 'number_required' in your code? When topk=1, the beam search algorithm only generates one sentence!

@budzianowski
Copy link
Owner

budzianowski commented Aug 12, 2019

If you change topk to a larger number, the algorithm will generate more hypotheses as the number_required variable is dependent on it.

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