Method for matching financial statement subjects, processor and storage medium

By parsing financial statements and calculating string and vector similarities, financial statement accounts are automatically matched, which solves the problem of cross errors caused by differences in customer-defined rules and improves matching accuracy and efficiency.

CN118735706APending Publication Date: 2024-10-01CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410880457.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, when matching financial statement accounts, there are cross errors caused by differences in customer-defined rules, which require manual correction or manual supplementary entry, which is inefficient.

Method used

By parsing the financial statements, we obtain the original accounts and match the records according to the customer's accounts, calculate the string similarity and vector similarity, and select the standard account corresponding to the maximum similarity score as the target standard account that does not match the original account to achieve automatic matching.

Benefits of technology

It improves the accuracy and efficiency of subject matching, reduces manual intervention, is suitable for different customer scenarios, and simplifies industrial applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735706A_ABST
    Figure CN118735706A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for matching financial statement subjects, a processor, a storage medium and a computer program product, and belongs to the technical field of computer image and text processing. The method comprises the steps of analyzing a to-be-identified financial statement, and obtaining a plurality of original subjects in the to-be-identified financial statement; acquiring a customer corresponding to the financial statement to be identified, and acquiring a subject matching record corresponding to the customer; and according to the subject matching record corresponding to the customer, obtaining a standard subject matched with the original subject in the financial statement to be identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer image and text processing, and in particular to a method, processor, storage medium, and computer program product for matching financial statement subjects. Background Art

[0002] In the prior art, image recognition technology is usually used to identify financial statement files, obtain the names and values ​​of each accounting account in the report, and map the names of the accounting accounts in the report in the recognition results to standard accounting account names and automatically enter them into the computer system for analysis by business personnel. Since each company uses custom rules to define the names of financial statement accounts, when actually determining the standard catalogable names corresponding to the original account names customized by the customer, it is often necessary to manually correct the original account that does not match the standard account, or manually re-enter the original account that does not match the standard account. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a method, processor, storage medium, and computer program product for matching financial statement items, which can solve or at least partially solve the above-mentioned defects of the prior art.

[0004] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for matching financial statement accounts, the method comprising:

[0005] Parsing the financial statements to be identified, and obtaining a plurality of original accounts in the financial statements to be identified;

[0006] Obtain the customer corresponding to the financial statement to be identified, and obtain the account matching record corresponding to the customer; and

[0007] According to the account matching record corresponding to the customer, the standard account matched by the original account in the financial statement to be identified is obtained.

[0008] Optionally, the method comprises:

[0009] For the original accounts that were not matched, do the following:

[0010] Based on the original subject, generate a corresponding first character sequence;

[0011] Based on a plurality of standard subjects, generating a corresponding second character sequence;

[0012] Calculating the string similarity between the first character sequence and the second character sequence; generating a corresponding first vector based on the original subject;

[0013] Based on the plurality of standard subjects, generating a corresponding second vector;

[0014] calculating a vector similarity between the first vector and the second vector;

[0015] Calculating similarity scores between the unmatched original subjects and the plurality of standard subjects based on the string similarity and the vector similarity; and

[0016] The standard subject corresponding to the maximum similarity score is selected as the target standard subject corresponding to the unmatched original subject.

[0017] Optionally, the method further includes:

[0018] After selecting the standard subject corresponding to the maximum similarity score as the target standard subject corresponding to the unmatched original subject, the mapping relationship between the unmatched original subject and the corresponding target standard subject is saved in the subject matching record corresponding to the customer.

[0019] Optionally, the string similarity between the first character sequence a and the second character sequence b is lev a,b (|a|,|b|) is determined by the following formula:

[0020]

[0021] in,

[0022] |a| represents the length of the first character sequence a;

[0023] |b| represents the length of the second character sequence b;

[0024] is the indicator function, when a i =b j When a i ≠b j When , its value is 1;

[0025] lev a,b (i, j) represents the string similarity between the first i characters of the first character sequence a and the first j characters of the second character sequence b, and i and j are both subscripts starting from 1.

