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.

Date of Patent:
Sep. 22, 2020

Filed:

Aug. 29, 2018
Applicant:

Baidu Online Network Technology (Beijing) Co., Ltd., Beijing, CN;

Inventors:

Yuan Xia, Beijing, CN;

Jingbo Zhou, Beijing, CN;

Weishan Dong, Beijing, CN;

Wei Fan, Beijing, CN;

Attorney:
Primary Examiner:
Int. Cl.
CPC ...
G06F 40/44 (2020.01); G06N 7/00 (2006.01); G06K 9/62 (2006.01); G06K 9/72 (2006.01); G06F 40/30 (2020.01); G06F 40/53 (2020.01); G06F 40/216 (2020.01);
U.S. Cl.
CPC ...
G06F 40/44 (2020.01); G06F 40/216 (2020.01); G06F 40/30 (2020.01); G06F 40/53 (2020.01); G06K 9/627 (2013.01); G06K 9/6264 (2013.01); G06K 9/6271 (2013.01); G06K 9/723 (2013.01); G06N 7/005 (2013.01);
Abstract

The present disclosure provides a method and apparatus for building a text classification model, and a text classification method and apparatus. The method of building a text classification model comprises: obtaining a training sample; obtaining a vector matrix corresponding to the text, after performing word segmentation for the text based on an entity dictionary; using the vector matrix corresponding to the text and a class of the text to train a first classification model and a second classification model respectively; during the training process, using a loss function of the first classification model and a loss function of the second classification model to obtain a loss function of the text classification model, and using the loss function of the text classification model to adjust parameters for the first classification model and the second classification model, to obtain the text classification model formed by the first classification model and the second classification model. The text classification method comprises: obtaining a to-be-classified text; obtaining a vector matrix corresponding to the text, after performing word segmentation for the text based on an entity dictionary; inputting the vector matrix into a text classification model, and obtaining a classification result of the text according to output of the text classification model. The text classification effect can be improved through the technical solutions of the present disclosure.


Find Patent Forward Citations

Loading…