Subject completion method and related equipment used in auditing field

The named entity recognition model and the classification algorithm model are used to complete the subject of the audit text, which solves the problem of missing subjects in the audit report, improves the completeness of SPO triple extraction, and enhances the quality of knowledge graph construction.

CN115168575BActive Publication Date: 2024-10-18BEIJING ZHIZHENYUN INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210743520.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-10-18
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

There is a problem of missing subjects in the audit report, which makes it impossible to effectively extract the complete SPO triplet, affecting the structural integrity of the knowledge graph in the audit field.

Method used

The named entity recognition model and the classification algorithm model are used to preprocess and predict the audit text to form a candidate subject set, and select candidate subjects from them for completion according to the missing subject category, and build a complete knowledge map in the audit field.

Benefits of technology

It improves the completeness of extraction of triples in the audit text, enhances the integrity of the information in the knowledge graph, and provides effective information support for auditors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115168575B_ABST
    Figure CN115168575B_ABST
Patent Text Reader

Abstract

The present application provides a subject completion method and related equipment applied in the auditing field, which extracts candidate subjects in the auditing text through a named entity recognition model to form a candidate subject set, and then uses a classification algorithm model to determine the type of the missing subject in the sentence of the subject to be completed, thereby selecting the corresponding candidate subject from the candidate subject set for subject completion. The subject completion method of the present application can effectively complete the missing triples in the auditing text to construct a complete knowledge graph in the auditing field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of knowledge graph technology, and in particular to a subject completion method and related equipment applied in the auditing field. Background Art

[0002] With the development of artificial intelligence, knowledge graphs, as a new type of knowledge base, have become a hot topic in current research. In the audit field, due to the problem of missing subjects in audit reports, it is impossible to effectively extract complete SPO triples, which affects the completeness of the knowledge graph construction in the audit field and makes it difficult to provide effective information for technical personnel in the audit field. Summary of the invention

[0003] In view of this, the purpose of this application is to propose a subject completion method and related equipment applied in the auditing field.

[0004] The first aspect of the present application provides a subject completion method applied in the auditing field, comprising:

[0005] Acquire an audit text, wherein the audit text includes a sentence with a subject to be completed;

[0006] Inputting the audit text into a first pre-trained named entity recognition model, and obtaining a candidate subject set through the named entity recognition model;

[0007] Using a second pre-trained classification algorithm model to predict the sentence of the subject to be completed, so as to determine the subject missing category corresponding to the sentence of the subject to be completed;

[0008] A candidate subject is selected from the candidate subject set according to the subject missing category to complete the sentence of the subject to be completed.

[0009] Optionally, the first pre-training includes:

[0010] Get historical audit texts;

[0011] Sentence processing is performed on the historical audit text;

[0012] Marking all subjects in the sentence-processed historical audit text;

[0013] Performing the first pre-training on the named entity recognition model according to the annotated historical audit text;

[0014] If the training end condition is reached, the first pre-training is stopped.

[0015] Optionally, the second pre-training includes:

[0016] Marking the missing subject corresponding to the sentence of the subject to be completed in the historical audit text after the sentence segmentation processing;

[0017] Performing the second pre-training on the classification algorithm model according to the sentences with the subject to be completed in the historical audit text with annotations;

[0018] If the training end condition is reached, the second pre-training is stopped.

[0019] Optionally, the candidate subject set includes a plurality of audit units and a plurality of audited units, the subject missing category includes a missing audit unit subject and a missing audited unit subject, and selecting a candidate subject from the candidate subject set according to the subject missing category includes:

[0020] If the subject missing category is a missing audit unit subject, selecting the candidate subject from multiple audit units in the candidate subject set;

[0021] If the subject missing category is missing audited unit subject, the candidate subject is selected from multiple audited units in the candidate subject set.

[0022] Optionally, the named entity recognition model is a BERT-CRF model.

[0023] Optionally, the classification algorithm model is a FastText model.

[0024] The second aspect of the present application also provides a subject completion device for the auditing field, comprising:

[0025] An acquisition module is configured to acquire an audit text, wherein the audit text includes a sentence of a subject to be completed;

