Saved in:
Bibliographic Details
Main Authors: Lange, Kai-Robin, Rieger, Jonas, Jentsch, Carsten
Format: Preprint
Published: 2022
Subjects:
Online Access:https://arxiv.org/abs/2209.13023
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911020680740864
author Lange, Kai-Robin
Rieger, Jonas
Jentsch, Carsten
author_facet Lange, Kai-Robin
Rieger, Jonas
Jentsch, Carsten
contents Unsupervised text classification, with its most common form being sentiment analysis, used to be performed by counting words in a text that were stored in a lexicon, which assigns each word to one class or as a neutral word. In recent years, these lexicon-based methods fell out of favor and were replaced by computationally demanding fine-tuning techniques for encoder-only models such as BERT and zero-shot classification using decoder-only models such as GPT-4. In this paper, we propose an alternative approach: Lex2Sent, which provides improvement over classic lexicon methods but does not require any GPU or external hardware. To classify texts, we train embedding models to determine the distances between document embeddings and the embeddings of the parts of a suitable lexicon. We employ resampling, which results in a bagging effect, boosting the performance of the classification. We show that our model outperforms lexica and provides a basis for a high performing few-shot fine-tuning approach in the task of binary sentiment analysis.
format Preprint
id arxiv_https___arxiv_org_abs_2209_13023
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Lex2Sent: A bagging approach to unsupervised sentiment analysis
Lange, Kai-Robin
Rieger, Jonas
Jentsch, Carsten
Computation and Language
Unsupervised text classification, with its most common form being sentiment analysis, used to be performed by counting words in a text that were stored in a lexicon, which assigns each word to one class or as a neutral word. In recent years, these lexicon-based methods fell out of favor and were replaced by computationally demanding fine-tuning techniques for encoder-only models such as BERT and zero-shot classification using decoder-only models such as GPT-4. In this paper, we propose an alternative approach: Lex2Sent, which provides improvement over classic lexicon methods but does not require any GPU or external hardware. To classify texts, we train embedding models to determine the distances between document embeddings and the embeddings of the parts of a suitable lexicon. We employ resampling, which results in a bagging effect, boosting the performance of the classification. We show that our model outperforms lexica and provides a basis for a high performing few-shot fine-tuning approach in the task of binary sentiment analysis.
title Lex2Sent: A bagging approach to unsupervised sentiment analysis
topic Computation and Language
url https://arxiv.org/abs/2209.13023