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: 63% (11 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?
-
Study the Report of independent registered public accounting firm in the TELUS annual report and answer the following questions about TELUSs internal controls and cash position: 1. What is the name...
-
Chemical vapor deposition (CVD) on an inclined susceptor: a case-study problem. An important application of convective mass transfer theory is in CVD processes employed to coat surfaces with thin...
-
Three different plans for financing a $10,000,000 corporation are under consideration by its organizers. Under each of the following plans, the securities will be issued at their par or face amount,...
-
SOUTH DAKOTA CORPORATION SOUTH DAKOTA CORPORATION uses a job - order costing system with normal costing. At the start of the period, the company had the following balances: Raw Materials inventory $...
-
Shafer Company has gathered data on its overhead activities and associated costs for the past 10 months. Theodore, a member of the controllers department, has convinced management that overhead costs...
-
What is an associative container? Give at least three examples.
-
Is list an associative container? Why not?
-
(a) Pr(A). (b) Pr{B). (c) Pr(A © B). (d) Pr(A ª B). (e) Pr(A): Pr AU B): Pr(An B)
-
What ethical considerations arise when utilizing predictive analytics and algorithmic decision-making systems, especially concerning potential biases that could affect accuracy in outcomes ?
-
Accountants are critical in policing and regulating white-collar crimes through various responsibilities and ethical standards. Often called upon by management, accountants investigate suspected...
-
Mr. Luis Prez, today entered into a lease contract with the company Soluciones a tu Alcance. Mr. Luis Prez's accountant on the commencement date will include the lease payments in the measurement of...
-
XYZ Company sells its merchandise on credit. It has noted the following: interest rates have increased, the global economy is on the brink of a recession, and legislative changes have been...
-
The first step in classifying information is to determine: 1. What level of classification is appropriate for the information? 2. If the information in question is official government material. 3....
-
The accounting for equity investments changes with the amount of shares held. Hughes Ltd has a total of 35,000 shares outstanding. Complete the chart below to show the accounting differences between...
-
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?
-
Popular furniture company, IKEA, has purchased forests in Romania as well as land in Alabama to assist with keeping up with the wood demand necessary to complete customer orders. This was one way...
-
How does China being Turkey's biggest import partner affect Turkey's exchange rate?
-
Assignment 4 In this assignment you are provided information on an experiment and you are required to investigate and interpret the output which is provided below. Problem: Consider the...
Study smarter with the SolutionInn App