File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -253,14 +253,12 @@ def remove_words_start_with(text, starts_with_char):
253
253
def remove_stop_words (text , stop_words = stop_words_list ):
254
254
"""
255
255
This function removes stop words from text
256
- Example: I am very excited for today's fotball match => very excited today's fotball match
256
+ Example: I am very excited for today's football match => very excited today's football match
257
257
Params
258
- text (str)
259
- text on which processing needs to done
260
- stop_words (str)
261
- stop words which needs to be removed
258
+ text (str) :text on which processing needs to done
259
+ stop_words (list) : stop words which needs to be removed
262
260
Returns
263
- text after stop words removal
261
+ text(str): text after stop words removal
264
262
"""
265
263
stop_words = set (stop_words )
266
264
split_list = text .split (" " )
You can’t perform that action at this time.
0 commit comments