Method and apparatus for processing file tags

By identifying and associating file tags with specified content, the method improves file classification accuracy and protection by ensuring appropriate measures are taken based on file content.

CN112214786BActive Publication Date: 2025-07-15TENCENT CLOUD COMPUTING (BEIJING) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910618509.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-09
Publication Date
2025-07-15
Estimated Expiration
2039-12-16

AI Technical Summary

Technical Problem

The prior art cannot automatically determine the classification of files based on the actual situation of the files, which makes it difficult to associate file classification with file content, and thus cannot effectively realize the protection of files.

Method used

By identifying the content of the file to be marked, obtaining the tag information corresponding to the specified content, and associating the tag information with the file, the automatic classification and content association of the file is realized.

Benefits of technology

It improves the accuracy and relevance of file classification, ensures effective protection of file content, especially when file operations can be taken promptly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112214786B_ABST
    Figure CN112214786B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method and device for processing file tags. The method for processing file tags includes: identifying the content of a file to be annotated; if the file to be annotated contains specified content, obtaining tag information corresponding to the specified content; and associating the tag information with the file to be annotated. The technical solution of the embodiments of the present application determines the tag information of the file to be annotated by identifying the specified content in the file to be annotated, improves the relevance between the file tag and the file, and ensures the accuracy of file classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information security technology, and more particularly, to a method and apparatus for processing file tags. Background Art

[0002] Since different files contain different contents and have different levels of importance. For files with higher importance, attention should be paid to protecting the file content to prevent the file content from being stolen or illegally copied, etc. However, current technical solutions cannot automatically determine the classification of files according to the actual situation of the files, resulting in difficulty in associating the file classification with the file content, and further leading to the inability to effectively protect the files. Summary of the Invention

[0003] Embodiments of this application provide a method and apparatus for processing file tags, which can at least to a certain extent realize the automatic classification of files, realize the association between file classification and file content, and thus facilitate the effective protection of files.

[0004] Other features and advantages of this application will become apparent from the following detailed description, or will be learned in part through the practice of this application.

[0005] According to one aspect of the embodiments of this application, a method for processing file tags is provided, including:

[0006] Identifying the content of the file to be labeled;

[0007] If the file to be labeled contains specified content, obtaining the tag information corresponding to the specified content;

[0008] Associating the tag information with the file to be labeled.

[0009] According to one aspect of the embodiments of this application, a device for processing file tags is provided, including:

[0010] An identification module, configured to identify the content of the file to be labeled;

[0011] An obtaining module, configured to obtain the tag information corresponding to the specified content if the file to be labeled contains the specified content;

[0012] An association module, configured to associate the tag information with the file to be labeled.

[0013] In an optional embodiment of this application, the processing device further includes:

[0014] A detection module, configured to detect whether there is tag information associated with the file to be labeled when detecting a predetermined operation on the file to be labeled;

[0015] A label adding module, which is used to add the label information associated with the file to be labeled to a predetermined position of the file to be labeled if there is label information associated with the file to be labeled; and is further used to obtain the label information corresponding to the specified content in the file to be labeled and add the label information to the predetermined position of the file to be labeled if there is no label information associated with the file to be labeled.

[0016] In an optional embodiment of the present application, the association module is further used to: obtain the identification information of the file to be labeled; and store the label information corresponding to the identification information of the file to be labeled.

[0017] In an optional embodiment of the present application, the association module is further used to: correspondingly generate an exchange data stream containing the label information based on the label information; and store the exchange data stream corresponding to the file to be labeled.

[0018] In an optional embodiment of the present application, the obtaining module is further used to: if the file to be labeled contains a predetermined keyword and the number of times the predetermined keyword appears in the file to be labeled reaches a predetermined threshold, obtain the label information corresponding to the predetermined keyword.

[0019] In an optional embodiment of the present application, the recognition module is further used to: when detecting a signal indicating that the editing of the file to be labeled is completed, recognize the content of the file to be labeled.

[0020] In an optional embodiment of the present application, the obtaining module is further used to: if the specified content is included in a set position in the file to be labeled, obtain the label information corresponding to the specified content.

