Method of detecting text, training method, apparatus, device, medium, and program product
Патент · US B2
Полный текст
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.