Method of detecting text, training method, apparatus, device, medium, and program product
AssigneeBaidu Online Network Technology (Beijing) Co., Ltd.
InventorsDongsheng Zhu, Hongyu Li, Qian Lei, Guoliang Xing
Life of this patent
Estimating the term…
Loading patent…
AssigneeBaidu Online Network Technology (Beijing) Co., Ltd.
InventorsDongsheng Zhu, Hongyu Li, Qian Lei, Guoliang Xing
Estimating the term…
A method of detecting a text, a training method, a device, and a medium are provided, which relate to a field of artificial intelligence, in particular to large language models, deep learning, text processing, etc. The training method includes: when a confidence level of a first sample detection result output by a first model is less than a threshold, processing a sample text pair and a sample label by using an initial model to obtain a second sample detection result, the second sample detection result includes a discrimination result configured to characterize a response matching degree between a sample answer text and a sample query text included in the sample text pair, and a discrimination reason; obtaining a first loss value according to the second sample detection result and the sample label; and adjusting a model parameter of the initial model based on the first loss value.
A method of training a model, the method comprising:
Dependencies are inferred from the claim text.