[0021] In an optional embodiment of the present application, the association module is further used to: add the label information as a watermark to a predetermined position of the file to be labeled; and when a printing operation is performed on the file to be labeled, add the label information as a watermark to a predetermined position of the file to be labeled.

[0022] According to one aspect of the embodiments of the present application, there is provided a computer-readable medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method for processing file labels as described in the above embodiments.

[0023] According to one aspect of the embodiments of the present application, there is provided an electronic device, including: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing file labels as described in the above embodiments.

[0024] In the technical solutions provided by some embodiments of the present application, by identifying the content of the file to be labeled, when the file to be labeled contains specified content, the tag information corresponding to the specified content is obtained, and then the tag information is associated with the file to be labeled, so that the file can be automatically classified according to the content contained in the file, realizing the association between file classification and file content, and further facilitating the effective protection of the file.

[0025] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts. In the drawings:

[0027] Figure 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied;

[0028] Figure 2 shows a schematic flowchart of a method for processing file tags according to an embodiment of the present application;

[0029] Figure 3 shows a schematic flowchart of a process when a predetermined operation is performed on a file to be labeled, which is further included in the method for processing file tags according to an embodiment of the present application;

[0030] Figure 4 shows a schematic flowchart of step S230 in the method for processing file tags according to an embodiment of the present application Figure 2 ;

[0031] Figure 5 shows a schematic flowchart of step S230 in the method for processing file tags according to another embodiment of the present application Figure 2 ;

[0032] Figure 6 shows a schematic flowchart of a method for processing file tags according to another embodiment of the present application;

[0033] Figure 7 shows a schematic flowchart of the process of modifying specified content, which is further included in the method for processing file tags according to an embodiment of the present application;

[0034] Figure 8Shows a schematic flowchart of a method for processing file tags according to an embodiment of the present application;

[0035] Figure 9 Shows a schematic flowchart of a method for processing file tags according to another embodiment of the present application;

[0036] Figure 10 Shows a schematic diagram of a terminal interface of a method for processing file tags applied to an embodiment of the present application;

[0037] Figure 11 Shows a block diagram of a file tag processing apparatus according to an embodiment of the present application;

[0038] Figure 12 Shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing the embodiments of the present application. Detailed implementation manners

[0039] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.

[0040] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will realize that the technical solutions of the present application can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present application.

[0041] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0042] The flowcharts shown in the drawings are only illustrative and do not necessarily include all the contents and operations / steps, nor do they necessarily have to be executed in the described order. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.

[0043] Figure 1A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied.

[0044] As Figure 1 shown, the system architecture may include terminal devices (such as Figure 1 the smart phone 101, the tablet computer 102, and the portable computer 103 shown in

[0045] one or more of them, and of course, it can also be a desktop computer, etc.), a network 104, and a server 105. The network 104 is used to provide a medium for the communication link between the terminal device and the server 105. The network 104 may include various connection types, such as wired communication links, wireless communication links, etc. Figure 1 It should be understood that

[0046] the number of terminal devices, networks, and servers in

[0047] is only illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers. For example, the server 105 can be a server cluster composed of multiple servers, etc.

[0048] Users can use the terminal device to interact with the server 105 through the network 104 to receive or send messages, etc. The server 105 can be a server that provides various services. In a specific application scenario of the present application, the user uses the terminal device 103 (it can also be the terminal device 101 or 102) to access the files stored in the server 105. The terminal device 103 (it can also be the terminal device 101 or 102) can identify the content of the file to be annotated. When the file to be annotated contains the specified content, the tag information corresponding to the specified content is obtained, and the tag information is associated with the file to be annotated.

[0049] Please refer to Figure 2 , Figure 2FIG. 0 shows a schematic flowchart of a method for processing file tags according to an embodiment of the present application. The method for processing file tags can be executed by a terminal device, and the terminal device can be the Figure 1 terminal device shown in Figure 2 As shown, the method for processing file tags at least includes steps S210 to S230, which are introduced in detail as follows:

[0050] In step S210, the content of the file to be labeled is identified.

[0051] Among them, the file to be labeled can be a file that has not been classified yet, or a file that has been classified before and now needs to be operated (such as printed, viewed, etc.).

