Lancaster-Stemmer
Sat 17 May 2025
title: "Lancaster Stemmer" author: "Rj" date: 2019-04-21 description: "-" type: technical_note draft: false
from nltk.stem import LancasterStemmer
l_stemmer = LancasterStemmer()
print(l_stemmer.stem("hunting"))
hunt
print(l_stemmer.stem("hunting"))
hunt
words = [
"hunting",
"bunnies",
"flies"
]
result = [l_stemmer.stem(word) for word in words]
result
['hunt', 'bunny', 'fli']
Score: 5
Category: textprocessing