The project requires building of a NLP classifiers and sentiment analysis based on the below guidelines. I have attached the Rmarkdown file and required input files for the analys
The project requires building of a NLP classifiers and sentiment analysis based on the below guidelines. I have attached the Rmarkdown file and required input files for the analysis. please use Python to do the below steps preferably. The 'cleaned_subtitles' will be the dataset used for the analysis and 'movie reviews' file is what you should use for sentiment analysis
Classifcation:
– Pick several nouns and/or verbs from your previous assignment. Create a column in the dataframe that indicates if that line from the movie/TV show includes that word or does not include that word. You can use 0 and 1 or any labels that make sense to you. Remember, we covered regular expression detection and deletion in the raw text assignments! - Once you have created this column, use string replacement to delete that word from your subtitles. We will take the word out to see if we can predict when it is used – if you leave it in, it's a perfect predictor! - Use *two* feature extraction methods and *two* machine learning algorithms to determine if you can predict when your noun or verb will be used. You should include four different classification reports below.
Sentiment:
– Use *one* of the unsupervised lexicon techniques to create sentiment scores for your movie/TV show. - What is the overall sentiment of your movie/TV show? How would you interpret the scores provided? - Using the movie reviews mini dataset provided online, create a sentiment tagging model (one feature extraction method + one algorithm). - With this new model, create sentiment scores for your movie/TV show. - What is the overall sentiment using the new model of sentiment tagging? How would you interpret the scores provided?
subtitle | |
1 | i think that |
2 | actually everything i've experiencedover these last few months… |
3 | is like being in a dream… |
4 | …or in a movie. |
5 | but a very bad movie, |
6 | because that movie would bevery unrealistic. |
7 | it's fashionable these days toblame everything on global warming. |
8 | particularly onman-made global warming. |
9 | but i'm afraid the evidencedoesn't point in that direction. |
10 | a little bit of warmingwould not be a bad thing for myself, |
11 | being a canadian |
12 | and the people in russiawouldn't mind a little… |
13 | a couple of degrees warmer either. |
14 | all of this with theglobal warming, a lot of it's a hoax. |
15 | it's a hoax, i mean, it's a money-makingindustry, okay. it's a hoax. |
16 | the whole"climate crisis" as they call it, |
17 | is not only fake news, it's fake science. |
18 | there is no climate crisis.there is nothing to be afraid of. |
19 | how much warming will you get if you, |
20 | let us say, double the co2 in the air? |
21 | the answer is,you don't get very much. |
22 | the problem is not global warming. |
23 | the problem is that wekeep hearing one-sided arguments. |
24 | carbon dioxide isactually a benefit to the environment, |
25 | to agriculture and forestry,and to the climate of the earth. |
26 | there are some peoplewho are so arrogant to think |
27 | that they are so powerful,they can change climate. |
28 | man can't change climate. |
29 | adults always say one thing |
30 | and then do somethingcompletely different. |
31 | they say that we only have one planet, |
32 | and we should take care of it. |
33 | and yet no one gives a damnabout the climate crisis. |
34 | my name is greta thunberg,and i am 15 years old. |
35 | i am on a school strike for the climatein front of the parliament, |
36 | until the election day. |
37 | many have heard about climate change |
38 | and know vaguely what it means |
39 | with rising sea levels,increased average temperatures, |
40 | and so on. |
41 | but no one seems tofully understand the consequences. |
42 | that we are right nowliving as if we had several earths. |
43 | sometimes it feels like wewho have asperger's or autism |
44 | are the only oneswho see through the noise. |
45 | i am protesting about the climate crisisbecause it's such an important issue. |
46 | what we are doing now,future generations can't change. |
47 | and no one is doing anything,nothing is happening. |
48 | so i must do what i can. |
49 | what did you thinkwhen you first heard her talking |
50 | about the idea to start protesting? |
51 | i told her if she woulddo that, i would not support it. |
52 | so she made a very long list of factsthat she's been handing out to people. |
53 | and, uh, she knowsthe climate issue, i would say |
54 | better than 97% of all the politicians,probably in the world. |
55 | she has almost a photographic memory |
56 | when it comesto things she's interested in. |
57 | so she can read books and almostremember everything that's in there. |
58 | did you expect something like that? |
59 | i didn't expect anything. |
60 | i just wanted her to be happy. |
61 | and i'm very sure thatshe didn't expect anything either. |
62 | i mean, she just…she felt she had to do something |
63 | and she had to do itcompletely on her own. |
64 | i don't like making small talk with people |
65 | or socializing. |
66 | sometimes, i go quietand can stay so for hours |
67 | only because i simply can't talk. |
68 | i like to have routines, |
69 | and i notice details. |
70 | and once i really getinterested in something, |
71 | i can get, like, laser focused on it |
72 | and keep doing it for hours,without getting bored. |
73 | we saw a film in school. |
74 | there werestarving polar bears, floodings, |
75 | hurricanes and droughts. |
76 | and the scientists said thatwe didn't have much time left |
77 | to change our behavior. |
78 | that was wheni started getting depressed. |
79 | and got anxiety. |
80 | and stopped eating and stopped talking. |
81 | i was sick.i almost starved to death. |
82 | it took many years |
83 | but slowly. |
84 | i started to feel better. |
85 | i felt that,why should i give up |
86 | when there were so many different things |
87 | you could do to make a difference? |
88 | "i love seeing someonewho doesn't just complain. |
89 | "but gets out and doessomething about it. |
90 | you inspire me." |
91 | my name is gretathunberg and i am 15 years old. |
92 | and we have had school strikesfor the climate for three weeks. |
93 | but we will go on withthe school strike every friday. |
94 | as from now, we will sitoutside the swedish parliament |
95 | until sweden is in linewith the paris agreement. |
96 | everyone is welcome.everyone is needed. |
97 | please join in. |
98 | once the climatecrisis has gotten your attention, |
99 | you can't look away. |
100 | once you fully understandthe magnitude of the problem, |
101 | then you can't erase it. |
102 | i started turning off lightsand pulling out cords at home. |
103 | my parents got very surprised |
104 | and they wonderedwhy i did like that. |
105 | and i explained, to save energy. |
106 | my family lived a veryhigh-consuming lifestyle. |
107 | we bought lots of things,we ate meat. |
108 | we drove a petrolcar, we flew all over the world. |
109 | mom and dad werejust like everyone else. |
110 | they didn't understandhow bad things were. |
111 | they said thateverything would be fine. |
112 | "there are lots of things being done.you don't need to worry." |
113 | but that was exactlywhat made me so afraid. |
114 | that people seemed to thinkthat we were making progress. |
115 | for many years,people, especially children |
116 | were very unkind or mean to me. |
117 | i didn't get invitedto parties or celebrations. |
118 | i was always left out. |
119 | so i spent most of my timebeing with my family, and my dogs. |
120 | time is against us asun climate talks begin in poland |
121 | and is being attended by around40 heads of state and government. |
122 | the ambition for the coming days |
123 | is to try to put flesh on the bonesof the paris agreement. |
124 | that was the deal agreed three years ago |
125 | in which countries saidthey would cut their greenhouse gases. |
126 | basically, the time is very,very short to make major changes. |
127 | emissions have to essentiallyhalve over the next 12 years |
128 | otherwise the impacts could becatastrophic for the entire world. |
129 | "the responsibility is yours, but since…" |
130 | "all of our leadersare behaving like children…" |
131 | uh… |
132 | the… |
133 | "the children willhave to take responsibility. |
134 | "we will take |
135 | responsibility for their actions." |
136 | "they have ignored us in the pastand they will ignore us this time." |
137 | – just one question, please.- this is a meeting that can not fail. |
138 | thank you, sir. |
139 | – greta! how are you?- i am good. |
140 | – are you nervous? don't be.- no. |
141 | greta, before we start this session,let's take our selfie. |
142 | – so nice to meet you.you lovely girl. |
143 | i can join you? |
144 | photobombing a 15-year-old. |
145 | she has to be ready, okay. please. |
146 | hi, how are you? |
147 | i have to remind all ofus that we have very little time. |
148 | please, greta, you have the floor. |
149 | for 25 years, countless people |
150 | have stood in front of theunited nations climate conferences |
151 | asking our nations' leadersto stop the emissions. |
152 | but clearly, this has not worked,since the emissions just continue to rise. |
153 | so i will not ask them anything. |
154 | instead, i will ask the peoplearound the world |
155 | to realize that ourpolitical leaders have failed us. |
156 | because we arefacing an existential threat. |
157 | and there's no time tocontinue down this road of madness. |
158 | we have come here tolet them know that change is coming |
159 | whether they like it or not. |
160 | the people willrise to the challenge. |
161 | and since our leadersare behaving like children, |
162 | we will have to take the responsibilitythey should have taken long ago. |
163 | thank you. |
164 | – maybe thumbs up?- thumbs up! |
165 | i would like to give thefloor to miss greta thunberg. |
166 | miss thunberg, you have the floor. |
167 | – my name is greta thunberg.i am 15 years old and i am from sweden. |
168 | you only speak ofgreen eternal economic growth |
169 | because you aretoo scared of being unpopular. |
170 | you only talk about moving forward |
171 | with the same bad ideasthat got us into this mess. |
172 | but i don't careabout being popular. |
173 | i care about climate justiceand a living planet. |
174 | thank you. |
175 | you're very young, 15 years old. |
176 | is climate change an issuethat even children, |
177 | like yourself,should be concerned about? |
178 | how can we spreadawareness among children? |
179 | – yes, of course.climate change affects mostly children. |
180 | sorry, sorry, it's deutsche welleand reuters. |
181 | but, deutsche welle, wait. |
182 | i have stopped flying,stopped eating meat and dairy, |
183 | and stopped buyingnew things, and… yes. |
184 | just small changes. |
185 | may i get a selfie? |
186 | i have a 16-year-old daughter in america. |
187 | actually in canada now,we live in canada. |
188 | she's quite the activist too. |
189 | anyway, proud of you! |
190 | a 15-year-old environmental activistfrom sweden is scolding world leaders |
191 | on what she says is theirfailure to address climate change. |
192 | so her name is greta thunberg. |
193 | she comes up on stage, she's notparticularly dressed in any special way. |
194 | and she speaksand her words are devastating. |
195 | i can't just sit there and watch her |
196 | do all this forthe environment and do nothing. |
197 | we stand with you, and on friday,i will stand next to you. stay strong! |
198 | – fridays for future!- future, future! |
199 | – fridays for future!- future, future! |
200 | – fridays for future!- future, future! |
201 | we are the children here, speaking up. |
202 | and our future is beingdestroyed by the minute. |
203 | thousands of people in brisbaneand thousands more across the country |
204 | are taking to the streetwith passion and posters… |
205 | they say they're taking back the streets |
206 | to send a messagethat the climate crisis is real. |
207 | they will not rest untilbold action is taken to address it. |
208 | it's all for her, for the movement,for the climate. |
209 | she started this and i justwanted to help her a little bit. |
210 | stop the pollution! stop the pollution! |
211 | it's a real movementthat's growing. it's growing every week. |
212 | these students aren't backing down.they plan to keep striking until… |
213 | my lords, i do not acceptthat taking time off school |
214 | in the middle of termis useful for children. |
215 | – kids should go to school!and less activism in school! |
216 | if it were about science,it would be led by scientists, |
217 | rather than by politicians |
218 | and a mentally ill swedish childwho is being exploited by her parents |
219 | and by the international left. |
220 | if you listen to thespeeches that our politicians give us, |
221 | it seems like they've nevereven heard of a climate crisis. |
222 | because they arenot treating it like a crisis. |
223 | hi! |
224 | – it's so nice to meet you, greta.- you too. |
225 | so, so, we've done somestrikes here in belgium. |
226 | – yeah, i know.- with you as our big inspiration. |
227 | we hit 35,000 last week. |
228 | – i know.that's amazing. i saw pictures |
229 | and it was just crowds fullof people, and it was amazing. |
230 | yeah, it's amazing. |
231 | and everybody has placardsthat say, "greta for president" |
232 | and everybody's shouting your name.you're a real hero here. |
233 | so for us it would be really,really nice to get to know you. |
234 | yeah. you too. |
235 | it feels almost indescribablethat something is finally happening. |
236 | that there are many who care aboutthe same things as i do. |
237 | it feels like i'll just wake upone day and find out this wasn't for real. |
238 | – do you want some tea? some…- no, i have water. |
239 | – hi, greta.- hello. |
240 | – nice to meet you.- you too. |
241 | – thank you so much.- we shall sit down. |
242 | thank you somuch for coming, greta. |
243 | honestly, we would havenever started this if you wouldn't have. |
244 | and i would have neverhad the courage you showed. |
245 | it's not that i should take the focus,because that's what's so good |
246 | about this movement,that everyone is equally contributing. |
247 | no, no, that's right, but everybody'sdoing great jobs locally in every country. |
248 | but you're, like,that girl that started it all, you know? |
249 | i think we neededthis kind of story that you told. |
250 | like a story of, like,everyone can make a difference. |
251 | and that we as young peoplecan change something. |
252 | and we needed the storyto tell to other people and they saw it. |
253 | – yeah, it's really nice.- together we can make a difference. |
254 | there have now been strikeson every continent except antarctica. |
255 | i think that it'samazing that it's not just in… |
256 | western europe. it's everywhere. |
257 | – what do we want?- climate justice! |
258 | – when do we want it?- now! |
259 | i'm impressed by the political oomph |
260 | that this movement seems to have got. |
261 | climate change hasnever been on the headlines like this |
262 | for as long as i can remember. |
263 | it's really making people understandthat this needs to be tackled now. |
264 | it is the most pressingpolitical issue of our time. |
265 | society is like an amoeba, |
266 | it moves from the margins,not from the center. |
267 | if the young people can sustain this,this actually could change the world. |
268 | are you ready to meet greta? |
269 | make some noise! |
270 | this is incredible. |
271 | for way too long,the people in power |
272 | have gotten away with notcaring about the climate crisis. |
273 | but we will make surethey will not do that any more. |
274 | we will be a pain in the ass, we willkeep on striking until they do something. |
275 | everybody, raise your hands! |
276 | – hi, how are you?- i'm good. you? |
277 | – nice meeting you.- nice meeting you too. |
278 | it's an honor to meet you.thank you for inviting me. |
279 | – you are welcome.we are very happy to have you here. |
280 | what i want to discuss with you is |
281 | how you see the situation and onwhich topic do you want us to focus? |
282 | and what are your mainconcerns and expectations? |
283 | i think we are in a time nowwhere more and more people |
284 | are becoming aware of what is going on. |
285 | and i think we havereached a tipping point. |
286 | that people will…will demand things. |
287 | and will realize where we are at. |
288 | and i think that you have a greatopportunity to take that chance and to act |
289 | and to become a figure of this. |
290 | and also, i think it'svery important that we… |
291 | in the rich countries,we need to lead and to act more. |
292 | obviously, becausethe people in poorer countries |
293 | need to have a chance toheighten their standard of living. |
294 | so, you are in a rush,so you should probably get going. |
295 | thank you very much. thank you. |
296 | how do you manageeverything for school and so on? |
297 | i… my school isactually very helpful. |
298 | they support me and i do homeworkat home and i catch up with them. |
299 | i-i work hard. |
300 | – wow. and you travel a lot?- yeah. sometimes. yeah. |
301 | – by train.- yeah. yeah. |
302 | wow. and youread a lot on the climate? |
303 | yeah, i do, yeah. a lot. i'm a nerd. |
304 | – my name is greta thunberg.i am a climate activist from sweden. |
305 | people always tell usthat they are so hopeful. |
306 | they are hopeful that the young peopleare going to save the world. |
307 | but we are not.there is simply not enough time |
308 | to wait for us to grow upand become the ones in charge. |
309 | because by the year 2020, we need to havebent the emissions curve steeply downward. |
310 | that is next year. |
311 | we have startedto clean up your mess. |
312 | and we will not stopuntil we are done. thank you. |
313 | and now i have the pleasure and privilege |
314 | of giving the floorto jean-claude juncker. |
315 | now i'm going to really focus |
316 | on what's happening here today. |
317 | i change things… |
318 | while trying toregulate smaller things. |
319 | now, in terms of flushes,they said that |
320 | we need to harmonize all flushesacross all toilets in europe. |
321 | well, it could be useful because we wouldsave a very large amount of energy, but… |
322 | i honestly don't understand |
323 | why i even get invited. |
324 | it feels like all theywant is to be spotlighted |
325 | to make it look like they care,as if they were doing something. |
326 | they know what to say,they know what sells. |
327 | but in fact,they're doing basically nothing. |
328 | if the solution to the climate crisis wasabout changing tea bags for loose-leaf tea |
329 | and eating vegetarian once a week,then it wouldn't be a crisis. |
330 | and we wouldn't even have a problem. |
331 | have you heard anypoliticians seem to understand the urgency? |
332 | today, president juncker'sspeech did not seem to respond to… |
333 | you laid out even science factsand he didn't even respond to those. |
334 | no. i mean, um,most people like that i talk to |
335 | don't really respond, they don'tcome with any concrete promises. |
336 | they only say that we are trying,but that's not enough. |
337 | if we don't actnow, the world will get so hot |
338 | millions of peoplewill lose their homes |
339 | and more than 10% of the world's insects,plants and animals will die. |
340 | japan is experiencinga record-breaking heat wave |
341 | which officials say contributedto the death of 65 people last week… |
342 | the impact on sensitiveecosystems and the arctic |
343 | will shift from highto very high risk… |
344 | sixty-three fires are burning in 13 states |
345 | and with dangerous heat coming,the situation will only get worse… |
346 | now is the time to stop this. |
347 | we don't have another decade to wait. |
348 | greta, i have just onequestion for you. how does it feel? |
349 | i don't know.it's very overwhelming. |
350 | because they're herefor you. it's all because you started it. |
351 | no, they're here forthemselves. and for everyone. |
352 | greta, i think they love youtoo much. |
353 | please, you're my hero. |
354 | thank you. |
355 | are you not hungry? |
356 | – i don't care. no.- you don't care? |
357 | – do you want to go elsewhere?- no, i want to sit here and not eat. |
358 | okay. |
359 | today, we use100 million barrels of oil every day. |
360 | there are nopolitics to change that. |
361 | there are no rulesto keep that oil in the ground. |
362 | but if being carbon-neutraldoes not include transportation, |
363 | shopping, food,aviation and shipping |
364 | then it doesn'treally mean that much. |
365 | some would say we are wasting lesson time.we say we are changing the world. |
366 | so that when we are older,we will be able to look back |
367 | and say that wedid everything we could. |
368 | and we will continue to do so. |
369 | we will continue to fightfor our future and for the living planet. |
370 | we need to starttreating the crisis as a crisis. |
371 | and we also need to communicate |
372 | in a way that we connectall these environmental disasters. |
373 | like everything fromacidification of the oceans, deforestation |
374 | to the fact that we are inthe sixth mass extinction right now. |
375 | we need to make sure the peoplecan connect these dots. |
376 | yeah. absolutely. connecting the dots,that's a very good point. |
377 | – hi, greta, it's a pleasure to meet you.- you too. |
378 | i wish you well and continue to campaign.just do what you believe is right. |
379 | – greta, can i have a selfie?is that okay? |
380 | there we go. one, two, three! |
381 | everyone says, "it'sso lovely that you are here," |
382 | and, "we promise to improve." |
383 | but they never do. |
384 | when i'm in these fancy environments, |
385 | all these palaces or castles,or whatever it is, |
386 | i feel very uncomfortable. |
387 | it feels like everyone is inthis role-playing game |
388 | and just pretending. |
389 | it feels kind of fake. |
390 | sometimes it feels likeit doesn't even matter |
391 | how many of us go on strike. |
392 | what matters is thatthe emissions have to be reduced. |
393 | and it has to start happen. |
394 | let's be honest, a lot of peoplefind her very annoying. |
395 | and they find her very hyperbolic |
396 | and very hystericaland very over-emotional. |
397 | greta. you know greta? |
398 | she's not the messiah. |
399 | she's just a depressedand extremely anxious girl. |
400 | and a very unhappy one. |
401 | asperger's is very rarely an advantage. |
402 | in this case, it's actually a weakness. |
403 | she's a kid. she talks nonsense. |
404 | she tells the climate alarmistsexactly what they want to hear. |
405 | you selfish, badly educated,virtue-signaling little turds. |
406 | wake up, grow up, and shut up. |
407 | until you're sure of the factsbefore protesting. |
408 | my parents… i can tell |
409 | that they are very worried,and scared. |
410 | we've received several letters homethat contain death threats. |
411 | they're saying thati should avoid going out. |
412 | but i am honestly not that scared. |
413 | because i am more worriedwhat would happen if i didn't do this. |
414 | y
Collepals.com Plagiarism Free Papers Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers. Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS Why Hire Collepals.com writers to do your paper? Quality- We are experienced and have access to ample research materials. We write plagiarism Free Content Confidential- We never share or sell your personal information to third parties. Support-Chat with us today! We are always waiting to answer all your questions. ![]() All Rights Reserved Terms and Conditions |