A label sequence processing method and device

By acquiring and fusing the user's current and external service label sequences, responding to user adjustment instructions and performing error correction, the problem of the inability to customize the label sequence in the existing technology is solved, the stability of the label sequence and user-defined sorting are achieved, and the user experience is improved.

CN120386878BActive Publication Date: 2025-10-10FLYING FOX INFORMATION TECH TIANJIN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510889416.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-10
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

In the existing technology, content-rich platforms cannot meet users' customized configuration requirements for label sequences. Label sequences can only adopt a fixed configuration method preset by the client, cannot respond to label changes in a timely manner, and have high maintenance costs when labels change. They cannot effectively handle label sequence anomalies, affecting service quality.

Method used

A label sequence processing method is provided to obtain the user's current label sequence and the latest external service label sequence, and after fusion, receive the user's label sequence adjustment instruction, respond to the adjustment instruction and perform error correction processing, including invalid label filtering and new label insertion, to ensure the stability of the label sequence.

Benefits of technology

It realizes user-defined tag sorting in the mixed output scenario of multi-source tags, is compatible with tag changes in any system, ensures the stability of tag sequence, meets user's customized configuration requirements, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386878B_ABST
    Figure CN120386878B_ABST
Patent Text Reader

Abstract

The application discloses a label sequence processing method and device, relates to the technical field of data processing, and can acquire a current label sequence of a user and a latest external service label sequence, realizes compatibility of label changes in any system, and can fuse the latest external service label sequence and the current label sequence of the user to obtain a label sequence to be processed, receives a label order adjustment instruction of the user, obtains an adjusted label sequence in response to the label order adjustment instruction of the user, realizes self-defined label sorting of the user in a multi-source label mixed output scene, and further can perform error correction processing on the adjusted label sequence to obtain an error correction processed label sequence, realizes a data error correction function of the label sequence, guarantees stability of the label sequence, and therefore the label sequence processing scheme can meet self-defined configuration requirements of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a tag sequence processing method and device. Background Art

[0002] For platforms with rich content and covering multiple services, their clients usually contain multiple columns, such as dynamics, works, live broadcasts, small courses, etc. Under each column, there may be more detailed classifications. These detailed classifications are usually called tags. These tags are multi-data source tags, including system-level tags and multiple external service tags. For example, under the work column, there may be different tags such as video, pictures, playlists, audio, dramas, original collections, collection pl-1000, collection pl-1001, etc. Among them, "video, pictures, playlists, audio, dramas, original collections" are system-level tags, and "collection pl-1000, collection pl-1001" are external service tags. Each tag contains specific types of content, and users can view the corresponding type of content by clicking on these tags.

[0003] In the prior art, for a tag sequence consisting of a system-level tag and an external service tag, only a fixed configuration method preset by a client can be used, which cannot meet the user's customization requirements.

[0004] Therefore, how to provide a tag sequence processing method to meet the user's customization requirements has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention

[0005] In view of the above problems, this application provides a tag sequence processing method and device to achieve the purpose of meeting the user's customized needs. The specific solution is as follows:

[0006] The first aspect of the present application provides a tag sequence processing method, comprising:

[0007] Get the user's current tag sequence and the latest external service tag sequence;

[0008] Merging the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, wherein the latest external service label sequence is arranged after the user's current label sequence in the label sequence to be processed;

[0009] receiving a tag sequence adjustment instruction from a user; the tag sequence adjustment instruction from the user is used to instruct to adjust the positions of the first tag and the second tag in the tag sequence to be processed;

[0010] In response to the user's tag sequence adjustment instruction, obtaining an adjusted tag sequence;

[0011] performing error correction processing on the adjusted label sequence to obtain a label sequence after error correction processing.

[0012] In a possible implementation, the error correction processing on the adjusted label sequence to obtain a label sequence after error correction processing includes:

[0013] performing invalid label filtering processing on the adjusted label sequence, and performing new label insertion processing on the adjusted label sequence to obtain a label sequence after error correction.

[0014] In a possible implementation, the invalid label filtering processing on the adjusted label sequence includes:

