A Shallow Parsing Approach to Natural Language Queries of a Database

HTML  XML Download Download as PDF (Size: 1031KB)  PP. 365-382  
DOI: 10.4236/jsea.2019.129022    620 Downloads   1,931 Views  

ABSTRACT

The performance and reliability of converting natural language into structured query language can be problematic in handling nuances that are prevalent in natural language. Relational databases are not designed to understand language nuance, therefore the question why we must handle nuance has to be asked. This paper is looking at an alternative solution for the conversion of a Natural Language Query into a Structured Query Language (SQL) capable of being used to search a relational database. The process uses the natural language concept, Part of Speech to identify words that can be used to identify database tables and table columns. The use of Open NLP based grammar files, as well as additional configuration files, assist in the translation from natural language to query language. Having identified which tables and which columns contain the pertinent data the next step is to create the SQL statement.

Share and Cite:

Skeggs, R. and Lauria, S. (2019) A Shallow Parsing Approach to Natural Language Queries of a Database. Journal of Software Engineering and Applications, 12, 365-382. doi: 10.4236/jsea.2019.129022.

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.