Named entity identification method and device for credit card data

Through the pre-trained named entity recognition model and BERT/CRF structure layer, combined with Dropout technology, named entities in credit card data are identified, solving the problem of low analysis efficiency caused by the large amount of credit card data, and achieving more efficient data analysis and positioning. .

CN118569259APending Publication Date: 2024-08-30INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410744729.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The amount of credit card data in banking business is large, and there is a lack of effective methods for rapid identification of named entities, resulting in low efficiency of data analysis.

Method used

Using the pre-trained named entity recognition model, combined with the BERT and CRF structural layers, multiple machine learning models are trained through the regularized random deactivation method Dropout, and the sub-model with the smallest error is selected as the final model to perform named entity recognition of credit card data. And display the recognized naming tag according to the default display method.

Benefits of technology

Improved the efficiency of named entity recognition of credit card data, helping to improve the accuracy and efficiency of data analysis and positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569259A
    Figure CN118569259A
Patent Text Reader

Abstract

The invention discloses a named entity identification method and device for credit card data, and relates to the technical field of artificial intelligence, and the method comprises the steps: obtaining a credit card data set which needs to be subjected to named entity identification; inputting the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by training a machine learning model in advance according to a historical credit card data set and a named tag of the historical credit card data set; and displaying the word corresponding to each naming tag in the credit card data set according to a preset display mode. According to the invention, the credit card data can be subjected to named entity identification, so that the data analysis and positioning efficiency can be improved according to the identified named entity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for identifying named entities of credit card data. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] There is a large amount of data information in the credit card scenario of banking business. When optimizing the credit card business, this data information needs to be analyzed and judged. However, due to the huge amount of information, there is a lack of effective named entities to quickly identify keywords in the data information to assist in data analysis. Summary of the invention

[0004] An embodiment of the present invention provides a method for named entity recognition of credit card data, which is used to perform named entity recognition on credit card data to improve data analysis and positioning efficiency according to the recognized named entities. The method includes:

[0005] Get the credit card dataset that needs named entity recognition;

[0006] Input the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on the historical credit card data set and the named tags of the historical credit card data set;

[0007] The words corresponding to each naming tag are displayed in the credit card dataset according to the preset display method.

[0008] Furthermore, it also includes:

[0009] Obtain a historical credit card data set, and annotate the historical credit card data set according to preset naming labels to obtain training samples;

[0010] Using training samples, multiple machine learning models are trained according to the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models;

[0011] The named entity recognition sub-model with the smallest error is selected as the final named entity recognition model.

[0012] Furthermore, a historical credit card data set is obtained, and the historical credit card data set is labeled according to preset naming tags to obtain training samples, including:

[0013] Perform word segmentation on the historical credit card data set to obtain multiple words;

[0014] Setting a preset mark at a preset punctuation mark in the historical credit card data set, wherein the preset mark is used to distinguish sentences in the historical credit card data set;

[0015] According to the preset tags and the multiple words obtained after the word segmentation processing of the historical credit card data set, multiple words corresponding to each sentence are obtained;

[0016] Assign a position number to each sentence based on its position in the historical credit card dataset;

[0017] According to the multiple words corresponding to each sentence and the position number of each sentence, an input vector of the training sample is obtained;

[0018] The labels annotated by the historical credit card dataset are used as the output vectors of the training samples.

[0019] Furthermore, the training samples are used to train multiple machine learning models according to the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models, including:

[0020] Construct multiple machine learning models. For each machine learning model, use training samples, perform a preset number of Dropout operations and forward propagation to obtain an initial named entity recognition sub-model.

[0021] Selecting two initial named entity recognition sub-models with different probability distributions within a preset difference range from a plurality of initial named entity recognition sub-models;

[0022] After updating the parameters of the two selected initial named entity recognition sub-models in the following manner, continuous training is performed to obtain two named entity recognition sub-models:

[0023] The symmetric KL divergence loss between the two selected initial named entity recognition sub-models is added to the regular cross entropy loss, and the two selected initial named entity recognition sub-models are back-propagated and parameter updated;

[0024] The named entity recognition sub-model with the smallest error is selected as the final named entity recognition model, including:

[0025] The named entity recognition sub-model with the smallest error is selected from the two named entity recognition sub-models as the final named entity recognition model.

[0026] Furthermore, the machine learning model includes: a BERT structure layer and a CRF structure layer;