[0015] determining whether the adjusted label sequence contains an invalid label;

[0016] if the adjusted label sequence contains an invalid label, deleting the invalid label in the adjusted label sequence.

[0017] In a possible implementation, the new label insertion processing on the adjusted label sequence includes:

[0018] determining whether the adjusted label sequence contains a new label;

[0019] if the adjusted label sequence contains a new label, determining whether the adjusted label sequence contains a preset new label insertion position;

[0020] if the adjusted label sequence contains the preset new label insertion position, inserting the new label into the preset new label insertion position of the adjusted label sequence.

[0021] In a possible implementation, if the adjusted label sequence does not contain the preset new label insertion position, the method further includes:

[0022] obtaining system-level label configuration information;

[0023] restoring a system-level label in the adjusted label sequence to a configuration of the system-level label in the system-level label configuration information to obtain a restored label sequence;

[0024] inserting the new label into the preset new label insertion position in the restored label sequence.

[0025] In a possible implementation, in the process of performing error correction processing on the adjusted label sequence to obtain a label sequence after error correction processing, if an exception is prompted, the method further includes:

[0026] Get system-level tag configuration information;

[0027] The system-level labels in the adjusted label sequence are restored to the configuration of the system-level labels in the system-level label configuration information to obtain a restored label sequence as the label sequence after error correction.

[0028] A second aspect of the present application provides a tag sequence processing device, comprising:

[0029] An acquisition unit, used to acquire the user's current tag sequence and the latest external service tag sequence;

[0030] a fusion unit, configured to fuse the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, wherein the latest external service label sequence is arranged after the user's current label sequence in the label sequence to be processed;

[0031] A receiving unit, configured to receive a tag sequence adjustment instruction from a user; the tag sequence adjustment instruction from the user is used to instruct to adjust the positions of the first tag and the second tag in the tag sequence to be processed;

[0032] a responding unit, configured to respond to the user's tag sequence adjustment instruction to obtain an adjusted tag sequence;

[0033] The error correction processing unit is used to perform error correction processing on the adjusted label sequence to obtain a label sequence after error correction processing.

[0034] In a possible implementation, the error correction processing unit includes:

[0035] an invalid tag filtering processing unit, configured to perform invalid tag filtering processing on the adjusted tag sequence;

[0036] And, a new label insertion processing unit is used to perform a new label insertion process on the adjusted label sequence to obtain a label sequence after error correction.

[0037] In a possible implementation, the invalid tag filtering processing unit is specifically configured to:

[0038] Determining whether the adjusted tag sequence includes an invalid tag;

[0039] If the adjusted tag sequence includes an invalid tag, the invalid tag in the adjusted tag sequence is deleted.

[0040] In a possible implementation, the newly added tag insertion processing unit is specifically configured to:

[0041] Determining whether the adjusted tag sequence includes a newly added tag;

[0042] If the adjusted tag sequence includes a new tag, determining whether the adjusted tag sequence includes a preset new tag insertion position;

[0043] If the adjusted tag sequence includes the preset new tag insertion position, the new tag is inserted at the preset new tag insertion position of the adjusted tag sequence.

[0044] In a possible implementation, the new tag insertion processing unit is further configured to:

[0045] If the adjusted label sequence does not include the preset new label insertion position, obtain the system-level label configuration information; restore the system-level label in the adjusted label sequence to the configuration of the system-level label in the system-level label configuration information to obtain a restored label sequence; insert the new label into the preset new label insertion position in the restored label sequence.

[0046] In a possible implementation, the apparatus further includes:

[0047] A recovery unit is used to obtain system-level label configuration information if an abnormality is prompted during the process of performing error correction on the adjusted label sequence to obtain the label sequence after error correction; and to restore the system-level label in the adjusted label sequence to the configuration of the system-level label in the system-level label configuration information to obtain a restored label sequence as the label sequence after error correction.

[0048] A third aspect of the present application provides a computer program product, comprising computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the label sequence processing method of the first aspect or any implementation of the first aspect.

[0049] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0050] The memory is used to store computer programs;

