Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1)Write a program to read all the txt files and save the sentences in all the files into one CSV file with two columns, the

1)Write a program to read all the txt files and save the sentences in all the files into one CSV file with two columns, the first column is sentence id (txt file name+sentence line number), the second column is the sentence text content.

2)Remove all the punctuations from the sentences, save the processed sentences into a new column in the same CSV file

3)Ask the user to enter a word, return all the sentences that include this word, three kinds of information should be returned: sentence id, sentence text content, the count that user input word appears in the sentence.

please answer all the questions

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

5. A review of the key behaviors is included.

Answered: 1 week ago