Resource retrieval method and device, label generation method and device, equipment and storage medium
By determining the target tag from at least two digital tags and ensuring that it contains multiple category sub-tags to match the retrieval information, the problem of low efficiency and poor accuracy in digital resource retrieval is solved, and a more efficient digital resource retrieval is achieved.
Patent Information
- Application Number
- CN202310175558.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-02-27
AI Technical Summary
The retrieval efficiency of digital resources in the existing technology is low and the accuracy is poor, mainly due to retrieval problems caused by non-standard digital tags.
By determining at least one target digital tag from at least two digital tags, the tag includes at least two category sub-tags, ensuring that the retrieval information matches the target category sub-tag, thereby achieving accurate retrieval of digital resources.
It improves the retrieval accuracy and efficiency of digital resources and solves the problems of poor retrieval accuracy and low efficiency caused by non-standard labels.
Smart Images

Figure CN118551085A
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a resource retrieval method, a tag generation method, an apparatus, a device, and a storage medium. Background Art
[0002] Digital resources generally refer to data such as images, components, tools, etc. used in the software development process. By classifying and managing digital resources, efficient retrieval, reuse and maintenance of the above digital resources can be achieved, thereby reducing the cost of software development and maintenance and improving software quality.
[0003] In the prior art, digital tags are usually used to mark the categories to which different digital resources belong. Accordingly, by searching for digital tags, the target digital resources of interest are obtained. However, in actual application, digital tags are input by developers / development teams according to needs, and there is a problem of non-standardized tag content, which leads to low retrieval efficiency and poor accuracy in the process of searching for digital resources. Summary of the invention
[0004] The embodiments of the present disclosure provide a resource retrieval method, a tag generation method, an apparatus, a device and a storage medium to overcome the problems of low retrieval efficiency and poor accuracy in the process of retrieving digital resources.
[0005] In a first aspect, an embodiment of the present disclosure provides a resource retrieval method, including:
[0006] In response to a first search instruction, search information is obtained; based on the search information, at least one target digital tag is determined from at least two digital tags, wherein the digital tag includes at least two category subtags, and the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag that matches the search information; based on the target digital tag, the corresponding target digital resource is obtained.
[0007] In a second aspect, an embodiment of the present disclosure provides a tag generation method, including:
[0008] In response to the first input instruction, input information is obtained, wherein the input information represents a target belonging category of the target digital resource; the digital tag is used to implement the resource retrieval method described in the first aspect and various possible designs of the first aspect.
[0009] In a third aspect, an embodiment of the present disclosure provides a resource retrieval device, including:
[0010] An acquisition module, configured to obtain search information in response to a first search instruction;
[0011] A processing module, configured to determine at least one target digital tag from at least two digital tags according to the search information, wherein the digital tag includes at least two category subtags, the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag matching the search information;
[0012] The output module is used to obtain the corresponding target digital resource according to the target digital tag.
[0013] In a fourth aspect, an embodiment of the present disclosure provides a label generation device, including:
[0014] An input module, configured to obtain input information in response to a first input instruction, wherein the input information represents a target belonging category of a target digital resource;
[0015] A generation module is used to generate a digital tag of the target digital resource according to the input information, wherein the digital tag is used to implement the resource retrieval method described in the first aspect and various possible designs of the first aspect.
[0016] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:
[0017] A processor, and a memory communicatively connected to the processor;
[0018] The memory stores computer-executable instructions;
[0019] The processor executes the computer-executable instructions stored in the memory to implement the resource retrieval method described in the first aspect and various possible designs of the first aspect, or to implement the label generation method described in the second aspect and various possible designs of the second aspect.
[0020] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the resource retrieval method described in the first aspect and various possible designs of the first aspect is implemented, or the label generation method described in the second aspect and various possible designs of the second aspect is implemented.
[0021] In the seventh aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the resource retrieval method described in the first aspect and various possible designs of the first aspect, or implements the label generation method described in the second aspect and various possible designs of the second aspect.
[0022] The resource retrieval method, label generation method, device, equipment and storage medium provided in this embodiment obtain retrieval information by responding to a first retrieval instruction; according to the retrieval information, at least one target digital label is determined from at least two digital labels, wherein the digital label includes at least two category sub-labels, the category sub-labels represent the category of the digital resource corresponding to the digital label, and the target digital label includes a target category sub-label that matches the retrieval information; according to the target digital label, the corresponding target digital resource is obtained. Since the digital label corresponding to the digital resource includes at least two category sub-labels representing the category of the digital resource, when searching based on the retrieval information, no matter which category sub-label in the target digital label the retrieval information matches, the corresponding target digital label can be obtained, and then the corresponding target digital resource can be obtained, so as to achieve accurate retrieval of the target digital resource, improve retrieval accuracy, and solve the problems of poor retrieval accuracy and low efficiency caused by non-standard labels. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 An application scenario diagram of the resource retrieval method provided in the embodiment of the present disclosure;
[0025] Figure 2 Schematic diagram of the process of resource retrieval method provided in the embodiment of the present disclosure Figure 1 ;
[0026] Figure 3 A schematic diagram of a data structure of a digital tag provided in an embodiment of the present disclosure;
[0027] Figure 4 for Figure 2 A flowchart of a specific implementation method of step S102 in the illustrated embodiment;
[0028] Figure 5 A schematic diagram of determining a target category sub-label provided by an embodiment of the present disclosure;
[0029] Figure 6 for Figure 4 A flowchart of a specific implementation method of step S1022 in the illustrated embodiment;
[0030] Figure 7 Schematic diagram of the process of resource retrieval method provided in the embodiment of the present disclosure Figure 2 ;
[0031] Figure 8 A schematic diagram of a selection control provided by an embodiment of the present disclosure;
[0032] Fig. 9 A schematic diagram of determining a digital label to be selected provided in an embodiment of the present disclosure;
[0033] Fig.10 Schematic diagram of the process of the label generation method provided in the embodiment of the present disclosure Figure 1 ;
[0034] Fig.11 A structural block diagram of a resource retrieval device provided in an embodiment of the present disclosure;
[0035] Fig.12 A structural block diagram of a label generation device provided in an embodiment of the present disclosure;
[0036] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0037] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0039] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0040] The application scenarios of the embodiments of the present disclosure are explained below:
[0041] Figure 1 This is an application scenario diagram of the resource retrieval method provided in the embodiment of the present disclosure. The resource retrieval method provided in the embodiment of the present disclosure can be applied to the application scenario of digital resource retrieval. Specifically, Figure 1As shown, the method provided by the embodiment of the present disclosure can be applied to a server, which stores digital resources such as pictures, algorithm modules, tools, components, etc. On the one hand, during the software development process, the terminal device operated by the developer generates digital resources, such as newly developed components, newly drawn pictures, etc., and sends the generated digital resources to the server, and the server receives the original digital resources uploaded by the terminal device and stores and manages them; on the other hand, the server receives and responds to the retrieval instruction sent by the terminal device, and sends the target digital resources matching the retrieval instruction to the terminal device, thereby realizing the reuse of digital resources in the software development process.
[0042] In the prior art, digital tags are usually used to mark the categories to which different digital resources belong. Accordingly, by searching for digital tags, the target digital resources of interest are obtained. However, in the actual application process, the digital tags of digital objects are written and input by developers / development teams according to needs in specific usage scenarios. Therefore, for the same digital object, different developer users may mark it with different digital tags. For example, developer user User_1 writes the digital tag of picture #1 as "person" based on the content of the picture, that is, marks picture #1 as the only category of "person"; afterwards, on the corresponding digital resource management platform, the picture #1 is classified into the only category of "person"; and when developer user User_2 uses the keywords "human" and "human body" to search for digital tags, it cannot match the category of "person", and thus cannot retrieve the picture #1 marked as "person". As a result, there are problems of low retrieval efficiency and poor accuracy in the process of searching for digital resources. The disclosed embodiment provides a resource retrieval method to solve the above problems.
[0043] refer to Figure 2 , Figure 2 Schematic diagram of the process of resource retrieval method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied to a server, a terminal device or other electronic devices with similar functions. The resource retrieval method includes:
[0044] Step S101: In response to a first search instruction, obtain search information.
[0045] This embodiment is described with the terminal device as the execution subject. For example, a resource management program for users to manage digital resources is running on the terminal device. An interactive control is set in the target page of the resource management program. When the user operates the terminal device and triggers the interactive control, a first search instruction is generated. Specifically, for example, the interactive control set in the target page is a search control. When the terminal device receives the search keyword input by the user, it generates a first search instruction in response to the triggering operation of the search control. Further, after the terminal device responds to the first search, it generates search information based on the search keyword obtained through the search control. The search information is information that characterizes the characteristics of the digital resource, such as the specific name, identification code, category, etc. of the digital resource. In another possible implementation, the terminal device receives a first search instruction sent by other electronic devices. The first search instruction contains the above-mentioned search information. Based on the analysis of the first search instruction, the search information can be obtained. The specific implementation method is the existing technology and will not be repeated here.
[0046] Step S102: Determine at least one target digital tag from at least two digital tags based on the retrieval information, wherein the digital tag includes at least two category subtags, the category subtag represents the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag that matches the retrieval information.
[0047] Exemplarily, after the terminal device obtains the search information, it performs a search based on the search information, thereby obtaining a digital object having the characteristics described by the search information, namely, a target digital object. Specifically, the terminal device obtains a preset digital tag from the database, which corresponds to the digital resource one-to-one and is used to describe the resource information corresponding to the digital resource, wherein the digital tag may be an attribute set in a file corresponding to the digital resource, and may be obtained by reading the attribute corresponding to the digital resource; in another possible implementation, the digital tag may also be an independent descriptive file, which may be set as needed, and will not be described in detail here.
[0048] Furthermore, compared with digital tags in the prior art, the digital tag in this embodiment has a special data structure: the digital tag includes at least two category sub-tags, and the category sub-tags represent the category of the digital resource corresponding to the digital tag. Figure 3 A data structure diagram of a digital tag provided in an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, in the digital tag provided in this embodiment, multiple category sub-tags are included, each category sub-tag represents a category of the digital resource. Figure 3As shown in , the digital tag corresponding to the digital resource P1 includes at least category subtag #1, category subtag #2 and category subtag #3, wherein the tag content of category subtag #1 is, for example, "beauty"; the tag content of category subtag #2 is, for example, "people"; and the tag content of category subtag #3 is, for example, "modeling". Based on the data structure feature that includes multiple category subtags in the digital tag, the corresponding digital resource can be mapped to different attribution categories, thereby increasing the hit range of the corresponding digital resource when searching based on the attribution category, thereby improving the search efficiency and accuracy.
[0049] In a possible implementation, the search information includes a search keyword, and the search keyword represents the name of the category to which the digital resource belongs, such as Figure 4 As shown, the specific implementation of step S102 includes:
[0050] Step S1021: Generate a corresponding first semantic feature according to the search keyword.
[0051] Step S1022: Based on the first semantic feature, retrieve the category sub-tags in at least two digital tags to obtain at least one target category sub-tag.
[0052] Step S1023: Determine the digital label where the target category sub-label is located as the target digital label.
[0053] Exemplarily, the search information includes search keywords representing the name of the category to which the digital resource belongs, such as "legs", "key points", etc. After obtaining the search keywords in the search information, semantic features are extracted for the search keywords, thereby obtaining the semantic features corresponding to the search keywords, i.e., the first semantic features. By extracting the first semantic features corresponding to the search keywords, the semantic understanding of the search keywords is achieved, thereby expressing the synonyms of the search keywords. More specifically, for example, "legs" and "lower limbs" are synonyms with the same semantic features. The first semantic features corresponding to "legs" are generated, and subsequent searches are performed based on the first semantic features, which can achieve the purpose of synonym search and improve the search hit rate. Among them, there are many specific implementation methods of the first semantic feature, which can be a feature matrix or a preset feature identifier representing a specific semantic, which is set as needed; at the same time, the specific implementation method of feature extraction of characters is a prior art known to those skilled in the art, and will not be repeated here.
[0054] Furthermore, after obtaining the first semantic feature, the tag content corresponding to the category subtag in each digital tag is searched based on the first semantic feature. If the second semantic feature corresponding to the tag content is the same or similar to the first semantic feature, the search is successful, and the category subtag is determined as the target category subtag. Figure 5A schematic diagram of determining a target category sub-label provided by an embodiment of the present disclosure, such as Figure 5 As shown, exemplarily, the search keyword is "beautify", and according to the search keyword, the corresponding first semantic feature is generated as the feature matrix Fea_0 (shown as Fea_0 in the figure); then, the feature matrices Fea_1 to Fea_N corresponding to the label contents of the category sub-labels (shown as category sub-label #1, category sub-label #2 to category sub-label #N in the figure) in the pre-generated or real-time generated digital labels are read; further, the feature difference values of Fea_0 and Fea_1 to Fea_N are compared one by one, and the category sub-labels whose feature difference values are less than the difference allowable value are determined as the target category sub-labels. For example, as shown in the figure, the category sub-label #2 with the label content of "face" and the corresponding feature matrix Fea_2 is determined as the target category sub-label. Further, after being determined as the target category sub-label, the digital label with the target category sub-label is searched to determine the target digital label.
[0055] Furthermore, in a possible implementation, the feature difference value used to determine the target category sub-label is dynamically generated, such as Figure 6 As shown, the specific implementation of step S1022 includes:
[0056] Step S1022A: obtaining the semantic generalization degree of the first semantic feature, where the first semantic generalization degree represents the number of attribution categories covered by the semantic feature;
[0057] Step S1022B: determining the difference allowable value according to the semantic generalization degree;
[0058] Step S1022C: Compare the first semantic feature with the second semantic feature of the category corresponding to the category subtag, and select the category subtag whose feature difference value is greater than the difference allowance value to determine the target category subtag.
[0059] Exemplarily, the semantic generalization of a semantic feature refers to the number of attribution categories covered by the semantic feature. The greater the semantic generalization, the more attribution categories the semantic feature covers. In any case, the smaller the semantic generalization, the fewer attribution categories the semantic feature covers. Specifically, for example, the first semantic feature is generated by the search keyword "person". It can be understood that since the search keyword provides less information for limiting the search results, the corresponding first semantic feature can cover more attribution categories. In any case, for another example, the first semantic feature is generated by the search keyword "human eye gaze direction detection", the search keyword provides more information for limiting the search results, and accordingly, the semantic feature covers fewer attribution categories.
[0060] On this basis, the semantic generalization of the first semantic feature is obtained. The semantic generalization of the first semantic feature can be pre-generated or generated in real time. The specific generation method can be, for example, based on the length of the search keyword that generates the first semantic feature, that is, the longer the length of the search keyword, the smaller the semantic generalization. It can also be generated based on the pre-trained semantic model after processing the search keyword. The specific implementation method will not be repeated. Afterwards, based on the semantic generalization, the greater the semantic generalization, the smaller the difference allowance value, and conversely, the smaller the semantic generalization, the greater the difference allowance value. Thereby, the dynamic adjustment of the difference allowance value is realized. Through the steps of this embodiment, when the search keyword is too vague, the difference allowance value can be dynamically reduced, thereby reducing the number of search results and increasing the accuracy of the search results; and when the search keyword is too specific, the difference allowance value can be dynamically increased, thereby improving the search hit rate.
[0061] Step S103: Obtain the corresponding target digital resource according to the target digital tag.
[0062] Exemplarily, after obtaining the target digital tag, the target digital resource corresponding to the target digital tag can be obtained according to the correspondence between the digital tag and the digital resource. More specifically, for example, the digital tag contains an identification mark of the corresponding digital resource, and the corresponding target digital resource can be determined and obtained through the identification mark. Exemplarily, after that, the target digital resource obtained can be displayed on the terminal device side, for example, the icon corresponding to the target digital resource is displayed in the target page of the resource management program, thereby completing the purpose of displaying the search results.
[0063] In this embodiment, by responding to the first search instruction, the search information is obtained; according to the search information, at least one target digital tag is determined from at least two digital tags, wherein the digital tag includes at least two category subtags, the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag that matches the search information; according to the target digital tag, the corresponding target digital resource is obtained. Since the digital tag corresponding to the digital resource includes at least two category subtags that represent the category of the digital resource, when searching based on the search information, no matter which category subtag in the target digital tag the search information matches, the corresponding target digital tag can be obtained, and then the corresponding target digital resource can be obtained, so as to achieve accurate retrieval of the target digital resource, improve the retrieval accuracy, and solve the problem of poor retrieval accuracy and low efficiency caused by non-standard tags.
[0064] refer to Figure 7 , Figure 7 Schematic diagram of the process of resource retrieval method provided in the embodiment of the present disclosure Figure 2 In this embodiment Figure 2Based on the illustrated embodiment, step S102 is further refined, and the resource retrieval method includes:
[0065] Step S201: In response to a first search instruction, obtain search information, the search information including a category level identifier for indicating a target category level.
[0066] Exemplarily, the first search instruction in this embodiment is obtained based on triggering a selection control in a target page of the resource management program. The selection control is, for example, a control for displaying digital resources having multiple category levels. Figure 8 A schematic diagram of a selection control provided by an embodiment of the present disclosure, such as Figure 8 As shown, in the selection control of the target page, multiple category levels are displayed in a tree structure, as shown in the reference figure, including category level L1, category level L2 and category level L3. Among them, under each category level, there are more specific belonging categories, wherein under the category level L1, there are belonging categories C_1 to belonging categories C_N, N is a positive integer. Each belonging category corresponds to a category sub-label in the digital label. Therefore, the category level is equivalent to the upper category of the belonging category, and the belonging category is the lower category of the category level. A two-level tree structure is formed by the category level and the belonging category. In other possible implementations, the category level can be further raised to form a higher category containing multiple category levels. The implementation principle is the same, and this situation will not be repeated here.
[0067] More specifically, for example, the upper category corresponding to the category level L1 is "prop generation", and under the category level L1, it includes multiple attribution categories, such as "human contour points" (attribution category C_1), "facial key points" (attribution category C_2), etc. The upper category corresponding to the category level L2 is "cover", which includes multiple attribution categories, such as "cartoon", "character", "animal", etc.
[0068] Furthermore, when the user triggers the above-mentioned selection control by operating the terminal device, for example, clicking the logo corresponding to the category level L1, a first search instruction is generated to obtain search information. The search information includes a category level logo for indicating the target category level, that is, the logo corresponding to the category level L1, for example, "L1".
[0069] Step S202: Obtain a preset digital tag, which includes at least two category subtags, the category subtag represents the category of the digital resource corresponding to the digital tag, and the digital tag also includes a level subtag, which represents the category level at which the category corresponding to the digital tag is located.
[0070] Step S203: Based on the target category level, at least one to-be-selected digital tag is determined from at least two digital tags, where the to-be-selected digital tag includes a level subtag corresponding to the target category level.
[0071] Further, after obtaining the retrieval information of the category level identifier representing the target category level, the preset digital tag is retrieved based on the retrieval information. In this embodiment, Figure 2 Based on the embodiment shown, the digital tag processing includes at least two category subtags and also includes a level subtag, which represents the category level to which the category corresponding to the digital tag belongs, wherein the specific implementation of the category subtag is not repeated. The level subtag is introduced below:
[0072] A hierarchical subtag is a tag used to indicate a category hierarchy, and the tag content of the hierarchical subtag can be an identifier of the category hierarchy. That is, according to the hierarchical subtag in each digital tag, it can be represented that the digital resource corresponding to the digital tag belongs to which upper category. Afterwards, searching based on the hierarchical subtag can further improve the accuracy of the search results. Among them, the hierarchical subtag can include only one. When the hierarchical subtag contains only one, the hierarchical subtag represents the hierarchical category to which the digital tag belongs; the hierarchical subtag can also include multiple, for example, each category subtag corresponds to a hierarchical subtag. When each category subtag corresponds to a hierarchical subtag, the hierarchical subtag represents the hierarchical category to which the category corresponding to the category subtag belongs.
[0073] Furthermore, after the target category hierarchy is obtained according to the retrieval information, the label content of the hierarchy sub-label (the category hierarchy in which the belonging category corresponding to the digital label is located) is the same dimensional information as the category hierarchy identifier used to indicate the target category hierarchy in the retrieval information. Therefore, by searching the hierarchy sub-labels in each digital label according to the target category hierarchy obtained through the retrieval information, the candidate digital label corresponding to the belonging category under the target category hierarchy, that is, the candidate digital label, can be obtained.
[0074] Furthermore, in a possible implementation, a specific implementation of step S203 includes:
[0075] Step S2031: According to the hierarchical sub-tags of the digital tags, the belonging categories under the target category hierarchy are acquired and displayed.
[0076] Step S2032: In response to a second search instruction for a first attribution category under the target category level, determining at least one to-be-selected digital label corresponding to the first attribution category.
[0077] Fig. 9 A schematic diagram of determining a digital label to be selected provided by an embodiment of the present disclosure, such as Fig. 9As shown, after obtaining the target category level according to the search information, on the target page, the attribution category under the target category level is displayed through the selection control. For example, as shown in the figure, the target category level is category level L1, and the corresponding upper category is "prop generation". After retrieving the hierarchical sub-tags in each digital tag, the attribution category corresponding to the digital tag whose label content of all hierarchical sub-tags is "category level L1" is displayed on the selection control, such as shown in the figure, including "human body contour points", "facial key points" and so on.
[0078] Afterwards, for example, after the user clicks on the first attribution category on the selection control (such as the "human body contour point" shown in the figure), the terminal device obtains and responds to the second search instruction, and determines the digital label corresponding to the first attribution category as the digital label to be selected. Among them, the first attribution category is relative to the target attribution category selected by the user manually. Afterwards, the category sub-label of the digital label is retrieved according to the target attribution category, so that the digital label that meets the requirements is determined as the digital label to be selected. The specific implementation method of determining the corresponding digital label based on the category sub-label has been introduced in the previous embodiment and will not be repeated here. In this embodiment, the category level and attribution category are determined step by step in an interactive manner, so as to complete the retrieval of the digital label, further improving the retrieval efficiency.
[0079] Step S204: Determine a target digital tag from at least one digital tag to be selected.
[0080] Step S205: Obtain the corresponding target digital resource according to the target digital tag.
[0081] Exemplarily, after obtaining one or more candidate digital tags, you can manually select them to determine the target digital tag; or, in a possible implementation, the search information includes a search keyword and a category level identifier. After the candidate digital tag is determined based on the category level identifier, the search keyword in the search information is further used to search for at least one candidate digital tag using the category subtag to obtain the target digital tag. The specific implementation process can be seen in Figure 2 In the embodiment shown, the process of using search keywords to search for category subtags and determine the target digital tag, through the method provided by this embodiment, a hybrid search of search keywords and category levels is realized, further improving the search efficiency and accuracy. Furthermore, based on the mapping relationship between digital tags and digital resources, the target digital resource can be determined. The specific implementation method has been introduced in the previous embodiment and will not be repeated here.
[0082] Optionally, the digital tag also includes a parent tag list, which represents the parent category corresponding to the category to which the digital resource belongs. The steps of this embodiment also include:
[0083] Step S206: Determine the target parent category according to the search information.
[0084] Step S207: Determine the target digital tag based on the target parent category and the parent tag list.
[0085] Step S208: Obtain the corresponding target digital resource according to the target digital tag.
[0086] Exemplarily, the digital tag also includes a parent tag list of the parent category corresponding to the attribution category of the digital resource, wherein the parent category corresponding to the attribution category can be the upper type corresponding to the attribution category, that is, one or more category levels corresponding to the attribution category. For example, the attribution category of the digital resource is "facial key points", its corresponding parent category C1 is "prop generation", and its corresponding parent category C2 is "facial image", and the parent category C1 and the parent category C2 constitute a parent tag list. In a possible implementation, the retrieval information obtained based on the first search instruction includes the category identifier of the target parent category, so that the target parent category can be determined. Afterwards, based on the category identifier, a search is performed in the parent tag list to obtain a target digital tag having a parent tag category containing the target parent category, that is, a target digital tag, and then based on the mapping relationship between the digital tag and the digital resource, the target digital resource is obtained, and the icon of the target digital resource can be further displayed in the target page. The specific implementation process will not be repeated.
[0087] Exemplarily, the method also includes: displaying the name of at least one attribution category under the target parent category, and / or displaying the number of digital tags corresponding to at least one attribution category under the target parent category, thereby displaying detailed information of digital tags corresponding to different attribution categories to the user and improving the display effect of the retrieval results.
[0088] In this embodiment, through the parent tag list, a digital tag search based on a parent category is implemented, which can further improve the search flexibility and search efficiency of digital resources.
[0089] Fig.10 Schematic diagram of the process of the label generation method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied to a server, a terminal device or other electronic devices with similar functions. The tag generation method includes:
[0090] Step S301: In response to a first input instruction, input information is obtained, where the input information represents a target category of a target digital resource.
[0091] Step S302: Generate a digital tag of the target digital resource based on the input information, wherein the digital tag includes at least two category subtags, the category subtags represent the category of the digital resource corresponding to the digital tag, and the digital tag of the target digital resource includes a target category subtag matching the input information.
[0092] Exemplarily, the first input instruction is an instruction input by a user for marking the attribution category of a target digital resource. After receiving and parsing the first input instruction, the terminal device obtains input information representing the target attribution category of the target digital resource, and then generates a digital label of the target digital resource based on the input information. Specifically, if there is no digital label corresponding to the target digital resource, then based on Figure 2-Figure 9 The data format of the digital tag used in the illustrated embodiment is to create a new digital tag for the target digital resource. If a digital tag corresponding to the target digital resource currently exists, the target attribution category represented by the input information, such as the attribution category identifier, is written into the category subtag of the digital tag. Furthermore, if the category subtag corresponding to the target attribution category represented by the input information does not exist in the digital tag, a new category subtag is created, and the represented target attribution category is written into the category subtag; if the category subtag corresponding to the target attribution category represented by the input information already exists in the digital tag, the process of generating the digital tag is terminated, thereby generating Figure 2-Figure 9 Numeric labels used in the illustrated embodiments.
[0093] The digital label generated by the label generation method provided by this embodiment is Figure 2-Figure 9 The digital tags used in the illustrated embodiments have the same data format and technical effects. For details, please refer to the relevant introduction in the above embodiments, which will not be repeated here.
[0094] Corresponding to the resource retrieval method in the above embodiment, Fig.11 This is a structural block diagram of a resource search device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown.
[0095] Reference Fig.10 , the resource retrieval device 4 comprises:
[0096] The acquisition module 41 is used to obtain the search information in response to the first search instruction;
[0097] The processing module 42 is used to determine at least one target digital tag from at least two digital tags according to the search information, wherein the digital tag includes at least two category subtags, the category subtag represents the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag matching the search information;
[0098] The output module 43 is used to obtain the corresponding target digital resource according to the target digital tag.
[0099] In one embodiment of the present disclosure, the retrieval information includes a retrieval keyword, and the retrieval keyword represents the name of the category to which the digital resource belongs; the processing module 42 is specifically used to: generate a corresponding first semantic feature according to the retrieval keyword; based on the first semantic feature, retrieve the category subtags in at least two digital tags to obtain at least one target category subtag; and determine the digital tag where the target category subtag is located as the target digital tag.
[0100] In one embodiment of the present disclosure, when the processing module 42 retrieves category subtags in at least two digital tags based on the first semantic feature to obtain at least one target category subtag, it is specifically used to: obtain the semantic generalization of the first semantic feature, the first semantic generalization characterizing the number of belonging categories covered by the semantic feature; determine the allowable difference value based on the semantic generalization; compare the first semantic feature with the second semantic feature of the belonging category corresponding to the category subtag, and determine the target category subtag for the category subtag whose feature difference value is greater than the allowable difference value.
[0101] In one embodiment of the present disclosure, the digital tag also includes a hierarchical sub-tag, which represents the category level at which the category corresponding to the digital tag is located; the processing module 42 is specifically used to: obtain the target category level according to the retrieval information; based on the target category level, determine at least one to-be-selected digital tag from at least two digital tags, the to-be-selected digital tag including the hierarchical sub-tag corresponding to the target category level; determine the target digital tag from at least one to-be-selected digital tag.
[0102] In one embodiment of the present disclosure, the retrieval information includes a category hierarchy identifier for indicating a target category hierarchy; when the processing module 42 determines at least one to-be-selected digital tag from at least two digital tags based on the target category hierarchy, it is specifically used to: obtain and display the belonging category under the target category hierarchy according to the hierarchical sub-tag of the digital tag; and determine at least one to-be-selected digital tag corresponding to the first belonging category in response to a second retrieval instruction for the first belonging category under the target category hierarchy.
[0103] In one embodiment of the present disclosure, the digital tag also includes a parent tag list, which represents the parent category corresponding to the belonging category of the digital resource; the processing module 42 is specifically used to: determine the target parent category based on the retrieval information; determine the target digital tag based on the target parent category and the parent tag list.
[0104] In one embodiment of the present disclosure, the output module 43 is further used to: display the name of at least one belonging category under the target parent category, and / or display the number of digital labels corresponding to at least one belonging category under the target parent category.
[0105] The acquisition module 41, the processing module 42, and the output module 43 are connected in sequence. The resource search device 4 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.
[0106] Fig.12 This is a structural block diagram of a label generation device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Fig.12 , the label generating device 5 comprises:
[0107] An input module 51 is used to obtain input information in response to a first input instruction, where the input information represents a target belonging category of a target digital resource;
[0108] The generating module 52 is used to generate a digital tag of the target digital resource according to the input information, wherein the digital tag is used to implement the following Figure 2-Figure 9 The resource retrieval method provided by any corresponding embodiment.
[0109] Fig.13 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.13 As shown, the electronic device 6 includes:
[0110] A processor 61, and a memory 62 communicatively connected to the processor 61;
[0111] The memory 62 stores computer executable instructions;
[0112] The processor 61 executes the computer execution instructions stored in the memory 62 to implement the following Figure 2-Figure 9 The resource retrieval method in the embodiment shown, or, implementing Fig. 9 The label generation method in the illustrated embodiment.
[0113] Optionally, the processor 61 and the memory 62 are connected via a bus 63 .
[0114] For related instructions, please refer to Figure 2-Figure 9 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.
[0115] The present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the following when executed by a processor: Figure 2-Figure 9The resource retrieval method in the embodiment shown, or, implementing Fig. 9 The label generation method in the illustrated embodiment.
[0116] The present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements Figure 2-Figure 9 The resource retrieval method in the embodiment shown, or, implementing Fig. 9 The label generation method in the illustrated embodiment,
[0117] refer to Fig.14 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.14 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0118] like Fig.14 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0119] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.14 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0120] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0121] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0122] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0123] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0124] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0125] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0126] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0127] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0128] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0129] In a first aspect, according to one or more embodiments of the present disclosure, a resource retrieval method is provided, comprising:
[0130] In response to a first search instruction, search information is obtained; based on the search information, at least one target digital tag is determined from at least two digital tags, wherein the digital tag includes at least two category subtags, and the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag that matches the search information; based on the target digital tag, the corresponding target digital resource is obtained.
[0131] According to one or more embodiments of the present disclosure, the retrieval information includes a retrieval keyword, and the retrieval keyword represents the name of the category to which the digital resource belongs; determining at least one target digital tag from at least two digital tags based on the retrieval information includes: generating a corresponding first semantic feature based on the retrieval keyword; based on the first semantic feature, retrieving category subtags in the at least two digital tags to obtain at least one target category subtag; and determining the digital tag where the target category subtag is located as the target digital tag.
[0132] According to one or more embodiments of the present disclosure, the method of retrieving category subtags in the at least two digital tags based on the first semantic feature to obtain at least one target category subtag includes: obtaining the semantic generalization of the first semantic feature, the first semantic generalization characterizing the number of belonging categories covered by the semantic feature; determining an allowable difference value based on the semantic generalization; comparing the first semantic feature with the second semantic feature of the belonging category corresponding to the category subtag, and determining the target category subtag as the category subtag having a feature difference value greater than the allowable difference value.
[0133] According to one or more embodiments of the present disclosure, the digital tag also includes a hierarchical sub-tag, and the hierarchical sub-tag represents the category hierarchy at which the belonging category corresponding to the digital tag is located; determining at least one target digital tag from at least two digital tags based on the retrieval information includes: obtaining a target category hierarchy based on the retrieval information; based on the target category hierarchy, determining at least one to-be-selected digital tag from at least two digital tags, the to-be-selected digital tag including a hierarchical sub-tag corresponding to the target category hierarchy; and determining the target digital tag from the at least one to-be-selected digital tag.
[0134] According to one or more embodiments of the present disclosure, the retrieval information includes a category hierarchy identifier for indicating a target category hierarchy; the determining of at least one to-be-selected digital label from at least two digital labels based on the target category hierarchy includes: acquiring and displaying the attribution category under the target category hierarchy according to the hierarchy sub-label of the digital label; and determining, in response to a second retrieval instruction for a first attribution category under the target category hierarchy, at least one to-be-selected digital label corresponding to the first attribution category.
[0135] According to one or more embodiments of the present disclosure, the digital tag also includes a parent tag list, and the parent tag list represents the parent category corresponding to the belonging category of the digital resource; determining at least one target digital tag from at least two digital tags based on the retrieval information includes: determining the target parent category based on the retrieval information; determining the target digital tag based on the target parent category and the parent tag list.
[0136] According to one or more embodiments of the present disclosure, the method further includes: displaying the name of at least one belonging category under the target parent category, and / or displaying the number of digital labels corresponding to at least one belonging category under the target parent category.
[0137] In a second aspect, according to one or more embodiments of the present disclosure, a tag generation method is provided, including:
[0138] In response to the first input instruction, input information is obtained, wherein the input information represents a target belonging category of the target digital resource; the digital tag is used to implement the resource retrieval method described in the first aspect and various possible designs of the first aspect.
[0139] In a third aspect, according to one or more embodiments of the present disclosure, a resource retrieval device is provided, comprising:
[0140] An acquisition module, configured to obtain search information in response to a first search instruction;
[0141] A processing module, configured to determine at least one target digital tag from at least two digital tags according to the search information, wherein the digital tag includes at least two category subtags, the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag matching the search information;
[0142] The output module is used to obtain the corresponding target digital resource according to the target digital tag.
[0143] According to one or more embodiments of the present disclosure, the retrieval information includes a retrieval keyword, and the retrieval keyword represents the name of the category to which the digital resource belongs; the processing module is specifically used to: generate a corresponding first semantic feature based on the retrieval keyword; based on the first semantic feature, retrieve the category subtags in the at least two digital tags to obtain at least one target category subtag; and determine the digital tag where the target category subtag is located as the target digital tag.
[0144] According to one or more embodiments of the present disclosure, when the processing module retrieves the category subtags in the at least two digital tags based on the first semantic feature to obtain at least one target category subtag, it is specifically used to: obtain the semantic generalization of the first semantic feature, the first semantic generalization characterizing the number of belonging categories covered by the semantic feature; determine the allowable difference value based on the semantic generalization; compare the first semantic feature with the second semantic feature of the belonging category corresponding to the category subtag, and determine the target category subtag as the category subtag whose feature difference value is greater than the allowable difference value.
[0145] According to one or more embodiments of the present disclosure, the digital tag also includes a hierarchical sub-tag, and the hierarchical sub-tag represents the category level at which the category corresponding to the digital tag is located; the processing module is specifically used to: obtain the target category level according to the retrieval information; based on the target category level, determine at least one to-be-selected digital tag from at least two digital tags, and the to-be-selected digital tag includes a hierarchical sub-tag corresponding to the target category level; determine the target digital tag from the at least one to-be-selected digital tag.
[0146] According to one or more embodiments of the present disclosure, the retrieval information includes a category hierarchy identifier for indicating a target category hierarchy; when the processing module determines at least one to-be-selected digital tag from at least two digital tags based on the target category hierarchy, it is specifically used to: obtain and display the attribution category under the target category hierarchy according to the hierarchy sub-tag of the digital tag; and determine, in response to a second retrieval instruction for a first attribution category under the target category hierarchy, at least one to-be-selected digital tag corresponding to the first attribution category.
[0147] According to one or more embodiments of the present disclosure, the digital tag also includes a parent tag list, and the parent tag list represents the parent category corresponding to the belonging category of the digital resource; the processing module is specifically used to: determine the target parent category according to the retrieval information; determine the target digital tag based on the target parent category and the parent tag list.
[0148] According to one or more embodiments of the present disclosure, the output module is further used to: display the name of at least one belonging category under the target parent category, and / or display the number of digital labels corresponding to at least one belonging category under the target parent category.
[0149] In a fourth aspect, according to one or more embodiments of the present disclosure, there is provided a label generating device, including:
[0150] An input module, configured to obtain input information in response to a first input instruction, wherein the input information represents a target belonging category of a target digital resource;
[0151] A generating module, for generating a digital tag of the target digital resource according to the input information, wherein the digital tag is used to implement the resource retrieval method described in the first aspect and various possible designs of the first aspect.
[0152] In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0153] The memory stores computer-executable instructions;
[0154] The processor executes the computer-executable instructions stored in the memory to implement the resource retrieval method described in the first aspect and various possible designs of the first aspect, or to implement the label generation method described in the second aspect and various possible designs of the second aspect.
[0155] In a sixth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the resource retrieval method described in the first aspect and various possible designs of the first aspect is implemented, or the label generation method described in the second aspect and various possible designs of the second aspect is implemented.
[0156] In the seventh aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the resource retrieval method described in the first aspect and various possible designs of the first aspect, or implements the label generation method described in the second aspect and various possible designs of the second aspect.
[0157] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0158] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0159] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A resource retrieval method, It is characterized in that include: In response to the first search instruction, obtaining search information; Determine at least one target digital tag from at least two digital tags according to the search information, wherein the digital tag includes at least two category subtags, the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag matching the search information; According to the target digital tag, the corresponding target digital resource is obtained.
2. The method according to claim 1, It is characterized in that The search information includes a search keyword, and the search keyword represents the name of the category to which the digital resource belongs; The step of determining at least one target digital tag from at least two digital tags according to the search information comprises: According to the search keyword, generating a corresponding first semantic feature; Based on the first semantic feature, retrieve the category sub-labels in the at least two digital labels to obtain at least one target category sub-label; The digital label where the target category sub-label is located is determined as the target digital label.
3. The method according to claim 2, It is characterized in that The retrieving the category sub-labels in the at least two digital labels based on the first semantic feature to obtain at least one target category sub-label includes: Acquire the semantic generalization degree of the first semantic feature, where the first semantic generalization degree represents the number of attribution categories covered by the semantic feature; Determining a difference allowable value according to the semantic generalization degree; The first semantic feature is compared with a second semantic feature of the category corresponding to the category subtag, and the category subtag having a feature difference value greater than the difference allowable value is selected to determine the target category subtag.
4. The method according to claim 1, It is characterized in that The digital tag also includes a level subtag, and the level subtag represents the category level to which the category corresponding to the digital tag belongs; The step of determining at least one target digital tag from at least two digital tags according to the search information comprises: According to the search information, a target category level is obtained; Based on the target category level, determining at least one to-be-selected digital label from at least two digital labels, wherein the to-be-selected digital label includes a level sub-label corresponding to the target category level; The target digital tag is determined from the at least one digital tag to be selected.
5. The method according to claim 4, It is characterized in that The retrieval information includes a category level identifier for indicating a target category level; The step of determining at least one to-be-selected digital label from at least two digital labels based on the target category hierarchy includes: According to the hierarchical subtags of the digital tag, obtaining and displaying the belonging categories under the target category hierarchy; In response to a second search instruction for a first attribution category under the target category level, at least one to-be-selected digital label corresponding to the first attribution category is determined.
6. The method according to claim 1, It is characterized in that The digital tag also includes a parent tag list, and the parent tag list represents the parent category corresponding to the category of the digital resource; The step of determining at least one target digital tag from at least two digital tags according to the search information comprises: Determine a target parent category according to the search information; The target digital tag is determined based on the target parent category and the parent tag list.
7. The method according to claim 6, It is characterized in that The method further comprises: The name of at least one belonging category under the target parent category is displayed, and / or the number of digital labels corresponding to at least one belonging category under the target parent category is displayed.
8. A label generation method, It is characterized in that include: In response to the first input instruction, input information is obtained, wherein the input information represents a target belonging category of the target digital resource; A digital tag of the target digital resource is generated according to the input information, wherein the digital tag is used to implement the resource retrieval method according to any one of claims 1 to 7.
9. A resource retrieval device, It is characterized in that include: An acquisition module, configured to obtain search information in response to a first search instruction; A processing module, configured to determine at least one target digital tag from at least two digital tags according to the search information, wherein the digital tag includes at least two category subtags, the category subtags represent the category of the digital resource corresponding to the digital tag, and the target digital tag includes a target category subtag matching the search information; The output module is used to obtain the corresponding target digital resource according to the target digital tag.
10. A label generating device, It is characterized in that include: An input module, configured to obtain input information in response to a first input instruction, wherein the input information represents a target belonging category of a target digital resource; A generation module is used to generate a digital tag of the target digital resource according to the input information, wherein the digital tag is used to implement the resource retrieval method as described in any one of claims 1 to 7.
11. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Audio resource processing method and device, equipment and storage medium
CN111046225A
Inquiry method and device based on hierarchical label, equipment and storage medium
CN111639156A
Media object searching method and device, computer equipment and storage medium
CN113821686A
Enterprise document processing method and device and storage medium
CN115525778A
Method and system for interactive searching based on semantic similarity of semantic representations of text objects
US20220414128A1
