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.
You should program in python and you should not use any libraries. Given a list: text=[ "Wait!!! that's still not all th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am