Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to remove stopwords from a string in python

from gensim.parsing.preprocessing import remove_stopwords

text = "Nick likes to play football, however he is not too fond of tennis."
filtered_sentence = remove_stopwords(text)

print(filtered_sentence)
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #How #remove #stopwords #string #python
ADD COMMENT
Topic
Name
1+8 =