[0026] Optionally, the generating of a corresponding first vector based on the original subject; and the generating of a corresponding second vector based on the plurality of standard subjects include:

[0027] Segmenting the original subject to generate a corresponding first segmentation set;

[0028] Segmenting the standard subjects to generate a corresponding second segmentation set;

[0029] Inputting the first word segmentation set into a preset model to generate a first vector corresponding to the original subject; and

[0030] The second word segmentation set is input into a preset model to generate a second vector corresponding to the standard subject.

[0031] Optionally, the generating of a corresponding first vector based on the original subject; and the generating of a corresponding second vector based on the plurality of standard subjects also include:

[0032] Before segmenting the original subject, the interference words of the original subject are removed by using a preset interference word set.

[0033] Optionally, the vector similarity between the first vector and the second vector is calculated by the following formula:

[0034]

[0035] Wherein, X represents the first vector; Y represents the second vector; S(X,Y) represents the vector similarity between the first vector X and the second vector Y; ‖X‖ represents the modulus of the first vector X, and ‖Y‖ represents the modulus of the second vector Y.

[0036] Optionally, the calculating, based on the string similarity and the vector similarity, a similarity score between the unmatched original subject and the plurality of standard subjects; and selecting a standard subject corresponding to a maximum similarity score as a target standard subject corresponding to the unmatched original subject comprises:

[0037] Standardizing the string similarity and the vector similarity between the unmatched original subject and the plurality of standard subjects respectively, so as to map the string similarity and the vector similarity to a preset interval range;

[0038] Calculating similarity scores between the unmatched original subjects and the plurality of standard subjects based on the standardized string similarity and the vector similarity;

[0039] The similarity scores between any unmatched original subject among the multiple unmatched original subjects and multiple standard subjects are sorted, and the standard subject corresponding to the maximum similarity score is selected as the target standard subject corresponding to the original subject.

[0040] Optionally, the string similarity and vector similarity between the unmatched original subject and the standard subject are standardized using the following formula:

[0041]

[0042] Among them, x represents string similarity or vector similarity sample data, x new represents the standardized string similarity or vector similarity, μ represents the average value of multiple string similarity or vector similarity sample data, and σ represents the standard deviation of multiple string similarity or vector similarity sample data.

[0043] Optionally, the similarity score between the unmatched original subject and the standard subject is calculated using the following formula:

[0044] y=a*X1+b*X2

[0045] Among them, y represents the similarity score between the unmatched original subject and the standard subject; a and b represent weight parameters; X1 represents the string similarity between the unmatched original subject and the standard subject; X2 represents the vector similarity between the unmatched original subject and the standard subject.

[0046] A second aspect of the present application provides a processor configured to execute the method for matching financial statement accounts.

[0047] A third aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the method for matching financial statement accounts.

[0048] A fourth aspect of the present application provides a computer program product, including a computer program, which implements the financial statement account matching method when executed by a processor.

[0049] The embodiment of the present invention provides a method for matching financial statement accounts. On the one hand, account mapping rules of the customer dimension are used preferentially. Even if different customers use different mapping rules for report accounts, there will be no cross-errors between different customers, thereby improving the accuracy of account matching in scenarios with different customers. On the other hand, based on the string similarity and vector similarity between the original account and the standard account, a similarity score is calculated, and the standard account corresponding to the maximum similarity score is selected as the target standard account corresponding to the original account. The calculation accuracy is high and it is easy to implement and apply in the industry.

[0050] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0052] Figure 1 It is a flowchart of a method for matching financial statement accounts provided in an embodiment of the present application;

[0053] Figure 2 The embodiment of the present application provides any original subject A i Determine the corresponding target standard subject T i Schematic diagram of the matching process;

[0054] Figure 3 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0056] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0057] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0058] The acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In addition, it should be noted that in the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0059] Figure 1 is a flow chart of a method for matching financial statement accounts provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0060] Step S101: parse the financial statement to be identified and obtain a plurality of original accounts in the financial statement to be identified.

[0061] Specifically, a standard accounting subject system is established in advance to determine the standard subject names and codes for financial statements, such as cash on hand 1002, bank deposits 1012, other monetary funds 1101, trading financial assets 1121, notes receivable 1122, accounts receivable 1123, and prepaid expenses 1221.