[0051] The processor is used to execute the computer program so that the electronic device can implement the tag sequence processing method of the above-mentioned first aspect or any implementation manner of the first aspect.

[0052] The fifth aspect of the present application provides a computer readable storage medium, the storage medium carries one or more computer programs, when the one or more computer programs are executed by an electronic device, the electronic device can execute the label sequence processing method of the first aspect or any implementation manner of the first aspect.

[0053] By the above technical solution, the label sequence processing method and device provided by the present application can obtain the current label sequence of the user and the latest external service label sequence, realize the compatibility of label changes in any system, and can fuse the latest external service label sequence with the current label sequence of the user to obtain a to-be-processed label sequence, receive a label order adjustment instruction of the user, obtain an adjusted label sequence in response to the label order adjustment instruction of the user, and realize user-defined label ordering in a multi-source label mixed output scenario. Further, the adjusted label sequence can be subjected to error correction processing to obtain an error-corrected label sequence, realize a data error correction function of the label sequence, and ensure the stability of the label sequence. Therefore, the label sequence processing scheme can meet the user-defined configuration requirements. BRIEF DESCRIPTION OF DRAWINGS

[0054] The above and other features, advantages, and aspects of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

[0055] Figure 1 A flowchart of a label sequence processing method provided by an embodiment of the present application;

[0056] Figure 2 A sequence diagram in a label sequence processing process provided by an embodiment of the present application;

[0057] Figure 3 A sequence diagram in a label sequence processing process provided by an embodiment of the present application;

[0058] Figure 4 A sequence diagram in a label sequence processing process provided by an embodiment of the present application;

[0059] Figure 5 A sequence diagram in a label sequence processing process provided by an embodiment of the present application;

[0060] Figure 6 A sequence diagram in a label sequence processing process provided by an embodiment of the present application;

[0061] Figure 7 A sequence diagram in a label sequence processing process provided by an embodiment of the present application;

[0062] Figure 8 A schematic diagram of the structure of a label sequence processing device provided in an embodiment of the present application;

[0063] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] To facilitate understanding of the technical solution of this application, the technical terms involved in this application are first explained as follows:

[0065] System-level tags: These are fixed-type tags predefined by the platform (such as "video," "image and text," and "original works collection"). They are the initialization state of the tag configuration.

[0066] External services: Core data is stored in services of other systems (such as the "Portfolio Service"). There can be multiple external services. Local services can only read data from external services and do not have the right to delete or modify them.

[0067] External service label: The format is "service prefix-service ID" (for example, the portfolio label is pl-1000, where pl is the portfolio service prefix and 1000 is its ID in the portfolio service);

[0068] Multi-source labeling: A label sequence obtained by fusing system-level labels with multiple external service labels, hereinafter referred to as multi-source labeling.

[0069] The following describes the embodiments of the present application in conjunction with the accompanying drawings. The terms used in the implementation methods of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application.

[0070] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0071] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0072] For platforms with rich content and covering multiple services, their clients usually contain multiple columns, such as dynamics, works, live broadcasts, small courses, etc. Under each column, there may be more detailed classifications. These detailed classifications are usually called tags. These tags are multi-data source tags, including system-level tags and multiple external service tags. For example, under the work column, there may be different tags such as video, pictures, playlists, audio, dramas, original collections, collection pl-1000, collection pl-1001, etc. Among them, "video, pictures, playlists, audio, dramas, original collections" are system-level tags, and "collection pl-1000, collection pl-1001" are external service tags. Each tag contains specific types of content, and users can view the corresponding type of content by clicking on these tags.

[0073] In the prior art, for a tag sequence consisting of a system-level tag and an external service tag, only a fixed configuration method preset by a client can be used, which cannot meet the user's customization requirements.

[0074] Specifically, the fixed configuration method preset by the client has the following defects:

[0075] First: the tag sequence can only use the fixed sorting method preset by the client;

[0076] Second: Unable to respond to label changes in a timely manner;

[0077] Third: When the tag changes, the client is incompatible and needs to be redeveloped and republished, which increases the maintenance cost.

