Exploration of Masked and Causal Language Modelling for Text Generation