The present application discloses a classification model training method, an apparatus, an electronic device, a computer-readable storage medium, and a
computer program product; the method is executed by the electronic device, and comprises: obtaining at least one piece of original sample content and labeled sample content, and obtaining a classification model, the labeled sample content carrying an expected
content type corresponding thereto, and the classification model comprising a
feature extraction module and a classification module; based on the expected
content type corresponding to the labeled sample content and at least one content
label corresponding to the labeled sample content, selecting from the original sample content at least one piece of target sample content, and constructing an expected
content type corresponding to the target sample content; using the classification model to classify the target sample content, obtaining an actual content type corresponding to the target sample content; based on the actual content type corresponding to the target sample content and the expected content type corresponding to the target sample content, adjusting, within the classification model, the parameters of the
feature extraction module and the classification module, obtaining an adjusted classification model; using the adjusted classification model to classify the labeled sample content, obtaining an actual content type corresponding to the labeled sample content; and according to the actual content type corresponding to the labeled sample content and the expected content type corresponding to the labeled sample content, updating the parameters of the classification module in the adjusted classification model, obtaining a target classification model, the target classification model being used for classifying content to be processed, so as to obtain the content type of the content to be processed.