Skip to content

Commit 4d26e73

Browse files
fix doc string for method remove_stopwords
1 parent 2fc6f8d commit 4d26e73

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cleaner.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,12 @@ def remove_words_start_with(text, starts_with_char):
253253
def remove_stop_words(text, stop_words=stop_words_list):
254254
"""
255255
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
257257
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
262260
Returns
263-
text after stop words removal
261+
text(str): text after stop words removal
264262
"""
265263
stop_words = set(stop_words)
266264
split_list = text.split(" ")

0 commit comments

Comments
 (0)