I&#x27;ve glanced at the code now. You are absolutely correct.<p>Wow.<p>There&#x27;s some good reasons to think this approach won&#x27;t work at all. If I understand it correctly I think it is attempting to predict part of speech using previously observed values.<p>That&#x27;s an interesting idea, and might be somewhat valuable as a feature to use in a text generator, but on its own won&#x27;t be enough to ever generate sentences that make sense (because some specific sequences just don&#x27;t make sense).