Patent attributes
This application relates to a text classification method. The method includes obtaining, by a computer device, a to-be-classified text, and calculating an original text vector corresponding to the text; determining, by the computer device according to the original text vector, an input text vector corresponding to each channel of a trained text classification model; inputting, by the computer device, the input text vector corresponding to each channel into a convolution layer of the corresponding channel of the trained text classification model, the trained text classification model comprising a plurality of channels, each channel being corresponding to a sub-text classification model, and the trained text classification model being used for determining a classification result according to a sub-classification parameter outputted by each sub-text classification model; and obtaining, by the computer device, a classification result outputted by the trained text classification model, and classifying the text according to the classification result.