A semantic parsing model training method and system
Patent Information
- Application Number
- CN202311600654.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-11-28
AI Technical Summary
[0004]为了克服现有的数据表预训练方法忽视了NL问题与数据库模式之间的交互,使得训练模型输出的结果准确性较低的问题,本发明提供了一种语义解析模型训练方法及系统
[0021] The beneficial effects of this invention are as follows: Sample vectors corresponding to words with pre-masked question tags are used to train a pre-defined retention network. During training, each sample vector undergoes feature extraction sequentially through multiple retention layers, and the predicted masking tags corresponding to the masked question tags in each sample vector are output. For each predicted masking tag, pattern dependency prediction is performed from the table patterns corresponding to all sample vectors, determining each predicted directed edge and its corresponding predicted label for each predicted masking tag. Based on the second loss value of each predicted directed edge and the third loss value of the corresponding predicted label, the predicted directed edge with the strongest pattern dependency for each predicted masking tag in the table pattern and its corresponding predicted label can be determined, thereby accurately finding the pre-defined word corresponding to each predicted masking tag in the table pattern. Furthermore, the first loss value, each second loss value, and the corresponding third loss value for each predicted masking tag can be used to determine whether the trained retention network meets the accuracy requirements. If it does not meet the requirements, the parameters in the retention network are adjusted until the trained retention network meets the accuracy requirements. Thus, the interaction between the predicted masking tags and the database table patterns is considered during model training, improving the accuracy of the output results of the trained model.