Package: unimorph
UniMorph: The Universal Morphology InitiativeTheUniversal Morphology (UniMorph) projectis a collaborative
effort to improve how NLP handles complex morphology in the world’s
languages. The goal of UniMorph is to annotate morphological data
in a universal schema that allows an inflected word from any
language to be defined by its lexical meaning, typically carried
by the lemma, and by a rendering of its inflectional form in terms
of a bundle of morphological features from our schema. The
specification of the schema is described inSylak-Glassman (2016).This tool provides turnkey command-line access to morphological annotations in over 100 languages.To install the UniMorph Python extension, install it from PyPI:pip3installunimorphThe tool will then be available to you from the command-line asunimorph. To see the features available, rununimorph --help.UsageQuery the available UniMorph languages' ISO 639-3 codes.unimorphlistGive the complete paradigm for a lemma.unimorphinflect--wordrecken--langdeuGet a particular form of the lemma.unimorphinflect--wordrecken--featuresV;IND;PRS;2;SG--langdeuAnalyze a word form: What are its lemma and features?unimorphanalyze--wordgereckt--langdeu(You can also use short param names.)unimorphanalyze-wgereckt-ldeuRecords in UniMorph's inflectional databases cannot hope to exhaustively cover a language's lexicon, especially in light of novel words. If a word is missing, let us know.ContributionUniMorph is an open project! We want you!Found a bug? Want to contribute source code? Submit an issue or pull request to the appropriateGitHub repository. Language-specific corrections or additions should be marked in their corresponding repository; improvements to theunimorphcommand-line tool should be noted in theunimorphrepository.CitationIf you use the latest version of the UniMorph datasets (v2.0), please citeKirov et al. (2018):@inproceedings{kirov-etal-2018-unimorph,title="{U}ni{M}orph 2.0: Universal Morphology",author={Kirov, Christo  andCotterell, Ryan  andSylak-Glassman, John  andWalther, G{\'e}raldine  andVylomova, Ekaterina  andXia, Patrick  andFaruqui, Manaal  andMielke, Sebastian  andMcCarthy, Arya  andK{\"u}bler, Sandra  andYarowsky, David  andEisner, Jason  andHulden, Mans},booktitle="Proceedings of the Eleventh International Conference on Language Resources and Evaluation ({LREC} 2018)",month=may,year="2018",address="Miyazaki, Japan",publisher="European Language Resources Association (ELRA)",url="https://www.aclweb.org/anthology/L18-1293",}If you refer to the latest version of the universal annotation schema, please citeSylak-Glassman et al. (2015):@inproceedings{sylak-glassman-etal-2015-language,title="A Language-Independent Feature Schema for Inflectional Morphology",author="Sylak-Glassman, John  andKirov, Christo  andYarowsky, David  andQue, Roger",booktitle="Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)",month=jul,year="2015",address="Beijing, China",publisher="Association for Computational Linguistics",url="https://www.aclweb.org/anthology/P15-2111",doi="10.3115/v1/P15-2111",pages="674--680",}Advanced usageunimorphstores language databases in a default location. This can be overridden by setting the shell environment variableUNIMORPHto the preferred folder.