[0052] Due to the different contents of different files, the importance of the files is also different. Therefore, before the user operates on the file, the actual content in the file should be identified first to take different protection measures for the file, such as setting access permissions or adding corresponding classification watermarks, etc. It should be understood that the format of the content in the file to be labeled can include but is not limited to audio, text, images, videos, etc.

[0053] In step S220, if the file to be labeled contains the specified content, the tag information corresponding to the specified content is obtained.

[0054] Among them, the specified content can be the basis for classifying the file. It can be understood that the specified content can be a specified paragraph, a sentence or a word, or a specified pattern, audio segment or video segment, etc.

[0055] The tag information can be classification information corresponding to the specified content. Each specified content corresponds to one tag information. For example, if the specified content is the keyword "finance", the tag information corresponding to the specified content is "financial top secret", etc. It should be understood that the tag information can also be pattern information, that is, each specified content corresponds to one pattern information to classify the file to be labeled.

[0056] In this embodiment, by identifying the content of the file to be labeled, it is determined whether the file to be labeled contains the specified content. If so, the tag information corresponding to the specified content in the file to be labeled is obtained, so as to achieve the purpose of classifying the file to be labeled, so that the file can be classified according to the actual content of the file to be labeled when classifying the file, improving the relevance between the file classification and the file, and also ensuring the accuracy of the file classification.

[0057] In an exemplary embodiment of the present application, when the content in the file to be annotated is text, the method of matching binary streams can be used to identify whether the specified content exists in the file to be annotated. In another exemplary embodiment of the present application, when the content in the file to be annotated is PDF or a picture, OCR (Optical Character Recognition) can be used to identify whether the specified content exists in the file to be annotated.

[0058] In step S230, the label information is associated with the file to be annotated.

[0059] In an exemplary embodiment of the present application, associating the label information with the file to be annotated may be storing the label information corresponding to the file to be annotated; in another exemplary embodiment of the present application, associating the label information with the file to be annotated may be adding the label information to the file to be annotated. The present application does not make special limitations on this.

[0060] It should be noted that there may be multiple specified contents included in the file to be annotated. Correspondingly, the obtained label information may also be multiple. In an exemplary embodiment of the present application, multiple label information can be associated with the file to be annotated; in another exemplary embodiment of the present application, according to the priorities of different label information, the label information with the highest priority can be selected to be associated with the file to be annotated, where the priorities of the label information can be set in advance.

[0061] In Figure 2 In the illustrated embodiment, by identifying the content of the file to be annotated, when the specified content is included in the file to be annotated, the label information corresponding to the specified content is obtained, and then the label information is associated with the file to be annotated, so that the file can be classified according to the content included in the file, improving the relevance between the file classification and the file, and also ensuring the accuracy of the file classification result.

[0062] Based on Figure 2 the illustrated embodiment, Figure 3 FIG. shows a schematic flow diagram of the process when a predetermined operation is performed on the file to be annotated, which is also included in the method for processing file labels according to an embodiment of the present application. In Figure 3 the illustrated embodiment, the method for processing file labels further includes at least steps S310 to S330, which are introduced in detail as follows:

[0063] In step S310, when a predetermined operation on the file to be annotated is detected, it is detected whether there is label information associated with the file to be annotated.

[0064] Among them, the predetermined operation on the file to be annotated can be an operation directly performed on the file to be annotated (such as editing the content in the file to be annotated, etc.), or an operation indirectly performed on the file to be annotated (such as printing the file to be annotated, moving the file to be annotated, or copying the file to be annotated, etc.).

[0065] In this embodiment, when an operation is performed on the file to be annotated, there is a risk of content leakage in the file. Therefore, when a predetermined operation on the file to be annotated is detected, it is necessary to detect whether there is tag information associated with the file to be annotated, so as to be able to perform corresponding protection on the file to be annotated.

[0066] In step S320, if there is tag information associated with the file to be annotated, the tag information associated with the file to be annotated is added to a predetermined position of the file to be annotated.