[0026] A candidate subject generation module is configured to input the audit text into a first pre-trained named entity recognition model, and obtain a candidate subject set through the named entity recognition model;

[0027] A missing category determination module is configured to use a second pre-trained classification algorithm model to predict the sentence of the subject to be completed, so as to determine the subject missing category corresponding to the sentence of the subject to be completed;

[0028] The completion module is configured to select a candidate subject from the candidate subject set according to the subject missing category to complete the sentence of the subject to be completed.

[0029] Optionally, the completion module is further configured to:

[0030] If the subject missing category is a missing audit unit subject, selecting the candidate subject from multiple audit units in the candidate subject set;

[0031] If the subject missing category is missing audited unit subject, the candidate subject is selected from multiple audited units in the candidate subject set.

[0032] The third aspect of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.

[0033] The fourth aspect of the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.

[0034] The subject completion method and related equipment provided by the present application for the auditing field extract candidate subjects in the auditing text through the named entity recognition model to form a candidate subject set, and then determine the type of the missing subject in the sentence of the subject to be completed through the classification algorithm model, so as to select the corresponding candidate subject from the candidate subject set for subject completion. The subject completion method of the present application can effectively complete the missing triples in the auditing text to construct a complete knowledge graph in the auditing field. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A flow chart of subject completion applied to the auditing field in an embodiment of the present application;

[0037] Figure 2 This is a schematic diagram of the first pre-training method flow in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a second pre-training method flow chart of an embodiment of the present application;

[0039] Figure 4 This is a structural diagram of subject completion applied to the auditing field according to an embodiment of the present application;

[0040] Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0042] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0043] As described in the background technology, in order to improve the completeness of the construction of the knowledge graph in the audit field, in the process of building the knowledge graph by the audit unit personnel, the subjects in the short sentences or local texts are predicted for reference. This application uses named entity recognition to identify the subjects in the audit text, and uses the Fasttext model to predict and classify the subjects of the sentences or local texts, thereby realizing the subject prediction in the process of extracting SPO (S represents subject, P represents predicate, and O represents object) triples in the audit report, and improving the completeness of the extracted SPO triples. In addition, due to the improvement of the completeness of the SPO triples, the completeness of the relevant information in the knowledge graph is also improved.

[0044] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0045] This application provides a subject completion method applied in the audit field, referring to Figure 1 , including the following steps:

[0046] Step 102: Obtain an audit text, wherein the audit text includes a sentence with a subject to be completed.

[0047] Specifically, the audit text in this embodiment is an audit report, which is a written document in which a certified public accountant expresses an audit opinion on the legality and fairness of financial statements. A large number of audit units or audited units will appear in the audit report, and there will be subjects missing in some short sentences or partial texts, which makes it impossible for auditors to build a complete audit field knowledge map based on the audit report. The sentence to be completed refers to the sentence missing the audit unit or the audited unit.

[0048] Step 104: input the audit text into a first pre-trained named entity recognition model, and obtain a candidate subject set through the named entity recognition model.

[0049] Specifically, in order to complete the sentence with missing subjects, it is necessary to identify all subjects appearing in the audit text, because the missing subjects often exist in the audit text. To identify the subjects in the audit text, it is necessary to use the named entity recognition model, which can output the subjects in the audit text through the pre-trained model. The subjects output by the named entity recognition model are merged to form a set of candidate subjects.

[0050] Step 106: Use the second pre-trained classification algorithm model to predict the sentence with the subject to be completed, so as to determine the subject missing category corresponding to the sentence with the subject to be completed.

[0051] Specifically, the missing subject type of the sentence to be completed may be different. The missing subject may be the audit unit or the audited unit. Therefore, it is necessary to first confirm the type of the missing subject of each sentence to be completed before further completing the sentence. The classification algorithm model can well judge and predict the type of subject missing in the sentence. Therefore, the sentence to be completed is input into the classification algorithm model, and the subject missing category can be output through the classification algorithm model.

[0052] Step 108: Select a candidate subject from the candidate subject set according to the subject missing category to complete the sentence of the subject to be completed.

[0053] Specifically, the candidate subject set obtained through step 104 includes all candidate subjects in the audit text. According to the subject missing type predicted by the classification algorithm model, the corresponding candidate subject is found from the candidate subject set to complete the missing subject.