[0062] Furthermore, a corresponding composite data structure and data dictionary are constructed according to the standard account names and codes of the financial statements. The composite data structure includes standard account information, and the data dictionary includes search keys and corresponding values.

[0063] In one embodiment, the composite data structure includes a standard subject name, code, creation time, and modification time. The search key of the data dictionary is the standard subject code, and the value of the data dictionary includes the subject information corresponding to the composite structure. Furthermore, the composite structure can be serialized, and the string information generated after serialization is used as the value of the data dictionary.

[0064] In one embodiment, a financial report template is pre-configured, and the financial report file is identified using the pre-configured financial inclusion and image recognition technology to obtain multiple original accounts in the financial report to be identified. For electronic financial reports, the electronic financial report can be converted into an image file, and then the text information in the image file can be identified using text recognition technology to obtain multiple original accounts in the financial report. For paper financial reports, the paper financial report file can be converted into an image file through optical input methods such as scanning, and then the text information in the image file can be identified using text recognition technology to obtain multiple original accounts in the financial report.

[0065] Step S102: Obtain the customer corresponding to the financial statement to be identified, and obtain the account matching record corresponding to the customer.

[0066] Step S103: According to the account matching record corresponding to the customer, obtain the standard account that matches the original account in the financial statement to be identified.

[0067] In one embodiment, since different customers have different rules for defining the accounts of financial statements, after obtaining the customer corresponding to the financial statement to be identified, the account matching record corresponding to the customer is obtained, and then the standard account matching the original account in the financial statement to be identified is obtained based on the account matching record corresponding to the customer. This can avoid the cross-matching error problem caused by matching the financial statement accounts customized by different customers with the standard accounts.

[0068] Step S104: For the unmatched original subjects, subject matching is performed to obtain the corresponding standard subjects.

[0069] Specifically, the matching process of obtaining the corresponding standard subject for any original subject among the unmatched original subjects is specifically described. Figure 2 The embodiment of the present application provides any original subject A i Determine the corresponding target standard subject T i Schematic diagram of the matching process;

[0070] Reference Figure 2 , according to any original subject A i Determine the corresponding target standard subject T i The matching process includes:

[0071] Step S201: traverse the preset standard subject set Q and determine the original subject A i Whether the name of the preset standard subject Q in the preset standard subject set Q i The name of the

[0072] If no matching original subject A is found i If a standard subject that matches the original subject A is found, jump to step S202; i Exactly matching standard subjects will be added to the original subject A i The preset standard subject that matches exactly is used as the target standard subject T i , jump to step S212.

[0073] In one embodiment, the original subject A is first generated by using a string processing function. i The first character sequence corresponding to the name of , and any preset standard subject Q in the preset standard subject set Q i The name generates a corresponding second character sequence, which is applicable to Chinese subject names, English subject names, and subject names corresponding to other character types.

[0074] Then based on the original subject A i The generated first character sequence and the plurality of second character sequences corresponding to the plurality of preset standard subjects in the preset standard subject set Q are subjected to a complete matching process, wherein the complete matching means that the contents of the two matched character strings are completely identical.

[0075] In one embodiment, when a standard subject that completely matches an original subject is found, the standard subject A is directly matched with the original subject A. i The preset standard subject that matches exactly is used as the target standard subject T i , the matching process can be ended.

[0076] Step S202: original subject A i Perform preprocessing.

[0077] In one embodiment, for the original subject A i The preprocessing includes a step of removing interference words. Specifically, according to the characteristics of the account name of the financial statement, a set of interference words is preset, and the interference words in the original account are removed by using the preset interference word set. For example, the interference words in the preset interference word set include: "plus", "minus", "etc.", "of", "ten thousand yuan", "yuan", "one", "two", "three", ":", "(", ")" and "-".

[0078] Step S203: Calculate the original subject A i The string similarity between the plurality of standard subjects in the preset standard subject set Q.

