Data processing method and device, electronic equipment and storage medium

By identifying and matching related text types and matter elements in policy documents, a unified matter list is generated, which solves the problems of low efficiency and inconsistent content of policy document sorting in the existing technology, and realizes automated sorting and efficient query.

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

Patent Information

Application Number
CN202410638294.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the sorting efficiency of policy documents is low and the content is not uniform. The reliance on manual processing results in the inability to provide users and enterprises with timely and accurate information.

Method used

By identifying the associated text types in the target file, extracting matter elements and generating a list of matters, using preset template matching and query conditions to achieve automated sorting and querying.

Benefits of technology

It improves the efficiency of sorting policy documents, ensures that the contents of the list of matters are unified, facilitates query and retrieval, and reduces the need for manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733753A_ABST
    Figure CN118733753A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, electronic equipment and a storage medium, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of obtaining a corresponding target file in response to a processing instruction; identifying the item type of the target file; in response to the fact that the item type is a single item type, matching the target text with a preset template to extract each item element, and generating an item list; in response to the fact that the item type is a multi-item type, item department information of all items and corresponding item information are extracted from the target file to be matched with a preset template, all item elements are extracted, and an item list is generated; and in response to the item query instruction, obtaining a corresponding query condition to be matched with the item list, and determining and displaying a query result based on a matching result. According to the implementation mode, the problems that the content of the sorted policy documents cannot be unified and the efficiency is relatively low in a mode of manually sorting the policy documents by working personnel can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device, electronic equipment and storage medium. Background Art

[0002] Policy implementation refers to the policies formulated by government departments, which are implemented through a series of operations and measures to achieve policy goals and put the policies into effect. Due to the large number of policy types, the various policies documents such as laws, regulations, specifications, public notices, and announcements made public by the government are not only diverse in form, but also large in number and rich in content. They are closely related to enterprises and individuals. In the era of information explosion, the public and enterprises still do not know which policy implementation matters are involved. In related technologies, in order to facilitate users and enterprises to understand policy documents in a timely manner, policy documents are usually manually sorted out by staff and then presented to users and enterprises. However, this method not only makes it impossible to unify the content of the sorted policy documents, but also has low efficiency. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a data processing method, device, electronic device and storage medium, which can solve the problem that the content of the policy documents manually sorted by staff is not unified and the efficiency is low.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for data processing is provided.

[0005] A data processing method according to an embodiment of the present invention includes: in response to a processing instruction, obtaining a corresponding target file; identifying each first text of the target file based on a preset vocabulary, extracting the associated text of each first text according to the position information of each first text to identify the text type of the associated text, and calculating the number of associated texts belonging to a preset type based on the text type of each associated text to determine the matter type of the target text; in response to the matter type being a single matter type, matching the target text with a preset template to extract each matter element and generate a matter list; in response to the matter type being a multiple matter type, extracting the matter department information and corresponding matter information of each matter from the target file to match them with the preset template to extract each matter element and generate a matter list; in response to a matter query instruction, obtaining corresponding query conditions to match them with the matter list, determining the query result based on the matching result and displaying it.

[0006] In one embodiment, identifying the text type of the associated text includes: for each of the associated texts, identifying target characters in the associated text to split the associated text to obtain associated sub-texts, calculating the matching degree with the corresponding feature words, and determining the text type of the associated text based on the matching degree.

[0007] In another embodiment, the number of associated texts belonging to a preset type is calculated based on the text type of the associated text to determine the matter type of the target text, including: in response to the number of associated texts belonging to the preset type whose text type is greater than a preset value, determining the matter type of the target text as a multiple matter type; in response to the number of associated texts belonging to the preset type whose text type is not greater than a preset value, determining the matter type of the target text as a single matter type.

[0008] In another embodiment, identifying the text type of the associated text includes: for each of the associated texts, calling a preset annotation model, generating semantic tags for the characters in each of the associated texts, clustering the semantic tags to determine the semantic character set of the associated text; matching the semantic character set with preset feature words, screening target characters that have been successfully matched, and generating semantic text based on the position information of the target characters corresponding to the associated text to determine the text type of the semantic text.

