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

Stream sampled text #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

maraoz
Copy link
Contributor

@maraoz maraoz commented Feb 17, 2016

This PR makes sampled text to be streamed instead of output all at once, mimicking char-rnn's behavior.

@maraoz
Copy link
Contributor Author

maraoz commented Mar 29, 2016

@jcjohnson any thoughts on this? I'm using it for my experiments :)

@jcjohnson
Copy link
Owner

@maraoz For some use cases you might not want to print the sample at all, but maybe do some other processing with it. Streaming can still be useful, but it shouldn't be the default behavior; maybe hide it behind an option in the kwargs for LM:sample.

@maraoz
Copy link
Contributor Author

maraoz commented Mar 29, 2016

@jcjohnson sounds reasonable. I'll make that change when I find some time :)

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