Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer each question separately using python! Problem 1: Convert 5-10 papers you have written into plain text. Write a function in Python that counts

Please answer each question separately using python!

Problem 1: Convert 5-10 papers you have written into plain text. Write a function in Python that counts the frequency (number of times it appears) of a specified word appearing in your text file.

In [1]:

# write your code here 
# you may add more cells as needed 

Problem 2: Write a function in Python that returns a list of the n most frequently appearing words of length at least l in a text file. Your function should have 3 parameters, n, l, and file_name.

In [2]:

# write your code here 
# you may add more cells as needed 

Problem 3: Modify your function above so that the last parameter is variable length so that you may give it file names for as many files as you like and it will return the n most popular words of at least length l in the entire corpus.

In [3]:

# write your code here 
# you may add more cells as needed 

Problem 4: Use the functions you just wrote to analyze your own papers both individually and as a corpus. What are the 20 most popular words over length 5? Do they vary much from paper to paper? Why do you think this is? Write about what you discover.

Write your answer in plain text here

In [ ]:

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago