NLP301_-_PE2_-_SU_2023_663.webp
C

NLP301_-_PE2_-_SU_2023_663.webp

  • Media owner cute_cat
  • Ngày thêm
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
Chưa có bình luận nào.

Thông tin

Category
NLP301c
Thêm bởi
cute_cat
Ngày thêm
Lượt xem
2,233
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
NLP301_-_PE2_-_SU_2023_663.webp
File size
52.1 KB
Dimensions
1552px x 660px

Share this media

Back
Bên trên Bottom