happy-transformer
happy-transformer copied to clipboard
can we use a list of sentences inside generate_text, it seems to accept only string?
Kindly let me know whether we can give a list of sentences as input to generate_text?
This might be worth considering for performance if any batching is possible, but in terms of functionality, you should be able to loop over the list of sentences yourself.
generate_results = [ happy_gen.generate_text(sentence) for sentence in sentences ]