[0067] Among them, the predetermined position can be a position that is pre-configured and can be used to display tag information in the file to be annotated. For example, when the user copies the file to be annotated and it is detected that the file to be annotated has tag information associated with it, the tag information can be added as a suffix to the file name of the file to be annotated or the tag information can be added to the header or footer of the file to be annotated for display, etc., so that the user can know the tag information of the file to be annotated and take corresponding protection measures.

[0068] In step S330, if there is no tag information associated with the file to be annotated, the tag information corresponding to the specified content in the file to be annotated is obtained, and the tag information is added to a predetermined position of the file to be annotated.

[0069] In this embodiment, when it is detected that there is no tag information associated with the file to be annotated, the content of the file to be annotated is identified. If it is detected that the file to be annotated contains specified content, the tag information corresponding to the specified content contained in the file to be annotated is obtained, and the tag information is added to a predetermined position in the file to be annotated, so that the user can clarify the tag information of the file to be annotated.

[0070] In Figure 3 In the shown embodiment, when a predetermined operation on the file to be annotated is detected, it is detected whether there is tag information associated with the file to be annotated. If so, the tag information is added to a predetermined position in the file to be annotated. If not, the tag information corresponding to the specified content in the file to be annotated is obtained, and then the tag information is added to a predetermined position in the file to be annotated. The user can clarify the importance of the file to be annotated through the tag information, ensuring the comprehensiveness of file content protection.

[0071] Please refer to Figure 4 , Figure 4shows the Figure 2 schematic flowchart of step S230 in the method for processing file tags according to an embodiment of the present application. In the Figure 4 embodiment shown, step S230 in the method for processing file tags at least includes step S410 to step 420, which are introduced in detail as follows:

[0072] In step S410, obtain the identification information of the file to be labeled.

[0073] Among them, the identification information may be information corresponding to and unique to the file to be labeled. For example, the identification information may be the file name, file address, or file number of the file to be labeled, etc.

[0074] In step S420, store the label information corresponding to the identification information of the file to be labeled.

[0075] In this embodiment, store the label information corresponding to the identification information of the file to be labeled so that the label information associated with the file to be labeled can be obtained according to the identification information of the file to be labeled, enabling the label information to correspond to the file to be labeled and facilitating query.

[0076] In an exemplary embodiment of the present application, storing the label information corresponding to the identification information of the file to be labeled may be storing the label information corresponding to the identification information of the file to be labeled in a table file. When it is necessary to query the label information of the file to be labeled, the content in the table file storing the correspondence between the identification information and the label information can be read for query.

[0077] Please refer to Figure 5 , Figure 5 shows the Figure 2 schematic flowchart of step S230 in the method for processing file tags according to another embodiment of the present application. In the Figure 5 embodiment shown, step S230 in the method for processing file tags at least includes step S510 to step S520, which are introduced in detail as follows:

[0078] In step S510, based on the label information, generate an alternate data stream containing the label information correspondingly.

[0079] Among them, the alternate data stream (ADS) is a feature of the NTFS disk format, and NTFS is the disk format supported by the series of operating systems of the Microsoft Windows NT kernel. Under the NTFS file system, each file can have multiple data streams, that is, in addition to the main file stream, many non-main file streams can be hosted in the main file stream.

[0080] In this embodiment, according to the obtained tag information, an exchange data stream containing the tag information is correspondingly generated, so that the tag information can exist in the form of the exchange data stream.

[0081] In step S520, the exchange data stream is stored corresponding to the file to be annotated.

[0082] In this embodiment, the exchange data stream containing the tag information corresponding to the file to be annotated is hosted in the file to be annotated, so that the tag information and the file to be annotated can correspond to each other, which is convenient for querying. And there is no need to establish another file or database to store the corresponding relationship between the tag information and the file to be annotated, reducing the occupied space.

[0083] Based on Figure 2 the embodiment shown, in an exemplary embodiment of the present application, if the file to be annotated contains specified content, obtaining the tag information corresponding to the specified content includes:

[0084] If the file to be annotated contains a predetermined keyword and the number of times the predetermined keyword appears in the file to be annotated reaches a predetermined threshold, obtain the tag information corresponding to the predetermined keyword.

