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

An Open Message to the Blog's Fans in Singapore

(Image:  Free 12 singapore icons - Iconfinder ) This past week, more views of this blog were made from Singapore than other country. To ackn...

Popular in last 30 days