Method and device for automatically processing tax refund data, terminal and storage medium

Through automated processing of tax refund data, including obtaining delivery plan information, extracting product information, matching invoices and customs declaration documents, and automatically generating tax refund declaration information, it solves the problem of inefficiency in the traditional tax refund declaration process and achieves more efficient and accurate tax refund data processing.

CN119648447AActive Publication Date: 2025-03-18SHENZHEN MINGXIN DIGITAL TECH CO LTD

Patent Information

Application Number
CN202510170403.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-03-18
Estimated Expiration
2045-02-17

AI Technical Summary

Technical Problem

The traditional tax refund declaration process requires a lot of manpower to process documents, resulting in inefficiency.

Method used

Through the method of automatically processing tax refund data, we obtain delivery plan information, extract product information, match invoices and customs declaration documents, automatically generate tax refund declaration information and send it to the tax refund system.

Benefits of technology

It improves the efficiency of tax refund data processing, reduces manual intervention, and improves the accuracy and efficiency of the processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119648447A_ABST
    Figure CN119648447A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a method and device for automatically processing tax refund data, a terminal and a storage medium, and the method comprises the steps: obtaining the delivery plan information of a target user; carrying out commodity information extraction on the delivery plan information to obtain target commodity information; performing invoice and customs declaration document matching on the target commodity information to obtain target invoice information and target customs declaration documents; generating tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration receipt; and sending the tax refund declaration information to a tax refund system to instruct the tax refund system to perform tax refund processing, thereby improving the accuracy of performing automatic processing on the tax refund data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, terminal and storage medium for automatically processing tax refund data. Background Art

[0002] Exporters need to obtain tax refunds through a complex tax refund declaration process. The traditional tax refund declaration process involves a large amount of paper and electronic document processing, including customs declarations, invoices, shipping plans, and bank settlement receipts. These documents are in various formats and have a huge amount of data, which requires a lot of manpower for data acquisition, document identification, document matching, and declaration submission.

[0003] In the existing solutions, a large number of professional knowledge personnel are still required to perform manual intervention when processing tax refund data, which leads to low efficiency in processing tax refund data. Summary of the invention

[0004] The embodiments of the present application provide a method, device, terminal and storage medium for automatically processing tax refund data, which can automatically extract the target user's shipping plan information and match the corresponding invoice information and customs declaration documents, and finally automatically generate tax refund declaration information for tax refund application, thereby improving the efficiency of processing tax refund data.

[0005] A first aspect of an embodiment of the present application provides a method for automatically processing tax refund data, the method comprising: Obtain the target user's delivery plan information; Extracting commodity information from the delivery plan information to obtain target commodity information; Matching the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents; Generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document; The tax refund declaration information is sent to the tax refund system to instruct the tax refund system to perform tax refund processing.

[0006] In a possible implementation, matching the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents includes: Extracting a supplier name and a product name from the target product information; Performing an initial invoice and a customs declaration document match according to the commodity name and the supplier name to obtain a first invoice matching result and a first customs declaration document matching result; If the first invoice matching result and / or the first customs declaration document matching result is empty, performing product name association processing on the product name to obtain a first associated product name set; Perform secondary matching of invoices and customs declaration documents according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set; Extracting the first associated matching information corresponding to the second invoice matching result in the second invoice matching result set to obtain a first associated matching information set, and extracting the second associated matching information corresponding to the second customs declaration document matching result in the second customs declaration document matching result set to obtain a second associated matching information set; The target invoice information corresponding to the target commodity information is determined from the second invoice matching result set according to the first associated matching information set, and the target customs declaration document corresponding to the target commodity information is determined from the second customs declaration document matching result set according to the second associated matching information set.

[0007] In a possible implementation, determining the target invoice information corresponding to the target commodity information from the second invoice matching result set according to the first associated matching information set includes: Determine the number of times the invoice information in the corresponding invoice matching result is successfully associated and matched according to the first associated matching information in the first associated matching information set, and obtain a matching number set; Extracting the second invoice matching result with a matching number of zero from the second invoice matching result set according to the matching number set, to obtain a reference invoice matching result set; Determine a transaction party information set and a transaction time information set according to the reference invoice matching result set; Obtaining user information corresponding to the target user to obtain target user information; Determine a preliminary invoice matching result set based on the transaction party information set and the target user information; Extracting k suspected target invoice information from the preliminary invoice matching result set according to the transaction time information set; The k pieces of suspected target invoice information are verified to obtain target invoice information corresponding to the target commodity information.

