allowed a hash to be passed in place of text to train