Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!