[0027] The BERT structure layer is used to perform different linear transformations on the input vector to obtain query terms, keys, and values; the query terms and keys are calculated by dot product to obtain the similarity between the query terms and keys, and the similarity is used as a weight to weight the value to obtain a weighted result; the weighted result is input into the CRF structure layer;

[0028] The CRF structure layer is used to process the weighted results output by the BERT structure layer to obtain the probability that each word in the input vector belongs to each named tag.

[0029] Furthermore, the words corresponding to each naming tag are displayed in the credit card dataset according to a preset display method, including:

[0030] Pre-configure the display color corresponding to each naming label;

[0031] The words corresponding to each naming tag are displayed in the dataset according to the display color corresponding to the naming tag.

[0032] The embodiment of the present invention also provides a named entity recognition device for credit card data, which is used to perform named entity recognition on credit card data to improve data analysis and positioning efficiency according to the recognized named entities. The device includes:

[0033] The first processing module is used to obtain a credit card data set that needs to be recognized by named entities;

[0034] The second processing module is used to input the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on the historical credit card data set and the named tags of the historical credit card data set;

[0035] The third processing module is used to display the words corresponding to each naming tag in the credit card data set according to a preset display method.

[0036] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for named entity recognition of credit card data when executing the computer program.

[0037] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for named entity recognition of credit card data is implemented.

[0038] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for named entity recognition of credit card data is implemented.

[0039] In an embodiment of the present invention, a credit card data set that needs to be recognized by named entities is obtained; the credit card data set is input into a pre-trained named entity recognition model to obtain words belonging to named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on a historical credit card data set and the named tags of the historical credit card data set; the words corresponding to each named tag are displayed in the credit card data set according to a preset display method. In this way, named entity recognition can be performed on the credit card data to improve the efficiency of data analysis and positioning based on the recognized named entities. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0041] Figure 1 A flowchart of a method for named entity recognition of credit card data provided in an embodiment of the present invention;

[0042] Figure 2 A flowchart of a method for training a named entity recognition model provided in an embodiment of the present invention;

[0043] Figure 3 This is an example diagram of using the regularized Dropout technology to train a machine learning model provided in an embodiment of the present invention;

[0044] Figure 4 This is a structural example diagram of an R-Drop provided in an embodiment of the present invention;

[0045] Figure 5 This is an example diagram of the working principle of a BERT junction layer provided in an embodiment of the present invention;

[0046] Figure 6 This is an example diagram of the working principle of the attention mechanism of a BERT structure layer provided in an embodiment of the present invention;

[0047] Figure 7 An example diagram of displaying the words corresponding to each naming tag in a credit card dataset in a preset display manner provided in an embodiment of the present invention;

[0048] Figure 8 A schematic diagram of a named entity recognition device for credit card data provided in an embodiment of the present invention;

[0049] Fig. 9 A schematic diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0051] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of laws and regulations.

[0052] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0053] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps is not limited and can be appropriately adjusted as needed.

[0054] Research has found that there is a large amount of data information in the credit card scenario of banking business. When optimizing the credit card business, this data information needs to be analyzed and judged. However, due to the huge amount of information, there is a lack of effective named entities to quickly identify keywords in the data information to assist in data analysis.

[0055] Regarding the above studies, Figure 1 As shown, an embodiment of the present invention provides a method for named entity recognition of credit card data, comprising:

[0056] S101: Obtain a credit card dataset that requires named entity recognition;

[0057] S102: Input the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on the historical credit card data set and the named tags of the historical credit card data set;

[0058] S103: Display the words corresponding to each naming tag in the credit card dataset according to a preset display method.

[0059] In an embodiment of the present invention, a credit card data set that needs to be recognized by named entities is obtained; the credit card data set is input into a pre-trained named entity recognition model to obtain words belonging to named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on a historical credit card data set and the named tags of the historical credit card data set; the words corresponding to each named tag are displayed in the credit card data set according to a preset display method. In this way, named entity recognition can be performed on the credit card data to improve the efficiency of data analysis and positioning based on the recognized named entities.

[0060] The following is a detailed description of the named entity recognition method for the above credit card data.

[0061] With respect to the above S101, the credit card data set includes any data set in the credit card data scenario, such as user consultation data on credit cards, transaction data during credit card scenario transactions, etc.

