Skip to main content
QUICK REVIEW

[Paper Review] Building a Word Segmenter for Sanskrit Overnight

Vikas Reddy, Amrith Krishna|arXiv (Cornell University)|Feb 8, 2018
Natural Language Processing TechniquesComputer Science17 references5 citations
TL;DR

This paper proposes a knowledge-lean, end-to-end sequence-to-sequence (seq2seq) deep learning model for Sanskrit word segmentation that directly maps sandhied (fused) text to segmented forms without linguistic preprocessing. Trained on parallel sandhied/unsandhied sentence pairs, the model achieves a 16.79% improvement over the state of the art, outperforming existing systems in precision and recall across varying sentence lengths while being trainable in under 12 hours on a single GPU.

ABSTRACT

There is abundance of digitised texts available in Sanskrit. However, the word segmentation task in such texts are challenging due to the issue of Sandhi. In Sandhi, words in a sentence often fuse together to form a single chunk of text, where the word delimiter vanishes and sounds at the word boundaries undergo transformations, which is also reflected in the written text. Here, we propose an approach that uses a deep sequence to sequence (seq2seq) model that takes only the sandhied string as the input and predicts the unsandhied string. The state of the art models are linguistically involved and have external dependencies for the lexical and morphological analysis of the input. Our model can be trained “overnight” and be used for production. In spite of the knowledge lean approach, our system preforms better than the current state of the art by 16.79 %.

Motivation & Objective

  • To address the challenge of word segmentation in Sanskrit, where sandhi causes word boundaries to fuse and phonetic transformations to occur, making traditional segmentation difficult.
  • To develop a scalable, low-resource solution that bypasses complex linguistic preprocessing and external lexical resources.
  • To enable fast, automated training and inference for word segmentation in Sanskrit, suitable for production use.
  • To improve upon existing state-of-the-art systems by leveraging a data-centric, end-to-end deep learning approach.
  • To demonstrate that a knowledge-lean model can outperform linguistically informed systems in Sanskrit word segmentation.

Proposed method

  • A sequence-to-sequence (seq2seq) model with bidirectional LSTM encoders and attention mechanisms is used to map sandhied input sequences to unsandhied output sequences.
  • The model is trained on parallel monolingual sentence pairs of sandhied and segmented Sanskrit text, maximizing the conditional probability of the correct segmentation.
  • SentencePiece is employed as an unsupervised subword tokenizer to learn a new, optimized vocabulary from the training data, improving model generalization.
  • The decoder generates output tokens from its learned vocabulary, without relying on predefined word boundaries or morphological tags.
  • Training is performed on a Titan X GPU with 12GB memory, achieving convergence in under 12 hours for the best-performing model.
  • The system uses an encoder-decoder architecture with attention to improve alignment between input and output sequences, especially for longer sentences.

Experimental results

Research questions

  • RQ1Can a purely data-driven, end-to-end deep learning model outperform linguistically informed systems in Sanskrit word segmentation?
  • RQ2To what extent can a knowledge-lean approach achieve high performance in low-resource, morphologically rich languages like Sanskrit?
  • RQ3How does attention mechanism improve segmentation accuracy in long or complex sandhied strings?
  • RQ4Can a model trained in under 12 hours achieve state-of-the-art performance without external linguistic resources?
  • RQ5Does a system trained on raw text pairs alone generalize well across sentences of varying lengths and complexity?

Key findings

  • The proposed seq2seq model with attention (attnSegSeq2Seq) achieves a 16.79% relative improvement in segmentation performance over the current state of the art.
  • The model outperforms existing systems in both precision and recall, especially for sentences with six or fewer words.
  • The best-performing model completes training in 11 hours and 40 minutes over 80 epochs on a Titan X GPU with 12GB memory.
  • The system achieves robust performance across sentence lengths, as shown by consistent results on test sets grouped by word frequency and count.
  • The model's performance is stable and generalizable, even without access to morphological or lexical resources.
  • The approach demonstrates that a knowledge-lean, data-centric method can surpass systems requiring extensive linguistic preprocessing and external dependencies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.