[0009] In another embodiment, calculating the degree of matching with the corresponding feature word includes: matching each of the associated sub-texts with preset regional information to determine the regional identifier corresponding to the target text, obtaining the corresponding institution information, and calculating the degree of matching with each of the associated sub-texts and the institution information.

[0010] In another embodiment, each of the associated sub-texts is matched with preset regional information to determine the regional identifier corresponding to the target text, including: matching each of the associated sub-texts with preset regional information; in response to the matching result being empty, extracting issuing organization information from the target text to generate an organization tree, and screening the root node in the organization tree to determine the regional identifier corresponding to the target text.

[0011] In another embodiment, the item department information and the corresponding item information of each item are extracted from the target file, including: determining the associated text whose text type belongs to the preset type as the item department information of the corresponding item; obtaining the position of the item department information in the target text to extract the second text corresponding to the position and determine it as the item information of the item.

[0012] In another embodiment, after generating the list of matters, it also includes: for each matter, obtaining the matter declaration element, fulfillment element and matter review element in the list of matters; in response to the matter declaration element including a time range and the fulfillment element including a preset fulfillment method, determining the matter as a first matter type; in response to the matter declaration element not including a time range and the matter review element not including a matter fulfillment method, determining the matter as a second matter type; in response to the matter declaration element including application materials and the matter review element including a preset review method, determining the matter as a third matter type; and adding a corresponding type tag to the matter according to the matter type of the matter.

[0013] To achieve the above objective, according to another aspect of an embodiment of the present invention, a data processing device is provided.

[0014] A data processing device according to an embodiment of the present invention includes: an acquisition unit, which is used to acquire a corresponding target file in response to a processing instruction; an identification unit, which is used to identify each first text of the target file based on a preset vocabulary, extract the associated text of each first text according to the position information of each first text, so as to identify the text type of the associated text, and calculate the number of associated texts belonging to a preset type based on the text type of each associated text, so as to determine the matter type of the target text; a generation unit, which is used to match the target text with a preset template in response to the matter type being a single matter type, so as to extract each matter element and generate a matter list; in response to the matter type being a multiple matter type, extract the matter department information and corresponding matter information of each matter from the target file, so as to match them with the preset template, so as to extract each matter element and generate a matter list; a query unit, which is used to acquire corresponding query conditions in response to a matter query instruction, so as to match them with the matter list, determine the query result based on the matching result and display it.

[0015] In one embodiment, the recognition unit is specifically used to: for each of the associated texts, recognize target characters in the associated text to split the associated text to obtain associated sub-texts, calculate the matching degree with the corresponding feature words, and determine the text type of the associated text based on the matching degree.

[0016] In another embodiment, the recognition unit is specifically used to: in response to the number of associated texts belonging to the preset type of the text type being greater than a preset value, determine the matter type of the target text as a multiple matter type; in response to the number of associated texts belonging to the preset type of the text type being not greater than a preset value, determine the matter type of the target text as a single matter type.

[0017] In another embodiment, the recognition unit is specifically used to: for each of the associated texts, call a preset annotation model, generate semantic tags for the characters in each of the associated texts, cluster the semantic tags to determine the semantic character set of the associated texts; match the semantic character set with preset feature words, filter the target characters that are successfully matched, and generate semantic text based on the position information of the target characters corresponding to the associated texts to determine the text type of the semantic text.

[0018] In another embodiment, the recognition unit is specifically used to: match each of the associated sub-texts with preset regional information to determine the regional identifier corresponding to the target text, obtain the corresponding institution information, and calculate the matching degree of each associated sub-text with the institution information.

[0019] In another embodiment, the identification unit is specifically used to: match each of the associated sub-texts with preset regional information; in response to the matching result being empty, extract the issuing organization information from the target text to generate an organization tree, and filter the root node in the organization tree to determine the regional identifier corresponding to the target text.

[0020] In another embodiment, the recognition unit is specifically used to: determine the associated text whose text type belongs to a preset type as the matter department information of the corresponding matter; obtain the position of the matter department information in the target text to extract the second text corresponding to the position and determine it as the matter information of the matter.