[0054] Based on the above steps 102 to 108, by introducing the named entity recognition model and the classification algorithm model to complete the audit text with missing subjects, the completeness of the triple extraction in the audit text can be effectively improved, providing strong support for further construction of the knowledge graph in the audit field.

[0055] In some embodiments, the first pre-training, referring to Figure 2 , including the following steps:

[0056] Step 202: Obtain historical audit text;

[0057] Step 204: Sentence processing is performed on the historical audit text;

[0058] Step 206: marking all subjects in the historical audit text that has been processed by sentence segmentation;

[0059] Step 208: performing the first pre-training on the named entity recognition model according to the annotated historical audit text;

[0060] Step 210: If the training end condition is reached, stop the first pre-training.

[0061] Specifically, the named entity recognition model is pre-trained. The training set used for pre-training is obtained from the historical audit text. First, the historical audit text needs to be sentence-processed, for example, the historical audit text is sentence-processed using the jieba word segmentation tool. Then, the subjects in the sentence-segmented historical audit text are annotated, and the subjects and subject types appearing in each sentence are marked to form annotated samples. The named entity recognition model is first pre-trained using the sentences of the marked audit text. The first pre-training method includes dividing the marked audit text into a training set and a test set, training the named entity recognition model through the training set, adjusting the model parameters, and then testing the named entity recognition model through the test set to determine whether the model meets the pre-training standard. It should be noted that the sentences using the marked audit text can also be divided into multiple groups of training sets and test sets, and the named entity recognition model is trained multiple rounds according to the multiple groups of training sets and test sets, and each round of training uses a set of training sets and test sets to further improve the accuracy of the model. The training cutoff condition can be the convergence of the loss function of the loss model, or reaching a predetermined number of training times, etc. When the training cutoff condition is reached, the first pre-training can be stopped to prevent the model from overfitting.

[0062] In some embodiments, the second pre-training, referring to Figure 3 , including the following steps:

[0063] Step 302: marking the missing subject corresponding to the sentence with the subject to be completed in the historical audit text after the sentence segmentation processing;

[0064] Step 304: performing the second pre-training on the classification algorithm model according to the annotated sentences with the subject to be completed in the historical audit text;

[0065] Step 306: If the training end condition is reached, stop the second pre-training.

[0066] Specifically, for the second pre-training of the classification algorithm model, the historical audit text with annotations can be used as training data to perform the second pre-training on the classification algorithm model on the basis of the historical audit text used for the first pre-training. The subject missing type is annotated for the sentence-divided historical audit text to form annotated samples. The classification algorithm model is pre-trained for the second time through the annotated samples, and the classification algorithm model learns the vector features of the annotated samples during the second pre-training process, thereby achieving the purpose of accurately distinguishing the type of subject missing in the sentence. The second pre-training method includes dividing the audit text with annotations into a training set and a test set, training the classification algorithm model through the training set, adjusting the model parameters, and then testing the classification algorithm model through the test set to determine whether the model meets the pre-training standard. It should be noted that the sentences using the audit text with annotations can also be divided into multiple groups of training sets and test sets, and the classification algorithm model is trained for multiple rounds according to the multiple groups of training sets and test sets, and each round of training uses a group of training sets and test sets to further improve the accuracy of the model. The training cutoff condition can be the convergence of the loss function of the loss model, or reaching a predetermined number of training times, etc. When the training cutoff condition is reached, the second pre-training can be stopped to prevent the model from overfitting.

[0067] In some embodiments, the candidate subject set includes a plurality of audit units and a plurality of audited units, the subject missing category includes a missing audit unit subject and a missing audited unit subject, and selecting a candidate subject from the candidate subject set according to the subject missing category includes:

[0068] If the subject missing category is a missing audit unit subject, selecting the candidate subject from multiple audit units in the candidate subject set;

[0069] If the subject missing category is missing audited unit subject, the candidate subject is selected from multiple audited units in the candidate subject set.

