Allow creation of bag-of-words, lda and esa model (uncommented relevant parts)