[0021] In another embodiment, the acquisition unit is also used to acquire, for each matter, the matter declaration element, the fulfillment element and the matter review element in the matter list; the device also includes: a determination unit, used to determine the matter as a first matter type in response to the matter declaration element including a time range and the fulfillment element including a preset fulfillment method; in response to the matter declaration element not including a time range and the matter review element not including a matter fulfillment method, determine the matter as a second matter type; in response to the matter declaration element including application materials and the matter review element including a preset review method, determine the matter as a third matter type; an adding unit, used to add a corresponding type label to the matter according to the matter type of the matter.

[0022] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0023] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the embodiment of the present invention.

[0024] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0025] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the data processing method provided by the embodiment of the present invention is implemented.

[0026] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.

[0027] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the data processing method provided by the embodiment of the present invention is implemented.

[0028] An embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, for the target file, the first text in the target text can be identified, and then the corresponding associated text can be extracted to determine the item type of the target text through the identified associated text type; if the item type is a single item type, the target text can be matched with a preset template to extract the elements of each item and generate an item list; if the item type is a multiple item type, the item department information and the corresponding item information of each item can be extracted from the target file to match the preset template to extract the elements of each item and generate an item list; and then after receiving the item query instruction, the corresponding query condition can be obtained to match the item list, and the query result is determined and displayed based on the matching result. In the embodiment of the present invention, the corresponding item type can be first identified for the policy file, and then the item elements can be extracted for each item in turn to generate an item list. When the policy file belongs to a multiple item type, the items can be distinguished according to the item department information. In this way, the policy file can be automatically combed by item extraction, so that no manual operation is required, which can not only unify the content of the item list, but also improve the efficiency of policy file combing.

[0029] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Figure 1 is a schematic diagram of a main flow of a data processing method according to an embodiment of the present invention; Figure 2 is a schematic diagram of another main flow of a data processing method according to an embodiment of the present invention; Figure 3is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present invention; Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied; Figure 5 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0032] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. The acquisition, 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.

[0033] An embodiment of the present invention provides a data processing system, which can be used in a scenario of processing policy documents, and specifically can be used in a scenario of sorting out policy documents.

[0034] The embodiment of the present invention provides a data processing method, which can be executed by a data processing system. Figure 1 As shown, the method includes the following steps.

[0035] S101: In response to a processing instruction, a corresponding target file is acquired.

[0036] The processing instruction may be triggered automatically or sent by other systems. The processing instruction indicates an instruction to sort out the target file, which may include file information, such as file identification, etc. The target file may be a government file, which may be pre-stored. In the embodiment of the present invention, the target files may be processed in batches, so this step may also obtain batches of target files according to the processing instruction.

[0037] S102: Identify each first text of the target file based on a preset vocabulary, extract the associated text of each first text according to the position information of each first text to identify the text type of the associated text, and calculate the number of associated texts of a preset type based on the text type of each associated text to determine the matter type of the target text.

[0038] Among them, this step can be performed by a preset recognition model, and the recognition model is pre-configured, and can specifically be a machine learning model. Since a file usually includes one or more items, the policy file is processed at the item granularity in the embodiment of the present invention, so the item type of the target file can be first identified in the embodiment of the present invention, and the item type can include a single item type and a multiple item type. The single item type indicates that the target file includes at least one item, and the multiple item type indicates that the target file includes at least two items.

[0039] When the target file includes multiple items, it usually explains or marks the responsible agency for each item, so in this step, the explanation and annotation information can be identified through a preset word library. The preset word library can include words such as responsible unit and responsible agency. After these explanation or annotation words, the corresponding agency or department information is usually included. In this step, the first text represents the explanation or annotation words. After the first text is identified, in order to avoid errors in the identified first text, the associated text of the first text can be extracted based on its position information. In this step, the associated text of the first text is further processed.

[0040] For example, one item in a policy document may include "responsible units: Provincial Department of Commerce, Provincial Department of Industry and Information Technology, Provincial Development and Reform Commission, Provincial Department of Finance, Provincial Taxation Bureau, State Grid XX Provincial Electric Power Company". Therefore, the preset word library can identify "responsible unit" as the first text, and the corresponding unit or department information will appear after the first text. This information can be determined according to the position of the first text, that is, the associated text of the first text can be extracted, so "Provincial Department of Commerce, Provincial Department of Industry and Information Technology, Provincial Development and Reform Commission, Provincial Department of Finance, Provincial Taxation Bureau, State Grid XX Provincial Electric Power Company" is the associated text of the first text.

