Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
word_cloud_est
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
keeleliin
word_cloud_est
Commits
20ec4bba
Commit
20ec4bba
authored
Nov 02, 2016
by
Andreas Mueller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy dict keys on python3
parent
52be5a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wordcloud/tokenization.py
wordcloud/tokenization.py
+1
-1
No files found.
wordcloud/tokenization.py
View file @
20ec4bba
...
...
@@ -62,7 +62,7 @@ def unigrams_and_bigrams(words, normalize_plurals=True):
counts_unigrams
[
word1
]
-=
counts_bigrams
[
bigram_string
]
counts_unigrams
[
word2
]
-=
counts_bigrams
[
bigram_string
]
counts_unigrams
[
bigram_string
]
=
counts_bigrams
[
bigram_string
]
words
=
counts_unigrams
.
keys
(
)
words
=
list
(
counts_unigrams
.
keys
()
)
for
word
in
words
:
# remove empty / negative counts
if
counts_unigrams
[
word
]
<=
0
:
...
...
Write
Preview
Markdown
is supported
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