I have a dataset containing list of sentences that have both proper nouns and common nouns in them. Example -
- Google is a website
- the universe is expanding constantly
- I wish I had bagels for bReakfasT
- the GUITAR sounded a bit off-key
- The rumors of Moira Rose's death are greatly exaggerated online
- Mahatma Gandhi was a national treasure
- i strongly believe that beyonce is overrated
The casing of the dataset can also be mixed.
I want to extract all the proper nouns AND the corresponding sentences where they appear in two separate columns -
Is there any way to do this in Python? I am quite new to concepts of NLP and Python overall. Thanks!