[0041] It should be noted that in the embodiment of the present invention, based on the positional relationship between the first text and the associated text, after the first text is obtained, the text following the first text in the text paragraph can be extracted according to its position information as the associated text of the first text.

[0042] In an embodiment of the present invention, on the one hand, identifying the text type of each associated text can be specifically performed as follows: identifying target characters in the associated text to split the associated text to obtain associated sub-texts, calculating the matching degree with the corresponding feature words, and determining the text type of the associated text based on the matching degree.

[0043] For each associated text, it usually includes information of various institutions or departments. If it includes multiple information, it will be separated by identifiers. Therefore, in this step, the target characters in the associated text can be first identified to split the associated text to obtain each associated sub-text. For example, the target character in the above associated text can be "、", and after splitting, the associated sub-texts can include: Provincial Department of Commerce, Provincial Department of Industry and Information Technology, Provincial Development and Reform Commission, Provincial Department of Finance, Provincial Department of Finance, State Grid XX Provincial Electric Power Company.

[0044] Since the names, representations, etc. of government agencies and departments are fixed, feature words can be established for the information of government agencies and departments. For example, the Department of Commerce, the Department of Industry and Information Technology, the Development and Reform Commission, the Department of Finance, the Department of Finance, the Power Company, etc. can be configured as feature words, and then each related text can be matched with it, and the corresponding matching degree can be calculated to identify the text type of the related text.

[0045] Specifically, since some government agencies in different regions may be different, in this step, each associated sub-text can be matched with the preset regional information first to determine the regional information targeted by the target text, and then the regional identifier can be obtained, that is, the regional identifier corresponding to the target text, which is equivalent to the identifier of the region where the target text is published, and then the agency information of the region can be obtained, and it can be used as a feature word to match the associated sub-text to calculate the matching degree of each associated sub-text and the agency information.

[0046] It should be noted that for some policy documents, their associated texts may not include regional information. In this case, the issuing agency can be extracted from the target text. Usually, the issuing agency will accurately record the regional information. Since there may be multiple issuing agencies, the agency tree of the issuing agency can be established first in this step. The root node of the agency tree represents the largest regional range, so the root node of the agency tree can be determined as the regional identifier corresponding to the target text. Specifically, it can be performed as follows: matching each associated sub-text with the preset regional information; in response to the matching result being empty, extracting the issuing agency information from the target text to generate an agency tree, and screening the root node in the agency tree to determine the regional identifier corresponding to the target text.

[0047] In an embodiment of the present invention, the matching degrees of each associated sub-text are summed or averaged to determine the matching degree of the associated text. The text type of the associated text may include a matter department type and a non-matter department type. The associated text belongs to the matter department type and can represent a matter in the target text. The associated text does not belong to the matter department type, that is, it cannot represent a matter in the target text. Therefore, in this step, the number of associated texts whose text type belongs to a preset type can be counted. The preset type represents the matter department type. If the number of associated texts whose text type belongs to the preset type is greater than a preset value, the matter type of the target text is determined to be a multiple matter type; if the number of associated texts whose text type belongs to the preset type is not greater than a preset value, the matter type of the target text is determined to be a single matter type. The preset value can be set based on the specific scenario, for example, it can be set to 2.

[0048] On the other hand, identifying the text type of associated text can also be performed as follows: for each associated text, calling a preset annotation model, generating semantic labels for the characters in each associated text, and clustering based on the semantic labels to determine the semantic character set of the associated text; matching the character set with preset feature words, screening the target characters that have been successfully matched, and generating a semantic character based on the position information of the target characters corresponding to the associated text to determine the text type of the semantic text.

[0049] The annotation model may be pre-trained, specifically a machine learning model, which may determine semantic tags according to the character's part of speech, word meaning, etc. In this step, the associated text may be first segmented to obtain the characters in the associated text, and then the semantic tags may be generated. The specific semantic tags may be identified.

[0050] As can be seen from the above examples, the associated text usually includes information of various institutions or departments, so in this step, the semantic label can represent the probability label of the character belonging to the information of each institution or department, and then the semantic character set of the associated text is determined by clustering, and then the semantic character set can be matched with the preset feature words to obtain the target characters that are successfully matched. The position of each target character in the associated text can be spliced ​​into the semantic text of the associated text, that is, the text that can represent the meaning of the associated text, thereby determining the text type of the semantic text and determining it as the text type of the associated text.

