Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use SageMath 8.9 version to solve Problem 5 Find several paragraphs of text written in English (eg from a book, magazine, news article, email
please use SageMath 8.9 version to solve
Problem 5 Find several paragraphs of text written in English (eg from a book, magazine, news article, email exchange, etc). Strip out all non-letter characters (spaces, punctuation, numbers, etc), and convert all remaining letters to upper-case. Call this string CORPUS1. Ideally it should have at least 500 characters. Determine the relative frequency of each letter in CORPUS1. Your output should be a list of the frequencies of each of the 26 letters. Problem 5 Find several paragraphs of text written in English (eg from a book, magazine, news article, email exchange, etc). Strip out all non-letter characters (spaces, punctuation, numbers, etc), and convert all remaining letters to upper-case. Call this string CORPUS1. Ideally it should have at least 500 characters. Determine the relative frequency of each letter in CORPUS1. Your output should be a list of the frequencies of each of the 26 lettersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started