[0085] Wherein, the specified content in the file to be annotated is the predetermined keyword whose number of appearances in the file to be annotated reaches the predetermined threshold. In an exemplary embodiment of the present application, corresponding tag information can be set for each predetermined keyword. For example, the keyword "finance" corresponds to the tag information "financial top secret", etc. In another exemplary embodiment of the present application, different tag information can be set for predetermined keywords with different numbers of appearances. For example, if the predetermined keyword "finance" appears 2 times, the corresponding tag information is "financial information", and if the predetermined keyword "finance" appears 5 times, the corresponding tag information is "financial top secret", etc. The present application does not make special limitations on this.

[0086] In this embodiment, by querying whether the file to be annotated contains a predetermined keyword whose number of appearances reaches the predetermined threshold to determine the tag information of the file to be annotated, the corresponding tag information can be configured for the file according to the actual content of the file to be annotated, ensuring the relevance between the file classification and the file, and improving the accuracy of the file classification result.

[0087] Based on Figure 2 the embodiment shown, Figure 6 shows a schematic flowchart of a method for processing file tags according to another embodiment of the present application. In Figure 6 the embodiment shown, the method for processing file tags at least includes steps S610 to S630, which are introduced in detail as follows:

[0088] In step S610, when it is detected that the file to be annotated is edited and completed, the content of the file to be annotated is identified.

[0089] In step S620, if the file to be annotated contains specified content, the tag information corresponding to the specified content is obtained.

[0090] In step S630, the tag information is associated with the file to be annotated.

[0091] In this embodiment, when it is detected that the file to be annotated is edited and completed, it means that the content contained in the file to be annotated has been updated. Therefore, the content of the edited and completed file to be annotated should be identified to configure the corresponding tag information for the edited and completed file to be annotated, so that the tag information corresponding to the file to be annotated can be updated in time, ensuring the comprehensiveness of file content protection.

[0092] Specifically, when it is detected that a word document is opened (such as double-clicking on a word document, etc.), the winword.Exe process is detected to check whether word has exited, that is, whether it has stopped being used. When it is detected that word has exited, it means that the file to be annotated is edited and completed. Therefore, the content of the edited and completed file to be annotated can be identified to configure the corresponding tag information for it.

[0093] In an exemplary embodiment of the present application, when it is detected that a word document is opened (such as double-clicking on a word document, etc.), the identification information of the opened file to be annotated (such as the file address of the file to be annotated, etc.) can be obtained, so as to accurately search for the edited and completed file to be annotated when it is detected that word has exited, and identify the file to be annotated.

[0094] Based on Figure 2 the embodiment shown, in an exemplary embodiment of the present application, if the file to be annotated contains specified content, obtaining the tag information corresponding to the specified content includes:

[0095] If the specified content is included in the set position in the file to be annotated, the tag information corresponding to the specified content is obtained.

[0096] In this embodiment, the set position can be a position that is pre-set and used to display important content of the file to be annotated. For example, the set position can be the file name position in the file to be annotated, the body text position in the file to be annotated, the header position in the file to be annotated, etc. When the user edits the file to be annotated, important content (such as important keywords, patterns, etc.) can be added to the set position to facilitate subsequent identification, so that during the identification process, it is not necessary to scan and identify the entire file to be annotated, improving the identification efficiency.

[0097] Based onFigure 2 In the illustrated embodiment, in an exemplary embodiment of the present application, associating the tag information with the file to be annotated includes:

[0098] Adding the tag information as a watermark to a predetermined position of the file to be annotated.

[0099] Wherein, the processing method further includes:

[0100] When a print operation is performed on the file to be annotated, adding the tag information as a watermark to a predetermined position of the file to be annotated.

[0101] In this embodiment, adding the tag information as a watermark to a predetermined position of the file to be annotated enables the user to clearly know the tag information corresponding to the file to be annotated when viewing the file to be annotated, so as to have a certain understanding of the importance of the file to be annotated. And when the user performs a print operation on the file to be annotated, adding the tag information as a watermark to a predetermined position in the file to be annotated can make the printed paper file also contain the tag information, so as to protect the content of the file to be annotated and prevent the content in the file from being maliciously used.

