NLP - Sentiment Analysis Advanced
You have a list of reviews with aspects and sentiments:
How would you create a dictionary that keeps the last sentiment for each aspect?
reviews = [
{"aspect": "battery", "sentiment": "positive"},
{"aspect": "screen", "sentiment": "negative"},
{"aspect": "battery", "sentiment": "neutral"}
]How would you create a dictionary that keeps the last sentiment for each aspect?