[0051] For a semantic character set, characters whose probability represented by the temporal probability tag is usually within a certain interval or greater than a preset value are determined to belong to the semantic character set. For a target character, it is usually necessary to splice the target characters whose positions are adjacent in the associated text or whose positions have a character number less than a preset number to obtain a semantic text, so one or more semantic texts can be obtained by splicing the target characters. In this step, for the obtained semantic text, if the matching degree with the corresponding feature word can be calculated, the text type of the semantic text can be determined based on the matching degree.

[0052] In an embodiment of the present invention, the step of calculating the number of associated texts belonging to a preset type based on the text type of each associated text to determine the matter type of the target text can be executed as follows: in response to the number of associated texts whose text type belongs to the preset type being greater than a preset value, determining the matter type of the target text as a multiple matter type; in response to the number of associated texts whose text type belongs to the preset type being not greater than a preset value, determining the matter type of the target text as a single matter type.

[0053] The text type of the associated text may include a matter department type and a non-matter department type. If the associated text belongs to the matter department type, it can represent a matter in the target text. If the associated text does not belong to the matter department type, it cannot represent a matter in the target text. Therefore, in this step, the number of associated texts whose text type belongs to a preset type can be counted. The preset type represents the matter department type. If the number of associated texts whose text type belongs to the preset type is greater than the preset value, the matter type of the target text is determined to be a multiple matter type; if the number of associated texts whose text type belongs to the preset type is not greater than the preset value, the matter type of the target text is determined to be a single matter type. The preset value can be set based on the specific scenario, for example, it can be set to 2.

[0054] S103: In response to the item type being a single item type, the target text is matched with a preset template to extract the elements of each item and generate an item list; in response to the item type being a multiple item type, the item department information and corresponding item information of each item are extracted from the target file to match them with the preset template to extract the elements of each item and generate an item list.

[0055] When it is determined that the target text is a single-item type, the target text can be directly matched with a preset template to extract the elements of each item and generate an item list. The preset template matching can be pre-configured. When it is determined that the item type of the target text is a multi-item type, the item department information and the corresponding item information of each item can be first extracted from the target file, and then matched with the preset template to extract the elements of each item and generate an item list.

[0056] Specifically, in the scenario where the target text belongs to multiple item types, the associated text of the department type determined in the above steps can represent the item department information of the corresponding item, so the associated text of the text type belonging to multiple item types can be determined as the item department information of the corresponding item; then the position of the item department information in the target text is obtained to extract the second text corresponding to the position and determine it as the item information of the item. Usually, the paragraph where the item department information is located is the item information corresponding to the item, so it can be based on the second text corresponding to its position.

[0057] In the embodiment of the present invention, a matter may include multiple elements, so it can be extracted based on the preset elements of each matter. For example, a matter may include elements including: basic information of the project, policy rules and conditions, application materials list and requirements, application review process, data requirements details in application review, financial rewards and subsidies, publicity requirements, supervision nodes, form filling information (provided if the application requires filling in an online application form), etc. Each element can be further divided, and the division method can be set based on the scenario and demand.

[0058] In an embodiment of the present invention, after generating a list of items, an item representation may be created to store it, and desired search information may also be set, such as the region, department, name, object, etc. corresponding to the item, to facilitate retrieval.

[0059] S104: In response to the matter query instruction, the corresponding query conditions are obtained to match with the matter list, and the query results are determined and displayed based on the matching results.

[0060] Among them, the matter query instruction can be input by the user or sent by the device, which includes the query conditions, such as the region, department, name, object, etc. of the queried matter, so that it can be matched with the matter list of stored matters and the results can be fed back.

[0061] It should be noted that for policy documents, they can be divided into different types according to the different requirements of each matter, so as to facilitate the retrieval of matters, and corresponding labels can be set for different types of matters. Specifically, it can be implemented as follows: if the response matter declaration element includes the time range, and the redemption element includes the preset redemption method, the matter is determined as the first matter type; if the response matter declaration element does not include the time range, and the matter review element does not include the matter redemption method, the matter is determined as the second matter type; if the response matter declaration element includes application materials, and the matter review element includes the preset review method, the matter is determined as the third matter type; add corresponding type labels to the matters according to the matter type of the matter.