[0078] Fourth, when anomalies occur in the tag sequence, they cannot be effectively handled, affecting the service quality;

[0079] In order to solve the above problems, the present invention provides a tag sequence processing method. The tag sequence processing method of the present invention is described in detail below with reference to the accompanying drawings.

[0080] Reference Figure 1 , Figure 1 A flowchart of a tag sequence processing method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, a tag sequence processing method provided in an embodiment of the present application may include the following steps, which are described in detail below.

[0081] S101: Obtain the user's current tag sequence and the latest external service tag sequence;

[0082] In this application, if the tag sequence is obtained for the first time, or the tag sequence has not been successfully processed, the user's current tag sequence may refer to the system default tag sequence. At this time, the user's current tag sequence only contains system-level tags. If the tag sequence has been successfully processed, the user's current tag sequence may also refer to the latest processed tag sequence. At this time, the user's current tag sequence may only contain system-level tags, or may contain both system-level tags and external service tags. This application does not impose any restrictions on this. In this application, the user's current tag sequence can be read from the cache, and the latest external service tag sequence can be obtained from the external service. The external service can be one or more. The cache can use distributed caching technology (such as redis), and the database can use MySQL database. This application does not impose any restrictions on this.

[0083] S102: Fusing the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, wherein the latest external service label sequence is arranged after the user's current label sequence in the label sequence to be processed;

[0084] In this application, according to the predetermined rules, the external service tag sequence is arranged after the user's current tag sequence. For ease of understanding, taking the external service as a collection service as an example, the latest collection tag sequences read from the collection service are collection pl-1000, collection pl-1001, ..., collection pl-N. Assuming that the user's current tag sequence is "video, image, playlist, audio, drama, original collection", the tag sequence to be processed is displayed in the form of an icon as Figure 2 As shown. Figure 2 As shown, the latest external service tag sequence is arranged after the user's current tag sequence.

[0085] S103: Receive a tag sequence adjustment instruction from a user; the tag sequence adjustment instruction from the user is used to instruct to adjust the positions of the first tag and the second tag in the tag sequence to be processed;

[0086] In the present application, the user's tag sequence adjustment instruction can be a single instruction or an instruction sequence including multiple instructions, each instruction is used to instruct to adjust the position of the first tag and the second tag in the tag sequence to be processed. In the present application, the user can adjust the order of any tags in the tag sequence. In the present application, the first tag and the second tag are both system-level tags, or the first tag and the second tag are both external service tags, or the first tag is a system-level tag and the second tag is an external service tag, or the first tag is an external service tag and the second tag is a system-level tag. In this regard, the present application does not impose any restrictions.

[0087] The user's tag order adjustment instruction can be generated after the user operates on each tag, such as selecting, dragging, etc., and this application does not impose any restrictions on this.

[0088] S104: Responding to the user's tag sequence adjustment instruction, obtaining an adjusted tag sequence;

[0089] For ease of understanding, Figure 2 As an example, if the user's tag sequence adjustment instruction indicates to adjust the "picture and text" tag to the front of the "video" tag, the adjusted tag sequence is as follows: Figure 3 As shown, assuming that the user's tag order adjustment instruction indicates to adjust the "picture and text" tag to the front of the "video" tag first, and then adjust the "works collection pl-1000" tag to the front of the "playlist" tag, the adjusted tag sequence is as follows Figure 4 shown.

[0090] S105: performing error correction processing on the adjusted tag sequence to obtain a tag sequence after error correction processing.

[0091] In this application, considering that there may be some erroneous or duplicate labels between the latest external service label sequence and the user's current label sequence, or the adjusted label sequence does not meet the business rules, it is necessary to perform error correction on the adjusted label sequence to ensure that the sequence after error correction can meet both user customization requirements and business rules.

[0092] It should be noted that the error correction process for the adjusted tag sequence is imperceptible to the user and does not affect the user experience. Instead, it prevents service anomalies caused by tag sequence anomalies, thereby improving the user experience. After obtaining the error-corrected tag sequence, the error-corrected tag sequence can be stored in the cache as the user's new current tag sequence.

