You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inp = 'The problem I have is that they charge $11.99 for a sandwich that is no bigger than a Subway sub (which offers better and more amount of vegetables).'
sent = re.sub('[^a-zA-Z]', ' ' ,inp)
#converting to lowercase
sent = sent.lower()
# removing not significant words(stopwords) # stemming : taking the root of the word(PorterStemmer)
sent = sent.split()
#ps = PorterStemmer() # stemming is not working properly
sent = [word for word in sent if not word in set(stopwords.words('english'))]