Spaces:
Build error
Build error
from simplemma import text_lemmatizer | |
def lemmatizer_func(plain_text): | |
lemmatized_promt = ' '.join([el for el in text_lemmatizer(plain_text, lang='en') if el.isalnum()]) | |
return lemmatized_promt | |