A Little Linguistics Goes a Long Way: Unsupervised Segmentation with Limited Language Specific Guidance

Alexander Erdmann, Salam Khalifa, Mai Oudah, Nizar Habash, Houda Bouamor2019

Abstract

We present de-lexical segmentation, a linguistically motivated alternative to greedy or other unsupervised methods, requiring language specific knowledge, but no direct supervision. Our technique involves creating a small grammar of closed-class affixes which can be written in a few hours. The grammar over generates analyses for word forms attested in a raw corpus which are disambiguated based on features of the linguistic base proposed for each form. Extending the grammar to cover orthographic, morphosyntactic or lexical variation is simple, making it an ideal solution for challenging corpora with noisy, dialect-inconsistent, or otherwise non-standard content. We demonstrate the utility of de-lexical segmentation on several dialects of Arabic. We consistently outperform competitive unsupervised baselines and approach the performance of state-of-the-art supervised models trained on large amounts of data, providing evidence for the value of linguistic input during preprocessing.

Introduction

In morphologically rich languages like Arabic, a single word often encapsulates complex grammatical information. For instance, a single token can represent an entire phrase like "and-he-will-write-it." Effective natural language processing (NLP) for such languages requires accurate segmentation—the process of breaking words into constituent morphemes.

Existing approaches typically fall into two categories: high-accuracy supervised models that require extensive manually annotated data, and language-agnostic unsupervised models (like Byte Pair Encoding or Morfessor) that often produce linguistically incoherent splits. This paper introduces De-lexical Segmentation (DESEG), a hybrid approach that bridges this gap by utilizing a small, manually curated grammar of closed-class affixes to guide unsupervised statistical learning.

Methodology: De-lexical Segmentation

DESEG relies on a "de-lexical" grammar, which focuses exclusively on closed-class affixes (clitics and inflectional markers) rather than a full lexicon of root words.

Example of the closed-class affix grammar used for de-lexical segmentation.

The DESEG pipeline consists of three primary stages:

  1. Grammar Specification: A linguist defines a Context-Free Grammar (CFG) of common prefixes and suffixes. This task is lightweight, typically requiring only a few hours of effort.
  2. Over-generation: The system applies the grammar to a raw corpus, identifying all possible valid segmentations for each word form.
  3. Unsupervised Disambiguation via Base Fertility: To select the optimal split, the system employs the "Base Fertility" principle. This assumes that a legitimate linguistic base (root) will appear frequently across the corpus in combination with various affix sets. Splits that result in "bases" that only appear in a single context are penalized as likely errors.

Experimental Setup

The authors evaluated DESEG using the CORPUS6 dataset, a subset of the MADAR-BTEC corpus covering five Arabic dialects (Cairo, Beirut, Doha, Rabat, and Tunis) and Modern Standard Arabic (MSA). Additionally, raw monolingual data comprising approximately 10 million words per dialect was used to train the statistical components.

Results and Discussion

DESEG consistently outperformed standard unsupervised baselines in terms of both intrinsic and extrinsic metrics.

Comparison of OOV rates and perplexity across different segmentation methods.

As shown in the results, DESEG variants (such as DESEG_g2) achieved significantly lower perplexity and competitive Out-of-Vocabulary (OOV) rates compared to BPE and Morfessor. Notably, the performance of DESEG approached that of state-of-the-art supervised segmenters like MADAMIRA and FARASA, despite the latter being trained on vastly larger labeled datasets.

Key findings include:

  • The Fertility Principle: The productivity of a base serves as a robust signal for correct segmentation.
  • Linguistic Constraints: Providing minimal linguistic guidance effectively prunes the search space, preventing the nonsensical splits common in purely statistical methods.
  • Dialectal Portability: The shared grammatical structures across Arabic dialects allow for high rule reuse; nearly half of the defined affixes were common to all studied dialects.

Conclusion and Future Work

De-lexical segmentation offers a cost-effective solution for processing low-resource dialects. While highly effective, the current model occasionally over-segments words and lacks sentence-level context. Future research will focus on incorporating local context and addressing non-concatenative morphological changes, such as "broken plurals," which are prevalent in Semitic languages.

Summary updated

BibTeX
@misc{erdmann2019little,
  author = {Alexander Erdmann and Salam Khalifa and Mai Oudah and Nizar Habash and Houda Bouamor},
  title = {{A Little Linguistics Goes a Long Way: Unsupervised Segmentation with Limited Language Specific Guidance}},
  year = {2019},
  doi = {10.18653/v1/w19-4214},
}
Figure