TF-CR: Weighting Embeddings for Text Classification

Arkaitz Zubiaga
12/11/2020
cs.CL

Official code: azubiaga/tfcr (3 stars, Python, last commit 2020-06-02).

Abstract

Text classification, as the task consisting in assigning categories to textual instances, is a very common task in information science. Methods learning distributed representations of words, such as word embeddings, have become popular in recent years as the features to use for text classification tasks.

Show full abstract

Despite the increasing use of word embeddings for text classification, these are generally used in an unsupervised manner, i.e. information derived from class labels in the training data are not exploited. While word embeddings inherently capture the distributional characteristics of words, and contexts observed around them in a large dataset, they aren't optimised to consider the distributions of words across categories in the classification dataset at hand. To optimise text representations based on word embeddings by incorporating class distributions in the training data, we propose the use of weighting schemes that assign a weight to embeddings of each word based on its saliency in each class. To achieve this, we introduce a novel weighting scheme, Term Frequency-Category Ratio (TF-CR), which can weight high-frequency, category-exclusive words higher when computing word embeddings. Our experiments on 16 classification datasets show the effectiveness of TF-CR, leading to improved performance scores over existing weighting schemes, with a performance gap that increases as the size of the training data grows.

View on arXivView PDF

Code Implementations(1)

azubiaga/tfcrOfficial100%

TF-CR weighting scheme

30PythonJun 2, 20206 years ago

Similar Papers

Cite this paper

@article{zubiaga2020tfcr,
  title  = {TF-CR: Weighting Embeddings for Text Classification},
  author = {Arkaitz Zubiaga},
  year   = {2020},
  eprint = {2012.06606},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.06606}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.06606.svg)](https://codeofpaper.com/paper/2012.06606)

Discussion