Learning Internal Structure of Words with Factored Generative Models