Mind Your Inflections! Improving NLP for Non-Standard Englishes with Base-Inflection Encoding

Samson Tan, Shafiq Joty, Lav R. Varshney, Min-Yen Kan
4/30/2020
cs.CLcs.AIcs.LG

Official code: salesforce/bite (11 stars, Python, BSD-3-Clause, last commit 2025-05-01).

Abstract

Inflectional variation is a common feature of World Englishes such as Colloquial Singapore English and African American Vernacular English. Although comprehension by human readers is usually unimpaired by non-standard inflections, current NLP systems are not yet robust.

Show full abstract

We propose Base-Inflection Encoding (BITE), a method to tokenize English text by reducing inflected words to their base forms before reinjecting the grammatical information as special symbols. Fine-tuning pretrained NLP models for downstream tasks using our encoding defends against inflectional adversaries while maintaining performance on clean data. Models using BITE generalize better to dialects with non-standard inflections without explicit training and translation models converge faster when trained with BITE. Finally, we show that our encoding improves the vocabulary efficiency of popular data-driven subword tokenizers. Since there has been no prior work on quantitatively evaluating vocabulary efficiency, we propose metrics to do so.

View on arXivView PDF

Code Implementations(1)

salesforce/biteOfficial100%
BSD-3-Clause

Code for "Mind Your Inflections! Improving NLP for Non-Standard Englishes with Base-Inflection Encoding" (EMNLP 2020).

110PythonSep 29, 20201 years agoBSD-3-Clause
nlppythontokenizer

Similar Papers

Cite this paper

@article{tan2020mind,
  title  = {Mind Your Inflections! Improving NLP for Non-Standard Englishes with Base-Inflection Encoding},
  author = {Samson Tan and Shafiq Joty and Lav R. Varshney and Min-Yen Kan},
  year   = {2020},
  eprint = {2004.14870},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.14870}
}

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/2004.14870.svg)](https://codeofpaper.com/paper/2004.14870)

Discussion