[0070] Specifically, the audit unit and the audited unit involved in the audit report can be one or more. The candidate subject set includes a candidate audit unit subset and a candidate audited unit subset. The subject missing category is also set to missing audit unit subject and missing audited unit subject. It can be understood that when the subject missing category is determined to be missing audit unit subject through the classification algorithm model, the corresponding audit unit subject can be selected from the candidate audit unit subset in the candidate subject set to complete the sentence of the subject to be completed. When the audit unit subset contains multiple audit units, it is necessary to judge and select a suitable audit unit as the candidate subject in connection with the context. When the audit unit subset contains only one audit unit, the audit unit is the final candidate subject. Similarly, when the subject missing category is determined to be missing audited unit subject through the classification algorithm model, the corresponding audit unit subject can be selected from the candidate audit unit subset in the candidate subject set to complete the sentence of the subject to be completed. When the audit unit subset contains multiple audit units, it is necessary to judge and select a suitable audit unit as the candidate subject in connection with the context. When the audited unit subset contains only one audited unit, then the audited unit is the final candidate subject.

[0071] It can be seen that through the above method, candidate subjects can be accurately selected to complete the sentences of the subjects to be completed, providing reference for auditors and improving the completeness of triple extraction in audit texts.

[0072] In some embodiments, the named entity recognition model is a BERT-CRF model.

[0073] Specifically, named entity recognition is one of the hot research directions in natural language processing, and its purpose is to identify named entities in text and classify them into corresponding entity types. In this embodiment, the named entity recognition model adopts the BERT-CRF model. Compared with other models, the BERT-CRF model has a faster training speed and higher accuracy, and can complete the sequence labeling task with high quality.

[0074] In some embodiments, the classification algorithm model is a FastText model. The FastText model is a text classification tool proposed by Facebook. Its advantage is that it can achieve some similar accuracy to deep networks in shallow training, and the training speed is relatively fast. The structure of the FastText model is very simple, with three layers, input layer, hidden layer and output layer. The input layer is to embed the document to obtain the embedding vector, and the embedding vector contains N-gram features. The hidden layer sums and averages the input data, and the output layer outputs the corresponding label of the document. The FastText model can accurately determine the subject missing category of the sentence to be completed to ensure the completion quality of the triple.

[0075] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0076] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0077] The present application also provides a subject completion device applied in the auditing field.

[0078] refer to Figure 4 , the subject completion device applied in the auditing field comprises:

[0079] The acquisition module 402 is configured to acquire an audit text, wherein the audit text includes a sentence with a subject to be completed;

[0080] A candidate subject generation module 404 is configured to input the audit text into a first pre-trained named entity recognition model, and obtain a candidate subject set through the named entity recognition model;

[0081] The missing category determination module 406 is configured to use a second pre-trained classification algorithm model to predict the sentence of the subject to be completed, so as to determine the subject missing category corresponding to the sentence of the subject to be completed;

[0082] The completion module 408 is configured to select a candidate subject from the candidate subject set according to the subject missing category to complete the sentence of the subject to be completed.

[0083] In some embodiments, a first pre-training module 410 is further included, configured to:

[0084] Get historical audit texts;

[0085] Sentence processing is performed on the historical audit text;

[0086] Marking all subjects in the sentence-processed historical audit text;

[0087] Performing the first pre-training on the named entity recognition model according to the annotated historical audit text;

[0088] If the training end condition is reached, the first pre-training is stopped.

[0089] In some embodiments, a second pre-training module 412 is further included, configured to:

[0090] Marking the missing subject corresponding to the sentence of the subject to be completed in the historical audit text after the sentence segmentation processing;

[0091] Performing the second pre-training on the classification algorithm model according to the sentences with the subject to be completed in the historical audit text with annotations;

[0092] If the training end condition is reached, the second pre-training is stopped.

[0093] In some embodiments, the candidate subject set includes multiple audit units and multiple audited units, the subject missing category includes missing audit unit subject and missing audited unit subject, and the completion module 408 is specifically configured as follows:

[0094] If the subject missing category is a missing audit unit subject, selecting the candidate subject from multiple audit units in the candidate subject set;

[0095] If the subject missing category is missing audited unit subject, the candidate subject is selected from multiple audited units in the candidate subject set.

[0096] In some embodiments, the named entity recognition model is a BERT-CRF model.

