2023 I need someone really professional and fast to solve me this assignment Intro to Computer Science PA11 Creating Word | Assignment Collections

Computer Science 2023 Computer Science

2023 I need someone really professional and fast to solve me this assignment Intro to Computer Science PA11 Creating Word | Assignment Collections

I need someone really professional and fast to solve me this assignment:

Intro to Computer Science

PA11

Creating Word Tags/Clouds of a “Famous” Movie 

Code due by Friday, April 27th at 9:00

Background

A common element seen on web pages these days are tag clouds (http://en.wikipedia.org/wiki/Tag_cloud). A tag cloud is a visual representation of frequency of words, where more frequent words are represented in larger font. One can also use colors and placement.  We are going to analyze a famous movie and create a tag cloud for each movie character based on the words they used, where the frequency of the words indicates the size of the font in the cloud.

The movie we will analyze is Montey Python and the Holy Grail. While watching the movie prior to starting this assignment is not a requirement, it’s highly recommended if you have some extra time!

To help you with this assignment you are provided with the following documents:

Each of these files is explained below:

  • Transcript  –  Open up the move transcript file .  The transcript is in a particular format. Each time one of the move characters speak, that line is marked with the speaker’s name followed by a colon (‘ARTHUR:’, ‘BLACK_KNIGHT:’, ‘GALAHAD:’, and others). Once encountered, all words are attributed to that character until another label occurs. Notice that this may not be for several lines.
     
  • Stopwords – Not all words are worth counting. In the context of speeches, ‘a’, ‘the’, ‘was’, etc. are just junk. A list of such words is provided as stopSQL.txt Each line has a single word. No word in the stop word list should be counted in the tag cloud. This is the list distributed with MySQL 4.0.20 list with a few additions (mostly just duplication of contractions. That is both “can’t” and “cant” are now in the list)
     
  • Functions – Three functions and an example are provided in htmlFunctions.py. Use them in your program. That file contains:
    • makeHTMLword (word, cnt, high, low)This function takes a word and wraps it in a font tag with a specific size. The function takes the word to be wrapped, how many times it occurred in the document, the highest word count and the lowest word count of words being processed (the highest count we are considering for this tag and the lowest). It returns a string that is the word and fontSize between htmlBig and htmlLittle (two local vars in the function. You can change them to be whatever you like)
       
    • makeHTMLbox(body)This function takes a single string of all the font-wrapped words from makeHTMLword and places them in an html box to be displayed. It returns a string which is the html code for the box.
       
    • printHTMLfile(body,title)Takes the body returned from makeHTMLbox and wraps a standard html web page around it. The string title is used in the html. The title is also the file name with an ‘.html’ suffix

Play with this file for a few minutes until you see how it works.  You do not need to understand all of the details, but you need to understand what each function does and how they work together.

Project Specifications

In a file called pa11.py, you will need to write a group of helper functions called by a master function (named main() ) which will read through one of the debate files, create a dictionary of words spoken by a specific character, remove stop words, identify the 40 most frequently used words by that character, and use that information to call the helper functions provided to in the file htmlFunctions.py to create the word cloud. Your code should include no less than 3 new helper functions (other than main()) to illustrate that you understand how to break large problems into small, managable steps. Of course, you can create more than 3 new helper functions if you like. 

The master function main() will take in two parameters:

  • A string representing the name of the movie text file 
  • A string representing the character that you wish to analyze.  This string should be the exact name/label used in the debate transcript (without the colon.  See below)

For example, if I invoke:

main(“holy-grail.txt”,”ARTHUR”)

my code should produce a file called ARTHUR.html which is the word cloud spoken by that character in the holy grail movie.  BTW, that file should look like this one (ARTHUR.html)

CHECKING YOUR WORK.  If you run the commands above on your finished code and the html files look different from mine, then something isn’t quite right for one of us.  It COULD be me who is wrong, but you should ask questions.

Helpful Hints:
 

  1. Create your design diagrams and documents first! Break down all the steps that need to be performed, and figure out which functions they go into. 
  2. Parsing the movie file. You have to read in the file and separate the lines according to who said them. Use the file format to help you with this. Remember, once you see one of the character tags all lines/words belong to that character until you see another character tag.
  3. You have to remove the stop words.  You have two choices.  Either do it as you are reading the movie file or go back and remove them once you are done reading the entire movie file.  Each has advantages.  Pick one and go with it.
  4. Also remember to remove punctuation from words, just because a word comes at the end of a sentence and has a period at the end of it doesn’t make it a different word. Also, you don’t need to count the audience words inside of parenthesis like (APPLAUSE) and (LAUGHTER). You can tell audience lines apart from regular speech because they occur on separate lines and are surrounded by parenthesis.
  5. Capital letters are a potential problem.  If we aren’t careful the word “Economic” at the start of a sentence will be counted separately from the word “economic” inside of a sentence.  For simplicity I will allow you to treat all words as lower case letters (having said that, be careful when you decide to convert to lowercase letters since  character speakers are labeled with all caps (“ARTHUR:”) and you may want/need to use this information.
  6. Count the word frequency in the character’s words. Use a dictionary, where the key is the word and the value is the count.
  7. Once you have dictionary for the character in question, you need to extract the 40 most frequently used non-stopwords and their counts.  This should be familiar.  You will need to use lists of lists as we have done before.
  8. We also need to extract the biggest count and the smallest count from the words in this top-40 as that information is needed by makeHTMLword ()
  9. Once you have the forty most frequent words (and their counts) we want to alphabetize that list.  That sounds like another set of lists in a list.
  10. Finally, use the code presented to you in htmlFunctions.py to generate the html file with the appropriate name.

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational