Invention Application
- Patent Title: METHOD AND APPARATUS FOR TRAINING MODEL, AND METHOD AND APPARATUS FOR PREDICTING TEXT
-
Application No.: US17646851Application Date: 2022-01-03
-
Publication No.: US20220129768A1Publication Date: 2022-04-28
- Inventor: Dongling XIAO , Yukun LI , Han ZHANG , Yu SUN , Hao TIAN , Hua WU , Haifeng WANG
- Applicant: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicant Address: CN Beijing
- Assignee: Beijing Baidu Netcom Science Technology Co., Ltd.
- Current Assignee: Beijing Baidu Netcom Science Technology Co., Ltd.
- Current Assignee Address: CN Beijing
- Priority: CN202110738146.6 20210630
- Main IPC: G06N5/02
- IPC: G06N5/02

Abstract:
The present disclosure provides a method and apparatus for training a model. The method can include: acquiring at least one paragraph text, each paragraph text comprising a plurality of fine-grained samples; processing a fine-grained sample in the each paragraph text to obtain a coarse-grained sample; annotating the coarse-grained sample in the each paragraph text and obscuring one coarse-grained sample using a mask of one fine-grained sample to obtain a training sample set, wherein the training sample set comprises a plurality of annotated texts, and each annotated text comprises at least one of a fine-grained sample or an annotated coarse-grained sample; and training a fine-grained model using the training sample set to obtain a trained fine-grained model, the fine-grained model being used to learn content of a previous fine grain size and predict content of an adjacent coarse grain size.
Information query