[0079] In one embodiment, based on the original subject A i The generated first character sequence and multiple second character sequences corresponding to multiple preset standard subjects in the preset standard subject set Q are used to calculate the original subject A i The string similarity between the plurality of standard subjects in the preset standard subject set Q.

[0080] In one embodiment, the string similarity lev between the first character sequence a and the second character sequence b is calculated using the following formula: a,b (|a|,|b|):

[0081]

[0082] in,

[0083] |a| represents the length of the first character sequence a;

[0084] |b| represents the length of the second character sequence b;

[0085] is the indicator function, when ai =b j When a i ≠b j When , its value is 1;

[0086] lev a,b (i, j) represents the string similarity between the first i characters of the first character sequence a and the first j characters of the second character sequence b, and i and j are both subscripts starting from 1.

[0087] It should be noted that the formula lev in the min operation a,b (i-1,j)+1 means deleting characters (from the first character sequence a) (to reach the second character sequence b); the formula lev a,b (i,j-1)+1 represents the inserted character; the formula Represents replacement (depending on whether the current character is the same).

[0088] In another embodiment, the original subject A is calculated using the Hamming distance i The string similarity between the plurality of standard subjects in the preset standard subject set Q.

[0089] In one embodiment, an array structure is used to store the calculated original subject A. i The string similarity between the plurality of standard subjects in the preset standard subject set Q.

[0090] Step S204: original subject A i The name is segmented.

[0091] In one embodiment, the original subject A is first generated by using a string processing function. i The first character sequence corresponding to the name.

[0092] Then use the word segmentation tool to i The first character sequence corresponding to the name is segmented to generate the corresponding first segmentation set. For example, "buy back and sell financial assets" is segmented into "buy", "sell back", "finance", and "assets". Furthermore, the segmentation function can be realized by using segmentation tools such as Jieba, THULAC, HanLP, SnowNLP, NLTK, THULAC, NLPIR, and Stanford.

[0093] Step S205: original subject A i The name segmentation results are converted into vectors.

[0094] In one embodiment, the first word segmentation set is input into a preset model to generate a first vector corresponding to the original subject.

[0095] In another embodiment, the first vector corresponding to the original subject is generated using the word2vec language model. The word2vec model is based on deep learning technology and has two main architectures: Continuous Bag of Words (CBOW) and Skip-Gram.

[0096] Step S206: perform word segmentation processing on multiple standard subjects in the preset standard subject set Q.

[0097] In one embodiment, a string processing function is first used to generate second word sequences corresponding to multiple standard subjects in a preset standard subject set Q. Then, a word segmentation tool is used to segment the second word sequences corresponding to the multiple standard subjects to generate corresponding multiple second word segmentation sets.

[0098] Step S207: Convert the word segmentation results of multiple standard subjects in the preset standard subject set Q into vectors.

[0099] In one embodiment, a plurality of second word segmentation sets are sequentially input into a preset model to generate a plurality of second vectors corresponding to a plurality of standard subjects.

[0100] In another embodiment, a fastText model is used to generate a plurality of second vectors corresponding to a plurality of standard subjects.

[0101] Step S208: Calculate the original subject A i The vector similarity between the plurality of standard subjects in the preset standard subject set Q.

[0102] Specifically, to calculate the original subject A i Taking the vector similarity between the corresponding first vector X and the second vector Y corresponding to any standard subject in the preset standard subject set Q as an example, step S208 is specifically described.

[0103] In one embodiment, the vector similarity between the first vector X and the second vector Y is calculated using the following formula:

[0104]

[0105] Where X represents the first vector; Y represents the second vector; S(X,Y) represents the vector similarity between the first vector X and the second vector Y; ‖X‖ represents the modulus of the first vector X, and ‖Y‖ represents the modulus of the second vector Y; X i represents the i-th element in the first vector X; Y i Represents the i-th element in the second vector Y.

[0106] In another embodiment, the vector similarity between the first vector and the second vector may be calculated using Chebyshev distance or standardized Euclidean distance.

[0107] In one embodiment, an array structure is used to store the calculated original subject A. i The vector similarity between the plurality of standard subjects in the preset standard subject set Q.

