o Create a folder with name as below format:
Your name your roll number NLP301e
Example: your name is Nguyễn Thế Hùng and your roll number is SE09234 =>
HungNT SE09234 NLP301c
o Create separate file name as Q1.py, Q2.py, Q3.py (HungNT_SE09234_NLP301e)and put all files to the folder
Submit the folder to server.
✓ If the folder is submitted incorrectly, it will get ZERO
Question 1: (2 marks)
Define a function percent(word, text) that calculates how often a given word occurs in a text and expresses the result as a percentage.
Question 2: (2 marks)
Write a Python NLTK program to split all punctuation into separate tokens.
Sample Output:
Original string:
Reset your password if you just can't remember your old one.
+ 100%
Zoom
Close