File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -171,15 +171,20 @@ def strip_accents_ascii(s):
171
171
172
172
173
173
def strip_tags (s ):
174
- """Basic regexp based HTML / XML tag stripper function
174
+ """Basic regexp based HTML / XML tag stripper function.
175
175
176
176
For serious HTML/XML preprocessing you should rather use an external
177
177
library such as lxml or BeautifulSoup.
178
178
179
179
Parameters
180
180
----------
181
181
s : str
182
- The string to strip
182
+ The string to strip.
183
+
184
+ Returns
185
+ -------
186
+ s : str
187
+ The stripped string.
183
188
"""
184
189
return re .compile (r"<([^>]+)>" , flags = re .UNICODE ).sub (" " , s )
185
190
Original file line number Diff line number Diff line change 27
27
"sklearn.feature_extraction.image.extract_patches_2d" ,
28
28
"sklearn.feature_extraction.image.img_to_graph" ,
29
29
"sklearn.feature_extraction.text.strip_accents_unicode" ,
30
- "sklearn.feature_extraction.text.strip_tags" ,
31
30
"sklearn.feature_selection._univariate_selection.chi2" ,
32
31
"sklearn.feature_selection._univariate_selection.f_oneway" ,
33
32
"sklearn.inspection._partial_dependence.partial_dependence" ,
You can’t perform that action at this time.
0 commit comments