The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.
The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.
Patent No.:
Date of Patent:
Apr. 08, 2025
Filed:
Sep. 20, 2022
Tencent Technology (Shenzhen) Company Limited, Guangdong, CN;
Yao Qiu, Guangdong, CN;
Jinchao Zhang, Guangdong, CN;
Jie Zhou, Guangdong, CN;
Cheng Niu, Guangdong, CN;
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen, CN;
Abstract
This disclosure relates to a method and an apparatus for training a text classification model. The method may include determining a semantic representation of the training sample using the text classification model and determining a predicted classification result of the training sample based on the semantic representation. The method may further include generating an adversarial sample corresponding to the training sample based on the training sample and perturbation information and determining a semantic representation of the adversarial sample corresponding to the training sample using the text classification model. The method may further include determining a classification loss of the text classification model based on the predicted classification result, determining a contrastive loss of the text classification model based on the semantic representation and the semantic representation of the adversarial sample, and training the text classification model based on the classification loss and the contrastive loss.