Sinhala Text-to-SQL: A Hybrid Approach
Date
2025-12-20
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
Institute of Electrical and Electronics Engineers Inc.
Abstract
Natural Language Interface to Databases (NLIDB) enables users to access databases using their natural language. While significant research has been conducted on resource-rich languages such as English, other morphologically rich languages and low-resource languages such as Sinhala remain under-explored. Existing Sinhala NLIDB systems are mainly rule-based offering transparency but lacking flexibility with para-phrased or ambiguous input. This study presents a hybrid Sinhala NLIDB approach that is designed to bridge the gap by combining rule-based parsing with the statistical components such as Named Entity Recognition (NER) and Intent Classification. This system operates within a domain-restricted, single-table student schema supporting selection, aggregation, and data manipulation queries. Using 800 manually cleaned Sinhala query-SQL pairs, the system employs linguistic preprocessing that includes tokenization, stemming, POS tagging and lexical analysis to normalize input, followed by spaCy based custom NER model and TF-IDF based Intent Classification model to generate SQL queries. The hybrid design balances interpretability with adaptability and establishes a scalable framework for low-resource languages.
Description
Keywords
Hybrid NLIDB, Named Entity Recognition (NER), Natural Language Interface to Databases (NLIDB), Sinhala Natural Language Processing (NLP), Text-to-SQL Conversion
Citation
M. Refaideen and J. Krishara, "Sinhala Text-to-SQL: A Hybrid Approach," 2025 IEEE 17th International Conference on Computational Intelligence and Communication Networks (CICN), Goa, India, 2025, pp. 1533-1537, doi: 10.1109/CICN67655.2025.11367980.
