ashishsalunkhe / Aspect-based-Financial-Sentiment-Analysis

Aspect based sentiment analysis aims to detect an aspect (i.e. features) in a given text and then perform sentiment analysis of the text with respect to that aspect. This project aims to give a solution for the FiQA 2018 challenge subtask 1.
10 stars 3 forks source link

How to process data when a sentence has multiple targets #4

Open shisi-cc opened 1 year ago

shisi-cc commented 1 year ago

Hi! Because there are only json files in the repository, there is no csv file in the code. How to process data when a sentence has multiple targets? Can you provide the preprocess code?

For example "1443": { "sentence": "Saudi Aramco, Shell plan to break up Motiva, divide up assets", "info": [ { "snippets": "['Shell plan to break up Motiva, divide up assets']", "target": "Saudi Aramco", "sentiment_score": "-0.142", "aspects": "['Corporate/Strategy/Reorganization']" }, { "snippets": "['plan to break up Motiva, divide up assets']", "target": "Shell", "sentiment_score": "-0.102", "aspects": "['Corporate/Strategy/Reorganization']" } ] },