This application provides a training method for a classification model, a text classification method, and related equipment to address the problem of low classification flexibility in classification models. The method includes at least the following steps: based on preset multiple feature dimensions, extracting corresponding multidimensional text features, multidimensional associated
label features, and at least one multidimensional other
label feature for selected sample text, associated classification labels, and at least one other classification
label from among
multiple classification labels; determining the
negative sample similarity between each of the at least one other classification label feature and the multidimensional text
feature based on the hierarchical distance between each of the at least one other classification label and the associated classification label; and adjusting
model parameters based on the obtained
positive sample similarity and at least one
negative sample similarity between the multidimensional text feature and the multidimensional associated label feature. This enables a target classification model to have
feature extraction capabilities of different granularities, improving classification flexibility.