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

Add optional max_length arg in batch_sentences #111

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add optional max_length arg in batch_sentences #111

wants to merge 2 commits into from

Conversation

vliu15
Copy link

@vliu15 vliu15 commented Oct 7, 2018

This allows integration into downstream tasks with an existing placeholder size. Without max_length, batch_sentences would calculate it based on the longest sentence in the batch, but sometimes the output should match another specified size.

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.

None yet

1 participant