[0062] For example, a piece of business consultation text data: "The credit limit of the customer card of XX branch was 10,000 yuan before and is now 21,000 yuan. I don't know when the credit limit was increased and I haven't received any notification of the increase. I need to verify when the credit limit was increased and when it changed from an additional card to the main card of the account" can be used as a credit card data set.

[0063] For S102 above, the named tags include, for example, at least one of: card issuance tag, credit limit adjustment tag, installment tag, collection tag, refusal tag, collection tag, application tag, account opening tag, consumer credit tag, etc. The named entity recognition model is obtained by pre-training a machine learning model based on a historical credit card data set and the named tags of the historical credit card data set.

[0064] like Figure 2 As shown, a flow chart of a method for training a named entity recognition model provided by an embodiment of the present invention includes:

[0065] S201: Obtain a historical credit card dataset, and label the historical credit card dataset according to preset naming tags to obtain training samples.

[0066] In one embodiment of the present invention, a historical credit card data set is obtained, and the historical credit card data set is labeled according to preset naming tags to obtain training samples, for example, including: performing word segmentation processing on the historical credit card data set to obtain multiple words; setting preset marks at preset punctuation marks in the historical credit card data set, and the preset marks are used to distinguish sentences in the historical credit card data set; obtaining multiple words corresponding to each sentence according to the preset marks and the multiple words obtained after the historical credit card data set is segmented; assigning a position number to each sentence according to the position of each sentence in the historical credit card data set; obtaining an input vector of the training sample according to the multiple words corresponding to each sentence and the position number of each sentence; and using the label annotated with the historical credit card data set as the output vector of the training sample.

[0067] The preset mark may be, for example, a combination of any alphabetic characters, and different preset marks may represent, for example, the beginning and the end of a sentence.

[0068] In one embodiment of the present invention, for example, three embedding layers can be set before the named entity recognition model: Token embedding, Segment embedding, and Position embedding, and the credit card data set and the historical credit card data set are processed to convert the text data into an input vector.

[0069] For example, for the Token embedding layer, for example, two examples are input, "The credit limit adjustment business is widely used in credit card scenarios" and "This article focuses on the credit limit change process in credit cards." The Token embedding layer first tokenizes and connects the two sentences, "The credit limit adjustment business is widely used in credit card scenarios. This article focuses on studying the credit limit change process in credit cards." Then, a preset tag [CLS] is added to the beginning of the first sentence, and a preset [SEP] is added to the end of each sentence. It becomes "[CLS], the credit limit adjustment business is widely used in credit card scenarios [SEP], this article focuses on studying the credit limit change process in credit cards [SEP]." Among them, [SEP] is used to mark the end of the sentence, and the [CLS] tag is used for classification tasks and represents the sentence head.

[0070] The Segment embedding layer is used to distinguish two sentences. According to the above example after word segmentation, a certain mark (i.e., position number) is required to distinguish the two sentences. For example, the Segment embedding layer can return two embeddings: EA or EB. If the input word is the first sentence, it matches EA, and if it is the second sentence, it matches EB.

[0071] For the Position embedding layer, it is used to generate the sequence information of words in the sentence (that is, to generate the input vector). For example, the input: [CLS], credit limit adjustment business is widely used in credit card scenarios. [SEP], this article focuses on studying the credit card credit limit change process. [SEP] Position encoding: E0, E1, E2, ..., E20. The input is converted and encoded to obtain the input vector.

[0072] S202: Using the training samples, multiple machine learning models are trained according to the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models.

[0073] In one embodiment of the present invention, training samples are used to train multiple machine learning models according to the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models, for example, including: constructing multiple machine learning models, for each machine learning model, using training samples, and obtaining an initial named entity recognition sub-model after a preset number of Dropout operations and forward propagation; selecting two initial named entity recognition sub-models whose differences are within a preset difference range and have different probability distributions from the multiple initial named entity recognition sub-models; after updating the parameters of the two selected initial named entity recognition sub-models in the following manner, continuously training to obtain two named entity recognition sub-models: adding the symmetric KL divergence loss between the two selected initial named entity recognition sub-models to the regular cross entropy loss, and performing back propagation and parameter update on the two selected initial named entity recognition sub-models.

[0074] The embodiment of the present invention uses regularization technology to train the machine learning model to prevent overfitting of the model and improve the robustness and generalization ability of the model. Among them, the Dropout technology only needs to randomly discard a part of the network neurons (for example, Figure 3 As shown, assuming that the left side is all the neurons of the machine learning model, and the right side is an example of randomly discarding a part of the network neurons for training each time), that is, in each training cycle, some neurons in each layer do not work, simplifying the complex network model.

