The present application belongs to the field of
artificial intelligence, and relates to a text classification method, device,
computer equipment and storage medium, the method comprising: segmenting a training text to obtain a plurality of semantic blocks; inputting each semantic block into an initial classification
value assessment model to obtain a classification value
score; screening the semantic blocks according to the classification value
score to obtain a semantic block
queue, and then inputting the initial text classification model to obtain a classification prediction result; determining the semantic block
label of each semantic block in the semantic block
queue; calculating a first loss based on the semantic block
label and the classification value
score, and calculating a second loss based on the classification prediction result and the classification
label of the training text; adjusting the initial classification
value assessment model according to the first loss to obtain a classification
value assessment model, and adjusting the initial text classification model according to the second loss to obtain a text classification model;
processing the text to be classified through the classification value assessment model and the text classification model to obtain a text
classification result. The present application improves the accuracy of text classification.