[0108] Step S209 : normalizing the multiple string similarities calculated in step S203 and the multiple vector similarities calculated in step S208 .

[0109] In one embodiment, the following formula is used to calculate the original subject A i The string similarity and vector similarity between multiple standard subjects in the preset standard subject set Q are normalized to map the string similarity and vector similarity to a preset interval range:

[0110]

[0111] Among them, x represents string similarity or vector similarity sample data, x new represents the standardized string similarity or vector similarity, μ represents the average value of multiple string similarity or vector similarity sample data, and σ represents the standard deviation of multiple string similarity or vector similarity sample data.

[0112] Step S210: Calculate the original subject A based on the multiple string similarities and multiple vector similarities after the normalization process in step S209. i and the similarity scores between multiple standard subjects in the preset standard subject set Q.

[0113] In one embodiment, the original account A is calculated using the following formula: i and any standard subject Q in the preset standard subject set Q i Similarity score between:

[0114] y=a*X1+b*X2

[0115] Among them, y represents the original subject A i and standard subjects Q i Similarity score between them; a and b represent weight parameters; X1 represents the original subject A i and standard subjects Q i The string similarity between them; X2 represents the original subject A i and standard subjects Q i The vector similarity between .

[0116] Step S211: Select the standard subject corresponding to the maximum similarity score as the original subject A i Corresponding target standard subjects T i .

[0117] In one embodiment, for the original subject A i The similarity scores between the original subject and the multiple standard subjects in the preset standard subject set Q are sorted, and the standard subject corresponding to the maximum similarity score is selected as the target standard subject T corresponding to the original subject i .

[0118] Step S212: Output original subject A i Matched target standard subject T i .

[0119] In one embodiment, in determining the original subject A i Matching target standard subject T i After that, the original subject A i With target standard subjects T i The mapping relationship between them is saved in the subject matching record corresponding to the customer.

[0120] In one embodiment, the matching relationship between multiple original accounts and corresponding standard accounts in the final financial statements to be identified is visualized, and the accounts that have not been successfully matched are marked. When the business personnel modify the standard account corresponding to any of the original accounts, the modified standard account is used for corresponding replacement and saved to the account matching record of the customer corresponding to the financial statements to be identified.

[0121] In one embodiment, the financial statement template and account verification business logic are pre-configured, for example, "current ratio = current assets / current liabilities * 100%" is set. After determining the standard accounts corresponding to multiple original accounts in the financial statement to be identified, the values ​​of the financial statement accounts to be identified are verified according to the pre-configured financial statement template and account verification business logic, and the corresponding value verification results are displayed for confirmation and modification by business personnel. For example, the values ​​corresponding to "current assets" and "current liabilities" in the financial statement accounts to be identified are substituted into the "current ratio" formula for calculation, and the calculation results are compared with the current ratio values ​​in the original financial statement to be identified to see if they are equal. For related accounts whose calculation results do not conform to the business logic, the business personnel are prompted to modify the mapping relationship between the original accounts and the standard accounts, or the values ​​corresponding to the original accounts.

[0122] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a method for matching financial statement accounts is implemented. The display screen A04 of the computer device can be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0123] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] An embodiment of the present application provides a processor configured to execute the above-mentioned method for matching financial statement accounts.

[0125] An embodiment of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to implement the above-mentioned method for matching financial statement accounts.

[0126] An embodiment of the present application provides a computer program product, including a computer program, which implements the above-mentioned method for matching financial statement accounts when executed by a processor.

[0127] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method for matching financial statement accounts is executed.

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

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

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

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

[0132] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0133] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0134] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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, 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. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0135] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0136] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for matching financial statement accounts, the method comprising: Parsing the financial statements to be identified, and obtaining a plurality of original accounts in the financial statements to be identified; Obtain the customer corresponding to the financial statement to be identified, and obtain the account matching record corresponding to the customer; as well as According to the account matching record corresponding to the customer, obtain the standard account that matches the original account in the financial statement to be identified; For the original accounts that were not matched, do the following: Based on the original subject, generate a corresponding first character sequence; Based on a plurality of standard subjects, generating a corresponding second character sequence; Calculating string similarity between the first character sequence and the second character sequence; Based on the original subject, generate a corresponding first vector; Based on the plurality of standard subjects, generating a corresponding second vector; calculating a vector similarity between the first vector and the second vector; Calculating similarity scores between the unmatched original subjects and the plurality of standard subjects based on the string similarity and the vector similarity; as well as The standard subject corresponding to the maximum similarity score is selected as the target standard subject corresponding to the unmatched original subject.

