The application belongs to the field of text classification, and discloses a hierarchical text classification method based on
label guided semantic interaction and multi-dimensional contrast learning, proposes a
label guided semantic interaction module, adopts a multi-head attention mechanism to model dynamic semantic interaction between a text and a
label, and then generates unique context-aware embedding representation for each label. At the sample level, a hierarchical hard
negative sample construction method is proposed, the parent-child relationship and sibling relationship in the label hierarchy are used to construct hard negative samples, and then the representation quality of long-
tail labels is improved. At the label level, a hierarchical distance-aware optimization method is proposed, the embedding distance between labels is adaptively adjusted based on the label hierarchy structure, and then the discrimination ability of label embedding is improved.