[0062] The time range can indicate the application time range, the preset redemption methods can include financial rewards, tax refunds, and honors, etc.; the preset review methods can include review and acceptance, etc. The first item type indicates "commitment redemption" items, the second item type indicates "no application, immediate enjoyment" items, and the third item type indicates "competitive application" items.

[0063] In order to facilitate the understanding of policy documents in the embodiment of the present invention, policy requirements can also be extracted to obtain a list of policy documents. Policy requirements may include policy document name, document issuing system, document issuing authority, joint document issuing authority, document issuing number, policy level, subject classification, industry classification, policy object classification, document date, document issuing date, implementation date, abolition date, regulatory document registration number, index number, summary, text, attachments, etc. Among them, the issuing system can include the current level, development and reform, taxation, education, science and technology, industry and information technology, agriculture, human resources and social security, culture and tourism, market supervision, natural resources, commerce, banking and insurance supervision, ecological environment, transportation, housing and construction, finance, finance, intellectual property, securities supervision, foreign exchange, health care, emergency management, energy, banking, public security, Federation of Industry and Commerce, civil affairs, quality standards, customs, civil aviation, postal service, state-owned assets, forestry, and others; issuing agencies and joint issuing agencies can include obtaining the issuing agency tree of regional departments. The issuing agency usually refers to one, and the joint issuing agency usually includes multiple; policy levels can include national, provincial, municipal, district and county levels, etc., and attachments can support files of different formats, such as xlsx, txt, doc, docx, xls, pdf, jpg, png, jpeg, gif, zip, and rar.

[0064] In an embodiment of the present invention, for a policy document, the corresponding matter type can be first identified, and then the matter elements can be extracted for each matter in turn to generate a matter list. When the policy document belongs to multiple matter types, the matters can be distinguished according to the matter department information. In this way, the policy document can be automatically sorted out by means of matter extraction, thereby eliminating the need for manual operation, which can not only unify the content of the matter list but also improve the efficiency of policy document sorting.

[0065] Combine the following Figure 1 The embodiment shown in the figure specifically describes the method for data processing in the embodiment of the present invention. Figure 2 As shown, the method includes the following steps.

[0066] S201: In response to a processing instruction, obtain a corresponding target file.

[0067] S202: Identify each first text of the target file based on a preset word library, and extract associated texts of each first text according to position information of each first text.

[0068] S203: For each associated text, identify the target characters in the associated text to split the associated text to obtain associated sub-texts, calculate the matching degree with the corresponding feature words, and determine the text type of the associated text based on the matching degree.

[0069] S204: In response to the number of associated texts of a preset type belonging to the text type is not greater than a preset value, the item type of the target text is determined to be a single item type, and the target text is matched with a preset template to extract each item element and generate an item list.

[0070] S205: In response to the number of associated texts whose text types belong to a preset type being greater than a preset value, determining the matter type of the target text as a multiple matter type.

[0071] S206: extracting the matter department information and corresponding matter information of each matter from the target file to match with the preset template, so as to extract the elements of each matter and generate a matter list.

[0072] S207: In response to the matter query instruction, obtain corresponding query conditions to match with the matter list, determine the query results based on the matching results and display them.

[0073] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The corresponding data processing principles shown are compatible and will not be repeated here.

[0074] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a data processing device 300, such as Figure 3 As shown, the device 300 includes the following units.

[0075] The acquisition unit 301 is used to acquire the corresponding target file in response to the processing instruction; the identification unit 302 is used to identify each first text of the target file based on a preset vocabulary, extract the associated text of each first text according to the position information of each first text, so as to identify the text type of the associated text, and calculate the number of associated texts belonging to the preset type based on the text type of each associated text to determine the matter type of the target text; the generation unit 303 is used to match the target text with a preset template in response to the matter type being a single matter type to extract each matter element and generate a matter list; in response to the matter type being a multiple matter type, extract the matter department information and corresponding matter information of each matter from the target file to match with the preset template to extract each matter element and generate a matter list; the query unit 304 is used to obtain the corresponding query condition in response to the matter query instruction to match with the matter list, determine the query result based on the matching result and display it.

[0076] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 2 The method of the illustrated embodiment is the same and will not be repeated here.

[0077] In one embodiment, the recognition unit 302 is specifically used to: for each of the associated texts, recognize the target characters in the associated text to split the associated text to obtain associated sub-texts, calculate the matching degree with the corresponding feature words, and determine the text type of the associated text based on the matching degree.

[0078] In another embodiment, the identification unit 302 is specifically used to: in response to the number of associated texts belonging to the preset type of the text type being greater than a preset value, determine the matter type of the target text as a multiple matter type; in response to the number of associated texts belonging to the preset type of the text type being not greater than a preset value, determine the matter type of the target text as a single matter type.

[0079] In another embodiment, the recognition unit 302 is specifically used to: for each of the associated texts, call a preset annotation model, generate semantic tags for the characters in each of the associated texts, cluster the semantic tags to determine the semantic character set of the associated text; match the semantic character set with preset feature words, filter the successfully matched target characters, and generate semantic text based on the position information of the target characters corresponding to the associated text to determine the text type of the semantic text.

[0080] In another embodiment, the identification unit 302 is specifically used to: match each of the associated sub-texts with preset regional information to determine the regional identifier corresponding to the target text, obtain the corresponding institution information, and calculate the matching degree of each associated sub-text with the institution information.

[0081] In another embodiment, the identification unit 302 is specifically used to: match each of the associated sub-texts with preset regional information; in response to the matching result being empty, extract the issuing organization information from the target text to generate an organization tree, and filter the root node in the organization tree to determine the regional identifier corresponding to the target text.

[0082] In another embodiment, the recognition unit 302 is specifically used to: determine the associated text whose text type belongs to a preset type as the matter department information of the corresponding matter; obtain the position of the matter department information in the target text to extract the second text corresponding to the position and determine it as the matter information of the matter.

[0083] In another embodiment, the acquisition unit 302 is also used to obtain, for each matter, the matter declaration element, the fulfillment element and the matter review element in the matter list; the device 300 also includes: a determination unit, used to determine the matter as a first matter type in response to the matter declaration element including a time range and the fulfillment element including a preset fulfillment method; in response to the matter declaration element not including a time range and the matter review element not including a matter fulfillment method, determine the matter as a second matter type; in response to the matter declaration element including application materials and the matter review element including a preset review method, determine the matter as a third matter type; an adding unit, used to add a corresponding type label to the matter according to the matter type of the matter.

[0084] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 , 2 The method of the illustrated embodiment is the same and will not be repeated here.

[0085] In an embodiment of the present invention, for a policy document, the corresponding matter type can be first identified, and then the matter elements can be extracted for each matter in turn to generate a matter list. When the policy document belongs to multiple matter types, the matters can be distinguished according to the matter department information. In this way, the policy document can be automatically sorted out by means of matter extraction, thereby eliminating the need for manual operation, which can not only unify the content of the matter list but also improve the efficiency of policy document sorting.

[0086] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.

[0087] The electronic device of an embodiment of the present invention comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the data processing method provided by the embodiment of the present invention.

[0088] Figure 4 An exemplary system architecture 400 is shown to which the data processing method or data processing apparatus according to the embodiment of the present invention can be applied.

[0089] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0090] The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various client applications can be installed on the terminal devices 401, 402, 403.

[0091] The terminal devices 401 , 402 , 403 may be, but are not limited to, smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0092] The server 405 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.

[0093] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the data processing device is generally set in the server 405 .

[0094] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0095] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 suitable for implementing an embodiment of the present invention. Figure 5 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0096] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0097] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0098] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0099] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0100] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0101] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, for example, it may be described as: a processor includes an acquisition unit, an identification unit, a generation unit and a query unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit for acquiring functions".

[0102] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the data processing method provided by the present invention.

[0103] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method provided by an embodiment of the present invention.

[0104] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for data processing, characterized in that: include: In response to the processing instruction, obtaining a corresponding target file; Identify each first text of the target file based on a preset word library, extract associated texts of each first text according to position information of each first text to identify the text type of the associated text, and calculate the number of associated texts belonging to a preset type based on the text type of each associated text to determine the matter type of the target text; In response to the item type being a single item type, matching the target text with a preset template to extract elements of each item and generate an item list; In response to the item type being a multiple item type, extracting item department information and corresponding item information of each item from the target file to match with a preset template to extract each item element and generate an item list; In response to the matter query instruction, the corresponding query conditions are obtained to match the matter list, and the query results are determined and displayed based on the matching results.

