Write a program to clean up a text file for use in a word query program; that
Question:
Write a program to “clean up” a text file for use in a word query program; that is, replace punctuation with whitespace, put words into lower case, replace don’t with do not (etc.), and remove plurals (e.g., ships becomes ship). Don’t be too ambitious. For example, it is hard to determine plurals in general, so just remove an s if you find both ship and ships. Use that program on a real-world text file with at least 5000 words (e.g., a research paper).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 61% (13 reviews)
INTRODUCTION Cleaning a text file or a word document or simply a dataset forms part of a daily routine of a data scientist often than other computer scientists Text cleaning generally mean getting a t...View the full answer
Answered By
Hemstone Ouma
"Hi there! My name is Hemstone Ouma and I am a computer scientist with a strong background in hands-on experience skills such as programming, sofware development and testing to name just a few. I have a degree in computer science from Dedan Kimathi University of Technology and a Masters degree from the University of Nairobi in Business Education. I have spent the past 6 years working in the field, gaining a wide range of skills and knowledge. In my current role as a programmer, I have had the opportunity to work on a variety of projects and have developed a strong understanding of several programming languages such as python, java, C++, C# and Javascript.
In addition to my professional experience, I also have a passion for teaching and helping others to learn. I have experience as a tutor, both in a formal setting and on a one-on-one basis, and have a proven track record of helping students to succeed. I believe that with the right guidance and support, anyone can learn and excel in computer science.
I am excited to bring my skills and experience to a new opportunity and am always looking for ways to make an impact and grow as a professional. I am confident that my hands-on experience as a computer scientist and tutor make me a strong candidate for any role and I am excited to see where my career will take me next.
5.00+
8+ Reviews
22+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program (using the output from the previous exercise) to answer questions such as: How many occurrences of ship are there in a file? Which word occurs most frequently? Which is the longest...
-
In the last chapter you added and modified some tables for Kelly's Boutique. She would now like you to create, run, and print some select, parameter, and action queries. Make the following changes...
-
In the last chapter you modified some tables for the Wine Depot. Now Barbara would like you to help her create some queries to extract some information from the database. Make the following changes...
-
The following sequences of bits (rightmost bit first) appear at the inputs of a 4-bit parallel adder. Determine the resulting sequence of bits on each output. A1 1 0 0 1 A2 1 1 1 0 A3 0 0 0 0 A4 1 0...
-
How would you ensure that you keep a trainee's interest during training?
-
Make-or-buy Beaus Bistro has a reputation for providing good value for its menu prices. The desserts, developed by the pastry chef, are one of the distinctive features of the menu. The pastry chef...
-
An accountants objective of a review of the financial statements of a non-issuer (nonpublic company) is to provide what type of assurance? (a) Absolute assurance (b) Limited assurance (c) No...
-
Shown below and on the next page are comparative balance sheets for Padgett Company. Additional information:1. Net income for 2012 was $93,000.2. Depreciation expense was $34,000.3. Cash dividends of...
-
British construction and logistics firm Carillion collapsed in January, 2018, a breath-taking business implosion that left tens of thousands unemployed, more than 1 billion in debts unpaid, and an...
-
Pin B has a mass m and slides along the slot in the rotating arm OC and along the slot DE which is cut in a fixed horizontal plate. Neglecting friction and knowing that rod OC rotates at the constant...
-
What is an associative container? Give at least three examples.
-
Is list an associative container? Why not?
-
Determine a value index for 2018 using 2010 as the base period. 2010 2018 Item Price Quantity Price Quantity Margarine (pound) Shortening (pound) Milk (2 gallon) Potato chips $0.81 18 $2.00 27 0.84...
-
Write a query to display the employee number, first name, last name, and largest salary amount for each employee in department 200. Sort the output by largest salary in descending order, and then by...
-
Leo launched a new ad campaign. After looking at the campaign performance in Campaign Manager, he wants to improve his ad creative. What should he do ?
-
Rent-to-Buy (RTB) rents household appliances and furniture. Its standard contract gives customers the option of converting the rental into a purchase. For washing machines, RTB signs 1,000 new leases...
-
Question 5/10 Sort projects alphabetically by name. Then sort the phases and deadlines within them numerically. Which TWO would be listed last? Product Launch Phase 1 Deadline 5 Product Launch $...
-
Scenario and Database Model: InstantRide InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the...
-
Roger is willing to promote and sell two types of smart watches, X and Y, at his outlet. The demand for these two watches are as follows: DX = -0.45PX + 0.34PY + 242 DY = 0.2PX - 0.58PY+ 282 where,...
-
What are the 5 Cs of marketing channel structure?
-
What two things must a SQL programmer understand before beginning to craft a SELECT query?
-
What type of integrity is enforced when a primary key is declared?
-
What is the difference between a column constraint and a table constraint?
-
Beneath the CorpNet.local domain, create the following OUs: Accounting Admins Marketing Research-Dev Servers Support Workstations Sales Within the Sales OU, create the following OUs: SalesManagers...
-
Responsibility for risk management for a task is a shared responsibility between the task owner, PM and the Project Sponsor. True False
-
Question 15 of 50 What is one recommended approach to performing quality assurance (QA) on a financial model? Utilize cell comments to explain intentional model elements or calculations. sh) Change...
Study smarter with the SolutionInn App