CN114297245A - Image tag processing method, image tag processing device, storage medium, processor, and electronic device - Google Patents

Image tag processing method, image tag processing device, storage medium, processor, and electronic device Download PDF

Info

Publication number
CN114297245A
CN114297245A CN202111451523.4A CN202111451523A CN114297245A CN 114297245 A CN114297245 A CN 114297245A CN 202111451523 A CN202111451523 A CN 202111451523A CN 114297245 A CN114297245 A CN 114297245A
Authority
CN
China
Prior art keywords
tag
portrait
label
configuration information
distributed computing
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
Application number
CN202111451523.4A
Other languages
Chinese (zh)
Inventor
曹鼎
陈新河
何家荣
黎宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111451523.4A priority Critical patent/CN114297245A/en
Publication of CN114297245A publication Critical patent/CN114297245A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an image tag processing method and device, a storage medium, a processor and an electronic device. Wherein, the method comprises the following steps: generating tag configuration information, wherein the tag configuration information is used for performing initialization configuration on an original portrait tag, and the original portrait tag is obtained through a user-defined new adding or modifying mode; generating a distributed computing task to be executed based on the tag configuration information, wherein the distributed computing task comprises: a plurality of database query statements obtained by converting the tag configuration information; uploading the distributed computing task to a first server, wherein the first server is used for performing label computation on the distributed computing task to generate a target portrait label. The invention solves the technical problem of low efficiency of generating accurate user portrait labels in the related technology.

Description