2. The method according to claim 1, characterized in that Identify the text type of the associated text, including: For each of the associated texts, target characters in the associated texts are identified to split the associated texts to obtain associated sub-texts, a matching degree with a corresponding feature word is calculated, and a text type of the associated text is determined based on the matching degree.

3. The method according to claim 1, characterized in that Calculating the number of associated texts belonging to a preset type based on the text type of the associated text to determine the matter type of the target text includes: In response to the number of associated texts of the preset type belonging to the text type is greater than a preset value, the matter type of the target text is determined as a multiple matter type; in response to the number of associated texts of the preset type belonging to the text type is not greater than a preset value, the matter type of the target text is determined as a single matter type.

4. The method according to claim 1, characterized in that: Identify the text type of the associated text, including: For each of the associated texts, a preset annotation model is called to generate semantic tags for the characters in each of the associated texts, and the semantic tags are clustered to determine the semantic character set of the associated text; the semantic character set is matched with preset feature words, and the target characters that are successfully matched are screened, and semantic text is generated based on the position information of the target characters corresponding to the associated text to determine the text type of the semantic text.

5. The method according to claim 1, characterized in that: Calculate the matching degree with the corresponding feature words, including: Each of the associated subtexts is matched with the preset region information to determine the region identifier corresponding to the target text, and the corresponding institution information is obtained to calculate the matching degree between each of the associated subtexts and the institution information.

6. The method according to claim 5, characterized in that Matching each of the associated subtexts with preset region information to determine the region identifier corresponding to the target text includes: Matching each of the associated subtexts with preset regional information; In response to the matching result being empty, extracting the issuing organization information from the target text to generate an organization tree, and screening the root node in the organization tree to determine the region identifier corresponding to the target text.

7. The method according to claim 1, characterized in that Extracting the matter department information and corresponding matter information of each matter from the target file includes: Determine the associated text of the preset type as the matter department information of the corresponding matter; The position of the matter department information in the target text is obtained to extract the second text corresponding to the position and determine it as the matter information of the matter.

8. The method according to claim 1, characterized in that After the list of items is generated, it also includes: For each item, obtain the item declaration elements, fulfillment elements and item review elements in the item list; In response to the fact that the item declaration element includes a time range and the fulfillment element includes a preset fulfillment method, the item is determined as a first item type; in response to the fact that the item declaration element does not include a time range and the item review element does not include an item fulfillment method, the item is determined as a second item type; in response to the fact that the item declaration element includes application materials and the item review element includes a preset review method, the item is determined as a third item type; Add a corresponding type label to the matter according to the matter type of the matter.

9. A data processing device, characterized in that: include: An acquisition unit, used for acquiring a corresponding target file in response to a processing instruction; an identification unit, configured to identify each first text of the target file based on a preset word library, extract associated texts of each first text according to position information of each first text to identify text types of the associated texts, and calculate the number of associated texts of a preset type based on the text types of each associated text to determine the matter type of the target text; A generating unit, configured to, in response to the item type being a single item type, match the target text with a preset template to extract elements of each item and generate an item list; In response to the item type being a multiple item type, extracting item department information and corresponding item information of each item from the target file to match with a preset template to extract each item element and generate an item list; The query unit is used to respond to the matter query instruction, obtain the corresponding query conditions to match with the matter list, determine the query results based on the matching results and display them.

10. The device according to claim 9, characterized in that The identification unit is specifically used for: For each of the associated texts, target characters in the associated texts are identified to split the associated texts to obtain associated sub-texts, a matching degree with a corresponding feature word is calculated, and a text type of the associated text is determined based on the matching degree.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Structured entry device and method of medical record document

    CN103559674A

  • Policy matching method, device and equipment and computer readable storage medium

    CN115344666A

  • Item distribution method and system, computer equipment and medium

    CN115641090A

  • Method and device for verifying electronic part of warranty document, electronic equipment and medium

    CN117195319A