Text classification method and device, electronic equipment and storage medium

The invention provides a text classification method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining a to-be-processed text; inputting the to-be-processed text into a pre-trained text classification model, and obtaining prediction probability values...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YUE YUQUAN, CHEN MENG, ZHAO YUMING, FENG MINGCHAO, WANG ZEXUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a text classification method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining a to-be-processed text; inputting the to-be-processed text into a pre-trained text classification model, and obtaining prediction probability values of the to-be-processed text in multiple categories; selecting the maximum prediction probability value in the prediction probability values, and determining the category corresponding to the maximum prediction probability value as the category of the to-be-processed text; wherein the text classification model is obtained by training according to triple sample data, and the loss function value of the text classification model is determined according to a cross entropy loss value and a relative loss value. According to the text classification method provided by the invention, the robustness of the NLP system can be improved, the accuracy of the voice intention is improved, and the user experience is improved. 本公开提供一种