Conditional Language Model in fastai?

Hi everyone!

I am trying to implement this paper and was wondering if there’s an existing implementation of the same in fastai.

image

It talks about conditioning a language model on not just the words in the text which have occurred till now but on several other features like style, description-length etc. A snippet from the paper is as follows

image

Thanks & Regards,
Vinayak Nayak.