[0008] In a possible implementation, the verifying process of the k suspected target invoice information to obtain the target invoice information corresponding to the target commodity information includes: n suspected target customs declaration documents in the process of determining the target customs declaration document corresponding to the target commodity information from the second customs declaration document matching result set according to the second associated matching information set; Verification is performed using n suspected target customs declaration documents and k suspected target invoice information, and the suspected target invoice information in the suspected target customs declaration documents and suspected target invoice information that match each other is determined as the target invoice information corresponding to the target commodity information.

[0009] In a possible implementation, extracting commodity information from the delivery plan information to obtain target commodity information includes: Perform text recognition on the delivery plan information to obtain text recognition results; Performing keyword extraction on the text recognition result to obtain a keyword set; The target product information is determined according to the keyword set.

[0010] A second aspect of an embodiment of the present application provides a device for automatically processing tax refund data, the device comprising: An acquisition unit, used to acquire the delivery plan information of the target user; An extraction unit, used to extract commodity information from the delivery plan information to obtain target commodity information; A matching unit, used to match the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents; A generating unit, configured to generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document; The sending unit is used to send the tax refund declaration information to the tax refund system to instruct the tax refund system to perform tax refund processing.

[0011] In a possible implementation, the matching unit is specifically configured to: Extracting a supplier name and a product name from the target product information; Performing an initial invoice and a customs declaration document match according to the commodity name and the supplier name to obtain a first invoice matching result and a first customs declaration document matching result; If the first invoice matching result and / or the first customs declaration document matching result is empty, performing product name association processing on the product name to obtain a first associated product name set; Perform secondary matching of invoices and customs declaration documents according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set; Extracting the first associated matching information corresponding to the second invoice matching result in the second invoice matching result set to obtain a first associated matching information set, and extracting the second associated matching information corresponding to the second customs declaration document matching result in the second customs declaration document matching result set to obtain a second associated matching information set; The target invoice information corresponding to the target commodity information is determined from the second invoice matching result set according to the first associated matching information set, and the target customs declaration document corresponding to the target commodity information is determined from the second customs declaration document matching result set according to the second associated matching information set.

[0012] In a possible implementation, in determining the target invoice information corresponding to the target commodity information from the second invoice matching result set according to the first associated matching information set, the matching unit is specifically configured to: Determine the number of times the invoice information in the corresponding invoice matching result is successfully associated and matched according to the first associated matching information in the first associated matching information set, and obtain a matching number set; Extracting the second invoice matching result with a matching number of zero from the second invoice matching result set according to the matching number set, to obtain a reference invoice matching result set; Determine a transaction party information set and a transaction time information set according to the reference invoice matching result set; Obtaining user information corresponding to the target user to obtain target user information; Determine a preliminary invoice matching result set based on the transaction party information set and the target user information; Extracting k suspected target invoice information from the preliminary invoice matching result set according to the transaction time information set; The k pieces of suspected target invoice information are verified to obtain target invoice information corresponding to the target commodity information.

[0013] A third aspect of an embodiment of the present application provides a terminal, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.

[0014] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.

[0015] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0016] Implementing the embodiments of the present application has at least the following beneficial effects: By acquiring the target user's shipping plan information, extracting commodity information from the shipping plan information to obtain the target commodity information, matching the target commodity information with the invoice and the customs declaration document to obtain the target invoice information and the target customs declaration document, generating tax refund declaration information based on the target commodity information, the target invoice information and the target customs declaration document, and sending the tax refund declaration information to the tax refund system to instruct the tax refund system to perform tax refund processing, the target user's shipping plan information can be automatically extracted and the corresponding invoice information and customs declaration document can be matched, and finally the tax refund declaration information is automatically generated to apply for tax refund, thereby improving the efficiency in processing tax refund data. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A flowchart of a method for automatically processing tax refund data is provided for an embodiment of the present application; Figure 2 A schematic diagram of the structure of a terminal provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of a device for automatically processing tax refund data is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0021] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0022] In order to better understand the method for automatically processing tax refund data provided by the embodiment of the present application, the existing tax refund methods are first briefly introduced below. In the existing scheme, when processing customs-related tax refunds, the traditional OCR (Optical Character Recognition) technology is mainly used to identify documents, and a simple rule matching method is used to match documents. However, the recognition accuracy of traditional OCR technology for documents in complex formats is not high, and the rule matching method lacks flexibility and cannot adapt to changing business needs. In addition, these technologies are usually difficult to handle shipping plans and exchange settlement receipts in different formats, and a large amount of manual participation is required for matching and other processing, which makes the efficiency low when reimbursing documents, and the accuracy is also low.

[0023] In order to solve the above-mentioned problems, an embodiment of the present application provides a method for automatically processing tax refund data, which can automatically extract the target user's shipping plan information and match the corresponding invoice information and customs declaration documents, and finally automatically generate tax refund declaration information for tax refund application, thereby improving the efficiency of processing tax refund data.

