One-shot learning for text-to-SQL
Abstract:
Provided is a system and method for detecting a SQL command from a natural language input using neural networks which works even when the SQL command has not been seen before by the neural networks. In one example, the method may include storing a candidate set comprising structured query language (SQL) templates paired with respective text values, reducing, via a first predictive network, the candidate set into a subset of candidates based on a natural language input and the text values included in the candidate set, selecting, via a second predictive network, an SQL template from among the subset of candidates based on the natural language input and text values included in the subset of candidates, and determining a SQL command that corresponds to the natural language input based on the selected SQL template and content from the natural language input.
Public/Granted literature
Information query
Patent Agency Ranking
0/0