[0093] The label sequence processing method provided in this embodiment can obtain the user's current label sequence and the latest external service label sequence to achieve compatibility with label changes in any system; and can fuse the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, receive the user's label sequence adjustment instruction, and respond to the user's label sequence adjustment instruction to obtain an adjusted label sequence, so as to enable users to customize label sorting in the scenario of mixed output of multi-source labels; further, the adjusted label sequence can be error-corrected to obtain a label sequence after error correction, thereby realizing the data error correction function of the label sequence and ensuring the stability of the label sequence. Therefore, this label sequence processing solution can meet the user's customized configuration requirements.

[0094] In a possible implementation, performing error correction on the adjusted label sequence to obtain a label sequence after error correction includes:

[0095] Invalid tag filtering processing is performed on the adjusted tag sequence, and new tag insertion processing is performed on the adjusted tag sequence to obtain an error-corrected tag sequence.

[0096] In the present application, the execution order of performing invalid label filtering processing on the adjusted label sequence and performing new label insertion processing on the adjusted label sequence can be set according to the scenario requirements. In one possible implementation, the adjusted label sequence can be first subjected to invalid label filtering processing, and then the adjusted label sequence can be subjected to new label insertion processing. In this case, performing new label insertion processing on the adjusted label sequence is actually performing new label insertion processing on the adjusted label sequence that has been subjected to invalid label filtering processing.

[0097] In a possible implementation, filtering out invalid tags on the adjusted tag sequence includes:

[0098] Determine whether the adjusted tag sequence includes an invalid tag; if the adjusted tag sequence includes an invalid tag, delete the invalid tag in the adjusted tag sequence.

[0099] In the present application, an invalid tag may be preset, and whether the adjusted tag sequence includes an invalid tag may be determined by checking whether the adjusted tag sequence includes the preset invalid tag.

[0100] If the adjusted tag sequence does not contain an invalid tag, a subsequent error correction process is performed, that is, an invalid tag filtering process and a new tag insertion process are performed on the adjusted tag sequence.

[0101] For ease of understanding, Figure 4 As an example of the adjusted tag sequence shown in the figure, assuming that the preset invalid tag is "works collection pl-1000", the sequence after filtering the invalid tags on the adjusted tag sequence is as follows Figure 5 shown.

[0102] In a possible implementation, the inserting a new tag into the adjusted tag sequence includes:

[0103] Determine whether the adjusted label sequence includes a new label; if the adjusted label sequence includes a new label, determine whether the adjusted label sequence includes a preset new label insertion position; if the adjusted label sequence includes the preset new label insertion position, insert the new label at the preset new label insertion position of the adjusted label sequence.

[0104] In this application, the external service tag sequence in the user's current tag sequence can be compared with the latest external service tag sequence to determine the newly added tag. By checking whether the adjusted tag sequence contains the newly added tag, it can be determined whether the adjusted tag sequence contains the newly added tag.

[0105] In the present application, the preset insertion position of the new tag may be after the target tag, and the target tag may be any system-level tag.

[0106] For ease of understanding, Figure 5 As an example, assuming that the preset new tag insertion position is after "Original Works Collection", the sequence for inserting new tags into the adjusted tag sequence is as follows: Figure 6 shown.

[0107] In this application, some system-level tags may be deleted by the user, resulting in the adjusted tag sequence not containing the preset new tag insertion position. For example, because the system-level tag "pictures and text" is deleted by the user, the position of "Original Works Collection" is incorrect, causing the system to believe that the adjusted tag sequence does not contain the preset new tag insertion position. In this case, further processing is required.

[0108] In a possible implementation, if the adjusted tag sequence does not include the preset new tag insertion position, the method further includes:

[0109] Obtain system-level tag configuration information; restore the system-level tag in the adjusted tag sequence to the configuration of the system-level tag in the system-level tag configuration information to obtain a restored tag sequence; and insert the new tag into the preset new tag insertion position in the restored tag sequence.

[0110] In the present application, the system-level tag configuration information includes the system-level tags and the arrangement order of the system-level tags.