[0024] See also Figure 1 , Figure 1 The present invention provides a flow chart of a method for automatically processing tax refund data. Figure 1 As shown, the method includes: Step 101: Obtain the target user's delivery plan information.

[0025] Among them, it can be through establishing a data interface with the customer system, and obtaining the corresponding delivery plan information of the target user from the customer system through the data interface. The delivery plan information can be understood as the delivery plan and delivery documents of the target user when conducting cross-border delivery. The delivery plan information may include the name of the shipped goods, the information of the two parties to the transaction, and the delivery time of the goods. The information of the two parties to the transaction can be understood as the information of the supplier and the information of the buyer.

[0026] Step 102: extract commodity information from the delivery plan information to obtain target commodity information.

[0027] The target product information may be determined by performing text recognition and keyword extraction on the delivery plan information to obtain a keyword set, and then determining the target product information according to the keyword set. The target product information includes the buyer name, supplier name, product name, product quantity, product unit price, and product total price.

[0028] Step 103: Match the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents.

[0029] Among them, the first invoice matching result and the first customs declaration matching result can be obtained by extracting the supplier name and the commodity name in the target commodity information, and matching the first invoice with the customs declaration document according to the supplier name and the commodity name. It is understandable that the first invoice matching result and the first customs declaration matching result can also be obtained by extracting the buyer name and the commodity name in the target commodity information, and matching the first invoice with the customs declaration document according to the buyer name and the commodity name; or the first invoice matching result and the first customs declaration matching result can also be obtained by matching the first invoice with the customs declaration document according to the invoice header, the issuer, etc.

[0030] If both the first invoice matching result and the first customs declaration document matching result are not empty, it indicates that the matching is successful. Then, the invoice in the first invoice matching result can be determined as the final invoice, and the customs declaration document in the first customs declaration document matching result can be determined as the final customs declaration document, and used for subsequent generation of tax refund declaration information.

[0031] If the match is successful, it means that both the invoice and the customs declaration document meet the requirements, and both the invoice and the customs declaration document will include relevant information such as the supplier name and the commodity name, etc. Therefore, the first invoice matching result includes the invoice including the supplier name and the commodity name in the invoice; the first customs declaration document result includes the customs declaration document including the supplier name and the commodity name in the customs declaration document.

[0032] If at least one of the first invoice matching result and the first customs declaration document matching result is empty (indicating that no relevant information is matched), the commodity names are associated to obtain a first associated commodity name set, and the invoices and customs declaration documents are matched again according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set, and the target invoice information and target customs declaration document corresponding to the target commodity information are determined according to the second invoice matching result set and the second customs declaration document matching result set.

[0033] Among them, the association processing of the product name can be understood as: extracting the names of similar products from the product name, and determining the similar product name as the associated product name (that is, the first associated product name). For example, the product name is "plastic cup", and the associated product name can be "plastic beverage cup", "plastic beverage cup", "plastic water cup", "plastic tea cup", etc. This is only an example and is not specifically limited. Specifically, when describing the product name, the product name in the shipping plan provided by the user may not match the standard name. In this case, it is necessary to identify the standard name corresponding to the product name in the shipping plan in order to obtain the subsequent target customs declaration documents and target invoice information, etc., to improve accuracy.

[0034] Step 104: Generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document.

[0035] The tax refund declaration information may be generated by filling the target commodity information, the target invoice information and the target customs declaration document into corresponding positions in a preset tax refund declaration information template.

[0036] Specifically, the target commodity information, the target invoice information and the target customs declaration document may be input into a preset tax refund declaration information template, and the tax refund declaration information may be generated according to the preset tax refund declaration information template.

[0037] Step 105: Send the tax refund declaration information to the tax refund system to instruct the tax refund system to perform tax refund processing.

[0038] Among them, the tax refund declaration information can be transmitted to the tax refund system through a common transmission method. After the tax refund system receives the tax refund declaration information, it can perform tax refund and other related processing according to the target commodity information, target invoice information and target customs declaration documents in the tax refund declaration information.

[0039] In this example, the target user's shipping plan information is obtained, the product information is extracted from the shipping plan information to obtain the target product information, the target product information is matched with the invoice and customs declaration documents to obtain the target invoice information and the target customs declaration documents, and the tax refund declaration information is generated according to the target product information, the target invoice information and the target customs declaration documents, and the tax refund declaration information is sent to the tax refund system to instruct the tax refund system to perform the tax refund processing. Therefore, the target user's shipping plan information can be automatically extracted and the corresponding invoice information and customs declaration documents can be matched, and finally the tax refund declaration information is automatically generated to apply for a tax refund, thereby improving the efficiency in processing the tax refund data.

