Financial text classification method and device based on prompt template and electronic equipment

A technology for text classification and electronic equipment, applied in the field of data processing, can solve the problems of poor data classification effect and a large amount of prior knowledge, and achieve the effect of reducing the amount of annotation, improving classification efficiency, and reducing large-scale data dependence.

Pending Publication Date: 2022-07-29
北京快确信息科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] In view of the above deficiencies in the prior art, the present invention provides a financial text classification method, device and electronic equipment based on prompt templates, aiming to solve the financial text classification method in the prior art, which requires a large amount of prior knowledge In rare cases, the problem of poor data classification

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
  • Financial text classification method and device based on prompt template and electronic equipment
  • Financial text classification method and device based on prompt template and electronic equipment
  • Financial text classification method and device based on prompt template and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the objectives, technical solutions and effects of the present invention clearer and clearer, the present invention will be described in further detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0050] The embodiments of the present invention are described below with reference to the accompanying drawings.

[0051] In view of the above problems, the embodiments of the present invention provide a financial text classification method based on prompt templates. Please refer to figure 1 , figure 1 This is a flow chart of a preferred embodiment of a method for classifying financial texts based on prompt templates of the present invention. like figure 1 shown, it includes:

[0052] Step S100, obtaining the original financial corpus, and converting the financial corpus into an MLM label based on a prompt template;

[0053] Step S200...

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 financial text classification method and device based on a prompt template and electronic equipment, and the method comprises the steps: obtaining an original financial corpus, and converting the financial corpus into an MLM tag based on the prompt template; converting the MLM tag to generate an MLM tag training sample; constructing a pre-training model, inputting the MLM label training sample into the pre-training model, training the pre-training model, and generating a financial text classification model; and inputting financial text data to be identified into the financial text classification model to obtain a financial text classification result. According to the embodiment of the invention, the classification model can still achieve the generalization ability similar to that of a pre-training model under the condition that only a small amount of labeled data exists; the labeling amount is greatly reduced, and large-scale data dependence is reduced; and the financial text classification efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of data processing, and in particular, to a method, device and electronic device for classifying financial text based on a prompt template. Background technique [0002] In the financial field, it is necessary to classify and judge various texts. For example, inquiries about bond issuance prices, asking prices, etc., this type of text data is relatively messy and involves commercial secrets in the usual modeling process, so the amount of data collection is often insufficient, which brings many difficulties to classification modeling. The usual solution is to use data augmentation, but the difficulty of few-shot learning is still difficult to solve. [0003] Texts in the financial field, or the style of sample texts, are usually not easy to collect due to the confidentiality characteristics of the industry itself. General generalization methods, such as greetings, adjustment of affixes before and aft...

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/35G06N3/04G06N3/08
CPCG06F16/35G06N3/08G06N3/044
Inventor 景泳霖周靖宇
Owner 北京快确信息科技有限公司
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