[0111] After restoring the system-level tag in the adjusted tag sequence to the configuration of the system-level tag in the system-level tag configuration information, the restored tag sequence will inevitably include the preset new tag insertion position, and the new tag is now in its original position in the restored tag sequence.

[0112] The insertion logic here is consistent with the insertion logic in the above embodiment and will not be repeated here.

[0113] In a possible implementation, during the process of performing error correction on the adjusted label sequence to obtain the error-corrected label sequence, if an abnormality is indicated, the method further includes:

[0114] Acquire system-level label configuration information; restore the system-level labels in the adjusted label sequence to the configuration of the system-level labels in the system-level label configuration information, and obtain a restored label sequence as the label sequence after error correction.

[0115] In this application, an exception refers to an unforeseen error that cannot be corrected and requires a rollback to the default configuration.

[0116] In the present application, the system-level tag configuration information includes the system-level tags and the arrangement order of the system-level tags.

[0117] For ease of understanding, Figure 5 As an example, assume that Figure 5 If the sequence shown in the figure is abnormal when inserting new tags, the system-level tags in the sequence will be restored to the default configuration, and the external service tag sequence will remain unchanged. Figure 7 shown.

[0118] A tag sequence processing method provided in an embodiment of the present application is described above. The following describes an apparatus for executing the tag sequence processing method.

[0119] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of a label sequence processing device provided in an embodiment of the present application. Figure 8 As shown, the label sequence processing device includes:

[0120] An acquisition unit 11 is configured to acquire a user's current tag sequence and the latest external service tag sequence;

[0121] a fusion unit 12 configured to fuse the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, wherein the latest external service label sequence is arranged after the user's current label sequence in the label sequence to be processed;

[0122] A receiving unit 13 is configured to receive a tag sequence adjustment instruction from a user; the tag sequence adjustment instruction from the user is configured to instruct to adjust the positions of the first tag and the second tag in the tag sequence to be processed;

[0123] A responding unit 14 is configured to respond to the user's tag sequence adjustment instruction to obtain an adjusted tag sequence;

[0124] The error correction processing unit 15 is configured to perform error correction on the adjusted label sequence to obtain a label sequence after error correction.

[0125] In a possible implementation, the error correction processing unit includes:

[0126] an invalid tag filtering processing unit, configured to perform invalid tag filtering processing on the adjusted tag sequence;

[0127] And, a new label insertion processing unit is used to perform a new label insertion process on the adjusted label sequence to obtain a label sequence after error correction.

[0128] In a possible implementation, the invalid tag filtering processing unit is specifically configured to:

[0129] Determining whether the adjusted tag sequence includes an invalid tag;

[0130] If the adjusted tag sequence includes an invalid tag, the invalid tag in the adjusted tag sequence is deleted.

[0131] In a possible implementation, the newly added tag insertion processing unit is specifically configured to:

[0132] Determining whether the adjusted tag sequence includes a newly added tag;

[0133] If the adjusted tag sequence includes a new tag, determining whether the adjusted tag sequence includes a preset new tag insertion position;

[0134] If the adjusted tag sequence includes the preset new tag insertion position, the new tag is inserted at the preset new tag insertion position of the adjusted tag sequence.

[0135] In a possible implementation, the new tag insertion processing unit is further configured to:

[0136] If the adjusted label sequence does not include the preset new label insertion position, obtain the system-level label configuration information; restore the system-level label in the adjusted label sequence to the configuration of the system-level label in the system-level label configuration information to obtain a restored label sequence; insert the new label into the preset new label insertion position in the restored label sequence.

[0137] In a possible implementation, the apparatus further includes:

[0138] A recovery unit is used to obtain system-level label configuration information if an abnormality is prompted during the process of performing error correction on the adjusted label sequence to obtain the label sequence after error correction; and to restore the system-level label in the adjusted label sequence to the configuration of the system-level label in the system-level label configuration information to obtain a restored label sequence as the label sequence after error correction.

[0139] An electronic device is also provided in an embodiment of the present application. Figure 9 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 9 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0140] like Figure 9 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 602 or programs loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, the RAM 603 also stores various programs and data required for the operation of the electronic device. The processing device 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0141] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Figure 9 The electronic device is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0142] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the label sequence processing methods provided in the embodiments of the present application.

