Example Usage
>>> import simplemma # get a word myword = 'masks' # decide which language to use and apply it on a word form >>> simplemma.lemmatize(myword, lang='en') 'mask' # grab a list of tokens >>> mytokens = ['Hier', 'sind', 'Vaccines'] >>> for token in mytokens: >>> simplemma.lemmatize(token, lang='de') 'hier' 'sein' 'Vaccines' # list comprehensions can be faster >>> [simplemma.lemmatize(t, lang='de') for t in mytokens] ['hier', 'sein', 'Vaccines']