[0040] In a possible implementation, when matching invoices and customs declaration documents, there may be a situation where the match fails. In the existing solution, when the match fails, it is usually handled by manual intervention and verification. However, since there may be a large number of commodity lists included in the delivery plan information, in this case, there may be a commodity name with multiple similar commodity names. In this case, when performing manual verification, it takes a lot of verification time and is prone to errors. In order to solve the above problem, a method is provided for matching the invoice and customs declaration documents of the target commodity information to obtain the target invoice information and the target customs declaration document. When there is a match failure, automatic verification processing is performed, which improves the efficiency of the verification processing, avoids the errors caused by manual processing, and improves the accuracy of data processing. The method specifically includes: A1. extracting the supplier name and product name from the target product information; A2. Performing a matching operation on the invoice and the customs declaration document according to the commodity name and the supplier name to obtain a first invoice matching result and a first customs declaration document matching result; A3. If the first invoice matching result and / or the first customs declaration document matching result is empty, then performing product name association processing on the product name to obtain a first associated product name set; A4. Perform secondary matching of invoices and customs declaration documents according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set; A5. Extract the first associated matching information corresponding to the second invoice matching result in the second invoice matching result set to obtain a first associated matching information set, and extract the second associated matching information corresponding to the second customs declaration document matching result in the second customs declaration document matching result set to obtain a second associated matching information set; A6. Determine the target invoice information corresponding to the target commodity information from the second invoice matching result set according to the first associated matching information set, and determine the target customs declaration document corresponding to the target commodity information from the second customs declaration document matching result set according to the second associated matching information set.

[0041] The target product information may be extracted using common OCR technology to obtain the supplier name and product name.

[0042] After obtaining the supplier name and the product name, the product name and the supplier name may be initially matched with the invoice and the customs declaration document according to the preset product name strategy and SKU (Stock Keeping Unit) strategy through the preset document matching module to obtain the first invoice matching result and the first customs declaration document matching result. Specifically, the cosine similarity between the product name and the supplier name and the product name and the supplier name in the invoice may be calculated by the method shown in the following formula, and the product name and the supplier name may be initially matched with the invoice and the customs declaration document according to the cosine similarity and the preset cosine similarity threshold to obtain the first invoice matching result: In the formula represents the cosine similarity between the product name and the supplier name extracted from the target product information and the product name and the supplier name in the invoice; A vector representation corresponding to the product name extracted from the target product information and a vector representation corresponding to the supplier name extracted from the target product information; The vector representation corresponding to the product name in the invoice and the vector representation corresponding to the supplier name in the invoice; The symbol for calculating the modulus of a vector; Indicates the preset cosine similarity threshold; Indicates that the product name and the supplier name are successfully matched with the invoice for the first time, and the invoice is determined as the first invoice matching result; Indicates that if the product name and the supplier name are not matched successfully with the invoice for the first time, the next invoice will be matched.

[0043] After obtaining the first invoice matching result and the first customs declaration document matching result, if the first invoice matching result and / or the first customs declaration document matching result is empty, the product name associated with the product name is obtained to obtain a first associated product name set. The first associated product name in the first associated product name set is different from the product name, but the first associated product name and the product name point to the same item. Among them, the product name association processing for the product name can be understood as: extracting the names of similar products from the product name, and determining the similar product name as the associated product name. For example, if the product name is "plastic cup", the associated product name can be "plastic beverage cup", "plastic beverage cup", "plastic water cup", "plastic tea cup", etc.

[0044] After obtaining the first associated product name set, the first associated product name and the supplier name may be matched again with the invoice and the customs declaration document according to the preset product name strategy and SKU strategy through a preset document matching module to obtain a second invoice matching result set and a second customs declaration document matching result set.

[0045] After obtaining the second invoice matching result set and the second customs declaration document matching result set, the target invoice information may be determined from the second invoice matching result set by obtaining the first associated matching information corresponding to each second invoice match in the second invoice matching result set. For example, if there is a successfully matched invoice information in the second invoice matching result in the second invoice matching result set, and the number of recorded matches is 1, the first associated matching information is 1; if there is no successfully matched invoice information in the second invoice matching result in the second invoice matching result set, and the number of recorded matches is 0, the first associated matching information is 0. The second associated matching information of the second customs declaration document matching result in the second customs declaration document matching result set may be obtained by adopting the same method as that for obtaining the first associated matching information set, so as to obtain the second associated matching information set.

