Question
FOR PYTHON You are to create a decoder program that takes a tweet as input and turns it into an English sentence. A tweet will
FOR PYTHON
You are to create a decoder program that takes a tweet as input and turns it into an English sentence. A tweet will contain common acronyms and abbreviations, and your program will need to have a way to decode them (dictionary). For example) lol => laughing out loud, brb => be right back Provided is a file with common tweet abbreviations and associated meanings, your program is to use this csv file (tweet_decoder.csv) to create its dictionary. 1. Start by creating a framework for the program that contains a dictionary with a few abbreviations such as decoder = { brb : be right back, b4 : before ...} 2. Ask for a user to input a tweet. 3. Lookup abbreviations within the tweet, decode and replace them. 4. Print out the decoded string. 5. Offer the option to run again. 6. Your program will need to open up the tweet_decoder.csv file. Make sure that this file is copied into the same directory where your python file is saved. 7. Review slide 16 from week 12 (part1, Record example 2) as a reference. 8. Each line of the CSV file represents a key and a value pair These needs to be added to the dictionary.
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