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

Can sample-beam.lua be modified to process at word level? #15

Open
ghost opened this issue Mar 22, 2016 · 0 comments
Open

Can sample-beam.lua be modified to process at word level? #15

ghost opened this issue Mar 22, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 22, 2016

I've been experimenting your word version and I was wondering if it's possible to modify 'sample-beam.lua' to work properly at the word level?

https://github.com/pender/char-rnn/blob/master/sample-beam.lua

It improves the output results at the character level but current sampling output is concatenated at word level:

Thequickbrownfoxjumpedoverthelazydog.

Instead of

The quick brown fox jumped over the lazy dog.

I'm new to lua/torch and would appreciate any suggestions to modify the code.

Cheers,

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

0 participants