Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
word_cloud_est
Commits
f7fd8991
Commit
f7fd8991
authored
Apr 28, 2015
by
Andreas Mueller
Browse files
fix sphinx errors.
parent
07e17db6
Changes
1
Hide whitespace changes
Inline
Side-by-side
wordcloud/wordcloud.py
View file @
f7fd8991
...
...
@@ -85,10 +85,10 @@ class WordCloud(object):
Attributes
----------
words_
: list of tuples (string, float)
``
words_
``
: list of tuples (string, float)
Word tokens with associated frequency.
layout_ : list of tuples (string, int, (int, int), int, color))
``
layout_
``
: list of tuples (string, int, (int, int), int, color))
Encodes the fitted word cloud. Encodes for each word the string, font
size, position, orientation and color.
"""
...
...
@@ -351,7 +351,7 @@ class WordCloud(object):
return
self
.
generate_from_text
(
text
)
def
_check_generated
(
self
):
"""Check if layout_ was computed, otherwise raise error."""
"""Check if
``
layout_
``
was computed, otherwise raise error."""
if
not
hasattr
(
self
,
"layout_"
):
raise
ValueError
(
"WordCloud has not been calculated, call generate first."
)
...
...
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