[0075] In addition, Regularized Dropout (R-Drop) is a kind of contrastive learning. In the embodiment of the present invention, R-Drop acts directly on the model layer. For each training sample, R-Drop constrains it by minimizing the Kullback-Leibler divergence (KL divergence) between the output distributions of the two initial named entity recognition sub-models sampled by dropout, thereby alleviating the problem of inconsistency between prediction and training. Figure 4 shown.

[0076] S203: Selecting the named entity recognition sub-model with the smallest error as the final named entity recognition model.

[0077] In one embodiment of the present invention, selecting the named entity recognition sub-model with the smallest error as the final named entity recognition model includes, for example: selecting the named entity recognition sub-model with the smallest error from two named entity recognition sub-models as the final named entity recognition model.

[0078] In addition, in the existing named entity recognition method, a large number of effective training samples are required, and in the existing named entity recognition model, although each neuron can learn reverse features in one direction during the training process, each direction can only learn features in one direction, so the optimal learning effect may not be obtained. Therefore, in order to solve this technical problem, in one embodiment of the present invention, the machine learning model includes, for example: a bidirectional encoder representation (Bidirectional Encoder Representation from Transformers, BERT) structure layer, and a conditional random field (Conditional Random Fields, CRF) structure layer. Among them, the BERT structure layer is used to perform different linear transformations on the input vector to obtain query words, keys and values; the query words and keys are calculated by dot product to obtain the similarity of the query words and keys, and the similarity is used as a weight and value to weight to obtain a weighted result; the weighted result is input into the CRF structure layer; the CRF structure layer is used to process the weighted result output by the BERT structure layer to obtain the probability that each word in the input vector belongs to each named tag.

[0079] Here, BERT is a context-based model that can generate word embeddings based on the context. It also uses the self-attention mechanism inside BERT to output the label prediction probability corresponding to each word. The CRF layer can add some constraints to ensure that the final prediction result is effective.

[0080] In one embodiment of the present invention, the BERT structure layer includes 12 layers of encoding networks, each network has 768 hidden layers and 12 attention heads, and the resulting vector dimension size is 768. Figure 5 As shown in the figure, it includes: Inputs: input (i.e., sentence), Input embedding: source text embedding module, positional encoding: position encoder, multi-head attention: multi-head attention mechanism module, Add & Norm: residual connection and layer normalization, feed forward: feedforward control. Among them, the input received by the first encoder in the BERT structure layer is the original input embedding, and the input received by the subsequent encoder is the output of the previous encoder.

[0081] Specifically, Figure 6 As shown in the figure, the BERT structure layer uses the attention mechanism to enhance the semantic connection between the target word and the context, and converts the original word vector (i.e., input vector) of the target word into a semantically enhanced word vector. The attention mechanism mainly uses three matrices: target word (Query), key (Key), and value (value). These three matrices are obtained by linear transformation (Linea) of the input vector. In Attention, each word has its original value. The attention mechanism uses the target word as the Query and each other word in the input vector as the Key. The similarity between the query word and the key is calculated through the dot product (Dot-product), and then the calculation result is used as a weight for the final output. The value is weighted summed (Weighted sum) to form the final weighted result.

[0082] In the embodiment of the present invention, a combination of Bidirectional Encoder Representation from Transformers (BERT) and Conditional Random Field (CRF) is used as a machine learning model. The data set uses a small sample historical credit card data set. For Transformer, the sentence is processed as a whole, so there is no long-term dependency problem. In addition, both the multi-head attention mechanism and position embedding provide information about the relationship between different words. In the small sample scenario, BERT can also provide more knowledge for the model.

[0083] With respect to the above S103, in one embodiment of the present invention, if Figure 7 As shown, the words corresponding to each naming tag are displayed in the credit card data set according to a preset display method, for example including: pre-configuring the display color corresponding to each naming tag; and displaying the words corresponding to each naming tag in the data set according to the display color corresponding to the naming tag.

[0084] In addition, different underlines can be set for each naming tag, and the words corresponding to each naming tag are displayed in the data set according to the underlines corresponding to the naming tag.

[0085] The embodiment of the present invention also provides a device for named entity recognition of credit card data, as described in the following embodiment. Since the principle of solving the problem by the device is similar to that of the named entity recognition method for credit card data, the implementation of the device can refer to the implementation of the named entity recognition method for credit card data, and the repeated parts will not be repeated.