[0102] Specifically, it is possible to detect whether there is a print operation on the file to be annotated by detecting the print process of document editing software (such as word, PDF reader, etc.). If it is detected that there is a print process, that is, when the user performs a print operation on the file to be annotated, add the tag information to a predetermined position of the file to be annotated to clarify the tag information of the file to be annotated.

[0103] Based on the above embodiment, Figure 7 shows a schematic flowchart of the process of modifying specified content that the processing method of file tags according to an embodiment of the present application further includes. In Figure 7 the illustrated embodiment, the processing method of the file tag further includes at least step S710 to step S720, which are introduced in detail as follows:

[0104] In step S710, when a request for modifying the specified content is received, display an editing interface for the specified content, where the editing interface includes editing options for the specified content.

[0105] In an exemplary embodiment, the request for modifying the specified content may be sent by the user clicking on a specific position on the interface (such as a "Modify Specified Content" button, etc.); in another exemplary embodiment, the request for modifying the specified content may also be automatically sent by the system at regular intervals (such as once a week or once a month, etc.). This embodiment does not make special limitations on this.

[0106] Specifically, when a request for modifying specified content is received, an editing interface for the specified content can be presented to the user through a display device (such as the screen of a smartphone or a desktop computer, etc.). Among them, the editing interface includes editing options for the specified content. It should be noted that the editing options for the specified content can be one or more of the editing options for adding the specified content, modifying the specified content, or deleting the specified content. The user can input an editing instruction for the specified content in the corresponding editing option through an input device (such as the touch screen device of a smartphone or the keyboard of a desktop computer, etc.), such as newly adding the specified content, modifying the original specified content, or deleting the original specified content, etc.

[0107] In step S720, in response to the editing instruction of the user in the editing option, the information after editing the specified content is stored.

[0108] In this embodiment, when the user finishes editing the specified content, the user's editing is accepted and the information after the user edits the specified content is stored. This enables the user to modify the specified content to meet different usage requirements.

[0109] Based on the technical solutions of the above embodiments, a specific application scenario of the embodiments of the present application is introduced below:

[0110] Figure 8 shows a schematic flowchart of a method for processing file tags according to an embodiment of the present application. In Figure 8 the shown embodiment, the method for processing file tags at least includes steps S810 to S880, which are introduced in detail as follows:

[0111] In step S810, when it is detected that the user performs a printing operation, the file to be printed is acquired. That is, a predetermined operation on the file to be marked is detected.

[0112] In step S820, it is detected whether there is tag information associated with the file. If so, step S830 is executed; if not, step S840 is executed. That is, it is detected whether there is tag information associated with the file to be marked.

[0113] In step S830, the tag information associated with the file is added as a watermark to a predetermined position of the file, and step S880 is executed.

[0114] In step S840, the content of the acquired file is identified. That is, the content of the file to be marked is identified.

[0115] In step S850, it is detected whether there is specified content in the file. If so, step S860 is executed; if not, step S880 is executed.

[0116] In step S860, obtain the label information corresponding to the specified content in the file. That is, if the file to be labeled contains the specified content, obtain the label information corresponding to the specified content.

[0117] In step S870, add the label information as a watermark to a predetermined position of the file.

[0118] In step S880, print the file.

[0119] Figure 9 shows a schematic flowchart of a method for processing file labels according to another embodiment of the present application. In Figure 9 the illustrated embodiment, the method for processing the file label includes at least steps S910 to S970, which are introduced in detail as follows:

[0120] In step S910, when a document editing process is detected, obtain the identification information of the file being edited.

[0121] In this embodiment, the document editing process can be a word or WPS document, etc. When a document editing process is detected, obtain the identification information of the file being edited, such as the file address or file name of the file.

[0122] In step S920, when the document editing process exits, obtain the edited file according to the identification information.

[0123] In step S930, identify the content of the edited file. That is, when a signal indicating that the file to be labeled is edited is detected, identify the content of the file to be labeled.

[0124] In step S940, detect whether the specified content exists in the edited file. If so, execute step S950; if not, execute step S970.

[0125] In step S950, obtain the label information corresponding to the specified content. That is, if the file to be labeled contains the specified content, obtain the label information corresponding to the specified content.

[0126] In step S960, associate the label information with the edited file.

