This is the code as it is used in the associated paper
Konstantinos Drossos, Shayan Gharib, Paul Magron, and Tuomas Virtanen, ''Language Modelling for Sound Event Detection with Teacher Forcing and Scheduled Sampling," in proceedings of the International Workshop on Detection and Classification of Acoustic Scenes and Events (DCASE) 2019, 2019, N.Y.
If you use our code, consider citing our paper.