Porter Stemmer in Python | Natural Language Processing with Python and NLTK
[ad_1]
NLP with Python: Porter Stemmer in Python nltk
Complete Playlist on NLP in Python: https://www.youtube.com/playlist?list=PL1w8k37X_6L-fBgXCiCsn6ugDsr1Nmfqk
Porter Stemming algorithm
porter stemmer in nlp
#Porter #Stemmer #python
Source
[ad_2]
I am getting generator error here
I followed each and every step of your videos, everything works but this stemming function doesn't work. Please guide me :
This is the error:
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-85-117c9fdb8f8b> in <module>
—-> 1 data['headline_stem']= data['headline_nostop'].apply(lambda x: stemming(x))
2 data.head()
3
C:ProgramDataAnaconda3libsite-packagespandascoreseries.py in apply(self, func, convert_dtype, args, **kwds)
3589 else:
3590 values = self.astype(object).values
-> 3591 mapped = lib.map_infer(values, f, convert=convert_dtype)
3592
3593 if len(mapped) and isinstance(mapped[0], Series):
pandas/_libs/lib.pyx in pandas._libs.lib.map_infer()
<ipython-input-85-117c9fdb8f8b> in <lambda>(x)
—-> 1 data['headline_stem']= data['headline_nostop'].apply(lambda x: stemming(x))
2 data.head()
3