[0097] In some embodiments, the classification algorithm model is a FastText model.

[0098] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0099] The device of the above embodiment is used to implement the corresponding subject completion method applied to the auditing field in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0100] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the subject completion method applied to the auditing field as described in any one of the above embodiments is implemented.

[0101] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0102] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0103] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0104] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0105] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0106] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0107] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0108] The electronic device of the above embodiment is used to implement the corresponding subject completion method applied to the auditing field in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0109] The present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the subject completion method applied to the auditing field as described in any of the above embodiments.

[0110] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0111] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the subject completion method applied to the auditing field as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0112] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0113] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0114] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0115] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A subject completion method applied in the auditing field, characterized in that: include: Acquire an audit text, wherein the audit text includes a sentence with a subject to be completed; Inputting the audit text into a first pre-trained named entity recognition model, and obtaining a candidate subject set through the named entity recognition model; Using a second pre-trained classification algorithm model to predict the sentence of the subject to be completed, so as to determine the subject missing category corresponding to the sentence of the subject to be completed; Selecting a candidate subject from the candidate subject set according to the subject missing category to complete the sentence of the subject to be completed; The first pre-training includes: Get historical audit texts; Sentence processing is performed on the historical audit text; Marking all subjects in the sentence-processed historical audit text; Performing the first pre-training on the named entity recognition model according to the annotated historical audit text; If the training end condition is reached, stop the first pre-training; The second pre-training comprises: Marking the missing subject corresponding to the sentence of the subject to be completed in the historical audit text after the sentence segmentation processing; Performing the second pre-training on the classification algorithm model according to the sentences with the subject to be completed in the historical audit text with annotations; If the training end condition is reached, stopping the second pre-training; The candidate subject set includes a plurality of audit units and a plurality of audited units, the subject missing category includes a missing audit unit subject and a missing audited unit subject, and the selecting a candidate subject from the candidate subject set according to the subject missing category includes: If the subject missing category is a missing audit unit subject, selecting the candidate subject from multiple audit units in the candidate subject set; If the subject missing category is missing audited unit subject, the candidate subject is selected from multiple audited units in the candidate subject set.

2. The method according to claim 1, characterized in that The named entity recognition model is a BERT-CRF model.

3. The method according to claim 1, characterized in that The classification algorithm model is the FastText model.

4. A subject completion device applied in the auditing field, characterized in that: include: An acquisition module is configured to acquire an audit text, wherein the audit text includes a sentence of a subject to be completed; A candidate subject generation module is configured to input the audit text into a first pre-trained named entity recognition model, and obtain a candidate subject set through the named entity recognition model; A missing category determination module is configured to use a second pre-trained classification algorithm model to predict the sentence of the subject to be completed, so as to determine the subject missing category corresponding to the sentence of the subject to be completed; A completion module, configured to select a candidate subject from the candidate subject set according to the subject missing category, so as to complete the sentence of the subject to be completed; The first pre-training includes: Get historical audit texts; Sentence processing is performed on the historical audit text; Marking all subjects in the sentence-processed historical audit text; Performing the first pre-training on the named entity recognition model according to the annotated historical audit text; If the training end condition is reached, stop the first pre-training; The second pre-training comprises: Marking the missing subject corresponding to the sentence of the subject to be completed in the historical audit text after the sentence segmentation processing; Performing the second pre-training on the classification algorithm model according to the sentences with the subject to be completed in the historical audit text with annotations; If the training end condition is reached, stopping the second pre-training; The candidate subject set includes a plurality of audit units and a plurality of audited units, the subject missing category includes a missing audit unit subject and a missing audited unit subject, and the selecting a candidate subject from the candidate subject set according to the subject missing category includes: If the subject missing category is a missing audit unit subject, selecting the candidate subject from multiple audit units in the candidate subject set; If the subject missing category is missing audited unit subject, the candidate subject is selected from multiple audited units in the candidate subject set.

5. An electronic 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 program, the method according to any one of claims 1 to 3 is implemented.

6. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Problem analysis method and device, electronic equipment and storage medium

    CN114117189A

  • Method and system for smart search engine and other applications

    US20030101182A1