[0127] In step S970, end.

[0128] Figure 10A schematic diagram of a terminal interface for a method of processing file tags applied to an embodiment of the present application is shown. Among them, the terminal interface is an editing interface for editing specified content. In this terminal interface, a user can edit the specified content through an editing option 1010 (in this embodiment, keywords, the number of times the keywords appear, and the corresponding tag information are taken as examples). The user can input the specified content to be modified in the editing option 1010 (for example, input the keyword "finance", the number of occurrences is "1", and the corresponding tag information is "financial top secret"). The user can also select the position to be detected in the detection position input field 1020 to improve the detection efficiency. When the user finishes editing, by clicking the completion button 1030, the system stores the information edited by the user for the specified content.

[0129] Figure 11 A block diagram of a device for processing file tags according to an embodiment of the present application is shown. For details not disclosed in the device embodiment of the present application, please refer to the embodiment of the method for processing file tags described above in the present application.

[0130] Refer to Figure 11 As shown, a device for processing file tags according to an embodiment of the present application includes:

[0131] An identification module 1110, configured to identify the content of a file to be labeled;

[0132] An acquisition module 1120, configured to, if the file to be labeled contains specified content, acquire the tag information corresponding to the specified content;

[0133] An association module 1130, configured to associate the tag information with the file to be labeled.

[0134] In an optional embodiment of the present application, the processing device further includes:

[0135] A detection module, configured to, when detecting a predetermined operation on the file to be labeled, detect whether there is tag information associated with the file to be labeled;

[0136] A tag addition module, configured to, if there is tag information associated with the file to be labeled, add the tag information associated with the file to be labeled to a predetermined position of the file to be labeled; and further configured to, if there is no tag information associated with the file to be labeled, acquire the tag information corresponding to the specified content in the file to be labeled, and add the tag information to a predetermined position of the file to be labeled.

[0137] In an optional embodiment of the present application, the association module 1130 is further configured to: acquire the identification information of the file to be labeled; and configured to store the tag information corresponding to the identification information of the file to be labeled.

[0138] In an alternative embodiment of the present application, the association module 1130 is further configured to: generate a switching data stream containing the tag information based on the tag information; and store the switching data stream corresponding to the file to be annotated.

[0139] In an alternative embodiment of the present application, the obtaining module 1120 is further configured to: if a predetermined keyword is included in the file to be annotated and the number of times the predetermined keyword appears in the file to be annotated reaches a predetermined threshold, obtain the tag information corresponding to the predetermined keyword.

[0140] In an alternative embodiment of the present application, the recognition module 1110 is further configured to: when a signal indicating that the editing of the file to be annotated is completed is detected, recognize the content of the file to be annotated.

[0141] In an alternative embodiment of the present application, the obtaining module 1120 is further configured to: if the specified content is included in the set position in the file to be annotated, obtain the tag information corresponding to the specified content.

[0142] In an alternative embodiment of the present application, the association module 1130 is further configured to: add the tag information as a watermark to a predetermined position of the file to be annotated; and when a printing operation is performed on the file to be annotated, add the tag information as a watermark to a predetermined position of the file to be annotated.

[0143] Figure 12 The structure diagram of the computer system of the electronic device suitable for implementing the embodiments of the present application is shown.

[0144] It should be noted that Figure 12 The computer system of the electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0145] Such as Figure 12As shown, the computer system includes a Central Processing Unit (CPU) 1201, which can perform various appropriate actions and processes according to the program stored in the Read-Only Memory (ROM) 1202 or the program loaded from the storage section 1208 into the Random Access Memory (RAM) 1203, such as executing the methods described in the above embodiments. In the RAM 1203, various programs and data required for system operation are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other via a bus 1204. An Input / Output (I / O) interface 1205 is also connected to the bus 1204.

[0146] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including, for example, a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that the computer program read from it can be installed into the storage section 1208 as needed.

[0147] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication section 1209, and / or installed from the removable medium 1211. When the computer program is executed by the Central Processing Unit (CPU) 1201, various functions defined in the system of the present application are executed.

[0148] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, 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 disk, 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 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 that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, 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, and this computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0149] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0150] The units involved in the embodiments described in this application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, constitute a limitation on the unit itself.

