Sanskrit Sandhi Splitting using seq2(seq)2

Rahul Aralikatte, Neelamadhav Gantayat, Naveen Panwar, Anush Sankaran, Senthil ManiEMNLP 2018

Authors: Rahul Aralikatte, Neelamadhav Gantayat, Naveen Panwar (IBM Research)

Abstract

Sanskrit Sandhi splitting is a complex task in Natural Language Processing due to phonetic transformations and the high degree of ambiguity in compound word formation. We present the Double Decoder RNN (DD-RNN), a novel architecture that decouples the problem into two distinct steps: identifying split locations and reconstructing the constituent words. Our model achieves 95% accuracy in split location prediction and 79.5% accuracy in word reconstruction, outperforming previous state-of-the-art rule-based systems by 20%.

Introduction: The Challenge of Sandhi

In Sanskrit, morphemes are combined into long compound words through a linguistic process called Sandhi. Splitting these compounds back into their original parts is a significant challenge for NLP. While Sanskrit grammar is deterministic, the primary issue is "over-generation"—a single compound can often be split in dozens of syntactically legal ways, but only one is semantically correct in context. Existing rule-based splitters (like JNU or INRIA) struggle because they apply rules blindly in a brute-force manner. This research moves beyond brute-force rules by using deep learning to learn the underlying patterns of word formation.

The Double Decoder RNN Architecture

The proposed Double Decoder RNN (DD-RNN), or $seq2(seq)^2$, consists of a bi-directional encoder and a dual-decoder setup designed to separate the "where" from the "how" of word splitting.

The DD-RNN architecture featuring a bi-directional encoder and two specialized decoders for location and character prediction.

The architecture includes:

  1. Bi-directional Encoder: A character-level LSTM that reads the compound word in both directions to capture full context.
  2. Global Attention Mechanism: This allows the decoders to "look back" at specific parts of the input word when making predictions.
  3. The "Double" Decoders:
    • Location Decoder: Predicts a binary vector indicating exactly where the split(s) occur in the character sequence.
  4. Character Decoder: Predicts the actual characters of the constituent words, effectively "undoing" the phonetic changes caused by Sandhi.

The model is trained in two phases. First, the Location Decoder is trained while the Character Decoder is frozen, forcing the attention mechanism to specialize in identifying boundaries. In the second phase, the Location Decoder is frozen, and the Character Decoder is trained to learn the specific linguistic rules of splitting.

Dataset and Methodology

A benchmark dataset of 71,747 words was created by combining and cleaning the UoH Corpus and SandhiKosh. These datasets were filtered against the Monier-Williams Sanskrit dictionary to ensure that both the compound words and their predicted splits were valid.

Key Results

The DD-RNN significantly outperformed both traditional rule-based tools and standard neural architectures. It achieved a 95.0% accuracy in split location prediction.

Precision vs. Word Length comparison between DD-RNN and existing rule-based systems (INRIA, UOH, JNU).

In word reconstruction, the model reached 79.5% accuracy, representing a 20% improvement over the best rule-based tool (INRIA, at 59.9%). It also outperformed previous neural approaches like B-RNN-A by nearly 15%. Furthermore, the architecture demonstrated versatility by producing competitive results on Chinese word segmentation tasks.

Conclusion and Future Work

The DD-RNN's success lies in its ability to specialize attention through its dual-decoder design. While highly effective for phonetic Sandhi, the model does not yet address Samasa (semantic compounding), which requires deeper semantic understanding. Future work will explore incorporating semantic information to tackle these more complex linguistic structures.

Summary updated

BibTeX
@inproceedings{aralikatte2018sanskrit,
  author = {Rahul Aralikatte and Neelamadhav Gantayat and Naveen Panwar and Anush Sankaran and Senthil Mani},
  title = {{Sanskrit Sandhi Splitting using seq2(seq)2}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
}
Figure