File transmission method, file reception method, terminal, and storage medium
By parsing and tagging encrypted files, the problem of being unable to extract specific information is solved, and information acquisition and processing at different receiving ends are achieved.
Patent Information
- Application Number
- CN202310123598.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-09
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-02-09
AI Technical Summary
Existing technologies are unable to effectively extract specific information from encrypted files, resulting in the inability to obtain specific information in the target field.
Parse the original file, extract the target fields and add labels, perform desensitization based on the configured desensitization rules, determine whether the receiving end has configured desensitization rules, and send the desensitized file or label based on the results.
It is possible to restore the target field information through the desensitization rules when the desensitization rules are configured on the receiving end, or obtain the required information through the label when the desensitization rules are not configured, thus meeting the processing requirements of different receiving ends.
Smart Images

Figure CN116233114B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of information processing, in particular to a file transmission method, a file receiving method, a terminal and a computer readable storage medium. BACKGROUND
[0002] In some application scenarios, certain information (hereinafter referred to as specific information) in a file needs to be obtained for statistics and summary, etc. When the specific information in the file is to be obtained, file parsing and content extraction are usually required. File parsing refers to parsing and processing file formats such as word, excel, etc. to obtain the original semi-structured content of the file. Content extraction refers to extracting structured content using rules or natural language processing (NLP) techniques, etc. on the basis of semi-structured content. For example, a conference minutes contains target fields containing specific information, and the title, participants, resolution, etc. of the specific information are obtained by extracting the target fields through the above file parsing and content extraction means.
[0003] For the above file content extraction process, whether based on rules or natural language processing techniques, the original file is obtained for analysis and labeling or training. For encrypted files, since the original file cannot be obtained, the target fields cannot be extracted, and thus the specific information in the target fields cannot be obtained. SUMMARY
[0004] To solve the problem that the specific information in the file cannot be obtained for a confidential file, the present application provides a file transmission method, a file receiving method, a terminal and a computer readable storage medium.
[0005] According to an aspect of an embodiment of the present application, a file transmission method is disclosed, comprising:
[0006] obtaining an original file to be sent;
[0007] parsing the original file, extracting a target field contained in the original file, and adding a label to the target field; the label records basic information of the target field, and the basic information contains information required by a receiving end;
[0008] performing desensitization on the target field based on a configured desensitization rule to obtain a desensitized file;
[0009] determining whether the receiving end is configured with the desensitization rule, if the receiving end is configured with the desensitization rule, sending the desensitized file to the receiving end, and if the receiving end is not configured with the desensitization rule, sending the label to the receiving end.
[0010] In an example embodiment, the determining whether the receiving end is configured with the desensitization rule comprises:
[0011] Obtaining a receiving end list corresponding to the desensitization rule;
[0012] Querying whether the receiving end is included in the receiving end list;
[0013] Determining whether the receiving end is configured with the desensitization rule according to the query result.
[0014] In an example embodiment, the desensitizing the target field based on the configured desensitization rule to obtain a desensitized file comprises:
[0015] Obtaining a configured character mapping relationship;
[0016] Replacing at least part of characters in the target field based on the character mapping relationship to obtain a desensitized file.
[0017] In an example embodiment, the replacing at least part of characters in the target field based on the character mapping relationship to obtain a desensitized file comprises:
[0018] Dividing the characters to be replaced and non-replacement characters; the non-replacement characters include punctuation marks and the first word of each sentence in the target field, and the characters to be replaced are characters other than the non-replacement characters in the target field;
[0019] Replacing numbers in the characters to be replaced with a first character, and replacing Chinese characters in the characters to be replaced with a second character, the second character being different from the first character.
[0020] In an example embodiment, the parsing the original file to extract a target field contained in the original file comprises:
[0021] Dividing the original file into multiple fields based on a configured file parser;
[0022] Extracting a field located at a preset position in the original file;
[0023] Extracting a field containing a preset keyword in the original file;
[0024] Taking the field located at the preset position and the field containing the preset keyword as the target field.
[0025] According to an aspect of an embodiment of the present application, a file receiving method is disclosed, comprising:
[0026] Receiving information sent by a sending end;
[0027] identifying information sent by the sending end;
[0028] If the information is a desensitized file, based on a desensitization rule adopted by the sending end, an original file is obtained by reverse analysis;
[0029] If the information is a label recording basic information of a target field in the original file, information recorded in the label is obtained.
[0030] In an exemplary embodiment, the information is a label recording basic information of a target field in an original file, and the file receiving method further comprises:
[0031] receiving a search request;
[0032] calculating a frequency of occurrence of each label, and adjusting an arrangement order of each label according to the frequency of occurrence of each label;
[0033] based on the arrangement order, displaying the label information at a corresponding position of a search feedback interface.
[0034] According to an aspect of an embodiment of the present application, a terminal is disclosed, which comprises an obtaining module, a processing module, a desensitization module, and a sending module; the obtaining module is configured to obtain an original file to be sent; the processing module is configured to analyze the original file, extract a target field contained in the original file, and add a label to the target field; the label records at least part of characters of the target field; the desensitization module is configured to desensitize the target field based on a configured desensitization rule, and obtain a desensitized file; and the sending module is configured to determine whether a receiving end is configured with the desensitization rule, and if the receiving end is configured with the desensitization rule, send the desensitized file to the receiving end, and if the receiving end is not configured with the desensitization rule, send the label to the receiving end.
[0035] According to an aspect of an embodiment of the present application, a terminal is disclosed, which comprises one or more processors and a memory, the memory being configured to store one or more programs, when the one or more programs are executed by the one or more processors, the terminal implements the foregoing file transmission method.
[0036] According to an aspect of an embodiment of the present application, a computer readable storage medium is disclosed, which stores computer readable instructions, when the computer readable instructions are executed by a processor of a computer, the computer executes the foregoing file transmission method.
[0037] The technical scheme provided by the embodiments of the present application has at least the following beneficial effects:
[0038] The technical scheme provided in the application comprises the following steps: before transmitting a file to a receiving end, an original file is parsed, a target field contained in the original file is extracted, and a label is added to the target field; information required by the receiving end for the target field is recorded through the label; then, the target field is desensitized based on a configured desensitization rule to obtain a desensitized file; whether the receiving end is configured with the desensitization rule is determined; in the case that the receiving end is configured with the desensitization rule, the desensitized file is transmitted to the receiving end, otherwise, the label is transmitted to the receiving end. For the receiving end configured with the desensitization rule, the target field can be obtained based on the desensitization rule, so that the information required by the target field is further processed as required, and even the entire original file is reversely generated; for the receiving end not configured with the desensitization rule, since the label is not desensitized, the required information can be obtained from the label, so that the required information is further processed as required.
[0039] It should be understood that the foregoing general description and the following detailed description are only exemplary and are not limiting to the application. BRIEF DESCRIPTION OF DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the application and serve to explain the principles of the application together with the specification.
[0041] Figure 1 is a schematic diagram of an information interaction system architecture according to an exemplary embodiment;
[0042] Figure 2 is a flowchart of a file transmission method according to an exemplary embodiment;
[0043] Figure 3 is Figure 2 is a detailed flowchart of step S102 in the corresponding embodiment;
[0044] Figure 4 is Figure 2 is a detailed flowchart of step S103 in the corresponding embodiment;
[0045] Figure 5 is Figure 4 is a detailed flowchart of step S1032 in the corresponding embodiment;
[0046] Figure 6 is Figure 2 is a detailed flowchart of step S104 in the corresponding embodiment;
[0047] Figure 7 is a block diagram of a terminal according to an exemplary embodiment;
[0048] Figure 8is a flow chart of a file receiving method according to an exemplary embodiment;
[0049] Figure 9 is a flow chart of a file receiving method according to another exemplary embodiment;
[0050] Figure 10 is a block diagram of a terminal according to another exemplary embodiment;
[0051] Figure 11 is a computer system structure block diagram of a terminal for implementing embodiments of the present application according to an exemplary embodiment.
[0052] The following is a description of the drawings:
[0053] 100, system; 110, sending end; 120, receiving end; 200, terminal; 210, obtaining module; 220, processing module; 230, desensitizing module; 240, sending module; 300, terminal; 310, receiving module; 320, processing module; 400, terminal; 401, CPU; 402, ROM; 403, storage portion; 404, RAM; 405, bus; 406, I / O interface; 407, input portion; 408, output portion; 409, communication portion; 410, driver; 411, detachable medium. DETAILED DESCRIPTION
[0054] While the present application can be susceptible to various modifications and alternative forms, the drawings illustrated and the specification as detailed herein should not be construed as limiting the application since modifications that fall within the scope of the underlying principles will be apparent to those skilled in the art.
[0055] Furthermore, the terms "include", "comprise", "have", and any variations thereof, as used in the description and in the claims of the present application, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus that comprises a list of steps or modules does not necessarily comprise only those steps or modules but can include other steps or modules not expressly listed or inherent to such process, method, system, product, or apparatus.
[0056] In addition, the terms "first", "second", and the like, are used merely as labels, and are not intended to signify or imply relative importance or a quantity of objects indicated. Thus, a feature defined with a "first", "second", etc. can explicitly or implicitly include one or more of either of these features.
[0057] It should be noted that the terms "exemplary" or "for example" are used herein to mean "an example of" rather than "an ideal". Any implementation described herein as "exemplary" or "for example" is not necessarily to be construed as preferred or advantageous over other implementations. Rather, the exemplary implementations are intended to convey the essence of the implementations to one skilled in the art that the implementation conveys the benefits of the present disclosure. Moreover, the goals of the implementations are met, in whole or in part, by other implementations that are not expressly described herein.
[0058] The exemplary embodiments will be described in detail herein below. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0059] The exemplary embodiments of the present disclosure provide a file transmission method and a file receiving method. Figure 1 A system architecture diagram is shown, which can run the exemplary embodiments of the present disclosure. As shown, the system 100 can include a sending end 110 and a receiving end 120. The sending end 110 can be any terminal having file processing and file sending functions, such as a terminal device installed with a de-sensitization software, such as a desktop computer, a notebook computer, etc. Similarly, the receiving end 120 can be any terminal device having file receiving and file processing functions, such as a desktop computer, a notebook computer, etc. Figure 1 The sending end 110 can be configured to process an original file into a de-sensitized file using the file transmission method of the present disclosure, and send the de-sensitized file and / or a tag recording basic information of a target field to the receiving end 120. Alternatively, the sending end 110 can be configured to have a function of directly sending the original file to the receiving end 120.
[0060] For example, for a non-classified ordinary document, the sending end 110 can directly send the original file to the receiving end 120. For a classified document having a security requirement, the sending end 110 sends the de-sensitized file and / or the tag to the receiving end 120.
[0061] For example, for a non-classified ordinary document, the sending end 110 can directly send the original file to the receiving end 120. For a classified document having a security requirement, the sending end 110 sends the de-sensitized file and / or the tag to the receiving end 120.
[0062] The receiving end 120 can be configured to reverse analyze the de-sensitized file to obtain the original file based on the de-sensitization rule used by the sending end, so as to further obtain the required information, or obtain the information recorded in the tag.
[0063] It can be understood that the sending end 110 and the receiving end 120 can be in direct communication, and the sending end 110 directly sends the de-sensitized file and / or the tag to the receiving end 120. Alternatively, the sending end 110 and the receiving end 120 can be in indirect communication through an intermediate device, such as a routing device. In this case, the sending end 110 sends the de-sensitized file and / or the tag to the routing device, which then sends the de-sensitized file and / or the tag to the receiving end 120.
[0064] The sending end 110 and the receiving end 120 can communicate through a wired manner or through a wireless manner.
[0065] The embodiment of the present application first provides a file transmission method, which comprises the following steps.
[0066] Obtaining an original file to be sent.
[0067] Analyzing the original file, extracting a target field contained in the original file, and adding a label to the target field; the label records basic information of the target field, and the basic information contains information required by the receiving end;
[0068] Desensitizing the target field based on a configured desensitization rule to obtain a desensitized file.
[0069] Determining whether the receiving end is configured with the desensitization rule, sending the desensitized file to the receiving end if the receiving end is configured with the desensitization rule, and sending the label to the receiving end if the receiving end is not configured with the desensitization rule.
[0070] The technical scheme provided by the present application comprises the following steps: before a file is transmitted to a receiving end, an original file is analyzed, a target field contained in the original file is extracted, and a label is added to the target field; the label records information required by the receiving end with respect to the target field; then, the target field is desensitized based on a configured desensitization rule to obtain a desensitized file; and then, it is determined whether the receiving end is configured with the desensitization rule; if the receiving end is configured with the desensitization rule, the desensitized file is sent to the receiving end; otherwise, the label is sent to the receiving end. For the receiving end configured with the desensitization rule, the target field can be obtained based on the desensitization rule, so that the information required by the receiving end in the target field can be further processed as required, and even the entire original file can be reversely generated; for the receiving end not configured with the desensitization rule, the information required by the receiving end can be obtained from the label, so that the information required by the receiving end can be further processed as required.
[0071] The embodiments of the present application will be further described in detail below with reference to the accompanying drawings of the embodiments of the present application.
[0072] Referring to Figure 2 The file transmission method provided by an example embodiment of the present application comprises the following steps S101-S104.
[0073] S101, obtaining an original file to be sent.
[0074] It can be understood that the original file is not particularly a file not subjected to any processing, and it is mainly referred to as an original file to distinguish the desensitized file obtained after the following steps S102 and S103 are performed.
[0075] The original file can be unstructured data, the original file can also be semi-structured data, and the original file can also be structured data.
[0076] The original file can be, for example, a word file, an excel file, a PPT file, an xml file, a picture, audio / video, etc.
[0077] S102, parsing the original file, extracting the target field contained in the original file, and adding a label to the target field. The label records the basic information of the target field, and the basic information contains the information required by the receiving end.
[0078] In an exemplary embodiment, as shown in Figure 3 Step S102 includes steps S1021-S1025.
[0079] S1021, based on the configured file parser, dividing the original file into multiple fields.
[0080] In detail, according to the pre-set segmentation rule, the original file is divided into multiple fields. For example, for a word document, each title, each paragraph / sentence of the text is divided into a field.
[0081] S1022, extracting the field in the original file at the preset position.
[0082] For example, the preset position can be, for example, the file title, etc. Further, for example, the first-level title, the second-level title, the third-level title, etc. in the original file are extracted.
[0083] Wherein, each level of title can be distinguished by different characters, for example, the title number of the first-level title is "one,", the title number of the second-level title is "(one)", the title number of the third-level title is "1.", the title number of the fourth-level title is "(1)", the title number of the fifth-level title is "①", etc. Different levels of titles have specific font size, format, etc. By recognizing the title number, font size, format, the first-level title, the second-level title, the third-level title, etc. in the original file are extracted.
[0084] Further, for example, the preset position can be, for example, the abstract, etc. The abstract in the original file can be extracted by recognizing the Chinese characters, English, etc. with the meaning of "abstract" in the original file, and combining the preset position of the Chinese characters, English, etc. with the meaning of "abstract" in the original file.
[0085] For example, for an excel document, the preset position can be, for example, a certain row and / or a certain column.
[0086] S1023, extract the field containing the preset keyword in the original file.
[0087] For example, the field containing the keyword such as "Group XX tracking" in the original file is extracted. For another example, the field containing the keyword such as "Group performance" in the original file is extracted.
[0088] In detail, the content of the original file can be matched with the preset keyword by keyword matching until the entire original file is traversed, and all fields containing the preset keyword in the original file are extracted.
[0089] S1024, the field located at the preset position and the field containing the preset keyword are taken as the target field.
[0090] It can be understood that in some embodiments, the field containing the preset keyword and located at the preset position in the original file can also be taken as the target field.
[0091] It can be understood that the parsed original file and the extracted target field are fields that have been structured and are structured data.
[0092] S1025, add a label to the target field. The label records the basic information of the target field, and the basic information contains the information required by the receiving end.
[0093] It can be understood that the basic information can contain at least part of the characters of the target field, or can contain a description of at least part of the characters of the target field, or can contain at least part of the characters of the target field and a description of at least part of the characters of the target field.
[0094] The description of at least part of the characters of the target field can be the attribute of the target field, for example, whether the target field belongs to the directory, the title, the question and answer, etc. Further, the description of at least part of the characters of the target field can also be some other information of the target field, for example, the line number where the target field is located, the size and style of the font, and the encryption type used in the desensitization of step S103, etc.
[0095] Since the information required by the receiving end is different for different original files, the basic information of the target field can be different for different original files. In specific implementation, the label can be configured according to the application requirements of the receiving end.
[0096] In detail, step S1025 may include: obtaining characters in the target field that need to be used as labels, such as company name, performance status, etc.; obtaining other information that needs to be used as labels, such as the row number where the target field is located; combining the characters in the target field that need to be used as labels and the other information that needs to be used as labels into a label; and then adding a label to the target field.
[0097] For example, for a company name, the actual company name can be directly used as a label. In this case, the basic information includes at least some characters of the target field. The actual company name can also be simplified and used as a label. The actual company name can also be directly replaced with "company name" as a label. In this case, the basic information includes a description of at least some characters of the target field.
[0098] For example, for performance conditions, the specific performance data can be directly used as the label composition, in which case the basic information includes at least part of the characters of the target field; or the specific performance data can be processed into performance conditions such as performance improvement or performance decline, and then used as the label composition, in which case the basic information includes a description of at least part of the characters of the target field.
[0099] S103: Desensitize the target field based on the configured desensitization rules to obtain a desensitized file.
[0100] In an exemplary embodiment, Figure 4 As shown, step S103 includes the following steps S1031 to S1032.
[0101] S1031: Obtain the configured character mapping relationship.
[0102] S1032: Based on the character mapping relationship, replace at least part of the characters in the target field to obtain a desensitized file.
[0103] It is understandable that the target field is not limited to being desensitized by replacement, and can also be desensitized by, for example, character deformation, character position swapping, and AES algorithm (English full name: Advanced Encryption Standard, Chinese full name: Advanced Encryption Standard).
[0104] Further, if Figure 5 As shown, in an exemplary embodiment, step S1032 further includes:
[0105] S10321, dividing characters to be replaced and characters not to be replaced.
[0106] The non-substitute character includes a punctuation mark and a first word of each sentence in the target field, and the to-be-substituted character is a character in the target field other than the non-substitute character.
[0107] S10322, replacing the number in the to-be-substituted character with the first character, and replacing the Chinese character in the to-be-substituted character with the second character different from the first character.
[0108] In detail, the number in the to-be-substituted character is replaced with the letter N, and the Chinese character in the to-be-substituted character is replaced with the letter S.
[0109] Of course, it is not limited to replacing the number in the to-be-substituted character with the letter N, nor is it limited to replacing the Chinese character in the to-be-substituted character with the letter S.
[0110] Understandably, in the content of some original files, there can be other characters in addition to English and Chinese, such as Russian, etc. Similarly, Russian in the to-be-substituted character can be replaced with a third character different from the first character and the second character.
[0111] S104, determining whether the receiving end is configured with a desensitization rule, if the receiving end is configured with the desensitization rule, sending the desensitized file to the receiving end, if the receiving end is not configured with the desensitization rule, sending the label to the receiving end.
[0112] In an exemplary embodiment, as shown in Figure 6 S104, the step includes the following steps:
[0113] S1041, obtaining a receiving end list corresponding to the desensitization rule.
[0114] In detail, the receiving end list configured with the desensitization rule under each desensitization rule is set in advance; by obtaining the receiving end list corresponding to the desensitization rule, it can be known whether the receiving end is configured with the corresponding desensitization rule through the following step S1042.
[0115] S1042, querying whether the receiving end list contains the receiving end, if the receiving end is configured with the desensitization rule, executing step S1043a; if the receiving end is not configured with the desensitization rule, executing step S1043b.
[0116] S1043a, sending the desensitized file to the receiving end.
[0117] S1043b, sending the label to the receiving end.
[0118] Of course, in the embodiment in which the receiving end is configured with the desensitization rule, the desensitized file and the label can also be sent to the receiving end.
[0119] It can be understood that the desensitized file and / or label can be sent to the receiving end based on the request of the receiving end; or the desensitized file and / or label can be sent to the receiving end according to the pre-set transmission rule without receiving the request of the receiving end.
[0120] Next, please refer to Figure 7 , Figure 7 is a block diagram of a terminal 200 according to an exemplary embodiment, which can be applied in a file transmission system to perform all or part of the steps of any of the file transmission methods shown. As shown in Figures 2 to 6 , the terminal 200 includes but is not limited to an acquisition module 210, a processing module 220, a desensitization module 230, and a sending module 240. Figure 7
[0121] The acquisition module 210 is configured to acquire an original file to be sent.
[0122] The processing module 220 is configured to parse the original file, extract a target field contained in the original file, and add a label to the target field. The label records basic information of the target field, and the basic information contains information required by the receiving end.
[0123] The desensitization module 230 is configured to desensitize the target field based on a configured desensitization rule to obtain a desensitized file.
[0124] The sending module 240 is configured to determine whether the receiving end is configured with a desensitization rule. If the receiving end is configured with the desensitization rule, the desensitized file is sent to the receiving end. If the receiving end is not configured with the desensitization rule, the label is sent to the receiving end.
[0125] In detail, the processing module 220 divides the original file into multiple fields based on a configured file parser; extracts a field located at a preset position in the original file; extracts a field containing a preset keyword in the original file; and takes the field located at the preset position and the field containing the preset keyword as the target field.
[0126] In detail, the desensitization module 230 acquires a configured character mapping relationship; and replaces at least part of characters in the target field based on the character mapping relationship to obtain the desensitized file.
[0127] More specifically, the desensitization module 230 divides the characters to be replaced and non-replacement characters; the non-replacement characters include punctuation marks and the first word of each sentence in the target field, and the characters to be replaced are characters in the target field other than the non-replacement characters; a first character is used to replace numbers in the characters to be replaced, and a second character is used to replace Chinese characters in the characters to be replaced, and the second character is different from the first character.
[0128] In detail, the sending module 240 acquires a receiving end list corresponding to the desensitization rule; queries whether the receiving end list contains the receiving end; and determines whether the receiving end is configured with the desensitization rule according to the query result. If the receiving end is configured with the desensitization rule, the desensitized file is sent to the receiving end; and if the receiving end is not configured with the desensitization rule, the label is sent to the receiving end.
[0129] The functions and roles of the modules in the terminal 200 are more specifically implemented according to the implementation process of the corresponding steps in the file transmission method, which will not be repeated here.
[0130] The terminal 200 can be any terminal with file processing and file sending functions, such as a terminal device installed with a desensitization software, such as a desktop computer, a notebook computer, etc.
[0131] Next, please refer to Figure 8 The file receiving method provided by an example embodiment of the present application includes the following steps S201-S203.
[0132] S201, receiving information sent by a sending end.
[0133] The information sent by the sending end can be a desensitized file; can be a label recording basic information of a target field, the basic information containing information required by the receiving end; or can be an original file not subjected to desensitization processing by the foregoing file transmission method.
[0134] S202, identifying the received information; if the received information is a desensitized file, proceeding to step S203a; and if the received information is a label recording basic information of a target field of an original file, proceeding to step S203b.
[0135] S203a, reversely analyzing to obtain an original file based on a desensitization rule adopted by the sending end.
[0136] In detail, the target field is reversely restored based on the desensitization rule adopted by the sending end; and the entire original file is further restored according to format information of the original file. The format refers to the number of lines where the field is located, the size of the font, the style of the font, etc.
[0137] For example, when reversely analyzing, the directory information is first restored, then the first title and the question and answer are restored, then the second title and the third title are restored, and the original document is further restored according to the format information of the original file. It can be understood that the format information of the original file can be sent to the receiving end together with the desensitized file, and the receiving end can receive the format information of the original file when receiving the information sent by the sending end.
[0138] S203b, obtaining information recorded in the label. Further analysis, processing, etc. is performed according to the information recorded in the label.
[0139] For example, if a label of a target field contains a character of "life insurance" company and a character of "performance improvement", it can be considered that the performance of the company is improved. For another example, if a character of "solving performance problem" appears many times according to the total frequency of the appearance of the character of "solving performance problem" in the labels of all target fields, it can be concluded that "solving performance problem" is a hot issue.
[0140] In some example embodiments, the receiving end also accepts a search request of the user and feeds back a search result in the search feedback interface based on the search request of the user.
[0141] For example, in an embodiment in which the received information is a label recording basic information of a target field, as shown in Figure 9 After the steps S201-S203 are performed, the receiving end further performs the following steps S204-S206.
[0142] S204, receiving a search request.
[0143] S205, calculating the frequency of appearance of each label and adjusting the arrangement order of each label according to the frequency of appearance of each label.
[0144] S206, displaying the label information in the corresponding position of the search feedback interface based on the arrangement order.
[0145] In detail, the weight of each label is adjusted according to the frequency of appearance of each label, the arrangement order of each label is adjusted according to the weight of each label, and the label information is displayed in the corresponding position of the search feedback interface based on the arrangement order.
[0146] For example, the weight of a label is reduced if the frequency of appearance of the label is high, such as a company name, and the weight of a label is increased if the frequency of appearance of the label is low, such as some key information.
[0147] For example, when searching, the higher the weight of a label, the more front the display position of the label in the search feedback interface, so as to facilitate the user to view. The lower the weight of a label, the more back the display position of the label in the search feedback interface.
[0148] Next, please refer to Figure 10 , Figure 10 is a block diagram of a terminal 300 according to an example embodiment. The terminal 300 can be applied in a file receiving system and perform all or part of the steps of the file receiving method shown in Figure 8 or Figure 9 . As shown in Figure 10 , the terminal 300 includes but is not limited to a receiving module 310 and a processing module 320.
[0149] The receiving module 310 is configured to receive information sent by the sending terminal.
[0150] The processing module 320 is configured to identify the information sent by the sending terminal, and if the information is a desensitized file, reversely analyze the desensitized file to obtain an original file based on a desensitization rule adopted by the sending terminal, and if the information is a label recording basic information of a target field, obtain information recorded in the label.
[0151] The functions and roles of the modules in the terminal 300 are described in detail in the implementation process of the corresponding steps of the file transmission method, and thus will not be described herein.
[0152] The terminal 300 can be any terminal having a file processing and sending function, such as a terminal device installed with a desensitization software, for example, a desktop computer, a notebook computer, etc.
[0153] Figure 11 A structure block diagram of a computer system of a terminal for implementing a file transmission method or a file receiving method according to an embodiment of the present application is shown schematically.
[0154] It should be noted that, Figure 11 The computer system 400 of the terminal shown is only an example, and should not impose any limitation on the functions and use range of the embodiments of the present application.
[0155] As shown in the figure, Figure 11 The computer system 400 includes a central processing unit 401 (CPU), which can perform various appropriate actions and processes according to programs stored in a read-only memory 402 (ROM) or loaded from a storage portion 403 to a random access memory 404 (RAM). Various programs and data required for system operation are also stored in the random access memory 404. The central processing unit 401, the read-only memory 402, and the random access memory 404 are connected to each other through a bus 405. An input / output interface 406 (I / O interface) is also connected to the bus 405.
[0156] The following components are connected to the input / output interface 406: an input portion 407 including a keyboard, a mouse, etc.; an output portion 408 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 403 including a hard disk, etc.; and a communication portion 409 including a network interface card such as a local area network card, a modem, etc. The communication portion 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the input / output interface 406 as necessary. A removable media 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 410 as necessary, so that a computer program read out therefrom is installed in the storage portion 403 as necessary.
[0157] In particular, according to embodiments of the present application, the processes described in the various method flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication portion 409, and / or installed from the removable media 411. When the computer program is executed by the central processing unit 401, various functions defined in the system of the present application are executed.
[0158] It should be noted that the computer readable medium shown in the embodiments of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present application, the computer readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer readable program code. Such a propagated data signal can take many forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or apparatus. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination of the above.
[0159] Those skilled in the art should be aware that in one or more examples described above, the functions described in the present application can be implemented by hardware, software, firmware or any combination thereof. When implemented by software, these functions can be stored in a computer readable storage medium or transmitted as one or more instructions or codes on a computer readable storage medium.
[0160] From the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, i.e. the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0161] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the apparatus embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In this way, the internal structure of the apparatus is not limited to those described in the embodiments.
[0162] It should be understood that the application is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the application is limited only by the claims that follow.
Claims
1. A file transfer method characterized by, The method comprises the following steps: obtaining an original file to be sent; parsing the original file, extracting a target field contained in the original file, and adding a label to the target field; the label records basic information of the target field, the basic information contains information required by a receiving end, and the basic information contains at least part of characters of the target field or contains a description of at least part of characters of the target field; based on a configured desensitization rule, the target field is desensitized to obtain a desensitized file; determining whether the receiving end is configured with the desensitization rule, if the receiving end is configured with the desensitization rule, the desensitized file is sent to the receiving end, and if the receiving end is not configured with the desensitization rule, the label is sent to the receiving end.
2. The file transfer method of claim 1, wherein, The determination of whether the receiving end is configured with the desensitization rule comprises: obtaining a list of receiving ends corresponding to the desensitization rule; querying whether the receiving end is contained in the list of receiving ends; determining whether the receiving end is configured with the desensitization rule according to the query result.
3. The file transfer method of claim 1, wherein, The desensitization of the target field based on the configured desensitization rule to obtain a desensitized file comprises: obtaining a configured character mapping relationship; based on the character mapping relationship, at least part of characters in the target field is replaced to obtain a desensitized file.
4. The file transfer method of claim 3, wherein, The replacement of at least part of characters in the target field based on the character mapping relationship to obtain a desensitized file comprises: dividing the characters to be replaced and non-replacement characters; the non-replacement characters include punctuation marks and the first word of each sentence in the target field, and the characters to be replaced are characters other than the non-replacement characters in the target field; using a first character to replace numbers in the characters to be replaced, and using a second character to replace Chinese characters in the characters to be replaced, the second character being different from the first character.
5. The file transfer method of claim 1, wherein, The parsing of the original file to extract the target field contained in the original file comprises: based on a configured file parser, the original file is divided into multiple fields; extracting a field located at a preset position in the original file; extracting a field containing a preset keyword in the original file; the field located at the preset position and the field containing the preset keyword are taken as the target field.
6. A file receiving method characterized by comprising: The method comprises the following steps: receiving information sent by a sending end; identifying the information sent by the sending end; if the information is a desensitized file, based on a desensitization rule adopted by the sending end, an original file is obtained by reverse parsing; if the information is a label recording basic information of a target field in an original file, the information recorded in the label is obtained, the basic information contains at least part of characters of the target field or contains a description of at least part of characters of the target field.
7. The file receiving method according to claim 6, characterized in that, If the information is a label recording basic information of a target field in an original file, the file receiving method further comprises: receiving a search request; calculating the frequency of occurrence of each label, and adjusting the arrangement order of each label according to the frequency of occurrence of each label; based on the arrangement order, the label information is displayed at a corresponding position of a search feedback interface.
8. A terminal, characterized by comprising: The method comprises the following steps: an obtaining module is configured to obtain an original file to be sent; The processing module is configured to parse the original file, extract a target field contained in the original file, and add a label to the target field; the label records basic information of the target field, the basic information includes information required by a receiving end, and the basic information includes at least part of characters of the target field or a description of the at least part of characters of the target field; The desensitization module is configured to perform desensitization on the target field based on a configured desensitization rule, and obtain a desensitized file; The sending module is configured to determine whether the receiving end is configured with the desensitization rule, and if the receiving end is configured with the desensitization rule, send the desensitized file to the receiving end, and if the receiving end is not configured with the desensitization rule, send the label to the receiving end.
9. A terminal, characterized by The terminal comprises: one or more processors; a memory configured to store one or more programs, which, when executed by the one or more processors, cause the terminal to implement the file transmission method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer readable instructions, which, when executed by a processor of a computer, cause the computer to perform the file transmission method according to any one of claims 1 to 5.
Citation Information
Patent Citations
File acquisition request processing method and device
CN111367868A
Information desensitization method and device, computer equipment and medium
CN112685777A