File processing method and device, electronic equipment and storage medium
Through preset tag screening and text content analysis of enterprise-friendly policy documents, enterprise-friendly information is extracted as tags, which solves the problem of low file search efficiency and realizes a method of quickly searching for enterprise-friendly policy documents.
Patent Information
- Application Number
- CN202411148623.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-08-21
AI Technical Summary
It is difficult for users to obtain corporate benefit policy documents in a timely manner, mainly because the documents lack annotation information and are scattered, resulting in low search efficiency.
Provide a file processing method that uses a preset tag set to filter the titles of candidate files in multiple file formats, parse the target text content, extract files containing preset vocabulary keywords as target files, and extract benefits based on the target text content. Enterprise information is used as a benefit label to find relevant documents.
Effectively filter out target documents related to enterprise-benefit policies to improve user search efficiency, and make it easier to find relevant documents through enterprise-benefit tag searches.
Smart Images

Figure CN118656348A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a file processing method, device, electronic device and storage medium. Background Art
[0002] At present, relevant functional websites regularly publish policy documents on enterprises in different industries. Among them, policy documents on enterprises refer to relevant documents that provide preferential policies and support to enterprises. However, such documents usually do not have marked information, and because there are many types of documents published on the website and they are scattered, it is difficult for users to obtain relevant documents in a timely manner. Summary of the invention
[0003] The embodiments of the present disclosure at least provide a file processing method, device, electronic device and storage medium, which are convenient for users to find files related to benefiting enterprises and are conducive to improving search efficiency.
[0004] In a first aspect, an embodiment of the present disclosure provides a file processing method, the method comprising: Obtain each candidate file in multiple file formats; Using a preset tag set to perform title screening processing on each candidate file in the multiple file formats, and determining the candidate file corresponding to the title that does not belong to the preset tag set as the first file; For each of the first files, the target text content of the first file is parsed according to the file format of the first file, and the first file is determined as a target file if the target text content contains at least one keyword in a preset word library; each keyword in the preset word library is used to represent the willingness to support different industries; For each target file, enterprise benefit information is extracted based on the target text content of the target file, and the enterprise benefit information is used as the enterprise benefit tag of the target file, and the enterprise benefit tag is used to find the target file.
[0005] In a possible implementation, the enterprise benefit information includes enterprise benefit resource information and enterprise benefit time information; the step of extracting the enterprise benefit information based on the text content of the target file and using the enterprise benefit information as the enterprise benefit tag of the target file includes: Extracting target enterprise benefit resource information from target text content of the target file based on the first extraction format of the enterprise benefit resource information; Extracting target enterprise benefit time information from target text content of the target file based on the second extraction format of the enterprise benefit time information; The target enterprise benefit resource information and the target enterprise benefit time information are used as the enterprise benefit label of the target file.
[0006] In a possible implementation, extracting target enterprise benefit resource information from target text content of the target file based on the first extraction format of the enterprise benefit resource information includes: Determine a target sentence containing numbers and preset units from the target text content of the target file using a regular expression; Based on the first extraction format of the enterprise benefit resource information, the target enterprise benefit resource information is extracted from the target sentence.
[0007] In a possible implementation, the enterprise benefit resource information includes enterprise benefit keywords and the number of enterprise benefit resources, and the first extraction format of the enterprise benefit resource information includes the relative position relationship between the enterprise benefit keywords and the number of enterprise benefit resources.
[0008] In a possible implementation, the method further includes: Display the enterprise benefit resource information setting items and enterprise benefit time information setting items; In response to a first setting operation for the enterprise benefit resource information setting item, a first filtering condition is generated, and in response to a second setting operation for the enterprise benefit time information setting item, a second filtering condition is generated; At least one target file that matches the first filtering condition and the second filtering condition is displayed.
[0009] In a possible implementation, the method further includes: For each target file, directory information of the target file is extracted based on the target text content of the target file, and the directory information is associated with the target file, and the directory information is used to find the target file.
[0010] In a possible implementation, the method further includes: For each target file, determining category information of the target file, where the category information is used to characterize the industry attribute to which the target file belongs; Each target file belonging to the same category information is associated with the same category information.
[0011] In a possible implementation manner, parsing the target text content of each first file according to the file format of the first file includes: For each of the first files, according to the file format of the first file, extracting initial text content by using a text extraction method that matches the file format; The pre-trained semantic recognition model is used to perform semantic improvement processing on the extracted initial text content to obtain the parsed target text content.
[0012] In a second aspect, an embodiment of the present disclosure further provides a file processing device, including: A file acquisition module, used to acquire various candidate files in various file formats; A title screening module, used to perform title screening processing on each candidate file in the plurality of file formats using a preset tag set, and determine the candidate file corresponding to the title that does not belong to the preset tag set as the first file; a content screening module, configured to parse, for each of the first files, a target text content of the first file according to a file format of the first file, and determine the first file as a target file if the target text content contains at least one keyword in a preset word library; each keyword in the preset word library is used to represent the willingness to support different industries; The association processing module is used to extract enterprise benefit information based on the target text content of each target file, and use the enterprise benefit information as the enterprise benefit tag of the target file, and the enterprise benefit tag is used to find the target file.
[0013] In a possible implementation manner, the enterprise benefit information includes enterprise benefit resource information and enterprise benefit time information; and the association processing module is specifically used for: Extracting target enterprise benefit resource information from target text content of the target file based on the first extraction format of the enterprise benefit resource information; Extracting target enterprise benefit time information from target text content of the target file based on the second extraction format of the enterprise benefit time information; The target enterprise benefit resource information and the target enterprise benefit time information are used as the enterprise benefit label of the target file.
[0014] In a possible implementation manner, the association processing module is specifically configured to: Determine a target sentence containing numbers and preset units from the target text content of the target file using a regular expression; Based on the first extraction format of the enterprise benefit resource information, the target enterprise benefit resource information is extracted from the target sentence.
[0015] In a possible implementation, the enterprise benefit resource information includes enterprise benefit keywords and the number of enterprise benefit resources, and the first extraction format of the enterprise benefit resource information includes the relative position relationship between the enterprise benefit keywords and the number of enterprise benefit resources.
[0016] In a possible implementation, the device further includes a file search module, and the file search module is used to: Display the enterprise benefit resource information setting items and enterprise benefit time information setting items; In response to a first setting operation for the enterprise benefit resource information setting item, a first filtering condition is generated, and in response to a second setting operation for the enterprise benefit time information setting item, a second filtering condition is generated; At least one target file that matches the first filtering condition and the second filtering condition is displayed.
[0017] In a possible implementation manner, the association processing module is further configured to: For each target file, directory information of the target file is extracted based on the target text content of the target file, and the directory information is associated with the target file, and the directory information is used to find the target file.
[0018] In a possible implementation manner, the association processing module is further configured to: For each target file, determining category information of the target file, where the category information is used to characterize the industry attribute to which the target file belongs; Each target file belonging to the same category information is associated with the same category information.
[0019] In a possible implementation, the content screening module is specifically used to: For each of the first files, according to the file format of the first file, extracting initial text content by using a text extraction method that matches the file format; The pre-trained semantic recognition model is used to perform semantic improvement processing on the extracted initial text content to obtain the parsed target text content.
[0020] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the file processing method described in any possible embodiment of the first aspect above are performed.
[0021] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the file processing method as described in any possible embodiment of the first aspect above are executed.
[0022] The file processing method, device, electronic device, and storage medium provided by the embodiments of the present disclosure first use a preset tag set to perform title screening processing on each candidate file in a plurality of file formats to obtain a first file, and then screen out target files containing the willingness to support different industries based on the target text content of each first file. In this way, target files related to the enterprise-friendly policy can be screened out for user query, thereby facilitating users to find related files. Furthermore, the embodiments of the present disclosure also extract enterprise-friendly information based on the target text content of the target file, and use the enterprise-friendly information as the enterprise-friendly tag of the target file. In this way, users can search for the corresponding target file through the enterprise-friendly tag, thereby improving the efficiency of users finding target files.
[0023] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0025] Figure 1 A flowchart of a file processing method provided by an embodiment of the present disclosure is shown; Figure 2 A flowchart of a file search method provided by an embodiment of the present disclosure is shown; Figure 3 A schematic diagram of a file search interface provided by an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the structure of a file processing device provided by an embodiment of the present disclosure is shown; Figure 5 A schematic diagram showing the structure of another file processing device provided by an embodiment of the present disclosure is shown; Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0027] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0028] In the embodiments of the present disclosure, the term "plurality" refers to two or more than two, and other quantifiers are similar. In the embodiments of the present disclosure, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, and may represent any one or more elements selected from the set consisting of A, B, and C.
[0029] The present disclosure provides a file processing method, which includes: obtaining candidate files in multiple file formats; performing title screening on the candidate files in the multiple file formats using a preset tag set, and determining the candidate files corresponding to the titles that do not belong to the preset tag set as first files; for each of the first files, parsing the target text content of the first file according to the file format of the first file, and determining the first file as a target file when the target text content contains at least one keyword in a preset vocabulary; each keyword in the preset vocabulary is used to represent the willingness to support different industries; for each target file, extracting enterprise benefit information based on the target text content of the target file, and using the enterprise benefit information as the enterprise benefit tag of the target file, and the enterprise benefit tag is used to find the target file.
[0030] The file processing method provided by the disclosed embodiment first uses a preset tag set to perform title screening on each candidate file in a plurality of file formats to obtain a first file, and then screens out target files containing the willingness to support different industries according to the target text content of each first file. In this way, target files related to the enterprise-friendly policy can be screened out for user query, thereby facilitating users to find related files. Furthermore, the disclosed embodiment also extracts enterprise-friendly information based on the target text content of the target file, and uses the enterprise-friendly information as the enterprise-friendly tag of the target file. In this way, users can search for the corresponding target file through the enterprise-friendly tag, thereby improving the efficiency of users finding target files.
[0031] To facilitate understanding of this embodiment, the execution subject of a file processing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the file processing method may also be an electronic device with certain computing capabilities, wherein the electronic device may include, for example: a terminal device or a server or other processing device, and the terminal device may be a user terminal, a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data, and artificial intelligence platforms.
[0032] In addition, the data processing method can also be implemented by a processor calling computer-readable instructions stored in a memory.
[0033] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0034] See also Figure 1 FIG. 1 is a flowchart of a file processing method provided by an embodiment of the present disclosure. The method includes: S101, obtaining candidate files in multiple file formats.
[0035] The file formats include but are not limited to: picture format, PDF format, word format, video format, and web page format.
[0036] Exemplarily, each candidate file in a variety of file formats can be obtained through different channels. For example, the source of each candidate file can be data provided by a partner, crawled from a web page, or a public data set. In addition, each candidate file can include relevant policy documents of various functional departments, such as policy documents of City A, policy documents of Province B, etc.
[0037] S102: Perform title screening processing on each candidate file in the plurality of file formats by using a preset tag set, and determine a candidate file corresponding to a title that does not belong to the preset tag set as a first file.
[0038] Exemplarily, each tag in the preset tag set is a tag that is not related to the enterprise-friendly policy. Specifically, a large number of public policy documents can be reviewed to screen out keywords that are not related to the enterprise-friendly policy, and the keywords can be used as tags in the preset tag set. For example, by checking and determining that relevant documents in the categories of "urban and rural construction" and "environmental protection" are not related to the enterprise-friendly policy, the keywords of "urban and rural construction" and "environmental protection" can be used as tags in the preset tag set.
[0039] In addition, the large model can be used to extract keyword information, and then the extracted keyword information is manually processed and classified to construct the preset label set.
[0040] It is understandable that the preset tag set is similar to the role of a blacklist. In this way, by preliminarily screening the obtained candidate files through the preset tag set, the number of subsequent first files to be processed can be reduced, thereby helping to improve the efficiency of file processing.
[0041] S103, for each of the first files, parse the target text content of the first file according to the file format of the first file, and determine the first file as a target file if the target text content contains at least one keyword in a preset vocabulary; each keyword in the preset vocabulary is used to represent the willingness to support different industries.
[0042] It is understandable that in order to improve the parsing accuracy of the target text content, corresponding text extraction methods can be used for first files of different formats. Therefore, in some possible embodiments, for each first file, when parsing the target text content of the first file according to the file format of the first file, the following (1) to (2) can be included: (1) for each of the first files, extracting initial text content according to the file format of the first file by using a text extraction method that matches the file format; (2) Using a pre-trained semantic recognition model, the extracted initial text content is semantically improved to obtain the parsed target text content.
[0043] Here, the text in the image can be converted into a text format based on OCR (Optical Character Recognition) technology, and the text format conversion can be directly performed for formats such as word to obtain the initial text content. Furthermore, a pre-trained semantic recognition model can be used to perform semantic improvement processing on the extracted initial text content to obtain the parsed target text content, which can further improve the accuracy of the target text content and facilitate subsequent text content screening.
[0044] After obtaining the target text content, it can be determined whether the target text content contains at least one keyword in a preset word library, wherein each keyword in the preset word library is used to represent the willingness to support different industries. That is, the keywords in the preset word library are associated with "benefiting enterprises".
[0045] Specifically, the documents related to "enterprise-friendly policies" can be screened and summarized to extract keywords that can represent the willingness to support, and a preset vocabulary library can be constructed based on the extracted multiple keywords.
[0046] In some embodiments, the keyword may include multiple sub-keywords, and the multiple sub-keywords are spliced according to a preset splicing rule. The splicing rule includes a first connector and a second connector, wherein the first connector is used to connect two sub-keywords whose front and back positions remain unchanged, and the second connector is used to connect two sub-keywords whose front and back positions are variable. That is, the order of the two sub-keywords connected by the first connector cannot be changed, while the order of the two sub-keywords connected by the second connector can be changed.
[0047] Exemplarily, the first connector may be , the second connector can be &. For example, for "opinions on policy support for social medical institutions", the sub-keywords "support" and "social medical institutions" are extracted. Since the order of "support" and "social medical institutions" can be reversed, the second connector & is used to connect them to obtain the keywords "support & social medical institutions". In this way, when the target content of the first file includes "support for social medical institutions" or "opinions on support for social medical institutions", the first file can be determined as the target file.
[0048] In some embodiments, after obtaining the target text content, the target text content may be segmented into paragraphs, and then each sentence in each paragraph may be segmented to obtain a plurality of segmented sentences.
[0049] Specifically, the target text content can be first segmented with a tag as the first separator; if there is no tag, the target text content can be segmented with a space as the second separator; if there is no tag and the space, the target text content can be segmented with a serial number as the third separator, wherein the serial number is continuous and starts from 1.
[0050] Taking the crawled data from the web page as an example, different paragraphs are usually separated by tags “< >", you can use the >" to segment the target text content. If there is no tag "< >", consider using spaces "()" to split them. For the case where there are no tags or spaces, you can use serial numbers to split them, such as subheadings "1, 2, 3...". To distinguish them from numbers, these serial numbers are continuous and start with 1.
[0051] After the above segmentation process, at least one segmented paragraph can be obtained, and then each paragraph can be further segmented according to the punctuation marks of each paragraph in the at least one segmented paragraph, wherein the punctuation marks include periods and semicolons. Here, sentences are extracted from the paragraphs based on periods (Chinese periods and English periods) and semicolons (Chinese semicolons and English semicolons), and then at least one segmented sentence can be extracted from the paragraph for subsequent processing.
[0052] S104, for each target file, extracting enterprise benefit information based on the target text content of the target file, and using the enterprise benefit information as the enterprise benefit tag of the target file, wherein the enterprise benefit tag is used to search for the target file.
[0053] It is understandable that the preferential policies for enterprises usually involve specific amounts of enterprise support and the start and end time of the preferential policies. Therefore, in some embodiments, the preferential information for enterprises includes preferential resource information (such as specific amounts) and preferential time information (such as deadline); when the preferential information for enterprises is extracted based on the text content of the target file and used as the preferential label of the target file, it may specifically include the following (I) to (III): (I) extracting target enterprise benefit resource information from target text content of the target file based on the first extraction format of the enterprise benefit resource information; (II) extracting target enterprise benefit time information from the target text content of the target file based on the second extraction format of the enterprise benefit time information; (III) Using the target enterprise benefit resource information and the target enterprise benefit time information as the enterprise benefit tag of the target file.
[0054] Here, the enterprise benefit resource information refers to the amount of benefit to the enterprise, and usually the enterprise benefit resource information will include numbers and units. For example, the unit can be yuan, ten thousand yuan, one hundred million yuan, etc. And the time also has a corresponding format, such as "start date: year-month-day", "end date: year-month-day", "release date: year-month-day", etc. Therefore, according to the first extraction format of the enterprise benefit resource information and the second extraction format of the enterprise benefit time information, not only can the corresponding content be extracted respectively, but also the extraction accuracy can be improved.
[0055] In some embodiments, when extracting target benefit-for-enterprise resource information from the target text content of the target file based on the first extraction format of the benefit-for-enterprise resource information, the following (a) to (b) may be included: (a) using a regular expression to determine a target sentence containing numbers and preset units from the target text content of the target file; (b) extracting the target enterprise benefit resource information from the target sentence based on the first extraction format of the enterprise benefit resource information.
[0056] It can be understood that, since the above embodiment has performed paragraph and sentence segmentation processing on the target text content, it is possible to extract numbers and preset units from each sentence to obtain the target sentence.
[0057] It should be noted that when using regular expressions to extract dates, if the deadline does not have a year but has a month and day, the year of the start is used as a supplement. If there is a starting year, month, day and validity period, the validity period needs to be added to the starting date to get the deadline. For "effective from the date of publication", the publication date needs to be extracted.
[0058] For example, if the split sentence includes "This regulation will be implemented on January 27, 2016 and will be valid for 2 years", you need to add 2 years to January 27, 2016 to get the deadline.
[0059] In some embodiments, the enterprise benefit resource information may include enterprise benefit keywords and the amount of enterprise benefit resources (such as amount), and the first extraction format of the enterprise benefit resource information includes the relative position relationship between the enterprise benefit keywords and the amount of enterprise benefit resources.
[0060] For example, the relative position relationship includes: the enterprise benefit keyword comes first and the enterprise benefit resource quantity comes second, the enterprise benefit keyword comes second and the enterprise benefit resource quantity comes first, or the enterprise benefit resource quantity comes between the enterprise benefit keyword, etc. The enterprise benefit resource quantity refers to the specific amount.
[0061] Exemplarily, the relative position relationship is shown in Table 1: Table 1
[0062] Among them, "after" means the number of resources benefiting enterprises comes after the keywords benefiting enterprises, "front" means the number of resources benefiting enterprises comes before the keywords benefiting enterprises, and "middle" means the number of resources benefiting enterprises comes between the keywords benefiting enterprises.
[0063] See also Figure 2 As shown, in some embodiments, the file processing method further includes the following S201-S203: S201, displaying enterprise benefit resource information setting items and enterprise benefit time information setting items.
[0064] S202: generating a first filtering condition in response to a first setting operation for the enterprise benefit resource information setting item, and generating a second filtering condition in response to a second setting operation for the enterprise benefit time information setting item.
[0065] S203: Display at least one target file that matches the first filtering condition and the second filtering condition.
[0066] See also Figure 3 As shown, a file search system can be constructed based on the target files screened out in the above steps, and a file search interface can be displayed, so that the user can directly query the required target files based on the file search interface.
[0067] Exemplarily, the file search interface may include enterprise benefit resource information setting items and enterprise benefit time information setting items. The specific setting forms of the enterprise benefit resource information setting items and enterprise benefit time information setting items are not limited. For example, they may be in the form of a drop-down menu or a button option. For example, if the first filtering condition set by the user through the enterprise benefit resource information setting item is "the number of enterprise benefit resources is greater than 2 million", and the second filtering condition set by the enterprise benefit time information setting item is "the deadline for benefiting enterprises is before December 31, 2024", in this way, the system can filter out and display all target files that meet the above filtering conditions through the enterprise benefit label.
[0068] In some embodiments, in order to implement fuzzy search, that is, to find the corresponding target file when the user only inputs relevant terms, the method further includes: For each target file, directory information of the target file is extracted based on the target text content of the target file, and the directory information is associated with the target file, and the directory information is used to find the target file.
[0069] In this way, as long as the user enters keywords related to the target content of the target file, the corresponding target file can be found through the directory without having to be precise about the specific enterprise benefit resource information and enterprise benefit time information, which is conducive to improving the applicability of the file search method.
[0070] In some other embodiments, the method further comprises: For each target file, determining category information of the target file, where the category information is used to characterize the industry attribute to which the target file belongs; Each target file belonging to the same category information is associated with the same category information.
[0071] In this way, files can be searched based on industry categories and industry attributes. For example, if the user enters "new energy, optoelectronic industry", target files related to the optoelectronic industry can be found.
[0072] It should be noted that in actual applications, the scope of the same category can be determined according to actual conditions. For example, under the industry type of new energy, it can be divided into photovoltaic industry, new energy, carbon peak, energy storage, hydrogen energy, green and low-carbon, hydrogen energy, etc., without specific limitations.
[0073] The file processing method provided by the disclosed embodiment first uses a preset tag set to perform title screening on each candidate file in a plurality of file formats to obtain a first file, and then screens out target files containing the willingness to support different industries according to the target text content of each first file. In this way, target files related to the enterprise-friendly policy can be screened out for user query, thereby facilitating users to find related files. Furthermore, the disclosed embodiment also extracts enterprise-friendly information based on the target text content of the target file, and uses the enterprise-friendly information as the enterprise-friendly tag of the target file. In this way, users can search for the corresponding target file through the enterprise-friendly tag, thereby improving the efficiency of users finding target files.
[0074] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0075] See also Figure 4 , which is a functional module diagram of a file processing device provided by an embodiment of the present disclosure. The file processing device 400 includes: The file acquisition module 401 is used to acquire each candidate file in a plurality of file formats; The title screening module 402 is used to perform title screening processing on each candidate file in the plurality of file formats using a preset tag set, and determine the candidate file corresponding to the title that does not belong to the preset tag set as the first file; The content screening module 403 is used to parse the target text content of each first file according to the file format of the first file, and determine the first file as a target file if the target text content contains at least one keyword in a preset word library; each keyword in the preset word library is used to represent the willingness to support different industries; The association processing module 404 is used to extract enterprise benefit information based on the target text content of each target file, and use the enterprise benefit information as the enterprise benefit tag of the target file, and the enterprise benefit tag is used to find the target file.
[0076] In a possible implementation manner, the enterprise benefit information includes enterprise benefit resource information and enterprise benefit time information; the association processing module 404 is specifically used to: Extracting target enterprise benefit resource information from target text content of the target file based on the first extraction format of the enterprise benefit resource information; Extracting target enterprise benefit time information from target text content of the target file based on the second extraction format of the enterprise benefit time information; The target enterprise benefit resource information and the target enterprise benefit time information are used as the enterprise benefit label of the target file.
[0077] In a possible implementation manner, the association processing module 404 is specifically configured to: Determine a target sentence containing numbers and preset units from the target text content of the target file using a regular expression; Based on the first extraction format of the enterprise benefit resource information, the target enterprise benefit resource information is extracted from the target sentence.
[0078] In a possible implementation, the enterprise benefit resource information includes enterprise benefit keywords and the number of enterprise benefit resources, and the first extraction format of the enterprise benefit resource information includes the relative position relationship between the enterprise benefit keywords and the number of enterprise benefit resources.
[0079] See also Figure 5 As shown, in a possible implementation manner, the device further includes a file search module 405, and the file search module 405 is used to: Display the enterprise benefit resource information setting items and enterprise benefit time information setting items; In response to a first setting operation for the enterprise benefit resource information setting item, a first filtering condition is generated, and in response to a second setting operation for the enterprise benefit time information setting item, a second filtering condition is generated; At least one target file that matches the first filtering condition and the second filtering condition is displayed.
[0080] In a possible implementation manner, the association processing module 404 is further configured to: For each target file, directory information of the target file is extracted based on the target text content of the target file, and the directory information is associated with the target file, and the directory information is used to find the target file.
[0081] In a possible implementation manner, the association processing module 404 is further configured to: For each target file, determining category information of the target file, where the category information is used to characterize the industry attribute to which the target file belongs; Each target file belonging to the same category information is associated with the same category information.
[0082] In a possible implementation, the content screening module 403 is specifically used to: For each of the first files, according to the file format of the first file, extracting initial text content by using a text extraction method that matches the file format; The pre-trained semantic recognition model is used to perform semantic improvement processing on the extracted initial text content to obtain the parsed target text content.
[0083] Based on the same technical concept, the embodiment of the present disclosure also provides an electronic device. Figure 6 , which is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present disclosure, including a processor 601, a memory 602, and a bus 603. The memory 602 is used to store execution instructions, including a memory 6021 and an external memory 6022; the memory 6021 is also called an internal memory, which is used to temporarily store the operation data in the processor 601 and the data exchanged with the external memory 6022 such as a hard disk. The processor 601 exchanges data with the external memory 6022 through the memory 6021.
[0084] In the embodiment of the present application, the memory 602 is specifically used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 601. That is, when the electronic device 600 is running, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the application code stored in the memory 602, and then executes the method described in any of the above embodiments.
[0085] Among them, the memory 602 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0086] Processor 601 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0087] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 600. In other embodiments of the present application, the electronic device 600 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0088] The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data processing method in the above method embodiment are executed.
[0089] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction. When the computer program / instruction processor is executed, the data processing method provided in the embodiments of the present disclosure is implemented. For details, please refer to the above method embodiments, which will not be repeated here.
[0090] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0091] The method in the embodiments of the present disclosure may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is downloaded and executed on a computer, the process or function described in the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.
[0092] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0093] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0094] 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.
[0095] In addition, each functional unit in each embodiment of the present disclosure 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.
[0096] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0097] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A file processing method, It is characterized in that The method comprises: Obtain each candidate file in multiple file formats; Using a preset tag set to perform title screening processing on each candidate file in the multiple file formats, and determining the candidate file corresponding to the title that does not belong to the preset tag set as the first file; For each of the first files, the target text content of the first file is parsed according to the file format of the first file, and the first file is determined as a target file if the target text content contains at least one keyword in a preset word library; each keyword in the preset word library is used to represent the willingness to support different industries; For each target file, enterprise benefit information is extracted based on the target text content of the target file, and the enterprise benefit information is used as the enterprise benefit tag of the target file, and the enterprise benefit tag is used to find the target file.
2. The method according to claim 1, It is characterized in that The enterprise benefit information includes enterprise benefit resource information and enterprise benefit time information; the step of extracting the enterprise benefit information based on the text content of the target file and using the enterprise benefit information as the enterprise benefit tag of the target file includes: Extracting target enterprise benefit resource information from target text content of the target file based on the first extraction format of the enterprise benefit resource information; Extracting target enterprise benefit time information from target text content of the target file based on the second extraction format of the enterprise benefit time information; The target enterprise benefit resource information and the target enterprise benefit time information are used as the enterprise benefit label of the target file.
3. The method according to claim 2, It is characterized in that The step of extracting target enterprise benefit resource information from the target text content of the target file based on the first extraction format of the enterprise benefit resource information includes: Determine a target sentence containing numbers and preset units from the target text content of the target file using a regular expression; Based on the first extraction format of the enterprise benefit resource information, the target enterprise benefit resource information is extracted from the target sentence.
4. The method according to claim 2 or 3, It is characterized in that The enterprise benefit resource information includes enterprise benefit keywords and the number of enterprise benefit resources, and the first extraction format of the enterprise benefit resource information includes the relative position relationship between the enterprise benefit keywords and the number of enterprise benefit resources.
5. The method according to claim 2, It is characterized in that The method further comprises: Display the enterprise benefit resource information setting items and enterprise benefit time information setting items; In response to a first setting operation for the enterprise benefit resource information setting item, a first filtering condition is generated, and in response to a second setting operation for the enterprise benefit time information setting item, a second filtering condition is generated; At least one target file that matches the first filtering condition and the second filtering condition is displayed.
6. The method according to claim 1, It is characterized in that The method further comprises: For each target file, directory information of the target file is extracted based on the target text content of the target file, and the directory information is associated with the target file, and the directory information is used to find the target file.
7. The method according to claim 1, It is characterized in that The method further comprises: For each target file, determining category information of the target file, where the category information is used to characterize the industry attribute to which the target file belongs; Each target file belonging to the same category information is associated with the same category information.
8. The method according to claim 1, It is characterized in that The step of parsing the target text content of each first file according to the file format of the first file includes: For each of the first files, according to the file format of the first file, extracting initial text content by using a text extraction method that matches the file format; The pre-trained semantic recognition model is used to perform semantic improvement processing on the extracted initial text content to obtain the parsed target text content.
9. A file processing device, It is characterized in that include: A file acquisition module, used to acquire various candidate files in various file formats; A title screening module, used to perform title screening processing on each candidate file in the plurality of file formats using a preset tag set, and determine the candidate file corresponding to the title that does not belong to the preset tag set as the first file; a content screening module, configured to parse, for each of the first files, a target text content of the first file according to a file format of the first file, and determine the first file as a target file if the target text content contains at least one keyword in a preset vocabulary; Each keyword in the preset word library is used to represent the willingness to support different industries; The association processing module is used to extract enterprise benefit information based on the target text content of each target file, and use the enterprise benefit information as the enterprise benefit tag of the target file, and the enterprise benefit tag is used to find the target file.
10. An electronic device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the file processing method as described in any one of claims 1 to 8 is executed.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a program, and the program is used to enable a processor to execute the file processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Key information extraction method and device, computer equipment and storage medium
CN113822067A
Target answer acquisition method and related device, electronic equipment and storage medium
CN115794995A
Method and system for automatically screening and pushing policy documents
CN116166874A
File retrieval method and system based on OCR (Optical Character Recognition) technology
CN117390214A
Enterprise science and technology capability assessment method and system based on enterprise information and policy information
CN118246753A
Cited By
Project tracking Gantt chart generation method and system, product and medium
CN119378925A
