{'fraction_non_alphanumeric': 0.033401499659168374, 'fraction_numerical': 0.0, 'mean_word_length': 4.94331983805668, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Automatic Text-to-SQL Machine Translation for Scholarly Publication Database Search

A Database Management System (DBMS) is typically accessed using a Structured Query Language (SQL). Here, we investigate a structured method to parse questions in natural language. Our work is a text-to-SQL translator for scholarly publication database search. The work includes implementation of a phrase-based information retrieval and a Text-to-SQL translator. The information retrieval is emphasizes on the recognition of Named Entity (NE), Named Entity Attribute (NEA), Question Intention (QI) and Focus Recognition. NE is a database entry and NEA is the attribute or column name of the corresponding NE entry. QI is the type of a question. The proposed translator is a domain-specific Text-to-SQL translator. Therefore the scope for named entities is limited to the database values. Thus, we use the database itself as a knowledge-base. We derive rules comprised of phrases, predicates and substitution strings. The phrases are regular expressions and the predicates are stop-words. The usual practice of natural language processing removes stop words. Instead, we make use of many stop words as predicates, thus helping the recognition of NE, NEA and QI. The text cosine similarity measure is used to validate NE, NEA and QI. The rule-based approach is computationally effective and does not require any exhaustive training on the dataset, while providing precise translation.