Final Project – Word Cloud For this project, you’ll create a “word cloud” from a text by writing a..

Final Project – Word Cloud For this project, you’ll create a “word cloud” from a text by writing a..
Final Project – Word Cloud For this project, you'll create a “word cloud” from a text by writing a script. This script needs to process the text, remove punctuation, ignore case and words that do not contain all alphabets, count the frequencies, and ignore uninteresting or irrelevant words. A dictionary is the output of the calculate_frequencies function. The wordcloud module will then generate the image from your dictionary. For the input text of your script, you will need to provide a file that contains text only. For the text itself, you can copy and paste the contents of a website you like. Or you can use a site like Project Gutenberg to find books that are available online. You could see what word clouds you can get from famous books, like a Shakespeare play or a novel by Jane Austen. Save this as a txt file somewhere on your computer Now you will need to upload your input file here so that your script will be able to process it. To do the upload, you will need an uploader widget. Run the following cell to perform all the installs and imports for your word cloud script and uploader widget. It may take a minute for all of this to run and there will be a lot of output messages. But, be patient. Once you get the following final line of output, the code is done executing. Then you can continue on with the rest of the instructions for this notebook. Enabling notebook extension fileupload/extension… – Validating: OK In [53]: # Here are all the installs and imports you will need for your word cloud script and uploader widget ! pip install wordcloud !pip install fileupload !pip install ipywidgets ! jupyter nbextension install –py –user fileupload ! jupyter nbextension enable –py fileupload import wordcloud import numpy as np from matplotlib import pyplot as plt from IPython.display import display import fileupload import io import sys # Here are all the installs and imports you will need for your word cloud script and uploader widget !pip install wordcloud !pip install fileupload !pip install ipywidgets ! jupyter nbextension install –py –user fileupload ! jupyter nbextension enable –py fileupload import numpy as np from matplotlib import pyplot as plt from IPython.display import display import fileupload import io import sys def calculate_frequencies(file_contents): punctuations = ''!O-[]{};:'”,<>./?@#$%^&*_-” uninteresing_words = [“the”, “in”,”a”, “to”,”if”,”is”,”it”,”of”,”and”,”or”,”an”,”as”,”i”, “me”,”my”,”we”,”on”] result = {} # declaring new dictionary a = file_contents.split() # spliting data into words based on spaces. for word in a: if word in uninteresing_words: pass else: for letter in word: if letter in punctuations: word.replace(letter, “”) # replace the letter in word which is punctuation mark to empty if word not in result.keys(): result[word] = 1 # if the word is not present in the dictionary then the frequency for that word will be ini else: result(word] += 1 # if the word already present in the dictionary then increment frequency of that word cloud = wordcloud.Wordcloud) cloud.generate_from_frequencies(result) return cloud.to_array() file_contents = open(“file.txt”).read() # reading data from file.txt file myimage = calculate_frequencies (file_contents) # calling calculate_frequencied function with file_contents as parameter plt.imshow (myimage, interpolation = “nearest”) plt.axis(“off”) plt.show() # showing image VULIUULINE OR To initialize this nbextension in the browser every time the notebook (or other app) loads: jupyter nbextension enable fileupload –user–py Enabling notebook extension fileupload/extension… – Validating: OK Name Error Traceback (most recent call last) in 32 cloud.generate_from_frequencies (result) 33 return cloud.to_array() —> 34 myimage = calculate frequencies (file_contents) # calling calculate_frequencied function with file_contents as parame ter 35 pit imshow (myimage, interpolation = “nearest”) 36 plt.axis(“off”) NameError: name 'file_contents' is not defined May 13 2022 07:29 PM

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
You can contact our live agent via WhatsApp! Via + 1 (409) 205-8984

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 30% with the discount code DISCOUNT