I have several lists of dicts showing a word and it's position in a sentence (start/end character). However, some words are repeated, but their position in the sentence varies, so I can't find a way to find the duplicates. How can I remove those words from my list of dictionaries?
[{'word': 'sun',
'start': 10,
'end': 14},
{'word': 'earth',
'start': 20,
'end': 26},
{'word': 'sun',
'start': 30,
'end': 34}]
so I was hoping to get
[{'word': 'sun',
'start': 10,
'end': 14},
{'word': 'earth',
'start': 20,
'end': 26}]
Thanks