Method and device for generating SQL (Structured Query Language) statement from natural language statement
The invention discloses a method and device for generating SQL statements from natural language statements, and the method comprises the steps: building a language processing model based on data enhancement, and the language processing model comprises a data enhancement module and a task training mo...
Gespeichert in:
Hauptverfasser: | , , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and device for generating SQL statements from natural language statements, and the method comprises the steps: building a language processing model based on data enhancement, and the language processing model comprises a data enhancement module and a task training module; obtaining first training data and inputting the first training data into a data enhancement module for data syntax analysis, information removal and data sampling to obtain second training data; merging the first training data and the second training data to generate training data, and sending the training data to a task training module for training until the language processing model converges; establishing a language conversion model, and embedding the language conversion model into a language processing model; the language conversion model receives a to-be-converted natural language statement, and decomposes the to-be-converted natural language statement through the language conversion model to obtain a si |
---|