[0046] After obtaining the first associated matching information set and the second associated matching information set, the matching number set may be obtained by obtaining the number of successful matches in the first associated matching information set, and a reference invoice matching result set may be determined in the second invoice matching result set according to the matching number set, and the target invoice information corresponding to the target commodity information may be determined according to the reference invoice matching result set. Specifically, the target invoice information may be determined by combining the transaction party information set and the transaction time information set in the reference invoice matching result set. The transaction party information set includes supplier information and buyer information; the transaction time information in the transaction time information set may be understood as the transaction time noted in the invoice in the reference invoice matching result set. The target customs declaration document corresponding to the target commodity information may be determined from the second customs declaration document matching result set according to the second associated matching information set using the same method as that for obtaining the target invoice information.

[0047] In this example, the initial invoice and customs declaration document matching is performed according to the product name and the supplier name. If the first invoice matching result and / or the first customs declaration document matching result is empty, a secondary invoice and customs declaration document matching is performed according to the first associated product name in the first associated product name set to obtain a second invoice matching result set and a second customs declaration document matching result set, and the target invoice information and the target customs declaration document are respectively determined based on the second invoice matching result set and the second customs declaration document matching result set, thereby improving the accuracy of automated processing of tax refund data.

[0048] In a possible implementation, the first associated matching information set determines the target invoice information corresponding to the target commodity information from the second invoice matching result set, including: B1. Determine the number of times the invoice information in the corresponding invoice matching result is successfully associated and matched according to the first associated matching information in the first associated matching information set, and obtain a matching number set; B2. Extracting the second invoice matching results with a matching number of zero from the second invoice matching result set according to the matching number set to obtain a reference invoice matching result set; B3. Determine a transaction party information set and a transaction time information set according to the reference invoice matching result set; B4. Obtain user information corresponding to the target user to obtain target user information; B5. Determine a preliminary invoice matching result set based on the transaction party information set and the target user information; B6. extracting k suspected target invoice information from the preliminary invoice matching result set according to the transaction time information set; B7. Verify the k pieces of suspected target invoice information to obtain target invoice information corresponding to the target commodity information.

[0049] The matching number set may be obtained by obtaining the number of successful association matches in the first association matching information set. Specifically, the matching number set may be obtained by obtaining non-zero first association matching information in the first association matching information set, determining the non-zero first association matching information as the number of matches in the matching number set. For specific examples corresponding to the non-zero first association matching information, please refer to the specific examples of the first association matching information in A1-A6.

[0050] After obtaining the matching number set, the second invoice matching result with zero matching number in the second invoice matching result set may be determined by the matching number in the matching number set, and determined as the reference invoice matching result to obtain the reference invoice matching result set.

[0051] After obtaining the reference invoice matching result set, the invoice information in the reference invoice matching result can be extracted, and the transaction party information and transaction time information can be extracted from the invoice information. The extracted transaction party information is used as the transaction party information set, and the extracted transaction time information is used as the transaction time information set. The transaction time information here can be understood as the transaction time noted in the invoice.

[0052] The target user information may be obtained by obtaining the company name, person in charge name, etc. corresponding to the target user.

[0053] The reference invoice matching result corresponding to the target user information in the transaction party information set may be determined as the preliminary invoice matching result according to the target user information, and each determined preliminary invoice matching result may be used as the preliminary invoice matching result set.

[0054] The transaction time associated with the target commodity information may be extracted based on the target user information, and then multiple target transaction times may be determined from the transaction time information set based on the transaction time. Since the associated transaction time may be a transaction time range, multiple target transaction times may be determined from the transaction time information set. The invoice information corresponding to the time in the preliminary invoice matching result set among the multiple target transaction times is then determined as k suspected target invoice information.

[0055] After obtaining k suspected target invoice information, n suspected target customs declaration documents can be extracted from the second customs declaration document matching result set according to the second associated matching information set to determine the target customs declaration document corresponding to the target commodity information, and the k suspected target invoice information can be verified based on the n suspected target customs declaration documents to obtain the target invoice information corresponding to the target commodity information.

[0056] In this example, a reference invoice matching result set is obtained by obtaining the second invoice matching result with zero matching times in the second invoice matching result set. According to the transaction party information and transaction time corresponding to the reference invoice matching result of the reference invoice matching result set, as well as the target user information, k suspected target invoice information are determined in the reference invoice matching result set. The k suspected target invoice information are verified to obtain the target invoice information corresponding to the target commodity information, thereby improving the accuracy of automated processing of tax refund data.

[0057] In a possible implementation, the k pieces of suspected target invoice information are verified to obtain target invoice information corresponding to the target commodity information, including: C1. extracting n suspected target customs declaration documents in the process of determining the target customs declaration document corresponding to the target commodity information from the second customs declaration document matching result set according to the second associated matching information set; C2. Use n suspected target customs declaration documents and k suspected target invoice information to perform verification processing, and determine the suspected target invoice information in the suspected target customs declaration documents and suspected target invoice information that match each other as the target invoice information corresponding to the target commodity information.

