Few-time text classification method under meta-learning framework based on measurement

A text classification and meta-learning technology, which is applied in text database clustering/classification, text database query, unstructured text data retrieval, etc., can solve the problems of indistinguishable and ignoring prototypes

Active Publication Date: 2020-12-01
NAT UNIV OF DEFENSE TECH
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And if the supporting instances of different classes are close to each other in the embedding space, the generated prototypes are indistinguishable
Nonetheless, existing research on few-shot text classification largely ignores this cross-category knowledge

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Few-time text classification method under meta-learning framework based on measurement
  • Few-time text classification method under meta-learning framework based on measurement
  • Few-time text classification method under meta-learning framework based on measurement

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] The present invention will be further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any transformation or replacement based on the teaching of the present invention belongs to the protection scope of the present invention.

[0067] Such as figure 1 As shown, the few-shot text classification method based on the metric-based meta-learning framework includes the following steps:

[0068] Step 1, in the input layer, input support instance and query instance;

[0069] Step 2, in the word embedding layer, by looking up the pre-trained word embedding table, the discrete words of the support instance and the query instance are mapped into the vector space;

[0070] Step 3, at the contextual encoder layer, optimize the local representation of each word in the sentence of the supporting instance and the query instance by considering the context;

[0071] Step 4, in the bidirectional attention layer, the query...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a few-time text classification method under a meta-learning framework based on measurement, which comprises the following steps: in an input layer, inputting a support instanceand a query instance; in a word embedding layer, mapping discrete words into a vector space by searching a pre-trained word embedding table; optimizing, at a context encoder layer, a local representation of each word in sentences supporting instances and query instances by considering contexts; in the bidirectional attention layer, firstly coupling a query instance with each support instance, andthen generating matching information between the query instance and each support instance; in the model layer, forming feature vectors for the query instances and the support instances, and calculating weights of the support instances by a given query instance-level attention module to dynamically generate a prototype; at an output layer, providing prediction for query instances by measuring similarity scores between queries and prototypes. According to the method, a few-time text classification framework using a bidirectional attention mechanism and cross-class knowledge is provided, so thatthe few-time text classification method is more effective.

Description

technical field [0001] The invention belongs to the technical field of natural language processing in artificial intelligence, and relates to a few-shot text classification method under a measure-based meta-learning framework. Background technique [0002] Text classification is a key task in natural language processing, which serves a range of downstream applications such as information retrieval and opinion mining. The task is defined as selecting an appropriate label for a given unlabeled text from a set of candidate classes. Recent developments in deep learning have aroused interest in text classification models supervised by neural networks. In fact, these methods require a large amount of labeled training data. However, acquiring such high-quality data is labor-intensive, and the manual labeling process is time-consuming. [0003] To alleviate this problem, "few-shot learning" (FSL) is proposed to train classifiers for new categories that require only a few labeled ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/35G06F16/33G06N3/04
CPCG06F16/35G06F16/3347G06N3/045
Inventor 赵翔庞宁谭跃进姜江谭真肖卫东葛斌
Owner NAT UNIV OF DEFENSE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products