Form analysis method and related equipment
Through the use of regular matching and form format processing models, the problem of low parsing efficiency of different types of valuation forms is solved, and efficient analysis of all types of valuation forms is achieved.
Patent Information
- Application Number
- CN202411740532.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the prior art, a single valuation form analysis device can only analyze some types of valuation forms. For different types of valuation forms, multiple valuation form analysis devices are required, and the analysis efficiency is very low.
By obtaining multiple sets of valuation forms to be parsed, using regular matching rules to match them with multiple target products. If the match is successful, the initial valuation form is obtained. Then, based on the form item information in the initial valuation form, the semantic information is obtained, the preset training completed form format processing model is used to process the initial valuation form, and the initial valuation form is uniformly formed into a target valuation form of the same form format, and the target valuation form is finally parsed.
It realizes efficient analysis of different types of valuation forms, avoids the inefficiency problem of using multiple analytical devices, and improves analysis efficiency.
Smart Images

Figure CN119647454A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a form parsing method and related equipment. Background Art
[0002] With the rapid development of science and technology, structured storage of data in forms has become an important technological trend. In the asset management scenario, in order to more accurately evaluate and control the risks and returns of products, staff need to analyze based on the valuation data of the products. The valuation form provides key indicators for product analysis, such as total assets, liabilities, net worth, and holdings. In order to facilitate the online management of products by staff, the staff parses the valuation form through the valuation form parsing device, stores the data in the valuation form in a structured manner, and applies product analysis, thereby improving the investment decision-making efficiency of staff.
[0003] In the existing form parsing technology, a single valuation form parsing device can only parse certain types of valuation forms. For different types of valuation forms, multiple valuation form parsing devices need to be used, and the parsing efficiency is very low.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a form parsing method and related equipment, aiming to solve the technical problem that for different types of valuation forms, a variety of valuation form parsing devices need to be used, and the parsing efficiency is very low.
[0006] To achieve the above objectives, the present application proposes a form parsing method, which includes:
[0007] Acquire multiple groups of valuation forms to be parsed, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats;
[0008] Acquire multiple target products, use the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtain multiple groups of initial valuation forms in different form formats;
[0009] Based on the form item information in the initial valuation form, semantic information corresponding to the form item information is obtained, and based on the semantic information, a preset form format processing model is used to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model;
[0010] The target valuation form is parsed to obtain a form parsing result.
[0011] In one embodiment, the step of obtaining multiple sets of valuation forms to be parsed further includes:
[0012] Based on the configured mailbox, receiving multiple initial emails sent by the client, wherein the multiple initial emails include a target email with an attachment as a valuation form;
[0013] Filtering the multiple initial emails to obtain multiple target emails;
[0014] Based on the multiple target emails, multiple groups of valuation forms to be parsed are obtained, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats.
[0015] In one embodiment, the step of using the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtaining multiple groups of initial valuation forms in different form formats, further includes:
[0016] Acquire multiple target products, and determine the first name of the file corresponding to the valuation form and the second name of the target product;
[0017] Based on the first name, the second name and the current orthogonal matching rule, matching multiple groups of valuation forms to be parsed with multiple target products;
[0018] If the match fails, modify the current orthogonal matching rule, and return to the step of matching multiple groups of valuation forms to be parsed with multiple target products based on the first name, the second name and the current orthogonal matching rule, until the multiple groups of valuation forms to be parsed are successfully matched with the multiple target products, and set the valuation form that successfully matches as the initial valuation form, wherein the initial valuation form includes multiple types of valuation forms;
[0019] If the match is successful, multiple sets of initial valuation forms in different form formats are obtained.
[0020] In one embodiment, the step of parsing the target valuation form to obtain the form parsing result further includes:
[0021] identifying a header of the target valuation form;
[0022] Based on the table header, determine the product information corresponding to the target valuation form, and determine the asset type to which the position asset account in the target valuation form belongs;
[0023] Based on the asset type, verify the asset code in the target valuation form to obtain a first verification result;
[0024] A form parsing result is determined based on the first verification result, the asset type, and the product information.
[0025] In one embodiment, the step of determining the form parsing result based on the first verification result, the asset type and the product information further includes:
[0026] Obtain the disclosure frequency corresponding to the target valuation form;
[0027] Based on the disclosure frequency, obtain product verification conditions, wherein the product verification conditions include but are not limited to product disclosure density, delay days, position ratio, and net value;
[0028] Based on the product inspection condition and the disclosure frequency, verify the asset type and the product information to obtain a second verification result;
[0029] A form parsing result is determined based on the first verification result, the second verification result, the asset type and the product information.
[0030] In one embodiment, before the step of using a preset form format processing model to process the initial valuation form to obtain multiple sets of target valuation forms in the same form format, the step further includes:
[0031] Obtaining a sample valuation form and a current form format processing model, wherein the target valuation form corresponding to the sample valuation form is a second valuation form;
[0032] Based on the current form format processing model, the sample valuation form is processed to obtain a first valuation form;
[0033] determining whether the first valuation form is the same as the second valuation form;
[0034] If they are not the same, adjusting the parameters of the current form format processing model;
[0035] Based on the current form format processing model after adjusting the parameters, return to the current form format processing model, process the sample valuation form, and obtain the step of obtaining a first valuation form, until the first valuation form is the same as the second valuation form, and set the current form format processing model to the preset form format processing model.
[0036] In addition, to achieve the above purpose, the present application also proposes a form parsing device, the form parsing device comprising:
[0037] An acquisition module, the acquisition module is used to acquire multiple groups of valuation forms to be parsed, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats;
[0038] A matching module, the matching module is used to obtain multiple target products, use the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtain multiple groups of initial valuation forms in different form formats;
[0039] A form processing module, the form processing module is used to obtain semantic information corresponding to the form item information based on the form item information in the initial valuation form, and based on the semantic information, use a preset form format processing model to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model;
[0040] The parsing module is used to parse the target valuation form to obtain a form parsing result.
[0041] In one embodiment, the acquisition module includes:
[0042] A receiving unit, configured to receive, based on the configured mailbox, a plurality of initial emails sent by a client, wherein the plurality of initial emails include a target email with an attachment as a valuation form;
[0043] A filtering unit, configured to filter the multiple initial emails to obtain multiple target emails;
[0044] The first acquisition unit is configured to acquire a plurality of valuation forms to be parsed based on the plurality of target emails, wherein the plurality of valuation forms to be parsed include a plurality of valuation forms in different form formats.
[0045] In one embodiment, the matching module includes:
[0046] A second acquisition unit is used to acquire a plurality of target products and determine a first name of a file corresponding to the valuation form and a second name of the target product;
[0047] A matching unit, configured to match a plurality of sets of valuation forms to be parsed with a plurality of target products based on the first name, the second name and a current orthogonal matching rule;
[0048] The setting unit modifies the current orthogonal matching rule if the match fails, and returns to the step of matching multiple groups of valuation forms to be parsed with multiple target products based on the first name, the second name and the current orthogonal matching rule, until the multiple groups of valuation forms to be parsed are successfully matched with the multiple target products, and sets the valuation form that successfully matches as the initial valuation form, wherein the initial valuation form includes multiple types of valuation forms;
[0049] The third acquisition module obtains multiple sets of initial valuation forms in different form formats if the match is successful.
[0050] In one embodiment, the parsing module includes:
[0051] An identification unit, used for identifying a header of the target valuation form;
[0052] A first determining unit is used to determine the product information corresponding to the target valuation form based on the table header, and determine the asset type to which the position asset account in the target valuation form belongs;
[0053] A first verification unit, configured to verify the asset code in the target valuation form based on the asset type to obtain a first verification result;
[0054] The second determining unit is used to determine a form parsing result based on the first verification result, the asset type and the product information.
[0055] In one embodiment, the parsing module further includes:
[0056] A fourth acquisition unit, configured to acquire a disclosure frequency corresponding to the target valuation form;
[0057] A setting unit, used to obtain product verification conditions based on the disclosure frequency, wherein the product verification conditions include but are not limited to product disclosure density, delay days, position ratio, and net value;
[0058] A second verification unit, configured to verify the asset type and the product information based on the product inspection condition and the disclosure frequency, to obtain a second verification result;
[0059] The third determining unit is used to determine the form parsing result based on the first verification result, the second verification result, the asset type and the product information.
[0060] In one embodiment, the form processing module includes:
[0061] A fifth acquisition unit, configured to acquire a sample valuation form and a current form format processing model, wherein the target valuation form corresponding to the sample valuation form is a second valuation form;
[0062] A form processing unit, configured to process the sample valuation form based on a current form format processing model to obtain a first valuation form;
[0063] a determination unit, configured to determine whether the first valuation form is the same as the second valuation form;
[0064] An adjustment unit, if they are not the same, adjusts the parameters of the current form format processing model;
[0065] The training unit is used to return to the current form format processing model based on the current form format processing model after adjusting the parameters, process the sample valuation form, and obtain the first valuation form until the first valuation form is the same as the second valuation form, and set the current form format processing model to the preset form format processing model.
[0066] In addition, to achieve the above-mentioned purpose, the present application also proposes a form parsing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the form parsing method described above.
[0067] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the form parsing method described above are implemented.
[0068] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the form parsing method described above are implemented.
[0069] One or more technical solutions proposed in this application have at least the following technical effects:
[0070] The present application proposes an inference calculation method and related equipment. In the related technology, a single valuation form parsing device can only parse some types of valuation forms. For different types of valuation forms, multiple valuation form parsing devices need to be used, and the parsing efficiency is very low. In the present application, first, multiple groups of valuation forms to be parsed are obtained, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats. Then, multiple target products are obtained, and the multiple groups of valuation forms to be parsed are matched with the multiple target products using the current regular matching rules. If the match is successful, multiple groups of initial valuation forms in different form formats are obtained. Furthermore, based on the form item information in the initial valuation form, semantic information corresponding to the form item information is obtained. Based on the semantic information, a preset form format processing model is used to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model. Finally, the target valuation form is parsed to obtain a form parsing result.
[0071] It is understandable that in the related art, the form parsing device needs to use different types of form parsing devices to parse forms of different form formats, which takes a lot of time and has a low parsing efficiency. In the present application, based on the semantic information corresponding to the form item information, the form format of the initial valuation form is unified to obtain multiple groups of target valuation forms of the same form format. Then, the form parsing device only needs to use one valuation form parsing device to complete the parsing of all valuation forms, effectively improving the parsing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0073] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0074] Figure 1 A flowchart of the first embodiment of the application form parsing method is provided;
[0075] Figure 2 A schematic diagram of the form parsing process provided in Example 1 of the form parsing method of this application;
[0076] Figure 3 A flowchart diagram of the second embodiment of the application form parsing method is provided;
[0077] Figure 4 This is a schematic diagram of the module structure of the form parsing device according to an embodiment of the present application;
[0078] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the form parsing method in the embodiment of the present application.
[0079] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0080] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0081] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0082] The main solutions of the embodiments of this application are:
[0083] In this embodiment, for ease of description, the following description is made with the form parsing device as the execution subject.
[0084] Since the existing technology needs to use a variety of valuation form parsing devices to solve different types of valuation forms, the parsing efficiency is very low.
[0085] The present application provides a solution, which enables: first, multiple groups of valuation forms to be parsed are obtained, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats; then, multiple target products are obtained, and the multiple groups of valuation forms to be parsed are matched with the multiple target products using the current regular matching rule; if the match is successful, multiple groups of initial valuation forms in different form formats are obtained; further, based on the form item information in the initial valuation form, semantic information corresponding to the form item information is obtained; based on the semantic information, the initial valuation form is processed using a preset form format processing model to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model; finally, the target valuation form is parsed to obtain a form parsing result.
[0086] It is understandable that in the related art, the form parsing device needs to use different types of form parsing devices to parse forms of different form formats, which takes a lot of time and has a low parsing efficiency. In the present application, based on the semantic information corresponding to the form item information, the form format of the initial valuation form is unified to obtain multiple groups of target valuation forms of the same form format. Then, the form parsing device only needs to use one valuation form parsing device to complete the parsing of all valuation forms, effectively improving the parsing efficiency.
[0087] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a form parsing device, etc. The following takes the form parsing device as an example to illustrate this embodiment and the following embodiments.
[0088] Based on this, the present application embodiment provides a form parsing method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the application form parsing method.
[0089] In this embodiment, the form parsing method includes steps S100 to S400:
[0090] Step S100, obtaining a plurality of valuation forms to be parsed, wherein the plurality of valuation forms to be parsed include a plurality of valuation forms in different form formats;
[0091] In this embodiment, the execution subject is a form parsing device, which can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions.
[0092] In this embodiment, reference may be made to Figure 2 , Figure 2 This is a schematic diagram of the form parsing process. The specific application scenarios can be:
[0093] For a valuation form to be parsed, the staff needs to parse the valuation form, and then the staff clicks a "parse" button. After the form parsing device detects that the staff clicks the "parse" button, the form parsing device reads the valuation form to be parsed from the memory.
[0094] Specifically, the step of obtaining multiple sets of valuation forms to be parsed further includes steps S110 to S130:
[0095] Step S110, based on the configured mailbox, receiving multiple initial emails sent by the client, wherein the multiple initial emails include a target email with an attachment as a valuation form;
[0096] It is understandable that the valuation form is transmitted in the form of an email attachment, that is, the form parsing device receives the email with the valuation form attachment sent by the client based on the configured mailbox.
[0097] The configured mailbox refers to a mailbox that has completed the setting of the mailbox address and user information. Furthermore, for different types of products, dedicated mailboxes can be set up to manage the related emails of different types of products.
[0098] Step S120, filtering the multiple initial emails to obtain multiple target emails;
[0099] It is understandable that the form parsing device receives emails of various types based on the configured mailbox, and among the received emails, only some of the emails may have valuation forms as attachments.
[0100] In this embodiment, the filtering of the multiple initial emails is based on a blacklist, an ignore list, and other word libraries. The blacklist, ignore list, and other word libraries are set in advance by the staff. The form parsing device determines invalid emails (emails that do not contain valuation forms) among the multiple initial emails based on the blacklist, ignore list, and other word libraries, and then the form parsing device obtains multiple target emails containing valuation forms.
[0101] Step S130: obtaining a plurality of valuation forms to be parsed based on the plurality of target emails, wherein the plurality of valuation forms to be parsed include a plurality of valuation forms in different form formats.
[0102] In this embodiment, after the form parsing device obtains multiple target emails, the form parsing device obtains multiple groups of valuation forms to be parsed from the multiple target emails, and stores the multiple groups of valuation forms to be parsed in a memory.
[0103] Step S200, obtaining multiple target products, using the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtaining multiple groups of initial valuation forms in different form formats;
[0104] It should be noted that the valuation form is associated with the target product. The valuation form provides key indicators such as the total assets, liabilities, net worth, and holdings of the target product. The key indicators are used to analyze the target product.
[0105] In addition, it should be noted that regular matching rules refer to the process of using regular expressions to determine whether a string conforms to a certain pattern. A regular expression is a text pattern that includes common characters (such as letters from a to z) and special characters (called "metacharacters"). It is often used to retrieve and replace text that conforms to a certain pattern. Regular expressions use a single string to describe a series of strings that conform to a certain syntactic rule. When performing regular matching, the match function is usually used to determine whether a string conforms to a specific pattern. For example, in Python, you can use the re.match function to determine whether a string starts with a specific pattern. If the match is successful, the match function returns a match object.
[0106] It can be understood that based on the current regular matching rules, the table parsing device reads the form names of multiple groups of valuation forms to be parsed from the memory, matches the form names with the names of the target products, and determines the target products corresponding to the parsed valuation forms. If the match is successful, the successfully matched form is set as the initial valuation form.
[0107] Specifically, the step of using the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtaining multiple groups of initial valuation forms in different form formats, further includes steps S210 to S240:
[0108] Step S210, obtaining a plurality of target products, and determining a first name of a file corresponding to the valuation form and a second name of the target product;
[0109] It should be noted that the first name is the name of the valuation form to be parsed.
[0110] Step S220, matching multiple groups of valuation forms to be parsed with multiple target products based on the first name, the second name and the current orthogonal matching rule;
[0111] Step S230, if the match fails, modify the current orthogonal matching rule, and return to the step of matching multiple groups of valuation forms to be parsed with multiple target products based on the first name, the second name and the current orthogonal matching rule, until the multiple groups of valuation forms to be parsed are successfully matched with the multiple target products, and set the valuation form that successfully matches as the initial valuation form, wherein the initial valuation form includes multiple types of valuation forms;
[0112] It should be noted that in the present application, the orthogonal matching rules are constantly changing, and the multiple groups of valuation forms to be parsed are matched with the multiple target products. If there are valuation forms to be parsed that have not been successfully matched, the current orthogonal matching rules are adjusted, and based on the adjusted current orthogonal matching rules, the valuation forms to be parsed that have not been successfully matched are re-matched until all the valuation forms to be parsed are successfully matched.
[0113] It is understandable that in this embodiment, when adjusting the current orthogonal matching rules, only some matching rules associated with the unmatched valuation form to be parsed need to be adjusted. The current orthogonal matching rules include multiple types of matching rules.
[0114] Step S240: if the match is successful, multiple groups of initial valuation forms in different form formats are obtained.
[0115] In this embodiment, the successfully matched form is set as the initial evaluation form.
[0116] It is understandable that, since the target emails originate from different clients, the form formats of the valuation forms to be parsed are different, and thus, the form formats of the multiple sets of initial valuation forms are also different.
[0117] Step S300, based on the form item information in the initial valuation form, obtaining semantic information corresponding to the form item information, and based on the semantic information, using a preset form format processing model to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model;
[0118] It should be noted that the preset form format processing model is a trained form format processing model. The form format processing model is used to modify the form format of the input form and output a form in the target form format.
[0119] It should also be noted that before modifying the form format of the initial valuation form, it is necessary to obtain the form item information corresponding to each data item in the form, and then determine the semantic information corresponding to each data item in the form, and based on the semantic information, use the preset form format processing model to modify the form format of the initial valuation form to obtain the target valuation form. The form parsing device stores the data in the initial valuation form in the form item in the target valuation form that has semantic information similar to that corresponding to each data item.
[0120] Step S400, parsing the target valuation form to obtain a form parsing result.
[0121] Finally, the form parsing device parses multiple sets of target valuation forms in a unified form format to obtain form parsing results, wherein the form parsing results include the asset type of the target product, the product information of the target product, and the verification result of the product information.
[0122] Specifically, the step of parsing the target valuation form to obtain the form parsing result further includes steps S410 to S440:
[0123] Step S410, identifying the header of the target valuation form;
[0124] It should be noted that the table header refers to the form item information in the target valuation form.
[0125] Step S420, based on the table header, determining the product information corresponding to the target valuation form, and determining the asset type to which the position asset account in the target valuation form belongs;
[0126] In this embodiment, after the form parsing device identifies the header of the target valuation form, based on the header, the form parsing device determines the product information corresponding to the target valuation form, and determines the asset type to which the position asset account in the target valuation form belongs;
[0127] Step S430, based on the asset type, verify the asset code in the target valuation form to obtain a first verification result;
[0128] In this embodiment, after the form parsing device determines the asset type and product information, the form parsing device verifies the asset code in the target valuation form to obtain a first verification result.
[0129] For example, if the asset "603197" is confirmed to belong to the A-share of the Shanghai Stock Exchange based on the account identification of the held assets, the code is verified for holding in the stock public market data to obtain the first verification result.
[0130] Step S440: determining a form parsing result based on the first verification result, the asset type and the product information.
[0131] Specifically, the step of determining the form parsing result based on the first verification result, the asset type and the product information further includes steps S441 to S444:
[0132] Step S441, obtaining the disclosure frequency corresponding to the target valuation form;
[0133] It should be noted that the disclosure frequency refers to the frequency of providing the initial valuation forms corresponding to the same target product.
[0134] Step S442, based on the disclosure frequency, obtaining product verification conditions, wherein the product verification conditions include but are not limited to product disclosure density, delay days, position ratio, and net value;
[0135] It should be noted that the product inspection conditions are set in advance by the staff. Taking the position ratio as an example, if the position ratio information obtained from the target valuation form is within the preset ratio threshold range, the inspection result is that the data is normal, and this verification result is the second verification result.
[0136] Step S443, based on the product inspection condition and the disclosure frequency, verify the asset type and the product information to obtain a second verification result;
[0137] For example, if the disclosure frequency is 1 hour, the position ratio is verified, then it is determined whether the change in the position ratio within one hour is within the preset ratio threshold range to obtain the second test result.
[0138] Step S444: determining a form parsing result based on the first verification result, the second verification result, the asset type and the product information.
[0139] One or more technical solutions proposed in this application have at least the following technical effects:
[0140] The present application proposes an inference calculation method and related equipment. In the related technology, a single valuation form parsing device can only parse some types of valuation forms. For different types of valuation forms, multiple valuation form parsing devices need to be used, and the parsing efficiency is very low. In the present application, first, multiple groups of valuation forms to be parsed are obtained, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats. Then, multiple target products are obtained, and the multiple groups of valuation forms to be parsed are matched with the multiple target products using the current regular matching rules. If the match is successful, multiple groups of initial valuation forms in different form formats are obtained. Furthermore, based on the form item information in the initial valuation form, semantic information corresponding to the form item information is obtained. Based on the semantic information, a preset form format processing model is used to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model. Finally, the target valuation form is parsed to obtain a form parsing result.
[0141] It is understandable that in the related art, the form parsing device needs to use different types of form parsing devices to parse forms of different form formats, which takes a lot of time and has a low parsing efficiency. In the present application, based on the semantic information corresponding to the form item information, the form format of the initial valuation form is unified to obtain multiple groups of target valuation forms of the same form format. Then, the form parsing device only needs to use one valuation form parsing device to complete the parsing of all valuation forms, effectively improving the parsing efficiency.
[0142] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 Before step S300, the form parsing method further includes steps S310 to S350:
[0143] Step S310, obtaining a sample valuation form and a current form format processing model, wherein the target valuation form corresponding to the sample valuation form is a second valuation form;
[0144] It should be noted that the sample valuation form is used to train the current form format processing model.
[0145] Step S320, processing the sample valuation form based on the current form format processing model to obtain a first valuation form;
[0146] It can be understood that the first valuation form is the result obtained after the current form format processing model processes the sample valuation form, and the second valuation form is the actual target valuation form. There may be differences between the first valuation form and the second valuation form. Therefore, if there are differences, the current form format processing model is trained.
[0147] Step S330, determining whether the first valuation form is the same as the second valuation form;
[0148] Step S340: if they are not the same, adjusting the parameters of the current form format processing model;
[0149] Step S350, based on the current form format processing model after adjusting the parameters, returns to the current form format processing model, processes the sample valuation form, and obtains the step of obtaining a first valuation form, until the first valuation form is the same as the second valuation form, and sets the current form format processing model to the preset form format processing model.
[0150] In this embodiment, the form format processing model is trained based on the sample valuation form, which effectively improves the reliability of the target valuation form.
[0151] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the form parsing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0152] This application also provides a form parsing device, please refer to Figure 4 , the form parsing device comprises:
[0153] An acquisition module 10, the acquisition module is used to acquire multiple groups of valuation forms to be parsed, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats;
[0154] A matching module 20, the matching module is used to obtain multiple target products, use the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtain multiple groups of initial valuation forms in different form formats;
[0155] A form processing module 30, the form processing module is used to obtain semantic information corresponding to the form item information based on the form item information in the initial valuation form, and based on the semantic information, use a preset form format processing model to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model;
[0156] The parsing module 40 is used to parse the target valuation form to obtain a form parsing result.
[0157] In one embodiment, the acquisition module includes:
[0158] A receiving unit, configured to receive, based on the configured mailbox, a plurality of initial emails sent by a client, wherein the plurality of initial emails include a target email with an attachment as a valuation form;
[0159] A filtering unit, configured to filter the multiple initial emails to obtain multiple target emails;
[0160] The first acquisition unit is configured to acquire a plurality of valuation forms to be parsed based on the plurality of target emails, wherein the plurality of valuation forms to be parsed include a plurality of valuation forms in different form formats.
[0161] In one embodiment, the matching module includes:
[0162] A second acquisition unit is used to acquire a plurality of target products and determine a first name of a file corresponding to the valuation form and a second name of the target product;
[0163] A matching unit, configured to match a plurality of sets of valuation forms to be parsed with a plurality of target products based on the first name, the second name and a current orthogonal matching rule;
[0164] The setting unit modifies the current orthogonal matching rule if the match fails, and returns to the step of matching multiple groups of valuation forms to be parsed with multiple target products based on the first name, the second name and the current orthogonal matching rule, until the multiple groups of valuation forms to be parsed are successfully matched with the multiple target products, and sets the valuation form that successfully matches as the initial valuation form, wherein the initial valuation form includes multiple types of valuation forms;
[0165] The third acquisition module obtains multiple sets of initial valuation forms in different form formats if the match is successful.
[0166] In one embodiment, the parsing module includes:
[0167] An identification unit, used for identifying a header of the target valuation form;
[0168] A first determining unit is used to determine the product information corresponding to the target valuation form based on the table header, and determine the asset type to which the position asset account in the target valuation form belongs;
[0169] A first verification unit, configured to verify the asset code in the target valuation form based on the asset type to obtain a first verification result;
[0170] The second determining unit is used to determine a form parsing result based on the first verification result, the asset type and the product information.
[0171] In one embodiment, the parsing module further includes:
[0172] A fourth acquisition unit, configured to acquire a disclosure frequency corresponding to the target valuation form;
[0173] A setting unit, used to obtain product verification conditions based on the disclosure frequency, wherein the product verification conditions include but are not limited to product disclosure density, delay days, position ratio, and net value;
[0174] A second verification unit, configured to verify the asset type and the product information based on the product inspection condition and the disclosure frequency, to obtain a second verification result;
[0175] The third determining unit is used to determine the form parsing result based on the first verification result, the second verification result, the asset type and the product information.
[0176] In one embodiment, the form processing module includes:
[0177] A fifth acquisition unit, configured to acquire a sample valuation form and a current form format processing model, wherein the target valuation form corresponding to the sample valuation form is a second valuation form;
[0178] A form processing unit, configured to process the sample valuation form based on a current form format processing model to obtain a first valuation form;
[0179] a determination unit, configured to determine whether the first valuation form is the same as the second valuation form;
[0180] An adjustment unit, if they are not the same, adjusts the parameters of the current form format processing model;
[0181] The training unit is used to return to the current form format processing model based on the current form format processing model after adjusting the parameters, process the sample valuation form, and obtain the first valuation form until the first valuation form is the same as the second valuation form, and set the current form format processing model to the preset form format processing model.
[0182] The form parsing device provided by the present application adopts the form parsing method in the above embodiment, which can solve the technical problems of form parsing. Compared with the prior art, the beneficial effects of the form parsing device provided by the present application are the same as the beneficial effects of the form parsing method provided by the above embodiment, and other technical features in the form parsing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0183] The present application provides a form parsing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the form parsing method in the above-mentioned embodiment 1.
[0184] Reference below Figure 5 , which shows a schematic diagram of the structure of a form parsing device suitable for implementing the embodiment of the present application. The form parsing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The form parsing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0185] like Figure 5As shown, the form parsing device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the form parsing device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the form parsing device to communicate wirelessly or wired with other devices to exchange data. Although the form parsing device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0186] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0187] The form parsing device provided by the present application adopts the form parsing method in the above embodiment to solve the technical problem of form parsing. Compared with the prior art, the beneficial effects of the form parsing device provided by the present application are the same as the beneficial effects of the form parsing method provided by the above embodiment, and other technical features in the form parsing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0188] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0189] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0190] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the form parsing method in the above-mentioned embodiment.
[0191] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0192] The computer-readable storage medium may be included in the form parsing device; or may exist independently without being assembled into the form parsing device.
[0193] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the form parsing device, the form parsing device:
[0194] Acquire multiple groups of valuation forms to be parsed, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats;
[0195] Acquire multiple target products, use the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtain multiple groups of initial valuation forms in different form formats;
[0196] Based on the form item information in the initial valuation form, semantic information corresponding to the form item information is obtained, and based on the semantic information, a preset form format processing model is used to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model;
[0197] The target valuation form is parsed to obtain a form parsing result.
[0198] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0199] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0200] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0201] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned form parsing method, and can solve the technical problems of form parsing. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the form parsing method provided in the above-mentioned embodiment, and will not be elaborated here.
[0202] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned form parsing method when executed by a processor.
[0203] The computer program product provided by this application can solve the technical problem of form parsing. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the form parsing method provided by the above embodiment, which will not be repeated here.
[0204] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A form parsing method, characterized in that: The form parsing method comprises: Acquire multiple groups of valuation forms to be parsed, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats; Acquire multiple target products, use the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtain multiple groups of initial valuation forms in different form formats; Based on the form item information in the initial valuation form, semantic information corresponding to the form item information is obtained, and based on the semantic information, a preset form format processing model is used to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model; The target valuation form is parsed to obtain a form parsing result.
2. The form parsing method according to claim 1, characterized in that: The step of obtaining multiple sets of valuation forms to be parsed also includes: Based on the configured mailbox, receiving multiple initial emails sent by the client, wherein the multiple initial emails include a target email with an attachment as a valuation form; Filtering the multiple initial emails to obtain multiple target emails; Based on the multiple target emails, multiple groups of valuation forms to be parsed are obtained, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats.
3. The form parsing method according to claim 1, characterized in that: The step of matching the multiple groups of valuation forms to be parsed with the multiple target products using the current regular matching rule, and obtaining multiple groups of initial valuation forms in different form formats if the matching is successful, further includes: Acquire multiple target products, and determine the first name of the file corresponding to the valuation form and the second name of the target product; Based on the first name, the second name and the current orthogonal matching rule, matching multiple groups of valuation forms to be parsed with multiple target products; If the match fails, modify the current orthogonal matching rule, and return to the step of matching multiple groups of valuation forms to be parsed with multiple target products based on the first name, the second name and the current orthogonal matching rule, until the multiple groups of valuation forms to be parsed are successfully matched with the multiple target products, and set the valuation form that successfully matches as the initial valuation form, wherein the initial valuation form includes multiple types of valuation forms; If the match is successful, multiple sets of initial valuation forms in different form formats are obtained.
4. The form parsing method according to claim 1, characterized in that: The step of parsing the target valuation form to obtain the form parsing result also includes: identifying a header of the target valuation form; Based on the table header, determine the product information corresponding to the target valuation form, and determine the asset type to which the position asset account in the target valuation form belongs; Based on the asset type, verify the asset code in the target valuation form to obtain a first verification result; A form parsing result is determined based on the first verification result, the asset type, and the product information.
5. The form parsing method according to claim 4, characterized in that: The step of determining the form parsing result based on the first verification result, the asset type and the product information further includes: Obtain the disclosure frequency corresponding to the target valuation form; Based on the disclosure frequency, obtain product verification conditions, wherein the product verification conditions include but are not limited to product disclosure density, delay days, position ratio, and net value; Based on the product inspection condition and the disclosure frequency, verify the asset type and the product information to obtain a second verification result; A form parsing result is determined based on the first verification result, the second verification result, the asset type and the product information.
6. The form parsing method according to claim 1, characterized in that: Before the step of using a preset form format processing model to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, the method further includes: Obtaining a sample valuation form and a current form format processing model, wherein the target valuation form corresponding to the sample valuation form is a second valuation form; Based on the current form format processing model, the sample valuation form is processed to obtain a first valuation form; determining whether the first valuation form is the same as the second valuation form; If they are not the same, adjusting the parameters of the current form format processing model; Based on the current form format processing model after adjusting the parameters, return to the current form format processing model, process the sample valuation form, and obtain the step of obtaining a first valuation form, until the first valuation form is the same as the second valuation form, and set the current form format processing model to the preset form format processing model.
7. A form parsing device, characterized in that: The form parsing device comprises: An acquisition module, the acquisition module is used to acquire multiple groups of valuation forms to be parsed, wherein the multiple groups of valuation forms to be parsed include multiple groups of valuation forms in different form formats; A matching module, the matching module is used to obtain multiple target products, use the current regular matching rule to match the multiple groups of valuation forms to be parsed with the multiple target products, and if the matching is successful, obtain multiple groups of initial valuation forms in different form formats; A form processing module, the form processing module is used to obtain semantic information corresponding to the form item information based on the form item information in the initial valuation form, and based on the semantic information, use a preset form format processing model to process the initial valuation form to obtain multiple groups of target valuation forms in the same form format, wherein the preset form format processing model is a trained form format processing model; The parsing module is used to parse the target valuation form to obtain a form parsing result.
8. A form parsing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the form parsing method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the form parsing method according to any one of claims 1 to 6 are 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 steps of the form parsing method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Cross-platform valuation table analysis method, storage media and application server
CN107274291A
Asset management scheme configuration method and system
CN117010817A
Multi-source valuation table data analysis method and system
CN117113932A
Electric drive assembly fault diagnosis method and device based on large language model
CN118035757A
Automated assignment of data set value via semantic matching
US11550834B1