2. The method according to claim 1, characterized in that The method further comprises: After selecting the standard subject corresponding to the maximum similarity score as the target standard subject corresponding to the unmatched original subject, the mapping relationship between the unmatched original subject and the corresponding target standard subject is saved in the subject matching record corresponding to the customer.

3. The method according to claim 1, characterized in that The string similarity between the first character sequence a and the second character sequence b is lev a,b (|a|,|b|) is determined by the following formula: in, |a| represents the length of the first character sequence a; |b| represents the length of the second character sequence b; is the indicator function, when a i =b j When a i ≠b j When , its value is 1; lev a,b (i, j) represents the string similarity between the first i characters of the first character sequence a and the first j characters of the second character sequence b, and i and j are both subscripts starting from 1.

4. The method according to claim 1, wherein the first vector is generated based on the original subject; and generating a corresponding second vector based on the plurality of standard subjects; comprising: Segmenting the original subject to generate a corresponding first segmentation set; Segmenting the standard subjects to generate a corresponding second segmentation set; Inputting the first word segmentation set into a preset model to generate a first vector corresponding to the original subject; and The second word segmentation set is input into a preset model to generate a second vector corresponding to the standard subject.

5. The method according to claim 4, characterized in that generating a corresponding first vector based on the original subject; and Based on the plurality of standard subjects, generating a corresponding second vector; further comprising: Before segmenting the original subject, the interference words of the original subject are removed by using a preset interference word set.

6. The method according to claim 1, characterized in that The vector similarity between the first vector and the second vector is calculated by the following formula: Wherein, X represents the first vector; Y represents the second vector; S(X,Y) represents the vector similarity between the first vector X and the second vector Y; ‖X‖ represents the modulus of the first vector X, and ‖Y‖ represents the modulus of the second vector Y.

7. The method according to claim 1, characterized in that The calculating, based on the string similarity and the vector similarity, a similarity score between the unmatched original subject and the plurality of standard subjects; And selecting the standard subject corresponding to the maximum similarity score as the target standard subject corresponding to the unmatched original subject includes: Standardizing the string similarity and the vector similarity between the unmatched original subject and the plurality of standard subjects respectively, so as to map the string similarity and the vector similarity to a preset interval range; Calculating similarity scores between the unmatched original subjects and the plurality of standard subjects based on the standardized string similarity and the vector similarity; The similarity scores between any unmatched original subject among the multiple unmatched original subjects and multiple standard subjects are sorted, and the standard subject corresponding to the maximum similarity score is selected as the target standard subject corresponding to the original subject.

8. The method according to claim 7, characterized in that The string similarity and vector similarity between the unmatched original subject and the standard subject are standardized using the following formula: Among them, x represents string similarity or vector similarity sample data, x new represents the standardized string similarity or vector similarity, μ represents the average value of multiple string similarity or vector similarity sample data, and σ represents the standard deviation of multiple string similarity or vector similarity sample data.

9. The method according to claim 7, characterized in that: The similarity score between the unmatched original subject and the standard subject is calculated using the following formula: y=a*X1+b*X2 Among them, y represents the similarity score between the unmatched original subject and the standard subject; a and b represent weight parameters; X1 represents the string similarity between the unmatched original subject and the standard subject; X2 represents the vector similarity between the unmatched original subject and the standard subject.

10. A processor, characterized in that: The method is configured to execute the method for matching financial statement accounts according to any one of claims 1 to 9.

11. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to perform the method for matching financial statement accounts according to any one of claims 1 to 9.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the financial statement account matching method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Multilink financial subject mapping method and system fusing semantic model and rule matching

    CN121579453A