[0086] like Figure 8 FIG. 1 is a schematic diagram of a named entity recognition device for credit card data provided by an embodiment of the present invention, comprising:

[0087] The first processing module 801 is used to obtain a credit card data set that needs to be recognized by named entities;

[0088] The second processing module 802 is used to input the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on the historical credit card data set and the named tags of the historical credit card data set;

[0089] The third processing module 803 is used to display the words corresponding to each naming tag in the credit card data set according to a preset display method.

[0090] In a possible implementation, it also includes: a model training module, which is used to obtain a historical credit card data set, and label the historical credit card data set according to preset naming tags to obtain training samples; using the training samples, training multiple machine learning models according to the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models; selecting the named entity recognition sub-model with the smallest error as the final named entity recognition model.

[0091] In one possible implementation, the model training module is specifically used to perform word segmentation processing on a historical credit card data set to obtain a plurality of words; set preset marks at preset punctuation marks in the historical credit card data set, wherein the preset marks are used to distinguish sentences in the historical credit card data set; obtain a plurality of words corresponding to each sentence based on the preset marks and the plurality of words obtained after performing word segmentation processing on the historical credit card data set; assign a position number to each sentence based on the position of each sentence in the historical credit card data set; obtain an input vector of a training sample based on the plurality of words corresponding to each sentence and the position number of each sentence; and use the label annotated with the historical credit card data set as an output vector of the training sample.

[0092] In one possible implementation, a model training module is specifically used to construct multiple machine learning models. For each machine learning model, a training sample is used, and an initial named entity recognition sub-model is obtained after a preset number of Dropout operations and forward propagation. Two initial named entity recognition sub-models with different probability distributions within a preset difference range are selected from the multiple initial named entity recognition sub-models; the parameters of the two selected initial named entity recognition sub-models are updated in the following manner, and then continuously trained to obtain two named entity recognition sub-models: the symmetric KL divergence loss between the two selected initial named entity recognition sub-models is added to the rule cross entropy loss, and the two selected initial named entity recognition sub-models are back-propagated and parameter updated; the named entity recognition sub-model with the smallest error is selected from the two named entity recognition sub-models as the final named entity recognition model.

[0093] In one possible implementation, the machine learning model includes: a BERT structure layer and a CRF structure layer; wherein the BERT structure layer is used to perform different linear transformations on the input vector to obtain query terms, keys and values; the query terms and keys are calculated by dot product to obtain the similarity between the query terms and the keys, and the similarity is used as a weight to weight the value to obtain a weighted result; the weighted result is input into the CRF structure layer; the CRF structure layer is used to process the weighted result output by the BERT structure layer to obtain the probability that each word in the input vector belongs to each named tag.

[0094] In a possible implementation, the third processing module is specifically configured to pre-configure a display color corresponding to each naming tag; and display the words corresponding to each naming tag in the data set according to the display color corresponding to the naming tag.

[0095] like Fig. 9The structure diagram of the computer device of the embodiment of the present invention is shown. The apparatus in the present invention can be the computer device in this embodiment, and executes the method of the present invention described above. The computer device 902 may include one or more processing devices 904, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 902 may also include any storage resource 906, which is used to store any kind of information such as code, settings, data, etc. Non-limitingly, for example, the storage resource 906 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any storage resource can use any technology to store information. Further, any storage resource can provide volatile or non-volatile retention of information. Further, any storage resource can represent a fixed or removable component of the computer device 902. In one case, when the processing device 904 executes an associated instruction stored in any storage resource or a combination of storage resources, the computer device 902 can perform any operation of the associated instruction. The computer device 902 also includes one or more drive mechanisms 908 for interacting with any storage resources, such as a hard disk drive mechanism, an optical disk drive mechanism, and the like.

[0096] The computer device 902 may also include an input / output module 910 (I / O) for receiving various inputs (via input devices 912) and for providing various outputs (via output devices 914). A specific output mechanism may include a presentation device 916 and an associated graphical user interface (GUI) 918. In other embodiments, the input / output module 910 (I / O), the input device 912, and the output device 914 may not be included, and the computer device 902 may be used as a computer device in a network. The computer device 902 may also include one or more network interfaces 920 for exchanging data with other devices via one or more communication links 922. One or more communication buses 924 couple the components described above together.

