You should program in python and you should not use any libraries. Given a list: text=[ "Wait!!! that's still not all th

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

You should program in python and you should not use any libraries. Given a list: text=[ "Wait!!! that's still not all th

Post by answerhappygod »

You should program in python and you should not use any libraries.
Given a list:
text=[ "Wait!!! that's still not all that clear, were you not sure about me being sarcastic or that that's why x doesn't want to live with us...........", "Yeah he got in at 2 and was v apologetic. n had fallen out and she was actin like spoilt child and he got caught up in that. Till 2! But we won't go there! Not doing too badly cheers. You?", "What's up", "I am free today ,what about you?"]
Given a list:
words=['i','me','my','myself','we','our','ours','ourselves','you','your','yours', 'yourself','yourselves','he','him','his', 'himself','she','her','hers','herself', 'it','its','itself','they','them','their']
Using the Porterstemmer class which can be obtained from github.
Write a function that removes all data which appears in the words list ,all punctuations and perform stemming(Porter Stemming)on each data in text list. The function should return a list with the amended texts.
Note that you can modify the Porterstemmer class too for your answer.
Please attach screenshots to show the functionality too.
Thanks.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply