Are there some research papers about text-to-set generation?
Check out these papers below and google keywords: Multi-label Classification.

X-BERT: eXtreme Multi-label Text Classification with BERT
HAXMLNet: Hierarchical Attention Network for Extreme Multi-Label Text Classification
SGM: Sequence Generation Model for Multi-label Classification
Ranking-Based Autoencoder for Extreme Multi-label Classification
AttentionXML: Label Tree-based Attention-Aware Deep Model for High-Performance Extreme Multi-Label Text Classification


Also check out the code below:

https://github.com/chenyuntc/PyTorchText