Question: I am trying to do some sentiment analysis on a text file, but I need to edit something in the file. The file contains tweets

I am trying to do some sentiment analysis on a text file, but I need to edit something in the file. The file contains tweets and some info about them and there is a sequence. It starts with the tweet date, then the tweet link and then the tweet content. In order for me to do the sentiment analysis and track the date, I need to combine the three lines The file looks like thisI am trying to do some sentiment analysis on a text file,

I need this:

T 2009-09-22 09:50:12 U http://twitter.com/webber_b_74 W No Post Title

To look like this:

2009-09-22 09:50:12 http://twitter.com/webber_b_74 No Post Title

So far I have this code:

but I need to edit something in the file. The file contains

Your help is much appreciated

T 2009-09-22 09:50:12 U http://twitter.com/webber_b_74 W No Post Title T 2009-09-22 12 : 34:09 LU http://twitter.com/webber_b_74 W No Post Title T 2009-09-22 17:12:39 U http://twitter.com/webber_b_74 W No Post Title T 2009-09-22 18 : 25: 41 U http://twitter.com/webber_b_74 W No Post Title T 2009-09-23 02:50:30 U http://twitter.com/webber_b_74 W No Post Title T 2009-09-23 03:00:59 U http://twitter.com/webber_b_74 W No Post Title

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!