Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

What does stemmer do in python nltk library

$
0
0

@pagal_guy wrote:

Hello,

from nltk.stem.porter import *
stemmer = PorterStemmer()

While participating in a Kaggle competition I came across the above library for doing the things as shown below in one of the scripts:

df_all['search_term'] = df_all['search_term'].map(lambda x:str_stem(x))
df_all['product_title'] = df_all['product_title'].map(lambda x:str_stem(x))
df_all['product_description'] = df_all['product_description'].map(lambda x:str_stem(x))

But I am not being able to understand what is being done here,so can someone please help me with this??

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles