Saved in:
Bibliographic Details
Main Author: Rezapour, Mahdi
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2403.14050
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911969432305664
author Rezapour, Mahdi
author_facet Rezapour, Mahdi
contents Sentiment analysis is a natural language processing task that aims to identify and extract the emotional aspects of a text. However, many existing sentiment analysis methods primarily classify the overall polarity of a text, overlooking the specific phrases that convey sentiment. In this paper, we applied an approach to sentiment analysis based on a question-answering framework. Our approach leverages the power of Bidirectional Autoregressive Transformer (BART), a pre-trained sequence-to-sequence model, to extract a phrase from a given text that amplifies a given sentiment polarity. We create a natural language question that identifies the specific emotion to extract and then guide BART to pay attention to the relevant emotional cues in the text. We use a classifier within BART to predict the start and end positions of the answer span within the text, which helps to identify the precise boundaries of the extracted emotion phrase. Our approach offers several advantages over most sentiment analysis studies, including capturing the complete context and meaning of the text and extracting precise token spans that highlight the intended sentiment. We achieved an end loss of 87% and Jaccard score of 0.61.
format Preprint
id arxiv_https___arxiv_org_abs_2403_14050
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Extracting Emotion Phrases from Tweets using BART
Rezapour, Mahdi
Computation and Language
Machine Learning
Applications
Sentiment analysis is a natural language processing task that aims to identify and extract the emotional aspects of a text. However, many existing sentiment analysis methods primarily classify the overall polarity of a text, overlooking the specific phrases that convey sentiment. In this paper, we applied an approach to sentiment analysis based on a question-answering framework. Our approach leverages the power of Bidirectional Autoregressive Transformer (BART), a pre-trained sequence-to-sequence model, to extract a phrase from a given text that amplifies a given sentiment polarity. We create a natural language question that identifies the specific emotion to extract and then guide BART to pay attention to the relevant emotional cues in the text. We use a classifier within BART to predict the start and end positions of the answer span within the text, which helps to identify the precise boundaries of the extracted emotion phrase. Our approach offers several advantages over most sentiment analysis studies, including capturing the complete context and meaning of the text and extracting precise token spans that highlight the intended sentiment. We achieved an end loss of 87% and Jaccard score of 0.61.
title Extracting Emotion Phrases from Tweets using BART
topic Computation and Language
Machine Learning
Applications
url https://arxiv.org/abs/2403.14050