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

Is there a way to generate variable length text? #12

Closed
AlexG31 opened this issue Apr 10, 2018 · 1 comment
Closed

Is there a way to generate variable length text? #12

AlexG31 opened this issue Apr 10, 2018 · 1 comment

Comments

@AlexG31
Copy link

AlexG31 commented Apr 10, 2018

It seems current code can only work with fixed length text generation, then generator and discriminator are trained for fixed length input/output. I'm wondering is there a way to generate variable length text?

@amirbar
Copy link
Owner

amirbar commented Apr 10, 2018

The generator/discriminator are trained for a configurable fixed length.
In inference, you can define the exact sequence length you want to generate in the file generate.py.

i.e to generate a sequence of length k:

python generate.py --CKPT_PATH=/path/to/checkpoint --DISC_GRU_LAYERS=2 --GEN_GRU_LAYERS=2 --END_SEQ=k

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

3 participants