Friday, October 6, 2023

Word Clouds

 

If you ever wondered how to produce a "Word Cloud," there is an easy function built into the program Wolfram Mathematica. I've been slowly taking tutorials on using Mathematica and a key to learn a new programming language is to apply newly introduced functions in your own work. 

If you don't have access to Mathematica, Wolfram Mathematica has a cloud-based version available for no cost - you just have to set up an account: see this link: Wolfram Cloud.

Next, copy the line of code below into a new notebook and replace "mathematics" with the subject of your choice.

WordCloud[WikipediaData["mathematics"]]

For example, to produce a word cloud for the city of Chicago, use: WordCloud[WikipediaData["Chicago"]].

The result is below.


More information specific to the WordCloud Function, see example 18 of: Strings and Text: Elementary Introduction to the Wolfram Language.

Tutorials on using Mathematica can be found here: An Elementary Introduction to the Wolfram Language by Stephen Wolfram.

Note: Stephen Wolfram is the author of A New Kind of Science. See: Math Vacation: My Favorite Math Websites (jamesmacmath.blogspot.com)


No comments:

Post a Comment

1679 - One important message sent from Earth 31 years ago

In 1974 an interstellar radio transmission was broadcast to the  globular cluster   Messier 13   from the Arecibo radio telescope in Puerto ...

Popular in last 30 days