8000 DOC Ensures that strip_accents_unicode passes numpydoc (#24232) · rusdes/scikit-learn@c925b7e · GitHub
[go: up one dir, main page]

Skip to content

Commit c925b7e

Browse files
DOC Ensures that strip_accents_unicode passes numpydoc (scikit-learn#24232)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent c9d6a27 commit c925b7e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

sklearn/feature_extraction/text.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,21 @@ def _analyze(
122122

123123

124124
def strip_accents_unicode(s):
125-
"""Transform accentuated unicode symbols into their simple counterpart
125+
"""Transform accentuated unicode symbols into their simple counterpart.
126126
127127
Warning: the python-level loop and join operations make this
128128
implementation 20 times slower than the strip_accents_ascii basic
129129
normalization.
130130
131131
Parameters
132132
----------
133-
s : string
134-
The string to strip
133+
s : str
134+
The string to strip.
135+
136+
Returns
137+
-------
138+
s : str
139+
The stripped string.
135140
136141
See Also
137142
--------

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"sklearn.decomposition._dict_learning.dict_learning_online",
1717
"sklearn.decomposition._nmf.non_negative_factorization",
1818
"sklearn.externals._packaging.version.parse",
19-
"sklearn.feature_extraction.text.strip_accents_unicode",
2019
"sklearn.inspection._plot.partial_dependence.plot_partial_dependence",
2120
"sklearn.linear_model._least_angle.lars_path_gram",
2221
"sklearn.linear_model._omp.orthogonal_mp_gram",

0 commit comments

Comments
 (0)
0