Image tag processing method, image tag processing device, storage medium, processor, and electronic device
Technical Field
The invention relates to the field of computers, in particular to an image label processing method and device, a storage medium, a processor and an electronic device.
Background
The user portrait label is an effective carrier for depicting character features, characters, attributes and preferences in the electronic game, and an effective means can be provided for the fine operation of a game enterprise by combining the real user portrait of the user and the behavior features in the game in the daily operation activities, intelligent recommendation and marketing promotion activities of game products.
In the existing scheme, a game development team is mainly relied on to develop the game according to needs by utilizing a big data processing technology, so that a user portrait label is obtained, wherein the user portrait label mainly comprises an attribute label and various index labels of a user. For example, a user profile tag may include: player gender, player age, player rating, accumulated online duration, 7 days login days, 3 days engagement play count, login session preference, last login time, etc. The user portrait label mainly has the following two characteristics:
(1) richness, in the game field, different dimensionalities of user portrait labels under game roles, game accounts and full product accounts are covered, user behavior characteristics are described in an all-round mode, and accurate touch is achieved.
(2) The method has high efficiency, enables the business task to perform a rapid test on the user portrait label as required in operation promotion activities, and realizes the real-time definition and real-time use of the user portrait label.
However, when a game development team develops a user portrait label on demand by using a big data processing technology, the generation cycle is long, the maintenance cost is high, and the difficulty of generating an accurate user portrait label is increasing as the amount of game data is accumulated.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a portrait label processing method and device, a storage medium, a processor and an electronic device, and at least solves the technical problem of low efficiency of generating an accurate user portrait label in the related art.
According to an embodiment of the present invention, a portrait label processing method is provided, including:
generating tag configuration information, wherein the tag configuration information is used for performing initialization configuration on an original portrait tag, and the original portrait tag is obtained through a user-defined new adding or modifying mode; generating a distributed computing task to be executed based on the tag configuration information, wherein the distributed computing task comprises: a plurality of database query statements obtained by converting the tag configuration information; uploading the distributed computing task to a first server, wherein the first server is used for performing label computation on the distributed computing task to generate a target portrait label.
Optionally, the generating tag configuration information includes: obtaining a representation tag data sample, wherein the representation tag data sample is used to determine configuration content of an original representation tag, the configuration content comprising: a plurality of configuration items; tag configuration information is generated in accordance with the portrait tag data sample.
Optionally, the plurality of configuration items comprise: portrait tag body configuration items; an portrait tag data acquisition mode configuration item; a portrait label base information configuration item; the value and the caliber configuration item of the portrait label; portrait tag time period allocation; and configuring the log filtering condition corresponding to the portrait label.
Optionally, the portrait tag processing method further includes: performing repeatability check on a first label identification corresponding to the label configuration information; and when determining that the identifier which is repeated with the first tag identifier does not exist, transmitting and storing the tag configuration information to a second server, wherein the second server is used for allocating a second tag identifier to the tag configuration information based on the first tag identifier and setting the tag state of the second tag identifier to be an initialization state.
Optionally, generating the distributed computing task based on the tag configuration information includes: initiating a query request to a second server, wherein the query request is used for detecting whether the tag state of a second tag identifier in the second server is in an initialization state; when the label state with the second label identification is determined to be in an initialization state, acquiring label configuration information from a second server by using the second label identification; carrying out validity and integrity check on the tag configuration information; when the tag configuration information passes the validity and integrity check, converting the configuration content of each configuration item in a plurality of configuration items contained in the tag configuration information into a corresponding database query statement; and splicing the plurality of database query sentences obtained by conversion to generate a distributed computing task.
Optionally, the portrait tag processing method further includes: and when the tag configuration information passes the validity and integrity check and a second tag identification corresponding to the tag configuration information is inquired in a preset storage area, generating a target portrait tag by using tag data prestored in the preset storage area.
According to an embodiment of the present invention, there is provided another portrait label processing method, including:
receiving a distributed computing task to be executed from a client, wherein the distributed computing task is generated based on tag configuration information, and the distributed computing task comprises: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, and the original portrait tags are obtained through a user-defined new adding or modifying mode; and executing label calculation on the distributed calculation task to generate a target portrait label.
Optionally, performing tag computation on the distributed computing task, and generating a target portrait tag includes: acquiring a target game log by utilizing a plurality of database query statements contained in the distributed computing task, and analyzing the target game log to obtain an analysis result; filtering the analysis result according to the filtering conditions set in the plurality of database query sentences to obtain a filtering result; and performing aggregation calculation based on the filtering result to generate a target portrait label.
Optionally, the portrait tag processing method further includes: detecting whether the execution time length of the distributed computing task exceeds a preset time length or not; and when the execution time length exceeds the preset time length, stopping executing the distributed computing task.
Optionally, the portrait tag processing method further includes: acquiring the portrait label main body type of a target portrait label; when the portrait tag main body type is the role main body type, establishing an association relationship between at least one role identification corresponding to the target portrait tag and the latest change information, wherein the latest change information comprises: the latest changed server information and the latest changed account information.
Optionally, the portrait tag processing method further includes: acquiring the portrait label main body type of a target portrait label; and when the portrait label main body type is the account main body type, converting the single account information corresponding to the target portrait label into the global account information.
Optionally, the portrait tag processing method further includes: and carrying out tag data quantity verification and validity verification on the target portrait tag, wherein the tag data quantity verification is used for determining the uniqueness of the target portrait tag, and the validity verification is used for determining that the target portrait tag meets the preset conditions.
Optionally, the portrait tag processing method further includes: acquiring a distribution index corresponding to the target portrait label, wherein the distribution index is used for determining a distribution display mode of the target portrait label; and displaying the target portrait label in a visual way according to the distribution index.
Optionally, the portrait tag processing method further includes: obtaining a portrait label to be updated which meets query conditions from a target portrait label by using a game product type and a portrait label main body type, wherein the query conditions comprise: time conditions, state conditions; and updating the tag configuration information corresponding to the portrait tag to be updated to obtain the updated portrait tag.
According to an embodiment of the present invention, there is provided a portrait label processing apparatus including:
the first generation module is used for generating tag configuration information, wherein the tag configuration information is used for carrying out initialization configuration on an original portrait tag, and the original portrait tag is obtained through a user-defined new adding or modifying mode; a second generation module, configured to generate a distributed computing task to be executed based on the tag configuration information, where the distributed computing task includes: a plurality of database query statements obtained by converting the tag configuration information; and the uploading module is used for uploading the distributed computing task to a first server, wherein the first server is used for executing label computation on the distributed computing task to generate a target portrait label.
According to an embodiment of the present invention, there is provided another portrait label processing apparatus including:
the receiving module is used for receiving distributed computing tasks to be executed from the client, wherein the distributed computing tasks are generated based on the label configuration information, and the distributed computing tasks comprise: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, and the original portrait tags are obtained through a user-defined new adding or modifying mode; and the processing module is used for executing label calculation on the distributed calculation task and generating a target portrait label.
According to an embodiment of the present invention, there is further provided a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to execute the portrait label processing method in any one of the above methods when executed.
There is further provided, according to an embodiment of the present invention, a processor configured to execute a program, where the program is configured to execute the portrait tag processing method in any one of the above descriptions when executed.
There is further provided, according to an embodiment of the present invention, an electronic apparatus including a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the portrait label processing method in any one of the above.
In the embodiment of the invention, tag configuration information is generated and used for performing initialization configuration on an original portrait tag, the original portrait tag is obtained through a user-defined new adding or modifying mode, and then a distributed computing task to be executed is generated based on the tag configuration information, and the distributed computing task comprises the following steps: the method comprises the steps of converting label configuration information into a plurality of database query statements, uploading distributed computing tasks to a first server, and executing label computing on the distributed computing tasks by the first server to generate target portrait labels.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of a hardware configuration of a mobile terminal of a portrait tag processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method for processing a portrait tag according to one embodiment of the present invention;
FIG. 3 is a pictorial label configuration interface diagram in accordance with one embodiment of the present invention;
FIG. 4 is a flow diagram of another portrait tag processing method according to one embodiment of the present invention;
FIG. 5 is a pictorial label display interface diagram in accordance with one embodiment of the present invention;
FIG. 6 is a diagram illustrating a process for processing a portrait label according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating still another process for processing portrait tags, according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating still another process for processing portrait tags, according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating still another process for processing portrait tags according to an embodiment of the present invention
FIG. 10 is a block diagram of an image tag processing apparatus according to an embodiment of the present invention;
FIG. 11 is a block diagram of another image tag processing apparatus according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above 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 invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the existing scheme, a game user portrait label is mainly generated in two modes of technology development on demand and data warehouse tool (Hive) query downloading:
the technology development process as required is as follows: the method comprises the steps that a service user side such as game product operation gathers proposed requirements to a planning side, the planning side arranges all portrait tags to calculate the aperture, then technical personnel develop codes according to the requirements, the user portrait tags are stored after development is finished, and the user portrait tags are verified by testing personnel and then used online. One of the defects of the mode is that the use link is required to be long, the development period is long from the service requirement is put forward to the development and the test on-line, and the timeliness requirement of the actual service cannot be met; secondly, the research and development and maintenance costs are high: under the condition of diversification of enterprise products, a large amount of research and development personnel are required to invest in generation of user portrait labels of different products, different dimensions and different types.
Wherein, the Hive inquiry downloading process is as follows: a simple Structured Query Language (SQL) is compiled by using a big data platform Hive, a game log file is queried by using the SQL code, a simple user portrait label is generated, and a service person uses the SQL code after manually downloading. One of the drawbacks of this approach is the lack of a uniform standard, uniform management: when a service person acquires a user portrait label through an SQL code, the service person mainly depends on the code capability of the service person, and has no unified standard, so that the quality of the portrait label acquired from a game log is difficult to control; the second is that the data visualization ability is weak and the inheritance reusability is low.
With diversification of products of various large game enterprises and increasing of game users, game playing methods and contents are gradually enriched, data amount accumulated in game products is gradually expanded and exploded, and a user portrait label with richness and high efficiency is difficult to obtain by using the existing scheme.
In accordance with one embodiment of the present invention, there is provided an embodiment of a portrait label processing method, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
The portrait label processing method in one embodiment of the present invention may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the portrait label processing method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and a client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the portrait label processing method are completed on a cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present invention provides a portrait label processing method, where a graphical user interface is provided by a first terminal device, where the first terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system.
Taking a Mobile terminal operating in a local terminal device as an example, the Mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet device (Mobile Internet Devices, abbreviated as MID), a PAD, a game console, etc. Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a portrait tag processing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input/output device 108, and a display device 110 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application, such as a computer program corresponding to the image tag processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the image tag processing method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The inputs in the input output Device 108 may come from a plurality of Human Interface Devices (HIDs). For example: keyboard and mouse, game pad, other special game controller (such as steering wheel, fishing rod, dance mat, remote controller, etc.). Some human interface devices may provide output functions in addition to input functions, such as: force feedback and vibration of the gamepad, audio output of the controller, etc.
The display device 110 may be, for example, a head-up display (HUD), a touch screen type Liquid Crystal Display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
In the present embodiment, a method for processing a portrait label running on a mobile terminal is provided, and fig. 2 is a flowchart of a method for processing a portrait label according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S20, generating label configuration information, wherein the label configuration information is used for performing initialization configuration on the original portrait label, and the original portrait label is obtained through a user-defined addition or modification mode;
step S21, generating a distributed computing task to be executed based on the tag configuration information, where the distributed computing task includes: a plurality of database query statements obtained by converting the tag configuration information;
and step S22, uploading the distributed computing task to a first server, wherein the first server is used for performing label computation on the distributed computing task to generate a target portrait label.
Based on the steps S20 to S22, tag configuration information is generated, where the tag configuration information is used to perform initialization configuration on an original portrait tag, the original portrait tag is obtained by a custom addition or modification method, and then a distributed computing task to be executed is generated based on the tag configuration information, where the distributed computing task includes: the method comprises the steps of converting label configuration information into a plurality of database query statements, uploading distributed computing tasks to a first server, and executing label computing on the distributed computing tasks by the first server to generate target portrait labels.
The image label processing method of this embodiment is further described below.
As an alternative implementation, in step S20, generating the tag configuration information includes:
step S201, obtaining a portrait tag data sample, wherein the portrait tag data sample is used for determining configuration content of an original portrait tag, and the configuration content includes: a plurality of configuration items;
optionally, the user queries the game log according to a preset log format and log field requirements to obtain a portrait tag data sample, where the portrait tag data sample may include a role identification field, an account identification field, a server field, a date field, and a sample detail field.
Fields contained in the above portrait tag data sample may support json nesting resolution, comma segmentation. Ip _ area indicates that ip _ area information under the primary key ip in the sample detail (source) field in the game log is acquired.
Step S202, label configuration information is generated according to the portrait label data sample.
In the configuration content of the original portrait label, the plurality of configuration items include: portrait tag body configuration items; an portrait tag data acquisition mode configuration item; a portrait label base information configuration item; the value and the caliber configuration item of the portrait label; portrait tag time period allocation; and configuring the log filtering condition corresponding to the portrait label.
The configuration of the original portrait label is further described below in conjunction with FIG. 3. Fig. 3 is a schematic diagram of a portrait label configuration interface according to an embodiment of the present invention, and as shown in fig. 3, the portrait label main body configuration items may include a role identifier, an account identifier, and a full account identifier. The portrait label data acquisition mode configuration item can comprise a user-defined mode and an access preset data mode, wherein in the process of acquiring portrait label data in an access preset data mode, the preset data can be portrait label data which is manually developed through codes in advance by a technical team, each portrait label corresponds to one label identifier, portrait label data can be directly acquired from a data storage path corresponding to the label identifier by adopting the access preset data mode, and then repeated operation on the portrait label data is reduced. The portrait label basic information configuration item can comprise basic attribute information such as a belonged product, a belonged catalog, a label name, sensitivity information, a data type and the like, wherein the sensitivity information is used for controlling the authority of the portrait label. The portrait label value caliber configuration item can comprise a database, a data table name, an account number identification field, a role identification field, a server field, a number taking field, a calculation mode and the like, wherein the account number identification field, the role identification field and the server field can be determined from portrait label data samples. The calculation method in the embodiment of the present invention includes, but is not limited to, the following methods: direct value taking, counting, de-duplication counting, minimum value, maximum value, summing, averaging, calculating the number of elements in the value, length, the latest time, the earliest time and the like. The portrait tag time period configuration item may include a date field, a calculation period, wherein the calculation period may be a fixed last preset number of days or a custom date period. In the log filtering condition configuration item corresponding to the portrait label, a user may set and/or combine a field filtering rule by himself/herself, where the field filtering rule in the embodiment of the present invention includes, but is not limited to, the following rules: equal, not equal, greater than, less than, empty, not empty, packet (not packet), within (not packet) ….
By obtaining the portrait label data sample and further determining the configuration content of the label configuration information based on the portrait label data sample, multi-dimensional label configuration information can be flexibly generated for subsequently generating a distributed computing task to be executed.
As an optional implementation manner, the portrait tag processing method further includes the following steps:
step S23, carrying out repeatability check on the first label identification corresponding to the label configuration information;
taking the first tag identifier as an example of the tag name, when the tag name corresponding to the tag configuration information is repeatedly checked, and if the tag name which is repeated with the current tag name is determined to exist, prompt information can be displayed on a user graphical interface of the client, and is used for prompting a user to newly add or modify the current tag name.
And step S24, when it is determined that there is no label that is duplicated with the first label, transmitting and storing the label configuration information to a second server, wherein the second server is configured to assign a second label to the label configuration information based on the first label, and set the label state of the second label to an initialization state.
Continuing to use the first tag identification as the tag name example, when the tag name corresponding to the tag configuration information is repeatedly checked, if it is determined that the tag name which is repeated with the current tag name does not exist, it may be determined that the tag corresponding to the current tag name is unique, that is, the tag corresponding to the first tag identification is unique, and a backend interface is called to transmit the tag configuration information through a network and store the tag configuration information to a second server, where the second server may provide a detection polling service.
Further, the second server assigns a unique second TAG identification, i.e. TAG _ ID, based on the TAG name as TAG configuration information. For example, the second TAG identifier may include information such as a product code number, a primary key, a directory pinyin, a TAG name pinyin, and the like, and the corresponding TAG _ ID format may be: product code number _ primary key _ directory pinyin _ label name pinyin. And setting the tag state of the second tag identifier as an initial state, and displaying the user page state as a tag calculation state, for example, displaying the current page state as a running number.
The first label identification corresponding to the label configuration information is repeatedly checked, when the fact that the identification which is repeated with the first label identification does not exist is determined, the label configuration information is transmitted and stored in the second server, the second label identification is distributed to the label configuration information by the second server based on the first label identification, the label state of the second label identification is set to be an initialization state, and the unique identification can be generated for the label configuration information.
As an alternative embodiment, in step S21, generating the distributed computing task based on the tag configuration information includes:
step S211, an inquiry request is sent to the second server, wherein the inquiry request is used for detecting whether the tag state of the second tag identification in the second server is in an initialization state;
specifically, the multi-process parallel detection polling is performed on the second server based on the query request, that is, the query detection is simultaneously performed on the tag states of the second tag identifications of the multiple tags stored in the second server. For example, when the tag state in which the second tag identifier exists is in the initialization state, the detection result is output.
Step S212, when the label state with the second label identification is in the initialization state, the second label identification is used for obtaining label configuration information from the second server;
step S213, carrying out validity and integrity check on the tag configuration information;
optionally, the performing validity check on the tag configuration information includes: and judging whether the portrait label basic information configuration item included in the label configuration information contains sensitive characters. When the tag configuration information is determined to contain the sensitive characters, changing the tag state of a second tag identification of the tag configuration information from the initialization state to a failure state, and sending a prompt message of validity check failure to a user; and when the tag configuration information is determined not to contain the sensitive characters, changing the tag state of the second tag identification of the tag configuration information from the initialization state to a success state, and sending a prompt message of successful validity check to the user.
Optionally, the integrity checking the tag configuration information includes: and judging whether the portrait label value caliber configuration item included in the label configuration information is complete or not, namely judging whether a database and a data table in the portrait label value caliber configuration item exist or not. When determining that the database and the data table in the tag configuration information do not exist, changing the tag state of a second tag identifier of the tag configuration information from an initialization state to a failure state, and sending a prompt message of failure of integrity check to a user; and when the existence of the database and the data table in the tag configuration information is determined, changing the tag state of the second tag identifier of the tag configuration information from the initialization state to a success state, and sending a prompt message of successful integrity check to the user.
Step S214, when the tag configuration information passes the validity and integrity check, converting the configuration content of each configuration item in a plurality of configuration items contained in the tag configuration information into a corresponding database query statement;
taking the conversion process of the image tag time period configuration item included in the tag configuration information as an example, the date field and the calculation period (fixed period or custom period) in the image tag time period configuration item are converted, so as to generate the corresponding database query statement, i.e. the log tag time Hive SQL statement, such as where date > 20210809'and date < > 20210809'.
Taking the conversion process of the portrait label value caliber configuration item contained in the label configuration information as an example, converting the database and the data table name in the portrait label value caliber configuration item, and generating a corresponding database query statement, for example, g66.loginrole identifies the database of the game role as g66, and the data table name is loginrole; the role identification field and the access field in the portrait label value caliber configuration item are converted, and a corresponding database query statement, such as fn.
Taking the conversion process of the log filter condition configuration item corresponding to the portrait label included in the label configuration information as an example, the filter field in the log filter condition configuration item corresponding to the portrait label is converted, so as to generate corresponding database query statements, such as fn.
And S215, splicing the plurality of database query sentences obtained by conversion to generate a distributed computing task.
Taking database query statements obtained after the conversion of the number segments and the calculation mode from the portrait label value and caliber configuration items as examples, the database query statements after the splicing may be obtained, such as count (source, ' $. roll _ id ')), and further, the database query statements obtained after the conversion of the log filter condition configuration items corresponding to the portrait labels may be subjected to supplementary splicing to generate a final database query statement after the final splicing, such as (fn.json (source, ' $. info), ' $. login _ time ') >1628526600and fn.json (source, ' $. roll _ level ') > 13), and the database query statement generated by the final splicing is stored as a code variable of an executable calculation engine (spark), that is, the distributed calculation task.
As an optional implementation, the portrait tag processing method further includes: and when the tag configuration information passes the validity and integrity check and a second tag identification corresponding to the tag configuration information is inquired in a preset storage area, generating a target portrait tag by using tag data prestored in the preset storage area.
When the tag configuration information passes the validity and integrity check, whether a second tag identification corresponding to the tag configuration information exists or not is inquired in a preset storage area, and the method can be used for checking whether the currently allocated second tag identification exists in a tag list which is manually developed and completed by a technical team through codes in advance, so that high reusability of data is realized.
Optionally, when the second tag identifier corresponding to the tag configuration information is queried in the preset storage area, the target pictorial tag is generated by using the tag data prestored in the preset storage area, the tag state of the second tag identifier of the tag configuration information is changed from the initialization state to the success state, and a prompt message that the tag creation is successful is sent to the user.
Optionally, when the preset storage area does not inquire the second tag identifier corresponding to the tag configuration information, the tag state of the second tag identifier of the tag configuration information is changed from the initialization state to the failure state, and a prompt message that the tag creation fails and the reconstruction is requested is sent to the user.
In this embodiment, a method for processing a portrait label running on a server is provided, and fig. 4 is a flowchart of another portrait label processing method according to an embodiment of the present invention, as shown in fig. 4, the flowchart includes the following steps:
step S40, receiving a to-be-executed distributed computing task from the client, where the distributed computing task is generated based on the tag configuration information, and the distributed computing task includes: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, and the original portrait tags are obtained through a user-defined new adding or modifying mode;
in step S41, tag computation is performed on the distributed computation task to generate a target portrait tag.
Based on the above steps S40 to S41, by receiving the distributed computing task to be executed from the client, the distributed computing task is generated based on the tag configuration information, and the distributed computing task includes: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, the original portrait tags are obtained through a user-defined new adding or modifying mode, tag calculation is further carried out on distributed calculation tasks, target portrait tags are finally generated, the purpose of rapidly and accurately defining the portrait tags of a user is achieved, the technical effect of improving the generation efficiency and accuracy of the portrait tags of the user is achieved, and the technical problem that the efficiency of generating accurate portrait tags of the user in the related technology is low is solved.
The image label processing method of this embodiment is further described below.
As an alternative embodiment, in step S41, performing label computation on the distributed computing task, and generating the target portrait label includes:
step S411, acquiring a target game log by utilizing a plurality of database query statements contained in the distributed computing task, and analyzing the target game log to obtain an analysis result;
optionally, after uploading a main program statement in a plurality of database query statements contained in the distributed computing task to a resource manager (yann) cluster, uploading the plurality of database query statements contained in the distributed computing task to the yann cluster, executing tag computation on the distributed computing task by the yann cluster, obtaining a target game log, and analyzing the target game log to obtain an analysis result. The main program statement includes main logics of resource allocation configuration, data acquisition, tag calculation, tag storage and the like of the program.
Step S412, filtering the analysis result according to the filtering conditions set in the plurality of database query sentences to obtain a filtering result;
in step S413, aggregation calculation is performed based on the filtering result, and a target portrait label is generated.
For example, the target portrait label is the total duration of the 30-day game of the character, and it is necessary to extract all character game records in the game log, aggregate and add the duration of each game of each character, and finally generate the total duration of the 30-day game of each character.
The method comprises the steps of obtaining a target game log through a plurality of database query sentences contained in a distributed computing task, analyzing the target game log to obtain an analysis result, further filtering the analysis result according to a filtering condition set in the plurality of database query sentences to obtain a filtering result, finally executing aggregation computing based on the filtering result to generate a target portrait label, and further improving the generation efficiency of the portrait label.
As an optional implementation manner, the portrait tag processing method further includes the following steps:
step S42, detecting whether the execution time length of the distributed computing task exceeds the preset time length;
and step S43, stopping executing the distributed computing task when the execution time length exceeds the preset time length.
Taking the cycle as 10s and the preset time as 1h as an example, polling and inquiring the cluster tag task list every 10s, detecting whether the execution time of the distributed computing task is overtime (1h), forcibly suspending the overtime distributed computing task to avoid resource occupation, and changing the tag state of the second tag identifier of the tag configuration information into the overtime state after stopping executing the distributed computing task.
As an optional implementation manner, the portrait tag processing method further includes the following steps:
step S44, obtaining the main type of the object portrait label;
step S45, when the portrait label main body type is the role main body type, establishing the association relationship between at least one role identification corresponding to the target portrait label and the latest change information, wherein the latest change information includes: the latest changed server information and the latest changed account information.
In the field of games, each user ID corresponds to at least one role ID, and the role IDs have the conditions of buying and selling account numbers, transferring and conforming, and the information of the corresponding account numbers and servers is changed. After the portrait tag body type of the target portrait tag is acquired, if the portrait tag body type is determined to be a character body type, the server information and the account information changed by the current user are associated with each character ID.
As an optional implementation manner, the portrait tag processing method further includes the following steps:
step S46, obtaining the main type of the object portrait label;
in step S47, when the portrait label body type is the account body type, the single account information corresponding to the target portrait label is converted into global account information.
In the field of games, the single account information includes account information of a computer terminal and account information of a mobile phone terminal, account systems between the single account information are different, and the single account information corresponding to the target portrait label can be converted into global account information by using a Uniform Resource Service (URS) framework or an encrypted account identifier, so as to realize Uniform storage of the target portrait label.
As an optional implementation manner, the portrait tag processing method further includes the following steps: and carrying out tag data quantity verification and validity verification on the target portrait tag, wherein the tag data quantity verification is used for determining the uniqueness of the target portrait tag, and the validity verification is used for determining that the target portrait tag meets the preset conditions.
Before the tag data quantity verification and the legality verification are carried out on the target portrait tag, a second tag identification and a query date of the target portrait tag are obtained to carry out Hive partition. By using the partitioning technology, Hive full-table scanning can be avoided, and the query efficiency of the target portrait label can be further improved.
Optionally, a grouping aggregation calculation method is adopted for the aggregated target portrait label to perform label data quantity verification. For example, the tag data amount is checked by adopting a grouping aggregation calculation mode on the target portrait tag with the calculation mode of summation and the maximum value so as to determine the uniqueness of the target portrait tag.
Optionally, when the tag data amount of the target portrait tag of the value type tag is checked, it is required to verify whether the tag data amount of the target portrait tag is equal to the tag primary key deduplication amount. For example, for a target portrait label with a direct value calculation mode, the uniqueness of the label is ensured by verifying whether the label data volume of the target portrait label is equal to the label main key duplication removal quantity.
Optionally, the validity checking of the target portrait label includes: and checking whether a null value or a sensitive word exists in the target portrait label value. When the target portrait label value has a null value and/or a sensitive word, the result of the legality check of the target portrait label is illegal; and when the target portrait label value has no null value and no sensitive word, the result of the validity check of the target portrait label is legal.
As an optional implementation manner, the portrait tag processing method further includes the following steps:
step S48, acquiring a distribution index corresponding to the target portrait label, wherein the distribution index is used for determining the distribution display mode of the target portrait label;
the distribution index includes one or more items of the maximum value, the minimum value, the median, the number of labels and the number of duplicate accounts of the target portrait label value.
Optionally, a distribution index corresponding to the target portrait label is obtained by performing grouping aggregation calculation on the target portrait label value.
Step S49, the target portrait label is displayed visually according to the distribution index.
For example, the distribution index is uploaded to a second server, and the target portrait label is visually displayed by using a front-end page query back-end interface. The label value and the distribution index are initially calculated in a visual display interface, and user-defined distribution and layered query operations can be automatically provided for a user.
As an optional implementation manner, the portrait tag processing method further includes the following steps:
step S50, using the game product type and portrait label main body type to obtain the portrait label to be updated from the target portrait label, wherein the query conditions include: time conditions, state conditions;
step S51, updating the tag configuration information corresponding to the image tag to be updated to obtain the updated image tag.
For example, the portrait label data is output and visualized by performing daily routine automatic calculation and update on each product and each main key portrait label data.
In the embodiment of the invention, the multi-dimensional user portrait tags such as characters, account numbers, full account numbers, natural persons and the like in the game field are automatically generated by a user through a simple user-defined configuration tag form and a big data correlation technology, so that the game user portrait tags can be uniformly calculated, stored and managed, and the technical effect of improving the generation efficiency and accuracy of the user portrait tags is realized.
Fig. 5 is a schematic diagram of a portrait label display interface according to an embodiment of the present invention, as shown in fig. 5, a plurality of portrait labels may be generated according to the embodiment of the present invention, the generated portrait labels may be stored and managed in a unified manner according to the display interface shown in fig. 5, and basic information of the portrait labels, such as a plurality of information corresponding to a character label or a single account label, a label name, a label identifier, a creator, a creation time, a run number deadline, a run number condition, description information, and the like of each portrait label may be displayed in the display interface. On the display interface shown in fig. 5, the user can also operate the generated portrait tab, for example, when managing the portrait tab, the user can modify, copy, delete, view data, view operation records, and the like for the portrait tab.
The following describes an image tag processing method according to an embodiment of the present invention with reference to a schematic diagram.
FIG. 6 is a schematic diagram of a process for processing a portrait label according to an embodiment of the present invention, as shown in FIG. 6, the process includes:
step S601, starting a flow of self-defining portrait labels;
step S602, the server provides a detection polling service;
step S603, judging whether a label needs to be newly built or modified, and repeatedly executing the step S602 when the label does not need to be newly built or modified;
step S604, reading tag configuration information from a database;
step S605, verifying the tag configuration information, specifically comprising verifying the validity and the integrity of the tag configuration information;
step S606, when the verification of the tag configuration information fails, the user-defined flow of the portrait tag is ended and failure information is returned;
step S607, classifying by using a label classifier;
step S608, converting the configuration content of each configuration item in the multiple configuration items included in the tag configuration information configured by the user-defined user into a corresponding database query statement;
for example, the time conversion module is used for converting an image tag time period configuration item, the Hive data analysis module is used for converting a database and a data table name in the image tag value aperture configuration item, and the calculation mode conversion module is used for converting a calculation mode in the image tag value aperture configuration item.
Step S609, generating a database query statement;
step S610, storing the generated database query statement;
step S611, whether preset tag identification exists in a database or not is further detected for the preset generated portrait tag; when detecting that no preset tag identification exists, repeatedly executing the step S606;
and step S612, when the preset tag identification is detected to exist in the database, ending the user-defined flow of the portrait tag and returning success information.
Based on the portrait label processing process shown in fig. 6, when it is detected that a service party newly builds or modifies a portrait label, the configuration information of the label can be actively read, a core code is automatically generated and provided for the label calculation storage module to use, and meanwhile, whether the label to be created or modified is a label for which the technology is previously developed can be verified, and when the label is determined to be previously developed, the quick access and use can be completed, so that the label multiplexing is realized.
FIG. 7 is a schematic diagram of another portrait label processing procedure according to an embodiment of the present invention, as shown in FIG. 7, the processing procedure includes:
step S701, starting a tag calculation program;
step S702, submitting distributed computing tasks, namely spark jobs;
step S703, identifying codes in the distributed computing task and uploading the codes to a horn cluster;
step S704, obtaining and analyzing Hive game logs;
step S705, spark distributed label aggregation calculation is carried out;
step S706, starting to execute the cluster task detection program;
step S707, starting a calculator;
step S708, judging whether the execution time length of the distributed computing task exceeds a preset time length;
step S709, when the execution duration of the distributed computing task exceeds the preset duration, returning overtime information;
step S710, classifying the label main bodies by using a label main body selector;
step S711, when the tag body type is the role body type, establishing an association relationship between at least one role identifier corresponding to the tag and the latest change information, where the latest change information includes: newly changed server information and newly changed account information;
step S712, when the tag body type is the account body type, converting the single account information corresponding to the target tag into global account information, that is, converting a primary key for a tag whose body is an account or a full account;
step S713, generating a unique label identifier;
step S714, unifying standard storage labels;
in step S715, the specific content of the image tag is output.
Based on the process of image tag processing shown in fig. 7, the game log source can be acquired and analyzed, the acquired data can be calculated, aggregated, converted and stored in a unified standard, and the specific content of the image tag can be finally output.
FIG. 8 is a schematic diagram of another portrait label processing procedure according to an embodiment of the present invention, as shown in FIG. 8, the processing procedure includes:
step S801, acquiring label data of the unique identifier;
step S802, judging the calculation type of the acquired label data;
step S803, for the label of the aggregation type, performing calculation verification of the label data amount;
step S804, for the label of the value type, executing the calculation and verification of the label data quantity;
step S805, for the label of the value type, after the calculation and verification of the label data volume are executed, the label main key duplicate removal calculation is carried out;
step S806, carrying out validity verification on the label;
step S807, carrying out abnormity detection on the label passing the validity verification;
step S808, notifying a creator/updater of failure information when the detection result is abnormal;
step S809, ending and returning failure information;
step S810, when the detection result is not abnormal, notifying the creator/updater of success information;
step S811 ends the return success information.
Based on the portrait label processing process described in fig. 8, the validity and accuracy of the produced portrait label can be verified, and the quality of the label data can be ensured.
FIG. 9 is a schematic diagram of another portrait label processing procedure according to an embodiment of the present invention, as shown in FIG. 9, the processing procedure includes:
step S901, setting a timer;
step S902, reading an image label database;
step S903, judging whether the stop time is exceeded;
step S904, when the stop time is determined to be exceeded, filtering and discarding the label data;
step S905, when the stop time is not determined to be exceeded, judging whether the tag state is a success state, and filtering and discarding the tag data when the tag state is a failure state;
step S906, when the label state is a success state, summarizing effective label configuration;
step S907, combining spark executable codes in the distributed computing task;
step S908, after the abnormity detection, alarming and prompting are carried out when the abnormity of the detection result is confirmed;
step S909, submitting cluster operation and generating label in parallel;
step S910, executing label distribution calculation;
step S911, updating the page state;
step S912, data visualization is carried out;
in step S913, the relevant person is notified.
Based on the portrait label processing procedure described in fig. 9, daily routine automatic calculation and update can be performed on each product and each main key portrait label data, and portrait label data can be output and visualized.
The embodiment of the invention generates tag configuration information, the tag configuration information is used for carrying out initialization configuration on the original portrait tag, the original portrait tag is obtained through a user-defined new adding or modifying mode, and then a distributed computing task to be executed is generated based on the tag configuration information, and the distributed computing task comprises the following steps: the method comprises the steps of converting label configuration information into a plurality of database query statements, uploading distributed computing tasks to a first server, and executing label computing on the distributed computing tasks by the first server to generate target portrait labels.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an image tag processing apparatus is further provided, and the image tag processing apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
FIG. 10 is a block diagram of an image tag processing apparatus according to an embodiment of the present invention, the apparatus including:
the first generation module 101 is configured to generate tag configuration information, where the tag configuration information is used to perform initialization configuration on an original portrait tag, and the original portrait tag is obtained through a custom addition or modification manner;
a second generating module 102, configured to generate a distributed computing task to be executed based on the tag configuration information, where the distributed computing task includes: a plurality of database query statements obtained by converting the tag configuration information;
an upload module 103, configured to upload the distributed computing task to a first server, where the first server is configured to perform tag computation on the distributed computing task to generate a target portrait tag.
Optionally, the first generating module 101 is configured to generate the tag configuration information, and includes: obtaining a representation tag data sample, wherein the representation tag data sample is used to determine configuration content of an original representation tag, the configuration content comprising: a plurality of configuration items; for generating tag configuration information in accordance with the portrait tag data sample.
Optionally, the plurality of configuration items comprise: portrait tag body configuration items; an portrait tag data acquisition mode configuration item; a portrait label base information configuration item; the value and the caliber configuration item of the portrait label; portrait tag time period allocation; and configuring the log filtering condition corresponding to the portrait label.
Optionally, the portrait label processing apparatus further includes: the first checking module 104 is configured to perform repeated checking on the first tag identifier corresponding to the tag configuration information; and the storage module 105 is configured to transmit and store the tag configuration information to a second server when it is determined that there is no identifier that is repeated with the first tag identifier, where the second server is configured to allocate a second tag identifier to the tag configuration information based on the first tag identifier, and set a tag state of the second tag identifier to an initialization state.
Optionally, the second generating module 102, configured to generate the distributed computing task to be executed based on the tag configuration information, includes: initiating a query request to a second server, wherein the query request is used for detecting whether the tag state of a second tag identifier in the second server is in an initialization state; when the label state with the second label identification is determined to be in an initialization state, acquiring label configuration information from a second server by using the second label identification; carrying out validity and integrity check on the tag configuration information; when the tag configuration information passes the validity and integrity check, converting the configuration content of each configuration item in a plurality of configuration items contained in the tag configuration information into a corresponding database query statement; and splicing the plurality of database query sentences obtained by conversion to generate a distributed computing task.
Optionally, the portrait label processing apparatus further includes: and a third generating module 106, configured to generate a target portrait label by using label data pre-stored in the preset storage area when the label configuration information passes validity and integrity check and a second label identifier corresponding to the label configuration information is queried in the preset storage area.
FIG. 11 is a block diagram of another image tag processing apparatus according to an embodiment of the present invention, as shown in FIG. 11, the apparatus including:
a receiving module 111, configured to receive a distributed computing task to be executed from a client, where the distributed computing task is generated based on tag configuration information, and the distributed computing task includes: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, and the original portrait tags are obtained through a user-defined new adding or modifying mode;
and the processing module 112 is used for performing label calculation on the distributed calculation task and generating a target portrait label.
Optionally, the processing module 112 is configured to perform tag computation on the distributed computing task, and generating the target portrait tag includes: acquiring a target game log by utilizing a plurality of database query statements contained in the distributed computing task, and analyzing the target game log to obtain an analysis result; filtering the analysis result according to the filtering conditions set in the plurality of database query sentences to obtain a filtering result; and performing aggregation calculation based on the filtering result to generate a target portrait label.
Optionally, the portrait label processing apparatus further includes: the detection module 113 is configured to detect whether an execution duration of the distributed computing task exceeds a preset duration; and when the execution time length exceeds the preset time length, stopping executing the distributed computing task.
Optionally, the portrait label processing apparatus further includes: an acquisition module 114 for acquiring a portrait label body type of a target portrait label; an establishing module 115, configured to, when the portrait tag main body type is a role main body type, establish an association relationship between at least one role identifier corresponding to the target portrait tag and latest change information, where the latest change information includes: the latest changed server information and the latest changed account information.
Optionally, the obtaining module 114 is further configured to obtain a portrait tag body type of the target portrait tag; the portrait label processing apparatus further includes: and the conversion module 116 is configured to convert the single account information corresponding to the target portrait label into global account information when the portrait label main body type is the account main body type.
Optionally, the portrait label processing apparatus further includes: and the verification module 117 is configured to perform tag data amount verification and validity verification on the target portrait tag, where the tag data amount verification is used to determine uniqueness of the target portrait tag, and the validity verification is used to determine that the target portrait tag meets a preset condition.
Optionally, the obtaining module 114 is further configured to obtain a distribution indicator corresponding to the target portrait label, where the distribution indicator is used to determine a distribution display manner of the target portrait label; the portrait label processing apparatus further includes: and the display module 118 is used for visually displaying the target portrait label according to the distribution index.
Optionally, the obtaining module 114 is further configured to obtain a portrait label to be updated from the target portrait label, which satisfies a query condition, using the game product type and the portrait label body type, where the query condition includes: time conditions, state conditions; the portrait label processing apparatus further includes: and the updating module 119 is configured to update the tag configuration information corresponding to the image tag to be updated, so as to obtain the updated image tag.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned nonvolatile storage medium may be configured to store a computer program for executing the steps of:
s1, generating label configuration information, wherein the label configuration information is used for carrying out initialization configuration on the original portrait label, and the original portrait label is obtained through a user-defined addition or modification mode;
s2, generating a distributed computing task to be executed based on the label configuration information, wherein the distributed computing task comprises: a plurality of database query statements obtained by converting the tag configuration information;
s3, uploading the distributed computing task to a first server, wherein the first server is used for executing label computation on the distributed computing task to generate a target portrait label.
Optionally, in this embodiment, the nonvolatile storage medium may be further configured to store a computer program for executing the following steps:
s1, receiving a distributed computing task to be executed from the client, wherein the distributed computing task is generated based on the label configuration information, and the distributed computing task comprises: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, and the original portrait tags are obtained through a user-defined new adding or modifying mode;
s2, executing label calculation to the distributed calculation task to generate target portrait label.
Optionally, in this embodiment, the nonvolatile storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, generating label configuration information, wherein the label configuration information is used for carrying out initialization configuration on the original portrait label, and the original portrait label is obtained through a user-defined addition or modification mode;
s2, generating a distributed computing task to be executed based on the label configuration information, wherein the distributed computing task comprises: a plurality of database query statements obtained by converting the tag configuration information;
s3, uploading the distributed computing task to a first server, wherein the first server is used for executing label computation on the distributed computing task to generate a target portrait label.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps:
s1, receiving a distributed computing task to be executed from the client, wherein the distributed computing task is generated based on the label configuration information, and the distributed computing task comprises: the method comprises the steps that a plurality of database query statements are obtained through conversion of tag configuration information, the tag configuration information is used for carrying out initialization configuration on original portrait tags, and the original portrait tags are obtained through a user-defined new adding or modifying mode;
s2, executing label calculation to the distributed calculation task to generate target portrait label.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (19)

1. A portrait label processing method, comprising:
generating tag configuration information, wherein the tag configuration information is used for performing initialization configuration on an original portrait tag, and the original portrait tag is obtained through a user-defined new adding or modifying mode;
generating a distributed computing task to be executed based on the tag configuration information, wherein the distributed computing task comprises: a plurality of database query statements converted from the tag configuration information;
uploading the distributed computing task to a first server, wherein the first server is configured to perform tag computation on the distributed computing task to generate a target representation tag.
2. The portrait tag processing method of claim 1, wherein generating the tag configuration information comprises:
obtain a representation tag data sample, wherein the representation tag data sample is used to determine configuration content of the original representation tag, the configuration content comprising: a plurality of configuration items;
and generating the label configuration information according to the portrait label data sample.
3. The portrait label processing method of claim 2, wherein the plurality of configuration items include:
portrait tag body configuration items;
an portrait tag data acquisition mode configuration item;
a portrait label base information configuration item;
the value and the caliber configuration item of the portrait label;
portrait tag time period allocation;
and configuring the log filtering condition corresponding to the portrait label.
4. The portrait tag processing method of claim 1, further comprising:
performing repeated verification on the first label identification corresponding to the label configuration information;
and when determining that no identifier which is repeated with the first tag identifier exists, transmitting and storing the tag configuration information to a second server, wherein the second server is used for allocating a second tag identifier to the tag configuration information based on the first tag identifier and setting the tag state of the second tag identifier to be an initialization state.
5. The portrait tag processing method of claim 4, wherein generating the distributed computing task based on the tag configuration information comprises:
initiating a query request to the second server, wherein the query request is used for detecting whether a tag state of the second tag identifier in the second server is in the initialization state;
when the tag state with the second tag identification is determined to be in the initialization state, acquiring the tag configuration information from the second server by using the second tag identification;
carrying out validity and integrity check on the tag configuration information;
when the tag configuration information passes validity and integrity verification, converting the configuration content of each configuration item in a plurality of configuration items contained in the tag configuration information into a corresponding database query statement;
and splicing the plurality of database query sentences obtained by conversion to generate the distributed computing task.
6. The portrait tag processing method of claim 5, further comprising:
and when the tag configuration information passes validity and integrity verification and the second tag identification corresponding to the tag configuration information is inquired in a preset storage area, generating the target portrait tag by using tag data prestored in the preset storage area.
7. A portrait label processing method, comprising:
receiving a distributed computing task to be executed from a client, wherein the distributed computing task is generated based on tag configuration information, and the distributed computing task comprises: a plurality of database query statements are obtained by converting the tag configuration information, wherein the tag configuration information is used for carrying out initialization configuration on the original portrait tag, and the original portrait tag is obtained by a user-defined new adding or modifying mode;
and executing label calculation on the distributed calculation task to generate a target portrait label.
8. The portrait tag processing method of claim 7, wherein performing tag computations on the distributed computing tasks, generating the target portrait tag, comprises:
acquiring a target game log by utilizing a plurality of database query statements contained in the distributed computing task, and analyzing the target game log to obtain an analysis result;
filtering the analysis result according to the filtering conditions set in the plurality of database query sentences to obtain a filtering result;
and performing aggregation calculation based on the filtering result to generate the target portrait label.
9. The portrait tag processing method of claim 7, further comprising:
detecting whether the execution time length of the distributed computing task exceeds a preset time length;
and when the execution duration exceeds the preset duration, stopping executing the distributed computing task.
10. The portrait tag processing method of claim 7, further comprising:
acquiring the portrait label main body type of the target portrait label;
when the portrait tag main body type is a role main body type, establishing an association relationship between at least one role identifier corresponding to the target portrait tag and latest change information, wherein the latest change information comprises: the latest changed server information and the latest changed account information.
11. The portrait tag processing method of claim 7, further comprising:
acquiring the portrait label main body type of the target portrait label;
and when the portrait label main body type is the account main body type, converting the single account information corresponding to the target portrait label into global account information.
12. The portrait tag processing method of claim 7, further comprising:
and carrying out tag data volume verification and validity verification on the target portrait tag, wherein the tag data volume verification is used for determining the uniqueness of the target portrait tag, and the validity verification is used for determining that the target portrait tag meets preset conditions.
13. The portrait tag processing method of claim 7, further comprising:
acquiring a distribution index corresponding to the target portrait label, wherein the distribution index is used for determining a distribution display mode of the target portrait label;
and visually displaying the target portrait label according to the distribution index.
14. The portrait tag processing method of claim 7, further comprising:
obtaining a portrait label to be updated from the target portrait label by using a game product type and a portrait label body type, wherein the query condition comprises: time conditions, state conditions;
and updating the tag configuration information corresponding to the portrait tag to be updated to obtain the updated portrait tag.
15. An image tag processing apparatus, comprising:
the system comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for generating tag configuration information, the tag configuration information is used for carrying out initialization configuration on an original portrait tag, and the original portrait tag is obtained through a user-defined new adding or modifying mode;
a second generation module, configured to generate a distributed computing task to be executed based on the tag configuration information, where the distributed computing task includes: a plurality of database query statements converted from the tag configuration information;
and the uploading module is used for uploading the distributed computing task to a first server, wherein the first server is used for executing label computation on the distributed computing task to generate a target portrait label.
16. An image tag processing apparatus, comprising:
a receiving module, configured to receive a distributed computing task to be executed from a client, where the distributed computing task is generated based on tag configuration information, and the distributed computing task includes: a plurality of database query statements are obtained by converting the tag configuration information, wherein the tag configuration information is used for carrying out initialization configuration on the original portrait tag, and the original portrait tag is obtained by a user-defined new adding or modifying mode;
and the processing module is used for executing label calculation on the distributed calculation task and generating a target portrait label.
17. A non-volatile storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the representation tag processing method of any of claims 1 to 6 or the representation tag processing method of any of claims 7 to 14 when executed.
18. A processor arranged to run a program, wherein the program is arranged to perform the portrait tag processing method of any of claims 1 to 6, or the portrait tag processing method of any of claims 7 to 14 when run.
19. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the portrait label processing method of any of claims 1 to 6, or the portrait label processing method of any of claims 7 to 14.
CN202111451523.4A 2021-11-30 2021-11-30 Image tag processing method, image tag processing device, storage medium, processor, and electronic device Pending CN114297245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111451523.4A CN114297245A (en) 2021-11-30 2021-11-30 Image tag processing method, image tag processing device, storage medium, processor, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111451523.4A CN114297245A (en) 2021-11-30 2021-11-30 Image tag processing method, image tag processing device, storage medium, processor, and electronic device

Publications (1)

Publication Number Publication Date
CN114297245A true CN114297245A (en) 2022-04-08

Family

ID=80965375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111451523.4A Pending CN114297245A (en) 2021-11-30 2021-11-30 Image tag processing method, image tag processing device, storage medium, processor, and electronic device

Country Status (1)

Country Link
CN (1) CN114297245A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718825A (en) * 2022-11-25 2023-02-28 中电金信软件有限公司 Method and device for determining time length label and electronic equipment
CN116894426A (en) * 2023-07-17 2023-10-17 曙光云计算集团有限公司 Label marking and storing method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718825A (en) * 2022-11-25 2023-02-28 中电金信软件有限公司 Method and device for determining time length label and electronic equipment
CN115718825B (en) * 2022-11-25 2024-05-31 中电金信软件有限公司 Method and device for determining duration label and electronic equipment
CN116894426A (en) * 2023-07-17 2023-10-17 曙光云计算集团有限公司 Label marking and storing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11430013B2 (en) Configurable relevance service test platform
CN108259553B (en) Service mail sending method and terminal equipment
US10430465B2 (en) Dynamic faceting for personalized search and discovery
US10573081B2 (en) Authoring virtual and augmented reality environments via an XR collaboration application
US11928094B2 (en) Storing segmented data
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
CN114297245A (en) Image tag processing method, image tag processing device, storage medium, processor, and electronic device
CN107113339A (en) Enhanced PUSH message transmission
CN106796595A (en) For the data conversion recommended and the declarative language and visualization system repaired
US9882949B1 (en) Dynamic detection of data correlations based on realtime data
CN104956680A (en) Intelligent prefetching of recommended-media content
KR102161137B1 (en) Method and system for game data collection
US20200250587A1 (en) Framework for multi-tenant data science experiments at-scale
CN109829063B (en) Data processing method, device and storage medium
CN111444181A (en) Knowledge graph updating method and device and electronic equipment
CN114663198A (en) Product recommendation method, device and equipment based on user portrait and storage medium
US10062089B2 (en) Graph-based compression of data records
CN114048024A (en) Task deployment method, device, equipment, storage medium and product
CN114860218A (en) Low code development method and device
CN114398560A (en) Marketing interface setting method, device, equipment and medium based on WEB platform
CN114780330A (en) Code monitoring method and device
CN108305097B (en) Data processing method, equipment and client
CN111444292A (en) Fast-moving-away article data processing method and device, electronic equipment and storage medium
CN112291329B (en) Information display method, device and equipment
CN115934068B (en) Data statistics page generation method, display method, server and mobile terminal

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