[0058] The method for determining k suspected target invoice information in the above embodiment may be used to obtain n suspected target customs declaration documents. The method for obtaining the target customs declaration document is the same as the method for obtaining the target invoice information.

[0059] After obtaining n suspected target customs declaration documents, the n suspected target customs declaration documents and the k suspected target invoice information can be verified and processed, and the suspected target invoice information in the suspected target customs declaration documents and suspected target invoice information that match each other can be determined as the target invoice information corresponding to the corresponding target commodity information.

[0060] The text similarity between the n suspected target customs declaration documents and the k suspected target invoice information may be calculated by the formula shown below, thereby completing the verification process between the n suspected target customs declaration documents and the k suspected target invoice information, as follows: In the formula Indicates A suspected target customs declaration document and The text similarity between the suspected target invoice information; express The first of the suspected target customs declaration documents a text length corresponding to a suspected target customs declaration document, wherein the text length is represented by the number of characters corresponding to the suspected target customs declaration document, and can be obtained by extracting text from the suspected target customs declaration document using a general text extraction method; express Among the suspected target invoice information The text length corresponding to the suspected target invoice information is characterized by the number of characters corresponding to the suspected target invoice information, and can be obtained by performing text extraction on the suspected target invoice information using a general text extraction method; Indicates Among the suspected target customs declaration documents Characters and Invoice information of suspected targets The edit distance between characters; Indicates Among the suspected target customs declaration documents Characters and Among the suspected target invoice information Add 1 to the edit distance between characters; Indicates Among the suspected target customs declaration documents Characters and Among the suspected target invoice information Add 1 to the edit distance between characters; Indicates Among the suspected target customs declaration documents Characters and Among the suspected target invoice information Add 1 to the edit distance between characters; Indicates the maximum value operation; Indicates the minimum value operation; Indicates the preset similarity threshold; It indicates that the similarity between the suspected target customs declaration document and the suspected target invoice information is less than the preset similarity threshold, indicating that the suspected target customs declaration document and the suspected target invoice information are not matched successfully; It indicates that the similarity between the suspected target customs declaration document and the suspected target invoice information is greater than or equal to the preset similarity threshold, indicating that the suspected target customs declaration document and the suspected target invoice information are successfully matched.

[0061] The text similarity between any suspected target customs declaration document and any suspected target invoice information can be calculated by the above formula.

[0062] In this example, n suspected target customs declaration documents are determined from the second customs declaration document matching result set according to the second associated matching information set, the n suspected target customs declaration documents and k suspected target invoice information are verified, and the suspected target invoice information in the mutually matching suspected target customs declaration documents and suspected target invoice information is determined as the target invoice information corresponding to the corresponding target commodity information, thereby improving the accuracy of automated processing of tax refund data.

[0063] In a possible implementation, extracting commodity information from the delivery plan information to obtain target commodity information includes: D1. Perform text recognition on the delivery plan information to obtain text recognition results; D2. extracting keywords from the text recognition result to obtain a keyword set; D3. Determine the target product information according to the keyword set.

[0064] The text in the delivery plan information may be recognized by using a common OCR technology to obtain a text recognition result.

[0065] The text recognition result may be subjected to keyword extraction by a general keyword extraction technology to obtain an initial keyword set. After the initial keyword set is extracted, the keywords in the initial keyword set may be screened to obtain a keyword set. The specific screening range may be, for example, extracting keywords such as supplier name, target product name, target product quantity, target product unit price, and target product total price from the keyword set to obtain a final usable keyword set.

[0066] The target product information may be obtained by determining keywords in the keyword set as the target product information, wherein the keywords in the keyword set may be the supplier name, target product name, target product quantity, target product unit price, and target product total price corresponding to the target product information.

[0067] In this example, text recognition technology is used to perform text recognition on the original delivery plan information to obtain text recognition results, keywords are extracted from the text recognition results to obtain a keyword set, and the keywords in the keyword set are determined as target product information to obtain target product information, thereby improving the efficiency of automated processing of tax refund data.

[0068] For the above embodiments, please refer to Figure 2 , Figure 2A schematic diagram of the structure of a terminal provided in an embodiment of the present application, such as Figure 2 As shown, it includes a processor, an input device, an output device and a memory, which are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps; Obtain the target user's delivery plan information; Extracting commodity information from the delivery plan information to obtain target commodity information; Matching the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents; Generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document; The tax refund declaration information is sent to the tax refund system to instruct the tax refund system to perform tax refund processing.

