I'm trying to use a library called snowballstemmer in Python, but it seems that it's not working as expected. What could the reason be? Please see my code below.
My data set:
df=[['musteri', 'hizmetlerine', 'cabuk', 'baglaniyorum'],['konuda', 'yardımcı', 'oluyorlar',
'islemlerimde']]
I have applied snowballstemmer package and import TurkishStemmer
from snowballstemmer import TurkishStemmer
turkStem=TurkishStemmer()
data_words_nostops=[turkStem.stemWord(word) for word in df]
data_words_nostops
[['musteri', 'hizmetlerine', 'cabuk', 'baglaniyorum'],
['konuda', 'yardımcı', 'oluyorlar', 'islemlerimde']]
Unfortunately it didn't work. But when I applied it to single words, it works as expected:
turkStem.stemWord("islemlerimde")
'islem'
What could be the problem? Any help will be appreciated.
Thank you.