NLP301c_-_PE2_-_SP_2024_1973.webp
N

NLP301c_-_PE2_-_SP_2024_1973.webp

Question 1: (2 marks)
Write code to convert nationality adjectives like Canadian and Australian to the corresponding nouns Canada and Australia
Example:
Input:['Argentinian', 'Australian', 'Canadian']
Output:['Argentina', 'Australia', 'Canada']
Question 2: (2 marks)
Write a program to extract and print all the nouns present in the below text.Hint: using spacy package
Example:
Input:"James works at Microsoft. She lives in Manchester and likes to play the flute."
Output:James
Zoom
>
+ 100%
Close
<
Chưa có bình luận nào.

Thông tin

Category
NLP301c
Thêm bởi
Ngọc Bảo2
Ngày thêm
Lượt xem
1,859
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
NLP301c_-_PE2_-_SP_2024_1973.webp
File size
113.3 KB
Dimensions
957px x 796px

Share this media

Back
Bên trên Bottom