[0069] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0070] The embodiment of the present application can divide the terminal into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0071] In line with the above, see Figure 3 , Figure 3 The present invention provides a schematic diagram of a device for automatically processing tax refund data. Figure 3 As shown, the device comprises: An acquisition unit 301 is used to acquire the delivery plan information of the target user; An extraction unit 302 is used to extract commodity information from the delivery plan information to obtain target commodity information; A matching unit 303 is used to match the invoice and the customs declaration document of the target commodity information to obtain the target invoice information and the target customs declaration document; A generating unit 304, configured to generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document; The sending unit 305 is used to send the tax refund declaration information to the tax refund system to instruct the tax refund system to perform tax refund processing.

[0072] In a possible implementation, the matching unit 303 is specifically configured to: Extracting a supplier name and a product name from the target product information; Performing an initial invoice and a customs declaration document match according to the commodity name and the supplier name to obtain a first invoice matching result and a first customs declaration document matching result; If the first invoice matching result and / or the first customs declaration document matching result is empty, performing product name association processing on the product name to obtain a first associated product name set; Perform secondary matching of invoices and customs declaration documents according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set; Extracting the first associated matching information corresponding to the second invoice matching result in the second invoice matching result set to obtain a first associated matching information set, and extracting the second associated matching information corresponding to the second customs declaration document matching result in the second customs declaration document matching result set to obtain a second associated matching information set; The target invoice information corresponding to the target commodity information is determined from the second invoice matching result set according to the first associated matching information set, and the target customs declaration document corresponding to the target commodity information is determined from the second customs declaration document matching result set according to the second associated matching information set.

[0073] In a possible implementation, in determining the target invoice information corresponding to the target commodity information from the second invoice matching result set according to the first associated matching information set, the matching unit 303 is specifically configured to: Determine the number of times the invoice information in the corresponding invoice matching result is successfully associated and matched according to the first associated matching information in the first associated matching information set, and obtain a matching number set; Extracting the second invoice matching result with a matching number of zero from the second invoice matching result set according to the matching number set, to obtain a reference invoice matching result set; Determine a transaction party information set and a transaction time information set according to the reference invoice matching result set; Obtaining user information corresponding to the target user to obtain target user information; Determine a preliminary invoice matching result set based on the transaction party information set and the target user information; Extracting k suspected target invoice information from the preliminary invoice matching result set according to the transaction time information set; The k pieces of suspected target invoice information are verified to obtain target invoice information corresponding to the target commodity information.

[0074] In a possible implementation, in performing verification processing on the k suspected target invoice information to obtain the target invoice information corresponding to the target commodity information, the matching unit 303 is specifically used to: Extracting n suspected target customs declaration documents in the process of determining the target customs declaration document corresponding to the target commodity information from the second customs declaration document matching result set according to the second associated matching information set; Verification is performed using n suspected target customs declaration documents and k suspected target invoice information, and the suspected target invoice information in the suspected target customs declaration documents and suspected target invoice information that match each other is determined as the target invoice information corresponding to the target commodity information.

[0075] In a possible implementation, the extracting unit 302 is specifically configured to: Perform text recognition on the delivery plan information to obtain text recognition results; Performing keyword extraction on the text recognition result to obtain a keyword set; The target product information is determined according to the keyword set.

[0076] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method for automatically processing tax refund data as recorded in the above method embodiments.

[0077] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any method for automatically processing tax refund data as recorded in the above method embodiments.

[0078] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0079] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0080] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0082] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0083] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., and other media that can store program codes.

[0084] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0085] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for automatically processing tax refund data, characterized in that: The method comprises: Obtain the target user's delivery plan information; Extracting commodity information from the delivery plan information to obtain target commodity information; Matching the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents; Generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document; The tax refund declaration information is sent to the tax refund system to instruct the tax refund system to perform tax refund processing.

2. The method for automatically processing tax refund data according to claim 1, characterized in that: The step of matching the target commodity information with the invoice and the customs declaration document to obtain the target invoice information and the target customs declaration document includes: Extracting a supplier name and a product name from the target product information; Performing an initial invoice and a customs declaration document match according to the commodity name and the supplier name to obtain a first invoice matching result and a first customs declaration document matching result; If the first invoice matching result and / or the first customs declaration document matching result is empty, performing product name association processing on the product name to obtain a first associated product name set; Perform secondary matching of invoices and customs declaration documents according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set; Extracting the first associated matching information corresponding to the second invoice matching result in the second invoice matching result set to obtain a first associated matching information set, and extracting the second associated matching information corresponding to the second customs declaration document matching result in the second customs declaration document matching result set to obtain a second associated matching information set; The target invoice information corresponding to the target commodity information is determined from the second invoice matching result set according to the first associated matching information set, and the target customs declaration document corresponding to the target commodity information is determined from the second customs declaration document matching result set according to the second associated matching information set.