[0097] The communication link 922 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 922 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0098] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for named entity recognition of credit card data is implemented.

[0099] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for named entity recognition of credit card data is implemented.

[0100] In an embodiment of the present invention, a credit card data set that needs to be recognized by named entities is obtained; the credit card data set is input into a pre-trained named entity recognition model to obtain words belonging to named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on a historical credit card data set and the named tags of the historical credit card data set; the words corresponding to each named tag are displayed in the credit card data set according to a preset display method. In this way, named entity recognition can be performed on the credit card data to improve the efficiency of data analysis and positioning based on the recognized named entities.

[0101] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0102] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0103] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0105] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for named entity recognition of credit card data, characterized in that: include: Get the credit card dataset that needs named entity recognition; Input the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on the historical credit card data set and the named tags of the historical credit card data set; The words corresponding to each naming tag are displayed in the credit card dataset according to the preset display method.

2. The method for named entity recognition of credit card data as claimed in claim 1, characterized in that: Also includes: Obtain a historical credit card data set, and annotate the historical credit card data set according to preset naming labels to obtain training samples; Using training samples, multiple machine learning models are trained according to the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models; The named entity recognition sub-model with the smallest error is selected as the final named entity recognition model.

3. The method for named entity recognition of credit card data as claimed in claim 2, characterized in that: Obtain a historical credit card dataset, annotate it according to preset naming labels, and obtain training samples, including: Perform word segmentation on the historical credit card data set to obtain multiple words; Setting a preset mark at a preset punctuation mark in the historical credit card data set, wherein the preset mark is used to distinguish sentences in the historical credit card data set; According to the preset tags and the multiple words obtained after the word segmentation processing of the historical credit card data set, multiple words corresponding to each sentence are obtained; Assign a position number to each sentence based on its position in the historical credit card dataset; According to the multiple words corresponding to each sentence and the position number of each sentence, an input vector of the training sample is obtained; The labels annotated by the historical credit card dataset are used as the output vectors of the training samples.

4. The method for named entity recognition of credit card data as claimed in claim 2, characterized in that: Using training samples, we train multiple machine learning models based on the regularized random dropout method Dropout to obtain multiple named entity recognition sub-models, including: Construct multiple machine learning models. For each machine learning model, use training samples, perform a preset number of Dropout operations and forward propagation to obtain an initial named entity recognition sub-model. Selecting two initial named entity recognition sub-models with different probability distributions within a preset difference range from a plurality of initial named entity recognition sub-models; After updating the parameters of the two selected initial named entity recognition sub-models in the following manner, continuous training is performed to obtain two named entity recognition sub-models: The symmetric KL divergence loss between the two selected initial named entity recognition sub-models is added to the regular cross entropy loss, and the two selected initial named entity recognition sub-models are back-propagated and parameter updated; The named entity recognition sub-model with the smallest error is selected as the final named entity recognition model, including: The named entity recognition sub-model with the smallest error is selected from the two named entity recognition sub-models as the final named entity recognition model.

5. The method for named entity recognition of credit card data as claimed in claim 2, characterized in that: The machine learning model includes: a bidirectional encoder representation BERT structure layer and a conditional random field CRF structure layer; The BERT structure layer is used to perform different linear transformations on the input vector to obtain query terms, keys, and values; the query terms and keys are calculated by dot product to obtain the similarity between the query terms and keys, and the similarity is used as a weight to weight the value to obtain a weighted result; the weighted result is input into the CRF structure layer; The CRF structure layer is used to process the weighted results output by the BERT structure layer to obtain the probability that each word in the input vector belongs to each named tag.

6. The method for named entity recognition of credit card data as claimed in claim 1, characterized in that: The words corresponding to each naming tag are displayed in the credit card dataset according to the preset display method, including: Pre-configure the display color corresponding to each naming label; The words corresponding to each naming tag are displayed in the dataset according to the display color corresponding to the naming tag.

7. A named entity recognition device for credit card data, characterized in that: include: The first processing module is used to obtain a credit card data set that needs to be recognized by named entities; The second processing module is used to input the credit card data set into a pre-trained named entity recognition model to obtain words belonging to the named tags in the credit card data set; wherein the named entity recognition model is obtained by pre-training a machine learning model based on the historical credit card data set and the named tags of the historical credit card data set; The third processing module is used to display the words corresponding to each naming tag in the credit card data set according to a preset display method.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.