[0143] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any label sequence processing method provided in the embodiment of the present application.

[0144] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.

[0145] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0146] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0147] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

Claims

1. A tag sequence processing method, characterized in that: include: Get the user's current tag sequence and the latest external service tag sequence; Merging the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, wherein the latest external service label sequence is arranged after the user's current label sequence in the label sequence to be processed; receiving a tag sequence adjustment instruction from a user; the tag sequence adjustment instruction from the user is used to instruct to adjust the positions of the first tag and the second tag in the tag sequence to be processed; In response to the user's tag sequence adjustment instruction, obtaining an adjusted tag sequence; Performing invalid tag filtering on the adjusted tag sequence, and determining whether the adjusted tag sequence includes a newly added tag, the newly added tag being obtained by comparing an external service tag sequence in the user's current tag sequence with the latest external service tag sequence; If the adjusted label sequence includes a new label, determine whether the adjusted label sequence includes a preset new label insertion position; if the adjusted label sequence includes the preset new label insertion position, insert the new label into the preset new label insertion position of the adjusted label sequence to obtain a corrected label sequence.

2. The method according to claim 1, characterized in that The performing invalid tag filtering on the adjusted tag sequence includes: Determining whether the adjusted tag sequence includes an invalid tag; If the adjusted tag sequence includes an invalid tag, the invalid tag in the adjusted tag sequence is deleted.

3. The method according to claim 1, characterized in that If the adjusted tag sequence does not include the preset new tag insertion position, the method further includes: Get system-level tag configuration information; Restoring the system-level labels in the adjusted label sequence to the configuration of the system-level labels in the system-level label configuration information to obtain a restored label sequence; Insert the new tag into the preset new tag insertion position in the restored tag sequence.

4. The method according to claim 1, wherein In the process of performing error correction on the adjusted label sequence to obtain the label sequence after error correction, if an abnormality is indicated, the method further includes: Get system-level tag configuration information; The system-level labels in the adjusted label sequence are restored to the configuration of the system-level labels in the system-level label configuration information to obtain a restored label sequence as the label sequence after error correction.

5. A label sequence processing device, characterized in that: include: An acquisition unit, used to acquire the user's current tag sequence and the latest external service tag sequence; a fusion unit, configured to fuse the latest external service label sequence with the user's current label sequence to obtain a label sequence to be processed, wherein the latest external service label sequence is arranged after the user's current label sequence in the label sequence to be processed; A receiving unit, configured to receive a tag sequence adjustment instruction from a user; the tag sequence adjustment instruction from the user is used to instruct to adjust the positions of the first tag and the second tag in the tag sequence to be processed; a responding unit, configured to respond to the user's tag sequence adjustment instruction to obtain an adjusted tag sequence; an error correction processing unit, configured to perform error correction processing on the adjusted label sequence to obtain a label sequence after error correction processing; The error correction processing unit includes an invalid tag filtering processing unit and a new tag insertion processing unit: an invalid tag filtering processing unit, configured to perform invalid tag filtering processing on the adjusted tag sequence; a new tag insertion processing unit, configured to determine whether the adjusted tag sequence includes a new tag, the new tag being obtained by comparing an external service tag sequence in the user's current tag sequence with the latest external service tag sequence; If the adjusted label sequence includes a new label, determine whether the adjusted label sequence includes a preset new label insertion position; if the adjusted label sequence includes the preset new label insertion position, insert the new label into the preset new label insertion position of the adjusted label sequence to obtain a corrected label sequence.

6. A computer program product, characterized in that The method comprises computer-readable instructions, which, when executed on an electronic device, enable the electronic device to implement the tag sequence processing method according to any one of claims 1 to 4.

7. An electronic device, characterized in that: comprising at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program so that the electronic device can implement the tag sequence processing method according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the tag sequence processing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Label management method and device, equipment and storage medium

    CN114065045A

  • Information display method and device, electronic equipment and storage medium

    CN117010908A