Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Natural Language Processing with Python NLTK. 1. First, download NLTK using the command ( pip install nltk) 2. Do the following tasks on the attached

Natural Language Processing with Python NLTK.

1. First, download NLTK using the command ( pip install nltk)

2. Do the following tasks on the attached file containing raw tweets

  • Find the number of unique words in the file
  • Find the top 10 most frequent tokens in the file.
  • Remove empty rows and duplicates
  • Remove non-alphanumeric characters
  • Remove stop words
  • Perform a Part of speech tagging
  • Create a word cloud of the cleaned data

Date

tweet

;2015-08-03 15:35;0;0;

@ComedyCentralKE These words can kill a Luhya 'Wacha Ugali ipoe'

;2014-07-11 23:29;0;0;

The little luhya that remains in me always Sitokingi kills me

;2014-02-07 18:36;0;2;

@cheernatwildcat kill it at battle this weekend wildcat!! #luhya

;2011-10-09 19:34;0;0;

@HomeboyzRadio H.B.R luv dat luhya hit luhyas always kill awoooh

;2015-08-21 09:27;2;3;

#HangOutFriday hahaha ball ya terby( derby) Luhyas will kill me

;2017-11-19 17:13;2;5;

Luos dont kill ... blood thirsty killers are those two tribes

;2017-10-14 17:23;0;0;

Same police that kill luos in bondo and shot grannies in migori?

;2017-10-14 16:34;0;0;

But there's provision for police to kill innocent unarmed luos .

;2017-10-13 21:51;0;4;

The gvnt us determined to kill all luos young and old. Issfine

;2017-09-01 09:28;0;0;

Today events:SCOK & Maraga being an Adventist to uphold Uhuru's

;2016-10-08 22:57;0;0;

@citizentvkenya luos will kill me Diana Akoth lol #Slimpossible7

;2016-06-04 19:10;0;0;

Moses kurias main aim is to kill luos pic.twitter.com/SsKy2Zejdb

;2016-05-30 11:33;0;0;

You give orders to kill enough Luos you get promoted.Its alright

;2015-04-28 20:50;0;1;

How To Kill Alshabaab 1. Convert them to luos 2. Ujaluo itawauwa

;2015-04-12 18:16;0;0;

How to kill alshabaabs: 1.Convert them to luos 2.Ujaluo itawaua.

;2015-03-21 12:52;1;0;

HOW TO KILL AL-SHABAAB 1.convert them into luos 2.ujaluo itawaua

;2014-06-20 18:49;0;0;

How to kill alshabaab. 1. Convert them to luos 2. Ujaluo itawaua

;2014-06-11 09:20;0;0;

How to kill Alshabab.1. Convert them to Luos .2. Ujaluo itawaua.

;2014-06-05 11:22;0;0;

How to kill #Alshabaab convert them tu #Luos then #UjaluoItawaua

;2011-12-03 18:13;0;0;

Found it!!! Dan le sac vs scroobius pip - thou shalt always kill

;2016-09-22 21:38;0;0;

Kipsigis are Kalenjins. Kalenjins are Nilotes. Kisiis are Bantu.

;2015-09-23 16:10;0;0;

Are there any Kisiis on Twitter? will we have our president soon

;2015-07-09 11:52;0;0;

Is it me or most Procurement Departments are headed by Kisiis ??

;2015-04-15 09:15;1;1;

LOL but y'all ladies know kisiis are the real badass down there?

;2015-01-23 13:43;3;0;

Funny how Kisiis are night runners but never makes top athletes.

;2014-06-22 03:04;1;0;

Nigerians are the Kisiis of Africa....Now they will never sleep.

;2014-06-01 11:25;1;0;

Smh @AshyVyLauvly : Why are kisiis so loud and annoying? Jeezo_O

;2014-03-30 21:54;0;0;

Whatever happened to US kisiis we are touts and drivers nowadays

;2013-08-23 21:30;0;0;

Woi? Mimi hapa RT @allenochi : There are no Kisiis on Twitter o/

;2013-06-29 21:29;0;0;

But most matatu conductors are kisiis alafu drivers are kikuyus.

;2013-06-19 21:58;0;0;

RT @masaku_ WHO ARE WE? kisiis WHAT DO WE WAND? wait what?

;2013-06-19 21:10;2;1;

SMH @masaku_ WHO ARE WE? kisiis WHAT DO WE WAND? wait what?

;2013-06-19 21:05;0;0;

Smh RT @masaku_ : WHO ARE WE? kisiis WHAT DO WE WAND? wait what?

;2013-04-17 20:00;0;0;

merus are the second loudest bantus after the kisiis . #notribal

;2013-03-09 09:13;0;0;

Obeee... RT @Dee_Abuya : Hehe....RT @h_abuya: Of Kisiis who say

;2015-10-22 23:40;0;1;

@jeygooner poa I hope the #lordsofhate supporters t as +ve as u

;2015-10-22 22:36;1;0;

It's high time we need a #StreetCourt to handle the #LordsOfHate

;2015-10-22 22:25;2;2;

#LordsOfHate Aladwa makes the likes of Kuria to look like saints

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions