Small sample text classification method and system based on semi-supervised learning
A semi-supervised learning and text classification technology, applied in the field of semi-supervised text classification, can solve the problems of high training cost, inability to train, time-consuming and labor-intensive, etc., and achieve the effect of flexible application and saving the cost of manual marking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] A few-shot text classification method for semi-supervised learning, such as figure 1 shown, including steps:
[0046] S1. Obtain the text to be classified;
[0047] S2. Input the text to be classified into the pre-trained lookup table, and map the text to be classified into a text representation through the lookup table;
[0048] S3. Input the text representation into the multi-layer perceptron to obtain the text label, and use the text label as the text classification result to complete the classification of the small sample text.
[0049] In this embodiment, a lookup table is used to obtain the text representation of the text to be classified, and then the multilayer perceptron obtains the text label as the text classification result according to the text representation. The present invention is used for text classification of text data with a small amount of data and incomplete data labels. It is necessary to label a large amount of text data, save the cost of manu...
Embodiment 2
[0051] A few-shot text classification method for semi-supervised learning, such as figure 1 shown, including steps:
[0052] S1. Obtain the text to be classified;
[0053]S2. Input the text to be classified into the pre-trained lookup table, and map the text to be classified into a text representation through the lookup table;
[0054] S3. Input the text representation into the multi-layer perceptron to obtain the text label, and use the text label as the text classification result to complete the classification of the small sample text.
[0055] The look-up table described in step S2 is a look-up table for training, which is obtained by training the initial look-up table. The method for obtaining the look-up table for training is: constructing an initial look-up table, and performing an initial look-up table on the initial look-up table through a variational autoencoder. Train, save the lookup table after training.
Embodiment 3
[0079] A few-shot text classification system with semi-supervised learning, such as image 3 As shown, including: classification text acquisition module, lookup table execution module, multi-layer perceptron execution module;
[0080] The classification text acquisition module obtains the text to be classified, and inputs the text to be classified into the pre-trained lookup table execution module; the lookup table execution module uses the lookup table to map the text to be classified into a text representation, and inputs the text representation into the multi-layer perceptron for execution Module, the multi-layer perceptron execution module uses the multi-layer perceptron to obtain text labels through text representation, and uses the text labels as text classification results to complete the classification of small sample texts.
[0081] It also includes a lookup table generation module, which constructs an initial lookup table, trains the initial lookup table through a va...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