[0151] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiments.

[0152] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0153] From the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented in software, or in a manner combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.

[0154] After considering the specification and practicing the disclosed embodiments herein, those skilled in the art will readily conceive of other embodiments of the present application. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include well-known knowledge or conventional technical means in the technical field not disclosed in the present application.

[0155] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A method for processing file tags, characterized in that, Including: When receiving a request for modifying a predetermined keyword, display an editing interface for the predetermined keyword, where the editing interface includes editing options for the predetermined keyword, and the editing options include the keyword, the number of times the keyword appears, and the corresponding tag information; In response to an editing instruction of the user in the editing options, store the information edited for the predetermined keyword; When detecting a predetermined operation on a file to be annotated, detect whether there is tag information associated with the file to be annotated; If there is tag information associated with the file to be annotated, add the tag information associated with the file to be annotated to a predetermined position of the file to be annotated, and the predetermined position includes a header or a footer for displaying the tag information; If there is no tag information associated with the file to be annotated, identify the content of the file to be annotated; If a predetermined keyword is included in a set position in the file to be annotated, obtain the tag information corresponding to the predetermined keyword; If a predetermined keyword is included in the file to be annotated and the number of times the predetermined keyword appears in the file to be annotated reaches a predetermined threshold, obtain the tag information corresponding to the predetermined keyword according to the number of times the predetermined keyword appears in the file to be annotated; where different numbers of times the predetermined keyword appears in the file to be annotated correspond to different tag information; Associate the tag information with the file to be annotated and add the tag information to the predetermined position of the file to be annotated for displaying the tag information.

2. The processing method according to claim 1, wherein Associating the tag information with the file to be annotated includes: Obtaining the identification information of the file to be annotated; Correspondingly storing the tag information and the identification information of the file to be annotated.

3. The processing method according to claim 1, characterized in that, Associating the tag information with the file to be annotated includes: Based on the tag information, correspondingly generate a swap data stream including the tag information; Correspondingly store the swap data stream and the file to be annotated.

4. The processing method according to claim 1, characterized in that Associating the tag information with the file to be annotated includes: Adding the tag information as a watermark to a predetermined position of the file to be annotated; Wherein, the processing method further includes: When performing a printing operation on the file to be annotated, adding the tag information as a watermark to a predetermined position of the file to be annotated.

5. A processing device for file tags, characterized in that, Including: An editing module, configured to, when receiving a request for modifying a predetermined keyword, display an editing interface for the predetermined keyword, where the editing interface includes editing options for the predetermined keyword, and the editing options include the keyword, the number of times the keyword appears, and the corresponding tag information; in response to an editing instruction of the user in the editing options, store the information edited for the predetermined keyword; A detection module, configured to, when detecting a predetermined operation on a file to be annotated, detect whether there is tag information associated with the file to be annotated; A label adding module, configured to add label information associated with the file to be labeled to a predetermined position of the file to be labeled if there is label information associated with the file to be labeled, where the predetermined position includes a header or a footer for displaying the label information; An identifying module, configured to identify the content of the file to be labeled when there is no label information associated with the file to be labeled; An obtaining module, configured to obtain label information corresponding to a predetermined keyword if a set position in the file to be labeled contains the predetermined keyword; and to obtain label information corresponding to the predetermined keyword according to the number of times the predetermined keyword appears in the file to be labeled if the file to be labeled contains the predetermined keyword and the number of times the predetermined keyword appears in the file to be labeled reaches a predetermined threshold; wherein different numbers of times the predetermined keyword appears in the file to be labeled correspond to different label information; An associating module, configured to associate the label information with the file to be labeled and add the label information to the predetermined position of the file to be labeled for displaying the label information.

6. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1-4 is implemented.

7. An electronic device, characterized in that, Comprising: One or more processors; A storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Method and device for generating group tags

    CN104035995A

  • Method and device based on artificial intelligence for labeling information

    CN106919711A

  • Intelligent evaluation method and system, and computer readable storage medium

    CN109639914A

  • Systems and methods for enabling a file management label to persist on a data file

    US20190095511A1