Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
word_cloud_est
Commits
f0b3739e
Commit
f0b3739e
authored
Jul 18, 2014
by
Andreas Mueller
Browse files
Merge pull request #17 from petrushev/skip-digits
Processing text should ignore digits
parents
e038c02f
b2e2ac83
Changes
1
Hide whitespace changes
Inline
Side-by-side
wordcloud/__init__.py
View file @
f0b3739e
...
...
@@ -179,6 +179,9 @@ def process_text(text, max_features=200, stopwords=None):
d
=
{}
for
word
in
re
.
findall
(
r
"\w[\w']*"
,
text
):
if
word
.
isdigit
():
continue
word_lower
=
word
.
lower
()
if
word_lower
in
stopwords
:
continue
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment