Code for preprocessing morphological analyses, and training a simple
model