CN113094523A - Resource information acquisition method and device, electronic equipment and storage medium - Google Patents
Resource information acquisition method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113094523A CN113094523A CN202110296792.1A CN202110296792A CN113094523A CN 113094523 A CN113094523 A CN 113094523A CN 202110296792 A CN202110296792 A CN 202110296792A CN 113094523 A CN113094523 A CN 113094523A
- Authority
- CN
- China
- Prior art keywords
- resource
- information
- target
- template
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 239000002131 composite material Substances 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 5
- 238000007726 management method Methods 0.000 description 54
- 238000013145 classification model Methods 0.000 description 32
- 230000008569 process Effects 0.000 description 28
- 238000013507 mapping Methods 0.000 description 19
- 238000012545 processing Methods 0.000 description 14
- 238000012549 training Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 239000000284 extract Substances 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 230000003993 interaction Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 210000003746 feather Anatomy 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/45—Clustering; Classification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The disclosure relates to a method, a device, an electronic device and a storage medium for acquiring resource information, wherein the method comprises the following steps: extracting a resource identifier of a target resource to be classified from a received resource classification task, and identifying the resource type of the target resource according to the resource identifier; determining an information template matching the resource type; and acquiring resource information described by the information template, wherein the resource information is used for classifying the target resources. The scheme is beneficial to simplifying the acquisition flow of the resource information so as to accelerate the information acquisition speed and improve the acquisition efficiency of the resource information and the classification efficiency of the target resource to a certain extent.
Description
Technical Field
The present disclosure relates to the field of multimedia resource management, and in particular, to a method and an apparatus for acquiring resource information, an electronic device, and a storage medium.
Background
When multimedia resources are managed or distributed, resources are generally required to be classified first, and since multimedia resources generally have resource identifiers such as numbers or resource names, resource classification can be achieved by adding tags to the resource identifiers.
In order to ensure accurate classification of resources, resource information such as titles and keywords related to the resources needs to be acquired for a classifier to check or for a classification model to analyze so as to judge the category of the resources. In the related art, for each resource to be classified, the acquisition logic of the resource information needs to be determined repeatedly and corresponding functions need to be developed, so that the workload of repetition is large and codes are redundant, and the efficiency of resource classification/management is low.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for acquiring resource information, an electronic device and a storage medium, so as to at least solve the technical problems in the related art. The technical scheme provided by the embodiment of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for acquiring resource information is provided, including:
extracting a resource identifier of a target resource to be classified from a received resource classification task, and identifying the resource type of the target resource according to the resource identifier;
determining an information template matching the resource type;
and acquiring resource information described by the information template, wherein the resource information is used for classifying the target resources.
Optionally, the identifying the resource type of the target resource according to the resource identifier includes:
and extracting the type field of the resource identifier, and determining the resource type of the target resource according to the preset corresponding relation between the type field and the resource type.
Optionally, the information template includes a general information template, and the method further includes:
determining general resource information corresponding to each resource type according to historical classification data corresponding to different types of resources;
and recording the description information of the universal resource information corresponding to each resource type in the information template, and constructing the universal information template corresponding to each resource type.
Optionally, the general information template includes at least one of:
a text information template, a picture information template, a video information template and a composite information template; wherein the compound is
The information template is used to describe resource information for at least two types of resources.
Optionally, the method further includes:
under the condition that a user-defined configuration instruction sent by aiming at any one general information template is received, extracting description information from the user-defined configuration instruction;
and adding the description information in any one general information template, wherein the description information is used for describing resource information of at least one type of resource.
Optionally, the information template includes a custom information template, and the method further includes:
receiving description information of custom resource information, wherein the custom resource information corresponds to at least one type of resource;
and recording the description information in the information template, and constructing the self-defined information template.
Optionally, the obtaining of the resource information described by the information template includes:
determining candidate resource information corresponding to the resource identifier in a resource information base;
and selecting the resource information described by the information template from the candidate resource information.
Optionally, the method further includes:
inputting the resource information to a pre-trained resource classification model, and obtaining a classification result of the resource classification model after classifying the target resource by using the resource information; or,
and displaying the resource information, and determining a classification result of the target resource according to the classification operation under the condition that the classification operation aiming at the target resource is detected.
Optionally, the displaying the resource information includes:
and displaying the resource information according to the preset display attribute recorded in the information template.
Optionally, the method further includes: presenting candidate classification labels corresponding to the resource identifications;
the determining, in the case that a classification operation for the target resource is detected, a classification result for the target resource according to the classification operation includes: and under the condition that a label selecting operation aiming at least one candidate classification label is detected, determining the resource type corresponding to the selected candidate classification label as the resource type of the target resource.
According to a second aspect of the embodiments of the present disclosure, an apparatus for acquiring resource information is provided, including:
the identification acquisition module is configured to extract a resource identification of a target resource to be classified from a received resource classification task and identify the resource type of the target resource according to the resource identification;
a template determination module configured to determine an information template matching the resource type;
and the information acquisition module is configured to acquire the resource information described by the information template, and the resource information is used for classifying the target resources.
Optionally, the identity obtaining module is further configured to:
and extracting the type field of the resource identifier, and determining the resource type of the target resource according to the preset corresponding relation between the type field and the resource type.
Optionally, the information template includes a general information template, and the apparatus further includes:
the general information determining module is configured to determine general resource information corresponding to each resource type according to historical classification data corresponding to different types of resources;
and the universal template building module is configured to record the description information of the universal resource information corresponding to each resource type in the information template and build the universal information template corresponding to each resource type.
Optionally, the general information template includes at least one of:
a text information template, a picture information template, a video information template and a composite information template; the composite information template is used for describing resource information of at least two types of resources.
Optionally, the method further includes:
the description information extraction module is configured to extract description information from a custom configuration instruction sent by any one of the general information templates under the condition that the custom configuration instruction is received;
the description information adding module is configured to add the description information in any one of the general information templates, and the description information is used for describing resource information of at least one type of resource.
Optionally, the information template includes a custom information template, and the apparatus further includes:
the user-defined information receiving module is configured to receive description information of user-defined resource information, and the user-defined resource information corresponds to at least one type of resource;
and the custom information template building module is configured to record the description information in the information template and build the custom information template.
Optionally, the information obtaining module is further configured to:
determining candidate resource information corresponding to the resource identifier in a resource information base;
and selecting the resource information described by the information template from the candidate resource information.
Optionally, the method further includes:
the model classification module is configured to perform model classification input on the resource information to a pre-trained resource classification model and obtain a classification result of the resource classification model after the resource information is used for classifying the target resource; or,
and the display classification module is configured to display the resource information and determine a classification result of the target resource according to the classification operation when the classification operation aiming at the target resource is detected.
Optionally, the presentation classification module is further configured to:
and displaying the resource information according to the preset display attribute recorded in the information template.
Optionally, the system further comprises a tag presentation module configured to present candidate classification tags corresponding to the resource identifiers;
the presentation classification module is further configured to: and under the condition that a label selecting operation aiming at least one candidate classification label is detected, determining the resource type corresponding to the selected candidate classification label as the resource type of the target resource.
According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for acquiring resource information as described in any embodiment of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, where instructions executed by a processor of an electronic device enable the electronic device to perform the method for acquiring resource information according to any one of the embodiments of the first aspect.
According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, which includes a computer program and/or instructions, and when the computer program and/or instructions are executed by a processor, the method for acquiring resource information according to any one of the embodiments of the first aspect is implemented.
The technical scheme provided by the embodiment of the disclosure at least has the following beneficial effects:
according to the embodiment of the disclosure, after receiving a resource classification task, a resource classification device extracts a resource identifier of a target resource to be classified from the task, identifies a resource type of the target resource, then determines an information template matched with the resource type, and further obtains resource information described by the template according to the template, so that the target resource can be classified by using the resource information. Because the same type of target resources can use the same information template, that is, the same type of target resources can obtain the respective corresponding resource information in the same manner, after extracting the resource identifier and determining the resource type, the resource information described by the information template corresponding to the resource type can be correspondingly obtained, thereby facilitating the realization of automatic batch acquisition of the resource information, effectively simplifying the acquisition process of the resource information and improving the information acquisition efficiency. In addition, because the resource information can be obtained according to the pre-generated information template corresponding to the resource type without repeatedly determining the obtaining logic of the resource information, the repeated workload and the redundant codes are obviously reduced, and the resource classification/management efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is an architectural diagram of a resource classification system provided by an exemplary embodiment;
fig. 2 is a flowchart illustrating a resource information obtaining method according to an embodiment of the disclosure;
fig. 3 is a flowchart illustrating another resource information acquisition method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a display effect of resource information according to an embodiment of the disclosure;
fig. 5 is a schematic block diagram illustrating an apparatus for acquiring resource information according to an embodiment of the present disclosure;
fig. 6 is a schematic block diagram illustrating another resource information acquisition apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic diagram of an architecture of a resource classification system according to an exemplary embodiment. As shown in fig. 1, the system may include a network 10, a server 11, a number of electronic devices, such as a computer 12, a computer 13, a computer 14, and so on.
The server 11 may be a physical server comprising a stand-alone host, or the server 11 may be a virtual server hosted by a host or a cluster, or the server 11 may be a cloud server. In the operation process, the server 11 may operate a server-side program of a certain application to implement a related service function of the application, for example, when the server 11 operates a program of a resource classification system, the server may be implemented as a server of the resource classification system to classify multimedia resources to be classified. In the technical solutions of one or more embodiments of the present specification, the server 11 may cooperate with a client running on a computer 12-14 to automatically obtain resource information corresponding to a multimedia resource, and then the multimedia resource may be displayed by the computer, and a user (or a marker) using the client adds a label to a resource identifier, thereby implementing classification of the multimedia resource; alternatively, a resource classification model may be deployed in advance in a computer, and the computer may input the resource information acquired by the server 11 into the resource classification model, thereby realizing classification of the multimedia resources.
In this embodiment, the resource classification system may not only implement a resource information display function, but also be used as an integrated functional platform with many other functions, such as generating an information template, associating the information template with a resource type, receiving a resource identifier, identifying a resource type, determining an information template corresponding to a resource, detecting a tag selection operation, determining a selected tag, and recording a marking result, which is not limited in one or more embodiments of the present specification.
Computers 12-14 are but one type of electronic device that a user may use. In fact, it is obvious that the user can also use electronic devices of the type such as: a mobile phone, a tablet device, a notebook computer, a pda (Personal Digital assistants), a wearable device (such as smart glasses, a smart watch, etc.), etc., which are not limited by one or more embodiments of the present disclosure. During operation, the electronic device may run a client-side program of an application to implement a relevant service function of the application, for example, when the electronic device runs a program of a resource classification system, the electronic device may be implemented as a client of the resource classification system. For example, the computer 12 may be implemented as a management client of a resource classification system, and a manager may implement management functions of creating, uploading, distributing, monitoring, and the like on a resource classification task through the management client; the computers 13 to 14 may be implemented as an execution client of the resource classification system, and users such as a marking staff may use the technical solution described in the embodiment of the present disclosure implemented by the execution client to classify the target resource (for example, add a label to the target resource, or mark); or the computers 13 to 14 may implement the technical solution described in the embodiment of the present disclosure, and the resource classification model deployed therein classifies the acquired resource information as model information to classify the corresponding target resource.
It should be noted that: an application of a resource classification system client may be preinstalled on an electronic device such that the client may be launched and run on the electronic device; of course, when an online "client" such as HTML5 technology is employed, the client can be obtained and run without installing a corresponding application on the electronic device.
And for the network 10, various types of wired or wireless networks may be included.
When multimedia resources are managed or distributed, resources are generally required to be classified first, and since multimedia resources generally have resource identifiers such as numbers or resource names, resource classification can be achieved by adding tags to the resource identifiers.
In order to ensure accurate classification of resources, resource information such as titles and keywords related to the resources needs to be acquired for a classifier to check or for a resource classification model to analyze, so as to judge the category of the resources. In the related art, for each resource to be classified, the acquisition logic of the resource information needs to be determined repeatedly and corresponding functions need to be developed, so that the workload of repetition is large and codes are redundant, and the efficiency of classification/management of the resource information is low.
In order to solve the above problem, an embodiment of the present disclosure provides a method for acquiring resource information, where after receiving a resource classification task, a resource classification device extracts a resource identifier of a target resource to be classified from the task, identifies a resource type of the target resource, and then determines an information template matched with the resource type and acquires resource information described by the information template, so as to classify the target resource by using the resource information. The embodiment of the disclosure is not only beneficial to simplifying the resource information acquisition process and improving the information acquisition efficiency, but also can remarkably reduce the repeated workload and redundant codes, thereby improving the resource classification/management efficiency.
Fig. 2 is a flowchart illustrating a resource information obtaining method according to an exemplary embodiment of the present specification. As shown in fig. 2, the method is applied to an execution client in a resource classification system, where the execution client may show the acquired resource information of the target resource to a user using the execution client, so that the user classifies the target resource by looking at the resource information; or, the acquired resource information may be input into a pre-deployed resource classification model, and the target resource is classified by the resource classification model. The method may include the following steps 202-206.
In this embodiment, the administrator may create a resource classification task in the management client (e.g., the computer 12 in fig. 1) used by the administrator, and allocate the created task to the corresponding execution client (e.g., the computers 13 to 14 in fig. 1) through the management client, so that the execution client processes the received task to classify the resource. For any resource classification task, a manager can designate a corresponding execution client in the management client (for example, the corresponding task is allocated according to the working capacity of the classifier), or the management client can automatically determine and allocate the corresponding execution client according to default settings. Of course, after the classification is completed, the execution client (which the user or the resource classification model can pass) returns the corresponding classification result to the management client, so that the closed-loop processing flow for the resource classification task is completed. The resource classification task includes a resource identifier (such as a picture number, a video ID, and the like) of a target resource to be classified, so that the execution client can extract the corresponding resource identifier from the task to identify a resource type of the target resource according to the resource identifier.
In this embodiment, the target resources to be classified may include multiple types, such as text resources, picture resources, recorded video resources, live video resources, and the like, or may also be composite resources including a combination of the above multiple types, such as pictures containing characters, videos containing characters in video frame pictures, and the like. For any resource classification task, the corresponding target resource may have multiple forms, for example, for a picture type target resource, a single classification task may correspond to one picture to be classified, or a composite classification task may correspond to a picture set composed of multiple pictures to be classified. Of course, the resource type and the resource quantity corresponding to any resource classification task may be flexibly set according to actual classification requirements, which is not limited in the embodiments of the present disclosure, and the following description will take the classification process of the target resource in any resource classification task as an example.
And the execution client executes the resource classification task after receiving the task, thereby realizing the classification of the target resource. The method for acquiring resource information according to the embodiment of the present disclosure is used for acquiring resource information of a target resource according to an information template.
In an embodiment, the execution client may determine the resource type of the target resource according to the extracted resource identifier. For example, the execution client may extract a type field of the resource identifier, and determine the resource type of the target resource according to a preset correspondence between the type field and the resource type. In the embodiment, the server provides the resource identifier for the execution client to complete task allocation, so that the data transmission amount is effectively reduced, and network congestion is avoided.
For example, the distribution device of the resource identifier may first allocate a corresponding resource identifier to any resource according to the resource type of the resource, and then allocate a relationship table containing a correspondence between the resource type and the resource identifier to the execution client, so that the execution client may determine the resource type of the target resource by querying the relationship table after extracting the type field from the resource identifier of the target resource. In an embodiment, in the case that the resource identifier is a resource number, the distribution device may set the first two bits of the resource number as the type field, for example, set the first two bits of the resource identifier of the text resource as "wr", set the first two bits of the resource identifier of the picture resource as "ph", and the like, where a corresponding relationship between "text resource-wr" and "picture resource-ph" is recorded in the relationship table allocated to the execution client at this time. The execution client queries the relation table after extracting the first two bits of the resource identifier of the target resource, and can determine the resource type: if the resource identifier of the target resource is 'wr 123456', the resource type of the target resource can be determined to be a text type according to the extracted field 'wr'; if the resource identifier of the target resource is "ph 234567", the resource type of the target resource can be determined to be the picture type according to the extracted field "ph". For another example, when the resource identifier is a file name with a suffix of the resource file, the distribution apparatus may record a file suffix in the file name as the type field, and may record a correspondence relationship such as "text resource txt", "video resource mp 4" in a relationship table assigned to the execution client. The execution client queries the relation table after extracting the file suffix of the resource identifier of the target resource, and can determine the resource type: if the resource identifier of the target resource is '123456. txt', determining that the resource type of the target resource is a text type according to the extracted file suffix '. txt'; if the resource identifier of the target resource is "123456. mp 4", the resource type of the target resource may be determined to be a video type according to the extracted file suffix ". mp 4".
Of course, after the resource type of the target resource is determined, a more subdivided type may be further determined according to the resource information of the target resource. Taking a video resource as an example, the video information of the target video may include type information for indicating a video type, so that the execution client may further determine that the target resource is a recorded video or a live video according to the acquired type information; or, because the video uploaded to the video interaction platform generally conforms to a video format specified by the platform (or the video interaction platform converts the video into a corresponding preset format according to the video type after uploading), the video formats of different types of videos can be pre-recorded in the execution client, for example, the recorded video supported by the video interaction platform is in the format of mp4, and the live video is in the format of ts, so that the execution client can determine the specific type of the video according to the video format (i.e., the encoding/decoding standard of the video, or the file suffix name) in the acquired video information. Of course, other forms of resource types may also be determined, and the embodiments of the present disclosure are not limited to specific determination manners and resource types.
And step 204, determining an information template matched with the resource type.
In this embodiment, the information template may include a general information template and/or a custom information template, and such information templates may be pre-constructed by the execution client before receiving or executing the resource classification task. Therefore, for the received resource classification task, the execution client can determine a corresponding information template from the constructed information templates according to the resource type of the task, so as to execute the task by using the determined information module.
In an embodiment, the execution client may determine universal resource information corresponding to each resource type according to historical classification data corresponding to different types of resources, and then record the universal resource information corresponding to each resource type in the information template, thereby constructing the universal information template corresponding to each resource type. When any universal information template is used to classify the target resource (i.e. execute the resource classification task for the target resource), the description information included in the universal information module is the universal resource information used to describe the target resource, so that the execution client determines the resource information (of the target resource) that needs to be acquired according to the description information. By recording the description information of the resource information corresponding to the same type of resource in the general information template, the execution client can uniformly acquire the resource information corresponding to the same type of resource according to the description information, so that the consistency of the resource information corresponding to the same type of resource is ensured, and the information acquisition efficiency is improved to a certain extent.
Further, the generic information template may have various forms corresponding to different resource types, for example, may include at least one of the following: text information template, picture information template, video information template and composite information template. The text information template corresponds to a text type resource (or called text resource), and the description information contained in the text information template can be information such as text content and keywords. The picture information template corresponds to a resource of a picture type (or called a picture resource), and description information contained in the picture information template can be picture links, picture publishing time, a picture publishing account number and the like. The video information template corresponds to a video type resource (or called video resource), the video information template may include a recorded video information template corresponding to a recorded movie, a short video and other video resources, and the description information included in the information template may be a video playing link, a video title, a video cover, a video playing amount, a video praise number and the like; the information video information template can also comprise a live video information template corresponding to live video, and the description information contained in the template can be a live stream playing address, a live cover, a live screenshot and the like, and is not repeated one by one.
In addition, the general information template may further include a composite information template, and the composite information template is used to describe resource information of at least two types of resources. For example, the composite information template may describe resource information of a text resource and a picture resource, or resource information of a text resource and a video resource, or resource information of a picture resource and a video resource, and the composite information template may also describe resource information of a text resource, a picture resource, a video resource, and the like.
Furthermore, when the general information module is constructed, the execution client can also add description information for describing the resource information in the general information template in a self-defined manner. For example, in the case of receiving a custom configuration instruction issued for any one of the generic information templates, the execution client may extract description information from the custom configuration instruction, and then add the extracted description information to the generic information template, where the added description information may be used to describe resource information of a resource of a type corresponding to the generic information template. The user-defined configuration instruction can be issued by the user implementing the configuration operation in the execution client. Of course, the above general information module may also be pre-constructed by the management client, and the specific process may refer to the above description, and at this time, the configuration defining instruction may be issued by the administrator by performing the configuration operation in the management client.
Under the condition that the user-defined description information is added to the execution client, the user can add the description information aiming at the corresponding resource information in a user-defined mode on the basis of the general information template, so that the description information aiming at the resource information can be flexibly added according to the actual conditions of personal ability, marking habit and the like. And under the condition that the management client adds the custom description information, the manager can appoint the custom description information according to the practical situation adaptability of the marking personnel or the resource classification model. By the method, the classification accuracy of the conventional resources can be improved to a certain extent no matter the resources are classified by users or by the resource classification model.
In an embodiment, the execution client may also construct a custom information template, for example, the execution client may receive description information of the custom resource information, and then may record the description information in the information template to construct the custom information template. The description information may be set by a user in the execution client, or set by a manager in the management client and then sent to the execution client. The description information in any custom information template may correspond to at least one type of resource, such as resource information that may only describe text resources, picture resources, and video resources, or resource information that may describe both picture resources and video resources, text resources, and picture resources, and even resource information of text resources, picture resources, and video resources, etc., which is not limited in this disclosure. In addition, the description information in any self-defined information template can have various forms, such as two-dimensional code links in pictures, video subtitles in videos and the like; or under the condition that the target resource is classified, the classification result of the previous classification or the remark information in the classification process can be taken as the target resource, and the description is omitted.
Of course, the custom information template may also be constructed by the management client according to the description information obtained by the management client (for example, specified by the administrator or obtained from other devices), and the specific construction process does not have essential difference from the process of constructing the custom information template performed by the management client, which can be referred to the above description, and is not described herein again. In this way, a user or a manager can realize flexible combination and configuration of resource information corresponding to multiple types of target resources through the custom information template, so that the execution client can acquire the custom information for resource classification, and the classification accuracy of the target resources is improved.
As mentioned above, the information template may be pre-constructed by the execution client or the management client, and the client may perform corresponding processing on the constructed information template. For example, the execution client may store the resource classification task locally after being constructed, or the management client may issue the resource classification task to the execution client after being constructed, so that the execution client may determine a corresponding information template according to the resource type of the target resource in the task after receiving the resource classification task allocated by the management client, acquire the resource information of the target resource according to the description information recorded in the information module, and further classify the target resource according to the resource information. Alternatively, the execution client may upload it to the management client after it has been built, or the management client may save it locally after it has been built, so that the management client can create or assign a resource classification task for the target resource by the manager, determining a corresponding information template according to the resource type of the target resource, and acquiring partial resource information (such as historical classification data of the target resource locally recorded by a management client) of the target resource according to the description information recorded in the information module, and then the determined part of resource information and the established resource classification task are associated and sent to the execution client, therefore, the execution client does not need to request the management client to acquire the part of resource information after receiving the resource classification task, the time for the execution client to acquire the resource information is further shortened, and the execution speed of the execution client on the resource classification task is improved to a certain extent.
In addition, the management client can generate a mapping relation between the information template and the resource type after constructing the information template, and sends the mapping relation to the execution client; or, the executing client may also generate the mapping relationship after constructing the information template and locally maintain the mapping relationship, so that after determining the resource type of the target resource corresponding to the resource classification task, the executing client may search for the information template matching the resource type according to the locally maintained mapping relationship, thereby effectively shortening the time consumed for determining the information module and facilitating the resource classification speed.
Since the resource classification task involved in the above process is used to classify the target resource, the following embodiments refer to the information template determined according to the resource type of the target resource (matching the resource type) as the "target information module", which is described herein.
And step 206, acquiring resource information described by the information template, wherein the resource information is used for classifying the target resources.
In an embodiment, the execution client may first determine candidate resource information corresponding to the resource identifier in the resource information base, and then further select resource information described by the information template corresponding to the target resource from the determined candidate resource information. The resource information base can record resource information such as resource name, release time, release account, number of viewers and the like, and the resource information can be stored according to at least one dimension such as resource type, resource identification and the like so as to be convenient for query. For example, in a case where the resource information in the resource information base is stored according to the resource identifier, the execution client may query, after determining the resource identifier of the target resource, all resource information of the target resource in the resource information base according to the resource identifier, that is, all resource information corresponding to the resource identifier is used as candidate resource information of the target resource, and further, may select, from the candidate resource information, resource information described by the description information in the information template corresponding to the target resource.
If the target resource is a video resource, the corresponding candidate resource information may include a video playing link, a video title, a video cover, a video playing amount, a video praise number, and other various information, and if the description information in the information template corresponding to the target resource includes "the video playing link, the video title, and the video cover", the execution client may select the video playing link, the video title, and the video cover in the candidate resource information as the resource information of the target resource according to the description information. It is understood that the finally obtained video playing link, video title and video cover page are specific data of the above information, such as the website of "https:// v.shinin.com/123456. html," xxx choice clip "and the picture data of the cover page picture. Because the resource information base of the resource usually contains the complete resource information of any resource, the resource information of the target resource is selected from the resource information base, which is beneficial to completely acquiring the resource information of the target resource described by the information template, namely all resource information required for classifying the target resource can be acquired in the resource information base, thereby being beneficial to reducing the steps of acquiring the resource information and simplifying the information acquisition process.
Of course, in order to reduce the task amount of the execution client and fully exert the resource management function of the server, the execution client may also provide the description information included in the information template to the server, so that the server obtains the resource information corresponding to the target resource according to the description information, and receives the resource information returned by the server.
In an embodiment, after the execution client acquires the resource information of the target resource, the target resource can be classified in various ways. As an exemplary embodiment, the classification of the target resource may be achieved through a resource classification model. For example, the execution client may input the acquired resource information to a pre-trained resource classification model, and acquire a classification result obtained by the resource classification model after classifying the target resource by using the resource information. The resource classification model can be obtained by training using a training sample labeled with an actual resource type in advance, specifically, the resource classification sample can be obtained by training using multiple types of training samples (such as text sample resources, picture sample resources, video sample resources, and the like) at the same time, and the resource classification model obtained by training in this way can be used for classifying target resources of any type. Or, different types of training samples can be used to respectively train to obtain resource classification models for different types of resources, and each resource classification model trained in this way can be used to respectively perform targeted classification on different types of target resources. Therefore, when the resource classification model is used for classification, the target resource classification model of the corresponding type can be selected according to the resource type of the target resource, and the model is used for classifying the target resource, namely the corresponding resource classification model is selected according to the resource type of the target resource for classification.
For example, a resource classification model trained using text sample resources generally has a higher classification accuracy for text-type resources than for other types of resources (pictures, videos, etc.), so the model can be used to classify text-type resources. Similarly, the classification models of other types of resources are similar to this and are not described in detail. At this time, because the type of the training sample is single, convergence is usually fast in the model training process, and the model training efficiency is ensured. Of course, in order to ensure the classification accuracy of the composite type resources as much as possible, the model may also be trained by using the sample resources in the text form and the sample resources in the picture form at the same time, so as to obtain a resource classification model capable of accurately classifying the resources in the text form and the resources in the picture form at the same time. For the text sample resources, models such as char-CNN (char Convolutional Neural Networks), Bi-LSTM (Bi-directional Long-Short Term Memory), R-CNN (regional Neural Networks), and Transformer can be adopted for training; for picture sample resources, models such as VGG16, inclusion, ResNet (Residual Net) and the like can be adopted for training; for video sample resources, models such as Average firing, NetVLAD, and the like can be used for training, and the specific training process of the models can be described in the related art, and is not described herein again.
The target resources are classified through the pre-trained resource classification models in various forms, batch classification of the target resources is facilitated to be achieved simultaneously, resource classification efficiency is improved, and the resource classification method can be effectively applied to classification scenes of a large number of resources.
As another exemplary embodiment, the acquired resource information of the target resource may be presented to the user for manual classification of the target resource by the user. For example, the execution client may present the resource information to the user, so that the user may determine the type of the target resource based on the resource information viewed by the user according to experience of the user, and perform a corresponding classification operation on the target resource according to a determination result. Thus, the execution client may determine the classification result of the target resource by the user in the case that the classification operation is detected. At this time, the resource information of the target resource acquired by the execution client is used for displaying to the user, so that the user can judge the belonged classification of the target resource, and the classification of the target resource is realized.
Further, as an exemplary embodiment, the information template may further describe a display attribute of each resource information, so that when the execution client displays the resource information to the user, the execution client may display the resource information according to the preset display attribute recorded in the information template, so as to enable the same type of resource information to have the same or similar display attributes, thereby presenting a neat and beautiful information display effect, and also improving the classification efficiency of the user on the target resource to a certain extent. Of course, the execution client may also set the display attribute of the resource information corresponding to each resource type in advance, and store the set display attribute in the local storage space, so as to display the resource information according to the locally stored display attribute, without acquiring the display attribute from the server, thereby speeding up the display speed of the resource information. The display attribute may include one or more of a display position, a font size, a font color, a display special effect, a display duration, and the like, which is not limited in the embodiments of the present disclosure.
As another exemplary embodiment, in the case of presenting resource information to a user, the execution client may further present an alternative classification tag corresponding to the resource identifier, so that the user may select the presented alternative classification tag to implement classification of the target resource; correspondingly, the execution client may determine, as the resource type of the target resource, the resource type corresponding to the selected at least one candidate classification tag when detecting that the user performs the tag selection operation for the at least one candidate classification tag, so as to obtain the classification result for the target resource. Specifically, the corresponding relationship between the resource identifier of the target resource and the selected candidate classification tag may be recorded, and the process of recording the corresponding relationship is a process of binding the selected candidate classification tag and the resource identifier, that is, a process of marking the target resource. Correspondingly, the corresponding relation can be used as a marking result after marking is finished, namely a classification result of the target resource.
According to the embodiment of the disclosure, after receiving a resource classification task, a resource classification device extracts a resource identifier of a target resource to be classified from the task, identifies a resource type of the target resource, then determines an information template matched with the resource type, and further obtains resource information described by the template according to the template, so that the target resource can be classified by using the resource information. Because the same type of target resources can use the same information template, that is, the same type of target resources can obtain the respective corresponding resource information in the same manner, after extracting the resource identifier and determining the resource type, the resource information described by the information template corresponding to the resource type can be correspondingly obtained, thereby facilitating the realization of automatic batch acquisition of the resource information, effectively simplifying the acquisition process of the resource information and improving the information acquisition efficiency. In addition, because the resource information can be obtained according to the pre-generated information template corresponding to the resource type without repeatedly determining the obtaining logic of the resource information, the repeated workload and the redundant codes are obviously reduced, and the resource classification/management efficiency is improved.
Fig. 3 is a flowchart illustrating another resource information obtaining method applied to an execution client according to an embodiment of the disclosure. The following describes in detail a specific process of the execution client for classifying the target resource by displaying the resource information of the target resource in conjunction with the embodiment shown in fig. 3. The process may include steps 302-318 described below.
For convenience of describing the embodiment, the description is given here by recording the resource type corresponding to the target resource as the "target resource type", recording the information template matching the target resource type as the "target information template", and recording the resource information corresponding to the target resource described by the target information template as the "target resource information". In addition, as described above, the information template may be pre-constructed by the execution client, the management client, or even the server, and the execution client may classify the target resource by displaying the resource information or inputting the resource information into the resource classification model, and this embodiment only takes the example that the management client creates the information template and the execution client displays the resource information to the user as an example.
In an embodiment, before determining the information template matching the target resource type, the execution client may obtain an information template corresponding to at least one resource type, such as a generic information template and/or a custom information template created and issued by the management client, or may actively request the management client to obtain the information template. The target resources to be classified may include multiple types, such as text resources, picture resources, recorded video resources, live video resources, and the like; the composite resource comprising the combination of the multiple types, such as pictures containing texts, videos containing texts in video frame images and the like, can be used, so that the execution client can obtain multiple types of information templates from the management server.
As an exemplary embodiment, the management client may determine universal resource information corresponding to each resource type according to historical classification data corresponding to different types of resources, and then record the universal resource information corresponding to each resource type in the information template, thereby constructing a universal information template corresponding to each resource type. When any universal information template is used for classifying the target resources, the description information contained in the template is used for describing the resource information required to be displayed by the target resources, so that the execution client determines the resource information required to be acquired according to the description information. Based on the description information of the resource information recorded in the general information template, the execution client can uniformly acquire the resource information corresponding to a certain type of resource according to the description information, so that the resource information corresponding to the type of resource is uniformly displayed.
The generic information template constructed by the management client may have various forms corresponding to different resource types. For example, at least one of the following may be included: a text information template, a picture information template, a recorded video information template, a live video information template or a composite information template. The text information template, the picture information template, the recorded video information template, and the live video information template may respectively include description information of at least one resource information corresponding to a corresponding type of resource, for example, the text information template may include text keywords for the text resource, and the picture information template may include picture links and picture publishing time for the picture resource. The composite information template may include description information of at least one resource information of various types of resources corresponding to the template, such as a composite information template corresponding to a text resource and a video resource, where the composite information template may include at least two pieces of description information, such as text content for the text resource and a resource cover for the video resource, and the other types of information templates and the types thereof are not described in detail any more.
As another exemplary embodiment, the management client may record description information for the custom resource information in the information template in case of receiving the description information, thereby constructing the custom information template. The description information may be entered or specified by a manager, or may be sent by other devices. Moreover, the custom resource information may correspond to any type of resource, and correspondingly, the created custom information template is an information template corresponding to the type of resource, where the recorded description information is used to describe the resource information of the type of resource. For example, the custom information may include a two-dimensional code link in a picture, a video subtitle in a video, or the like, or in the case that the target resource has already been classified, the custom information may also be a classification result obtained by classifying the target resource last time, or remark information in the classification process, and is not described again. By constructing the custom information template, managers can specify custom information for target resources to be classified when creating classification tasks, and then the execution client can acquire and display the custom information, so that resource information of the target resources can be configured or combined in a more flexible manner, and the classification accuracy of the target resources by users can be improved.
After the information template is constructed, the management client may issue the information template to each execution client for use, and certainly, in order to achieve consistency of the information templates between different execution clients corresponding to different management clients, the management client may also upload the information template to the server, and the server issues the information template to other execution clients for use.
After obtaining the information template, the execution client may store the information template locally for invocation when receiving the resource classification task. In addition, the management client can generate a mapping relation between the information template and the resource type according to the constructed information template, and sends the mapping relation to the execution client; or, the executing client may establish and maintain a mapping relationship between each information template stored locally and the corresponding resource type, so that after the target resource type of the target resource is determined, the target information template matching the target resource type may be found according to the mapping relationship. For example, the correspondence relationship may be as shown in table 1 below.
TABLE 1
In another embodiment, the executing client, the server or other devices may also construct an information template and establish a corresponding mapping relationship according to the above step 302 and 304, and then store the information template and the mapping relationship in the server, so that the executing client may request the server to obtain a target information template matching the target resource type after determining the target resource type; or the information template and the mapping relation may be issued to an execution client, so that after the execution client determines the target resource type, the execution client may determine a target information template matching the target resource type according to the locally maintained correspondence relation.
To this end, information templates corresponding to the respective resource types are created in advance through steps 302 and 304, and mapping relationships corresponding to the respective information templates are generated. The following step 306-318 describes the classification process performed by the client for a target resource in detail.
In this embodiment, the target resource to be classified corresponds to a classification task to be executed, for example, for a target resource of a picture type, one picture to be classified may belong to a single classification task, or a picture set composed of a plurality of pictures to be classified may belong to a composite classification task, or a plurality of video frame images in a segment of recorded video may belong to a composite classification task, and the like. The specific generation and distribution manner of any classification task may be flexibly set according to actual resource classification requirements, which is not limited in the embodiments of the present disclosure.
For example, a manager may generate classification tasks for a plurality of resources through a management client, and distribute each classification task to at least one execution client managed by the management client through a server. Correspondingly, after any execution client receives the classification task, the resource information of the resource corresponding to the classification task can be obtained through the technical scheme of the embodiment of the disclosure, and the classification of the target resource is realized by showing the resource information to the user or using the resource information as the input data of the resource classification model. The following steps illustrate the classification process for any resource classification task.
In this embodiment, to reduce the bandwidth occupation between the devices, the task allocation process may be performed with a target resource identifier of the target resource, that is, the execution client receives the target resource identifier (such as a picture number, a video ID, and the like) of the target resource, instead of the real target resource. Of course, the target resource may also be used, and the embodiment of the present disclosure does not limit this.
And 308, the execution client identifies the target resource type of the target resource according to the target resource identifier.
In an embodiment, the target resource identifier may be a type field corresponding to the resource type, and at this time, the execution client may extract the type field of the target resource identifier and determine the target resource type of the target resource according to a preset corresponding relationship between the type field and the resource type, so that the server only needs to provide the target resource identifier to the execution client to complete task allocation, thereby effectively reducing resource transmission amount and helping to avoid network congestion. For example, when the management client allocates the resource classification task, the management client may allocate a corresponding resource identifier to any resource according to the resource type, for example, the first two bits of the resource identifier of the text resource are set to "wr", the first two bits of the resource identifier of the picture resource are set to "ph", and the like. Correspondingly, if the target resource identifier of the target resource is "wr 123456", it indicates that the target resource type of the target resource is a text type, and if the target resource identifier of the target resource is "ph 234567", it indicates that the target resource type of the target resource is a picture type. Or, under the condition that the target resource identifier is a name with a suffix of the resource file, a suffix field of the target resource identifier may be used as the type field, and at this time, if the target resource identifier of the target resource is "123456. txt", the suffix field ". txt" therein indicates that the target resource type of the target resource is a text type; if the target asset identification of the target asset is "123456. mp 4", the suffix field ". mp 4" therein indicates that the target asset type of the target asset is a video type. At this time, the video type of the target resource may be further determined to be a recorded video or a live video according to other information corresponding to the target resource identifier, and the specific process is not repeated.
In another embodiment, the management client or the server may provide resource type information indicating a target resource type to the execution client in association with the target resource identifier, and accordingly, the execution client may determine the target resource type of the target resource according to the resource type information. At the moment, the execution client determines the target resource type of the target resource directly through the resource type information provided by the server, so that the processing flow of the execution client is simplified.
In step 310, the execution client determines a target information template matching the target resource type according to the mapping relationship.
Because the mapping relationship exists between each information template and the corresponding resource type, the execution client can determine the target information template matched with the target resource type according to the mapping relationship.
For example, in a case that the server maintains the mapping relationship, the execution client may send a template determination request including the target resource type to the server, so that the server may extract the target resource type from the received request, then query a target information template matching the target resource type according to the correspondence relationship, and return the target information template or description information for the target resource information recorded in the target information template to the execution client. Of course, under the condition that the mapping relationship is maintained in the management server, the execution client may request the management client to query the target information module, and obtain the description information of the target resource information returned after the management client queries. Or, under the condition that the execution client locally maintains the corresponding relationship, the execution client may also directly query a target information template matched with the target resource type according to the corresponding relationship after determining the target resource type, so as to quickly determine the target information template.
In step 312, the execution client obtains target resource information corresponding to the target resource described by the target information template.
And the execution client further acquires the target resource information described by the description information after receiving the description information returned by the server or after receiving or determining the target information template and extracting the description information from the target information template. For example, the execution client is associated with a resource information base, and the resource information base includes resource information corresponding to a large amount of resources (which can be updated in real time), so that the execution client can find all resource information corresponding to a target resource in the resource information base according to a resource identifier of the target resource, use the resource information as alternative resource information, and then select the target resource information described by the information template from the alternative resource information. Or, in order to reduce the workload of the execution client and fully exert the resource management function of the server, the execution client may also provide the description information included in the information template to the server, so that the server obtains the corresponding target resource information according to the description information and returns the target resource information to the execution client.
For example, for a text resource, the corresponding target resource information may include information such as text content and keywords in the text; for the picture resource, the corresponding target resource information may include information such as the picture, the picture publishing time, the picture publishing account number, and the like; for the recorded video resource, the corresponding target resource information may include information such as the recorded video, a video title, a video cover, a video playing amount, and a video praise number; for live video resources, corresponding target resource information can include information such as the live video, a live cover, a live screenshot and the like; for a composite resource, the corresponding target resource information may include a combination of resource information corresponding to the above various types of target resources, and the like.
As can be seen, the description information recorded in the target information template is information for describing target resource information, and can be used for describing target resource information that needs to be acquired by the execution client; the target resource information is the specific information content corresponding to the target resource, which is acquired by the execution client, that is, the information content actually displayed to the user. For example, suppose the text content of the text-type target resource is "win a total of 8 subspecies, which is 26-28 cm long, 42-46 cm wide and 55-80 g heavy. The crown of the pinna at the top of the head is long and wide and is in a fan shape, if the corresponding information template contains the description information of text keywords, the execution client can correspondingly obtain the text keywords such as 'win', 'feather crown' and 'fan shape', and the text keywords are the display content of the execution client.
And step 314, the execution client displays the target resource identifier, the target resource information and the candidate classification label to be selected.
In an embodiment, the execution client locally stores alternative classification tags of various types of resources, and these alternative classification tags may be pre-specified by a manager and distributed to the execution client, or may also be alternative classification tags default to the system (for example, pre-stored in a local execution file of the execution client, or acquired by the execution client when executing a historical classification task). Or, the execution client may also obtain an alternative classification tag from the server when receiving the resource identifier, where the alternative classification tag may be set by a manager according to the resource type of the target resource when creating the resource classification task. Of course, under the condition that the administrator does not set the above alternative classification tag, the execution client may select a default classification tag as the above alternative classification tag. Wherein, above-mentioned categorised label can be food, motion, news, science and technology, recreation, violence, bloody smell, pornography etc. and further, above-mentioned label can regard as one-level label, and arbitrary one-level label can also be corresponding to at least one more subdivided second grade label, tertiary label etc.. For example, the sports tags as the primary tags may correspond to secondary tags such as basketball, football, track and field, so as to achieve more fine-grained accurate classification of the target resources.
In one embodiment, the execution client may display the target resource identifier, the target resource information, and the candidate classification tag to be selected in a resource classification interface for a user to view.
Referring to a schematic diagram of a display effect of a resource classification interface displayed by an execution client shown in fig. 4, the resource classification interface may include a task information display area 401, a resource display area 402, a resource information display area 403, and a marking area 404. The task information display area 401 may display the number of tasks that are not completed currently, so that the user can grasp the current task execution progress in time; and information such as the resource type, the resource identification and the like of the currently displayed target resource can be displayed, so that the user can know the resource type of the target resource. Target resources, such as target pictures, target videos, and the like, obtained according to corresponding links may be displayed in the resource display area 402; in addition, under the condition that the target video is a recorded video or a live video, the target video can be played in the resource display area 402, so that a user can conveniently and quickly enter a state of watching the target video, and the efficiency of classifying video resources is improved. For the recorded video shown in fig. 4, the resource information display area 403 displays the corresponding resource information such as the video title, the playing amount, and the like. At least one alternative classification label, such as food, sports, news, science, and technology, games, may be displayed in the marking area 404, where each alternative classification label may be a triggerable control, and a user may perform a label selection operation, such as clicking, on any alternative classification label.
Based on the target resource information displayed by the execution client, the user can judge the classification label corresponding to the target resource based on personal cognition of the user, and further perform label selection operation aiming at the corresponding alternative label.
As shown in fig. 4, when the user determines that the video content of the recorded video resource displayed in the resource display area 402 is related to "riding", the user may determine that the classification label of the video is "motion", and may click the alternative classification label of "motion" through a mouse. Correspondingly, after the execution client detects the click operation, the alternative classification label selected by the user can be allocated to the target resource identifier, that is, an association relation is established between the alternative classification label selected by the user and the target resource identifier, or the alternative classification label selected by the user and the target resource identifier are added to a preset label record table, so that the target video is classified.
The final marking result may be the association relationship or the label record table, and the execution client may store the marking result in a local storage space and/or upload the marking result to the server, so that other devices may perform corresponding processing on the target resource according to the marking result.
At this point, the resource classification process for the target resource is completed.
Correspondingly to the embodiment of the method for acquiring resource information, the present disclosure also provides an embodiment of an apparatus for acquiring resource information.
Fig. 5 is a schematic block diagram illustrating an apparatus for acquiring resource information according to an embodiment of the present disclosure. The resource information acquiring apparatus shown in this embodiment may be applied to resource classification applications, where the applications are applied to terminals, and the terminals include but are not limited to mobile phones, tablet computers, wearable devices, personal computers, and other electronic devices. The video playing application may be an application program installed in the terminal, or may be a web application integrated in a browser.
As shown in fig. 5, the acquiring means of the resource information may include:
an identifier obtaining module 501, configured to extract a resource identifier of a target resource to be classified from a received resource classification task, and identify a resource type of the target resource according to the resource identifier;
a template determination module 502 configured to determine an information template matching the resource type;
an information obtaining module 503, configured to obtain resource information described by the information template, where the resource information is used to classify the target resource.
As for the resource information acquiring apparatus shown in fig. 5, optionally, one or more other modules may also be included. See fig. 6 for a schematic block diagram of another resource information acquisition apparatus. As shown in fig. 6:
optionally, the identity obtaining module 501 is further configured to:
and extracting the type field of the resource identifier, and determining the resource type of the target resource according to the preset corresponding relation between the type field and the resource type.
Optionally, the information template includes a general information template, and the apparatus further includes:
a general information determining module 604, configured to determine general resource information corresponding to each resource type according to historical classification data corresponding to different types of resources;
a universal template constructing module 605, configured to record description information of the universal resource information corresponding to each resource type in the information template, and construct a universal information template corresponding to each resource type.
Optionally, the general information template includes at least one of:
a text information template, a picture information template, a video information template and a composite information template; the composite information template is used for describing resource information of at least two types of resources.
Optionally, the method further includes:
the description information extraction module 606 is configured to, in a case where a custom configuration instruction issued for any one of the general information templates is received, extract description information from the custom configuration instruction;
a description information adding module 607 configured to add the description information in any one of the generic information templates, the description information being used for describing resource information of at least one type of resource.
Optionally, the information template includes a custom information template, and the apparatus further includes:
a custom information receiving module 608 configured to receive description information of custom resource information, the custom resource information corresponding to at least one type of resource;
a custom information template building module 609 configured to record the description information in the information template, and build the custom information template.
Optionally, the information obtaining module 503 is further configured to:
determining candidate resource information corresponding to the resource identifier in a resource information base;
and selecting the resource information described by the information template from the candidate resource information.
Optionally, the method further includes:
a model classification module 610 configured to model-classify the resource information into a pre-trained resource classification model, and obtain a classification result of the resource classification model after classifying the target resource using the resource information; or,
a display classification module 611 configured to display the resource information, and determine a classification result of the target resource according to the classification operation when the classification operation for the target resource is detected.
Optionally, the presentation classification module 611 is further configured to:
and displaying the resource information according to the preset display attribute recorded in the information template.
Optionally, a label presenting module 612 configured to present candidate classification labels corresponding to the resource identifiers is further included;
the presentation classification module 611 is further configured to: and under the condition that a label selecting operation aiming at least one candidate classification label is detected, determining the resource type corresponding to the selected candidate classification label as the resource type of the target resource.
An embodiment of the present disclosure also provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for acquiring resource information according to any of the above embodiments.
Embodiments of the present disclosure also provide a storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method for acquiring resource information according to any of the above embodiments.
Embodiments of the present disclosure further provide a computer program product, which includes a computer program/instruction, and when executed by a processor, the computer program/instruction implements the method for acquiring resource information according to any of the above embodiments.
Fig. 7 is a schematic block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, electronic device 700 may include one or more of the following components: processing component 702, memory 704, power component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 718.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the above-described resource information acquisition method. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the electronic device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 704 or transmitted via the communication component 718. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 may detect an open/closed state of the electronic device 700, the relative positioning of components, such as a display and keypad of the electronic device 700, the sensor assembly 714 may also detect a change in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, orientation or acceleration/deceleration of the electronic device 700, and a change in the temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The image capture component 716 can be configured to capture image data of a subject to form an image of the subject and can perform necessary processing on the image. The Image capture assembly 716 may include a camera module, in which an Image Sensor (Sensor) senses light from a subject through a lens, and provides the obtained light sensing data to an Image Signal Processor (ISP), which generates an Image corresponding to the subject according to the light sensing data. The image sensor may be a CMOS sensor or a CCD sensor, and may also be an infrared sensor, a depth sensor, or the like; the camera module may be built in the electronic device 700, or may be an external module of the electronic device 700; the ISP may be built in the camera module or may be externally hung on the electronic device (not in the camera module).
The communication component 718 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 718 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 718 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components, and is configured to perform the above-mentioned resource information obtaining method.
In an embodiment of the present disclosure, a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which are executable by the processor 720 of the electronic device 700 to perform the above-mentioned resource information obtaining method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
It is noted that, in the present disclosure, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method and apparatus provided by the embodiments of the present disclosure are described in detail above, and the principles and embodiments of the present disclosure are explained herein by applying specific examples, and the above description of the embodiments is only used to help understanding the method and core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.
Claims (10)
1. A method for acquiring resource information is characterized by comprising the following steps:
extracting a resource identifier of a target resource to be classified from a received resource classification task, and identifying the resource type of the target resource according to the resource identifier;
determining an information template matching the resource type;
and acquiring resource information described by the information template, wherein the resource information is used for classifying the target resources.
2. The method of claim 1, wherein the identifying the resource type of the target resource according to the resource identifier comprises:
and extracting the type field of the resource identifier, and determining the resource type of the target resource according to the preset corresponding relation between the type field and the resource type.
3. The method of claim 1, wherein the information template comprises a generic information template, the method further comprising:
determining general resource information corresponding to each resource type according to historical classification data corresponding to different types of resources;
and recording the description information of the universal resource information corresponding to each resource type in the information template, and constructing the universal information template corresponding to each resource type.
4. The method of claim 3, wherein the generic information template comprises at least one of:
a text information template, a picture information template, a video information template and a composite information template; the composite information template is used for describing resource information of at least two types of resources.
5. The method of claim 3, further comprising:
under the condition that a user-defined configuration instruction sent by aiming at any one general information template is received, extracting description information from the user-defined configuration instruction;
and adding the description information in any one general information template, wherein the description information is used for describing resource information of at least one type of resource.
6. The method of claim 1, wherein the information template comprises a custom information template, the method further comprising:
receiving description information of custom resource information, wherein the custom resource information corresponds to at least one type of resource;
and recording the description information in the information template, and constructing the self-defined information template.
7. An apparatus for acquiring resource information, comprising:
the identification acquisition module is configured to extract a resource identification of a target resource to be classified from a received resource classification task and identify the resource type of the target resource according to the resource identification;
a template determination module configured to determine an information template matching the resource type;
and the information acquisition module is configured to acquire the resource information described by the information template, and the resource information is used for classifying the target resources.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of acquiring resource information according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of acquiring resource information of any one of claims 1 to 6.
10. A computer program product comprising a computer program and/or instructions, characterized in that the computer program and/or instructions, when executed by a processor, implement the method for acquiring resource information of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110296792.1A CN113094523A (en) | 2021-03-19 | 2021-03-19 | Resource information acquisition method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110296792.1A CN113094523A (en) | 2021-03-19 | 2021-03-19 | Resource information acquisition method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113094523A true CN113094523A (en) | 2021-07-09 |
Family
ID=76668512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110296792.1A Pending CN113094523A (en) | 2021-03-19 | 2021-03-19 | Resource information acquisition method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113094523A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114339442A (en) * | 2021-12-31 | 2022-04-12 | 北京达佳互联信息技术有限公司 | Multimedia channel configuration method and device, electronic equipment and storage medium |
CN114443163A (en) * | 2022-01-11 | 2022-05-06 | 北京达佳互联信息技术有限公司 | Resource attribute configuration method and device, electronic equipment and storage medium |
CN114779999A (en) * | 2022-04-27 | 2022-07-22 | 北京达佳互联信息技术有限公司 | Information display method and device, electronic equipment and storage medium |
CN117171432A (en) * | 2023-08-22 | 2023-12-05 | 广东中山网传媒信息科技有限公司 | Data pushing method of client APP |
CN118170994A (en) * | 2024-05-15 | 2024-06-11 | 北京搜狐互联网信息服务有限公司 | Resource data processing method and device, storage medium and electronic equipment |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127776A (en) * | 2007-09-29 | 2008-02-20 | 中国电信股份有限公司 | System, method and device for multimedia information collection, management and service |
CN101420356A (en) * | 2008-05-30 | 2009-04-29 | 北京天腾时空信息科技有限公司 | Network content classified processing method and apparatus |
CN102955789A (en) * | 2011-08-22 | 2013-03-06 | 幻音科技(深圳)有限公司 | Resource display method and resource display system |
CN104123316A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Resource collection method, device and facility |
CN105450677A (en) * | 2014-06-30 | 2016-03-30 | 北京金山安全软件有限公司 | Data processing method, device and system |
CN106056350A (en) * | 2016-05-20 | 2016-10-26 | 腾讯科技(深圳)有限公司 | E-mail information extraction method, device and system |
CN106598945A (en) * | 2016-12-02 | 2017-04-26 | 北京小米移动软件有限公司 | Template inspection method and device |
CN109451147A (en) * | 2018-10-15 | 2019-03-08 | 麒麟合盛网络技术股份有限公司 | A kind of information displaying method and device |
CN110351183A (en) * | 2019-06-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | Resource collecting method and device in instant messaging |
CN111753727A (en) * | 2020-06-24 | 2020-10-09 | 北京百度网讯科技有限公司 | Method, device, equipment and readable storage medium for extracting structured information |
CN112015928A (en) * | 2020-08-26 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Information extraction method and device of multimedia resource, electronic equipment and storage medium |
CN112272302A (en) * | 2020-09-17 | 2021-01-26 | 北京达佳互联信息技术有限公司 | Multimedia resource display method, device, system and storage medium |
-
2021
- 2021-03-19 CN CN202110296792.1A patent/CN113094523A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127776A (en) * | 2007-09-29 | 2008-02-20 | 中国电信股份有限公司 | System, method and device for multimedia information collection, management and service |
CN101420356A (en) * | 2008-05-30 | 2009-04-29 | 北京天腾时空信息科技有限公司 | Network content classified processing method and apparatus |
CN102955789A (en) * | 2011-08-22 | 2013-03-06 | 幻音科技(深圳)有限公司 | Resource display method and resource display system |
CN104123316A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Resource collection method, device and facility |
CN105450677A (en) * | 2014-06-30 | 2016-03-30 | 北京金山安全软件有限公司 | Data processing method, device and system |
CN106056350A (en) * | 2016-05-20 | 2016-10-26 | 腾讯科技(深圳)有限公司 | E-mail information extraction method, device and system |
CN106598945A (en) * | 2016-12-02 | 2017-04-26 | 北京小米移动软件有限公司 | Template inspection method and device |
CN109451147A (en) * | 2018-10-15 | 2019-03-08 | 麒麟合盛网络技术股份有限公司 | A kind of information displaying method and device |
CN110351183A (en) * | 2019-06-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | Resource collecting method and device in instant messaging |
CN111753727A (en) * | 2020-06-24 | 2020-10-09 | 北京百度网讯科技有限公司 | Method, device, equipment and readable storage medium for extracting structured information |
CN112015928A (en) * | 2020-08-26 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Information extraction method and device of multimedia resource, electronic equipment and storage medium |
CN112272302A (en) * | 2020-09-17 | 2021-01-26 | 北京达佳互联信息技术有限公司 | Multimedia resource display method, device, system and storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114339442A (en) * | 2021-12-31 | 2022-04-12 | 北京达佳互联信息技术有限公司 | Multimedia channel configuration method and device, electronic equipment and storage medium |
CN114339442B (en) * | 2021-12-31 | 2023-11-07 | 北京达佳互联信息技术有限公司 | Method and device for configuring multimedia channels, electronic equipment and storage medium |
CN114443163A (en) * | 2022-01-11 | 2022-05-06 | 北京达佳互联信息技术有限公司 | Resource attribute configuration method and device, electronic equipment and storage medium |
CN114779999A (en) * | 2022-04-27 | 2022-07-22 | 北京达佳互联信息技术有限公司 | Information display method and device, electronic equipment and storage medium |
CN117171432A (en) * | 2023-08-22 | 2023-12-05 | 广东中山网传媒信息科技有限公司 | Data pushing method of client APP |
CN117171432B (en) * | 2023-08-22 | 2024-03-29 | 广东中山网传媒信息科技有限公司 | Data pushing method of client APP |
CN118170994A (en) * | 2024-05-15 | 2024-06-11 | 北京搜狐互联网信息服务有限公司 | Resource data processing method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113094523A (en) | Resource information acquisition method and device, electronic equipment and storage medium | |
US12058385B2 (en) | Livestreaming processing method and apparatus, electronic device, and computer-readable storage medium | |
KR102222325B1 (en) | Routing messages by message parameter | |
KR102071579B1 (en) | Method for providing services using screen mirroring and apparatus thereof | |
CN109474844B (en) | Video information processing method and device and computer equipment | |
CN111541936A (en) | Video and image processing method and device, electronic equipment and storage medium | |
CN111930994A (en) | Video editing processing method and device, electronic equipment and storage medium | |
CN111638832A (en) | Information display method, device, system, electronic equipment and storage medium | |
CN107797717B (en) | Push method, display method, client device and data processing system | |
CN110069738B (en) | Information processing method and device, terminal equipment and server | |
CN113163230A (en) | Video message generation method and device, electronic equipment and storage medium | |
CN112188267B (en) | Video playing method, device and equipment and computer storage medium | |
CN111158924A (en) | Content sharing method and device, electronic equipment and readable storage medium | |
CN114339375A (en) | Video playing method, method for generating video directory and related product | |
CN113986574A (en) | Comment content generation method and device, electronic equipment and storage medium | |
CN109948043A (en) | A kind of information recommendation method and device | |
CN107122456A (en) | The method and apparatus for showing video search result | |
CN113259754A (en) | Video generation method and device, electronic equipment and storage medium | |
KR102040392B1 (en) | Method for providing augmented reality contents service based on cloud | |
Khan | The rise of augmented reality browsers: Trends, challenges and opportunities | |
US10572564B2 (en) | Information-link system, information-link program, and method of operating the information-link system | |
CN112533032B (en) | Video data processing method and device and storage medium | |
CN103891253A (en) | Showing method, system and device for social network carrier | |
CN113792178A (en) | Song generation method and device, electronic equipment and storage medium | |
CN108401191B (en) | Channel configuration method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |