The morfette package

Morfette is a tool for supervised learning of inflectional
morphology. Given a corpus of sentences annotated with lemmas
and morphological labels, and optionally a lexicon, morfette
learns how to morphologically analyse new sentences.