### Install GermaLemma via pip Source: https://github.com/wzbsocialsciencecenter/germalemma/blob/master/README.md Install the GermaLemma package from PyPI using pip. This is the recommended installation method. ```bash pip install -U germalemma ``` -------------------------------- ### Lemmatize a German word with GermaLemma Source: https://github.com/wzbsocialsciencecenter/germalemma/blob/master/README.md Example of using GermaLemma to lemmatize a German word. The word must be POS-tagged; only tags starting with 'N', 'V', 'ADJ', or 'ADV' are accepted, otherwise a ValueError is raised. ```python from germalemma import GermaLemma lemmatizer = GermaLemma() # passing the word and the POS tag ("N" for noun) lemma = lemmatizer.find_lemma('Feinstaubbelastungen', 'N') print(lemma) # -> lemma is "Feinstaubbelastung" ``` -------------------------------- ### Convert TIGER corpus to pickle format Source: https://github.com/wzbsocialsciencecenter/germalemma/blob/master/README.md Convert the TIGER corpus file in CONLL09 format to a pickle file for faster loading. Run this from the germalemma source directory after downloading the corpus. ```bash python germalemma/__init__.py tiger_release_[...].conll09 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.