Abstract
Subword tokens in Indian languages inherently carry meaning, and isolating them can enhance NLP tasks, making sub-word segmentation a crucial process. Segmenting Sanskrit and other Indian languages into subtokens is not straightforward, as it may include sandhi, which may lead to changes in the word boundaries. We propose a new approach of utilizing a Character-level Transformer model for Sanskrit Word Segmentation (CharSS). We perform experiments on three benchmark datasets to compare the performance of our method against existing methods. On the UoH+SandhiKosh dataset, our method outperforms the current state-of-the-art system by an absolute gain of 6.72 points in split prediction accuracy. On the hackathon dataset, our method achieves a gain of 2.27 points over the current SOTA system in terms of perfect match metric. We also propose a use-case of Sanskrit-based segments for a linguistically informed translation of technical terms to lexically similar low-resource Indian languages. In two separate experimental settings for this task, we achieve an average improvement of 8.46 and 6.79 chrF++ scores, respectively.
Introduction
Translating specialized technical terms—such as those found in biotechnology or chemistry—from English into Indian languages presents significant challenges. The primary hurdles are data scarcity and linguistic complexity. Most Indian languages are morphologically rich and frequently utilize compound words derived from Sanskrit. These compounds often undergo sandhi, phonetic changes at word boundaries that obscure the original components and complicate standard AI deconstruction methods.
To address this, we introduce LEVOS, a framework that leverages the shared linguistic roots of Indian languages with Sanskrit to improve technical term translation. Central to this framework is CharSS (Character-level Sanskrit Segmentation), a model designed to accurately identify meaningful sub-units within complex Sanskrit-derived words.
Methods
CharSS: Character-Level Sanskrit Segmentation
CharSS is built upon ByT5, a byte-level variant of the T5 Transformer. By operating at the character level rather than the word level, CharSS can effectively navigate the "sandhi" problem. It identifies where one meaningful unit ends and another begins, even when phonetic joining has altered the spelling of the constituent roots.
The LEVOS Translation Pipeline
The LEVOS framework utilizes a multi-step process to translate English technical terms into target Indian languages:
- Hindi Pivoting: The system first identifies the Hindi translation, as Hindi is a relatively resource-rich language.
- Normalization: Hindi-specific suffixes are removed to isolate the core lemma.
- Sanskrit-based Segmentation: CharSS breaks the lemma into its constituent Sanskrit-based subwords.
- Augmented Translation: The original English term and the Sanskrit subword segments are fed into a large Neural Machine Translation model (NLLB-200). These segments serve as "linguistic hints," helping the model identify the correct equivalent in the target language.
Key Insights
- Sanskrit as a Linguistic Bridge: Technical and academic vocabularies across both Indo-Aryan and Dravidian language families share massive overlap with Sanskrit. Breaking words into these roots allows for effective knowledge transfer across languages.
- Compositionality: Technical terms are often compositional (e.g., "revaluation" mapping to specific Sanskrit roots). Providing these roots helps models disambiguate synonyms and find precise matches in low-resource target languages.
- Byte-Level Modeling: Because sandhi rules modify internal spellings, traditional tokenizers fail. Character-level modeling is essential for capturing fluid word boundaries.
Results
CharSS demonstrated superior performance on Sanskrit Word Segmentation benchmarks, achieving 97.2% Location Prediction Accuracy on the UoH+SandhiKosh dataset and outperforming previous state-of-the-art models like TransLIST.
In translation tasks, the addition of Sanskrit-based segments led to an average improvement of 8.46 chrF++ points across various domains. Notably, the model succeeded in "zero-shot" scenarios—where it was tested on languages like Marathi, Kannada, and Odia without prior specific training—consistently outperforming English-only baselines. This confirms that Sanskrit roots act as a universal "anchor" across diverse Indian languages.
Conclusion
The CharSS model and LEVOS framework demonstrate that leveraging historical linguistic structures can significantly boost the performance of modern NLP systems for low-resource languages. While the current pipeline relies on Hindi as an intermediate step, future work will explore generating Sanskrit-based segments directly from English to further generalize the approach across more diverse language communities.
Summary updated