79081983

Date: 2024-10-12 21:40:40
Score: 1
Natty:
Report link

This page shows one way to accomplish this: https://www.projectpro.io/recipes/use-spacy-lemmatizer

Here is my modified function:

def to_lemma(text):
    tp = nlp(text)
    return " ".join([word.lemma_ for word in tp])
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Patrick