I am working the exercises in the Elementary Introduction book, and cannot get the examples of the WordCloud function to work. I get the message"The weight specification used is invalid. At least one weight must be a positive real number. I have tried examples from other sources with the same result. Any ideas?
It is working for me on a Mac with version 12.1.1
I'm having the same difficulty but with a Mac on version 12.0.0.
WordCloud::invwght: The weight specification used is invalid. At least one weight must be a positive real number. WordCloud[WikipediaData["computers"]] and WordCloud[Characters[StringJoin[WordList[]]]]
Thanks I will try upgrading to Windows 10 and re-install.
Hi any resolutions to this? I recently installed 11.3 on Windows and get the exact same error message. I just cannot get word cloud to work.
The function works for me on windows 10 with a fresh installed V11.3
Now you want to narrow down the problem. Do you get a String back from the inner command?
String
WikipediaData["computers"]
Can you make a word cloud from a random string?
WordCloud["this is a string, the string has words"]
I do get the string back. I have tried several strings, including the one you provided with the same result.
The WordCloud examples from the book seem to work for me, can you paste the code that generates an error for you?
WordCloud
This basic example:
WordCloud[WikipediaData["computers"]] Yields:WordCloud: The weight specification used is invalid. At least one weight must be a positive real number.
I have tried several other examples and get the same result.
Thanks for the help.