Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e51a8dd

Browse filesBrowse files
DOC update to text/CountVectorizer token_pattern parameter default value (#17898)
* Updated documenation in CountVectorizer function for the token_parameter default value * Removed the r before the string, error in flake8 * Additional change to see if flake8 error solved Co-authored-by: Preston <pkrobinet@presby.edu>
1 parent 5d2107e commit e51a8dd
Copy full SHA for e51a8dd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎sklearn/feature_extraction/text.py

Copy file name to clipboardExpand all lines: sklearn/feature_extraction/text.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ class CountVectorizer(_VectorizerMixin, BaseEstimator):
869869
in the range [0.7, 1.0) to automatically detect and filter stop
870870
words based on intra corpus document frequency of terms.
871871
872-
token_pattern : string
872+
token_pattern : string, default=r"(?u)/b/w/w+/b"
873873
Regular expression denoting what constitutes a "token", only used
874874
if ``analyzer == 'word'``. The default regexp select tokens of 2
875875
or more alphanumeric characters (punctuation is completely ignored

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.