lemmatization

Why does the nltk lemmatizer not work for every word in Python?

Why does the nltk lemmatizer not work for every word in Python? Question: import ntlk lemmatizer = ntlk.WordNetLemmatizer() print(lemmatizer.lemmatize("goes")) print(lemmatizer.lemmatize("transforming")) The first example will with "goes" do work. The output is: "go". The second does not work. I get the output "transforming" but should be "transform". Asked By: TheRi || Source Answers: You need to …

Total answers: 1

Given a word can we get all possible lemmas for it using Spacy?

Given a word can we get all possible lemmas for it using Spacy? Question: The input word is standalone and not part of a sentence but I would like to get all of its possible lemmas as if the input word were in different sentences with all possible POS tags. I would also like to …

Total answers: 3

Spacy: OSError: [E050] Can't find model on Google Colab | Python

Spacy: OSError: [E050] Can't find model on Google Colab | Python Question: I’m trying to ‘lemmatize’ spanish text using the spanish core model es_core_news_sm. However, I’m getting OSError. The following code is an example of lemmatization using SpaCy on Google Colabs: import spacy spacy.prefer_gpu() nlp = spacy.load(‘es_core_news_sm’) text = ‘yo canto, tĂș cantas, ella canta, …

Total answers: 2

wordnet lemmatization and pos tagging in python

wordnet lemmatization and pos tagging in python Question: I wanted to use wordnet lemmatizer in python and I have learnt that the default pos tag is NOUN and that it does not output the correct lemma for a verb, unless the pos tag is explicitly specified as VERB. My question is what is the best …

Total answers: 8

Lemmatize French text

Lemmatize French text Question: I have some text in French that I need to process in some ways. For that, I need to: First, tokenize the text into words Then lemmatize those words to avoid processing the same root more than once As far as I can see, the wordnet lemmatizer in the NLTK only …

Total answers: 5