Multi-layer semantic perception enhanced NL2SQL model and method
The invention designs a multilayer semantic perception enhanced NL2SQL model and method, and belongs to the technical field of natural language processing. In the stage of constructing the semantic enhanced mode link graph, on the basis of constructing the mode link graph by an existing similarity m...
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 designs a multilayer semantic perception enhanced NL2SQL model and method, and belongs to the technical field of natural language processing. In the stage of constructing the semantic enhanced mode link graph, on the basis of constructing the mode link graph by an existing similarity method, a hyperbolic space is organically fused, and a hyperbolic space and cosine similarity coupled mode link graph is constructed; a semantic enhanced mode link graph obtained in the stage is transmitted to a semantic relation embedded encoder module, the encoder module converts natural language query into an intermediate semantic vector, and in the process, similarity is used as a further enhanced relation to be embedded; and finally, a processing result of the encoder module is transmitted to a decoder module considering irrelevant table trimming, and then a final SQL statement is obtained. According to the method, many non-expert users can also use the natural language to query the data in the database, so tha |
---|