3. The method for automatically processing tax refund data according to claim 2, characterized in that: The step of determining target invoice information corresponding to the target commodity information from the second invoice matching result set according to the first associated matching information set includes: Determine the number of times the invoice information in the corresponding invoice matching result is successfully associated and matched according to the first associated matching information in the first associated matching information set, and obtain a matching number set; Extracting the second invoice matching result with a matching number of zero from the second invoice matching result set according to the matching number set, to obtain a reference invoice matching result set; Determine a transaction party information set and a transaction time information set according to the reference invoice matching result set; Obtaining user information corresponding to the target user to obtain target user information; Determine a preliminary invoice matching result set based on the transaction party information set and the target user information; Extracting k suspected target invoice information from the preliminary invoice matching result set according to the transaction time information set; The k pieces of suspected target invoice information are verified to obtain target invoice information corresponding to the target commodity information.

4. The method for automatically processing tax refund data according to claim 3, characterized in that: The verifying process of the k suspected target invoice information to obtain the target invoice information corresponding to the target commodity information includes: n suspected target customs declaration documents in the process of determining the target customs declaration document corresponding to the target commodity information from the second customs declaration document matching result set according to the second associated matching information set; Verification is performed using n suspected target customs declaration documents and k suspected target invoice information, and the suspected target invoice information in the suspected target customs declaration documents and suspected target invoice information that match each other is determined as the target invoice information corresponding to the target commodity information.

5. The method for automatically processing tax refund data according to any one of claims 1 to 4, characterized in that: The extracting commodity information from the delivery plan information to obtain target commodity information includes: Perform text recognition on the delivery plan information to obtain text recognition results; Performing keyword extraction on the text recognition result to obtain a keyword set; The target product information is determined according to the keyword set.

6. A device for automatically processing tax refund data, characterized in that: The device comprises: An acquisition unit, used to acquire the delivery plan information of the target user; An extraction unit, used to extract commodity information from the delivery plan information to obtain target commodity information; A matching unit, used to match the invoice and customs declaration documents of the target commodity information to obtain target invoice information and target customs declaration documents; A generating unit, configured to generate tax refund declaration information according to the target commodity information, the target invoice information and the target customs declaration document; The sending unit is used to send the tax refund declaration information to the tax refund system to instruct the tax refund system to perform tax refund processing.

7. The device for automatically processing tax refund data according to claim 6, characterized in that: The matching unit is specifically used for: Extracting a supplier name and a product name from the target product information; Performing an initial invoice and a customs declaration document match according to the commodity name and the supplier name to obtain a first invoice matching result and a first customs declaration document matching result; If the first invoice matching result and / or the first customs declaration document matching result is empty, performing product name association processing on the product name to obtain a first associated product name set; Perform secondary matching of invoices and customs declaration documents according to the first associated commodity names in the first associated commodity name set to obtain a second invoice matching result set and a second customs declaration document matching result set; Extracting the first associated matching information corresponding to the second invoice matching result in the second invoice matching result set to obtain a first associated matching information set, and extracting the second associated matching information corresponding to the second customs declaration document matching result in the second customs declaration document matching result set to obtain a second associated matching information set; The target invoice information corresponding to the target commodity information is determined from the second invoice matching result set according to the first associated matching information set, and the target customs declaration document corresponding to the target commodity information is determined from the second customs declaration document matching result set according to the second associated matching information set.

8. The device for automatically processing tax refund data according to claim 7, characterized in that: In the aspect of determining the target invoice information corresponding to the target commodity information from the second invoice matching result set according to the first associated matching information set, the matching unit is specifically used to: Determine the number of times the invoice information in the corresponding invoice matching result is successfully associated and matched according to the first associated matching information in the first associated matching information set, and obtain a matching number set; Extracting the second invoice matching result with a matching number of zero from the second invoice matching result set according to the matching number set, to obtain a reference invoice matching result set; Determine a transaction party information set and a transaction time information set according to the reference invoice matching result set; Obtaining user information corresponding to the target user to obtain target user information; Determine a preliminary invoice matching result set based on the transaction party information set and the target user information; Extracting k suspected target invoice information from the preliminary invoice matching result set according to the transaction time information set; The k pieces of suspected target invoice information are verified to obtain target invoice information corresponding to the target commodity information.

9. A terminal, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method for automatically processing tax refund data according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method for automatically processing tax refund data according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Information display method, information processing method and equipment

    CN114168033A

  • Exit tax refund declaration automation model and algorithm based on big data

    CN115018609A

  • Cross-border e-commerce customs declaration tax processing method and processing system

    CN115293869A

  • Exit tax refund invoice generation method, device and equipment

    CN116228337A

  • Intelligent business data matching method and system and storage medium

    CN117407726A

Cited By

  • Intelligent tax refund declaration method and device for cross-border trade, computer equipment and medium

    CN120807181A