textgenrnn icon indicating copy to clipboard operation
textgenrnn copied to clipboard

how can I set the length to my generated text?

Open MrGeorgeMuresan opened this issue 4 years ago • 2 comments

How can I set the length to my generated text?

MrGeorgeMuresan avatar May 19 '20 19:05 MrGeorgeMuresan

Can set the max_length argument on the generate functions. This defines the longest possible output, but the network will still output anything smaller than it.

jkatofsky avatar Jul 23 '20 21:07 jkatofsky

I am having the same issue as well with setting max_length to a specific number but only able to generate texts that are much smaller than the specified length. Has anyone been able to get around this?

AdaUchendu avatar Aug 27 '20 15:08 AdaUchendu