Question
The only grace note in the generally clunky Wonder Woman is its star, the five-foot-ten-inch Israeli actress and model Gal Gadot, who is somehow the
The only grace note in the generally clunky Wonder Woman is its star, the five-foot-ten-inch Israeli actress and model Gal Gadot, who is somehow the perfect blend of superbabe-in-the-woods innocence and mouthiness. She plays Diana, the daughter of the Amazon queen Hippolyta (Connie Nielsen) and a trained warrior. But shes also a militant peacenik. Diana lives with Amazon women on a mystically shrouded island but shes not Amazonian herself. She was, were told, sculpted by her mother from clay and brought to life by Zeus. (Id like to have seen that.)
please need MATLAB code for each part , dont copy paste previous expert solution , please do it asap
The input for this exercise is the file review.txt provided with the instructions. In one single matlab script file (exercise02.m), implement the following: 1. Read in the lines of the text file using the fgetl function. Store the lines of this file in a cell array. Useful functions: for, fopen, fgetl. 2. Preprocess your lines: Remove punctuations, convert to lower case, remove all stop words (the list of stopwords is provided in a txt file). You can do this before or after tokenizing the strings. Use function lower for lower case conversion. 3. Parse your stored lines of text into their constituent words using the strtok function. Store all of the words in the entire document in a cell array with one word per index. 4. Create a lexicon consisting of all of the unique words that have appeared in your input file. Useful function: unique. 5. Create a column vector representing how many times each lexicon word occurs in the document. This is technically a word vector representation for the document. Useful function: zeros. 6. Prune the column vector by removing the words that only occur for very few times. The threshold can be 1, 2, ..5. You make the choice that deems reasonable at your own discretion. 7. Report the two column vector versions in a table, both with and without pruning, into the results.doc file. File *review - Notepad Edit Format View Help The only grace note in the generally clunky Wonder Woman is its star, the five-foot-ten-inch Israeli actress and model Gal Gadot, who is somehow the perfect blend of superbabe-in-the-woods innocence and mouthiness. She plays Diana, the daughter of the Amazon queen Hippolyta (Connie Nielsen) and a trained warrior. But she's also a militant peacenik. Diana lives with Amazon women on a mystically shrouded island but she's not Amazonian herself. She was, we're told, sculpted by her mother from clay and brought to life by Zeus. (I'd like to have seen that.) The input for this exercise is the file review.txt provided with the instructions. In one single matlab script file (exercise02.m), implement the following: 1. Read in the lines of the text file using the fgetl function. Store the lines of this file in a cell array. Useful functions: for, fopen, fgetl. 2. Preprocess your lines: Remove punctuations, convert to lower case, remove all stop words (the list of stopwords is provided in a txt file). You can do this before or after tokenizing the strings. Use function lower for lower case conversion. 3. Parse your stored lines of text into their constituent words using the strtok function. Store all of the words in the entire document in a cell array with one word per index. 4. Create a lexicon consisting of all of the unique words that have appeared in your input file. Useful function: unique. 5. Create a column vector representing how many times each lexicon word occurs in the document. This is technically a word vector representation for the document. Useful function: zeros. 6. Prune the column vector by removing the words that only occur for very few times. The threshold can be 1, 2, ..5. You make the choice that deems reasonable at your own discretion. 7. Report the two column vector versions in a table, both with and without pruning, into the results.doc file. File *review - Notepad Edit Format View Help The only grace note in the generally clunky Wonder Woman is its star, the five-foot-ten-inch Israeli actress and model Gal Gadot, who is somehow the perfect blend of superbabe-in-the-woods innocence and mouthiness. She plays Diana, the daughter of the Amazon queen Hippolyta (Connie Nielsen) and a trained warrior. But she's also a militant peacenik. Diana lives with Amazon women on a mystically shrouded island but she's not Amazonian herself. She was, we're told, sculpted by her mother from clay and brought to life by Zeus. (I'd like to have seen that.)Step 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