Label sequence processing method and device

By acquiring and integrating the user's current tag sequence with external service tag sequence, receiving user adjustment instructions and performing error correction processing, the problem that tag sequence cannot be customized is solved in the prior art, and the stability of the tag sequence and the satisfaction of user's custom needs are achieved.

CN120386878AActive Publication Date: 2025-07-29FLYING FOX INFORMATION TECH TIANJIN CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the tag sequence of the platform client can only be fixedly configured, which cannot meet the user's custom needs, resulting in the inability to respond to tag changes in time, the maintenance cost is high and the tag sequence is abnormal cannot be effectively handled, which affects the service quality.

Method used

Provide a tag sequence processing method, obtains the user's current tag sequence and external service tag sequence, receives the user's tag sequence adjustment instructions after fusing, responds to adjustments and performs error correction processing, including invalid tag filtering and new tag insertion, ensuring the stability of the tag sequence.

Benefits of technology

It realizes user-defined tag sorting in multi-source tag hybrid output scenarios, ensuring the stability and user experience of the tag sequence, reducing maintenance costs, and improving service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386878A_ABST
    Figure CN120386878A_ABST
Patent Text Reader

Abstract

The invention discloses a label sequence processing method and device, and relates to the technical field of data processing, the scheme can obtain the current label sequence of a user and the latest external service label sequence, and the label change in any system can be compatible; the latest external service label sequence and the current label sequence of the user can be fused to obtain a to-be-processed label sequence, a label sequence adjusting instruction of the user is received, the label sequence adjusting instruction of the user is responded to obtain an adjusted label sequence, and the label sequence can be adjusted under the scene of multi-source label mixed output. Enabling a user to customize tag sorting; furthermore, error correction processing can be carried out on the adjusted tag sequence to obtain the tag sequence after error correction processing, so that the data error correction function of the tag sequence is realized, the stability of the tag sequence is ensured, and the tag sequence processing scheme can meet the user-defined configuration requirement of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and in particular, to a method and device for processing a tag sequence. Background Art

[0002] For a platform with rich content covering multiple services, its client usually contains multiple columns. For example, dynamics, works, live broadcasts, mini-courses, etc. Under each column, there may be more refined classifications, which are usually called tags. These tags are multi-data source tags, including system-level tags and multiple external service tags. For example, under the works column, there may be different tags such as videos, graphics, playlists, audio, dramas, original work collections, work collection pl-1000, work collection pl-1001, etc. Among them, "videos, graphics, playlists, audio, dramas, original work collections" are system-level tags, and "work collection pl-1000, work collection pl-1001" are external service tags. Each tag contains specific types of content, and users can click on these tags to view the corresponding types of content.

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

[0004] Therefore, how to provide a method for processing a tag sequence 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 method and device for processing a tag sequence to achieve the purpose of meeting the user's customization requirements. The specific solutions are as follows:

[0006] The first aspect of this application provides a method for processing a tag sequence, including:

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

[0008] Fuse the latest external service tag sequence with the user's current tag sequence to obtain a to-be-processed tag sequence. In the to-be-processed tag sequence, the latest external service tag sequence is arranged after the user's current tag sequence;

[0009] Receive the user's tag order adjustment instruction; the user's tag order adjustment instruction is used to indicate to adjust the positions of the first tag and the second tag in the to-be-processed tag sequence;

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

[0011] Perform error correction on the adjusted tag sequence to obtain an error-corrected tag sequence.

[0012] In a possible implementation, the performing error correction on the adjusted tag sequence to obtain an error-corrected tag sequence includes:

[0013] Perform invalid tag filtering on the adjusted tag sequence and perform new tag insertion on the adjusted tag sequence to obtain an error-corrected tag sequence.

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

[0015] Determine whether the adjusted tag sequence contains invalid tags;

[0016] If the adjusted tag sequence contains invalid tags, delete the invalid tags in the adjusted tag sequence.

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

[0018] Determine whether the adjusted tag sequence contains new tags;

[0019] If the adjusted tag sequence contains new tags, determine whether the adjusted tag sequence contains a preset new tag insertion position;

[0020] If the adjusted tag sequence contains the preset new tag insertion position, insert the new tag at the preset new tag insertion position of the adjusted tag sequence.

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

[0022] Obtain system-level tag configuration information;

[0023] Restore the system-level tags in the adjusted tag sequence to the configuration of the system-level tags in the system-level tag configuration information to obtain a restored tag sequence;

[0024] Insert the new tag at the preset new tag insertion position in the restored tag sequence.

[0025] In a possible implementation, during the process of performing error correction on the adjusted tag sequence to obtain an error-corrected tag sequence, if an exception is prompted, the method further includes:

[0026] Obtain system-level tag configuration information;

[0027] Restore the system-level tags in the adjusted tag sequence to the configurations of the system-level tags in the system-level tag configuration information, and obtain the restored tag sequence as the tag sequence after the error correction process.

[0028] The second aspect of this application provides a tag sequence processing device, including:

[0029] An obtaining unit, configured to obtain the current tag sequence of the user and the latest external service tag sequence;

[0030] A fusion unit, configured to fuse the latest external service tag sequence with the current tag sequence of the user to obtain a to-be-processed tag sequence, and in the to-be-processed tag sequence, the latest external service tag sequence is arranged after the current tag sequence of the user;

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

[0032] A response unit, configured to obtain an adjusted tag sequence in response to the tag order adjustment instruction of the user;

[0033] An error correction processing unit, configured to perform error correction processing on the adjusted tag sequence to obtain a tag sequence after the error correction process.

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

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

[0036] And a new tag insertion and processing unit, configured to perform new tag insertion and processing on the adjusted tag sequence to obtain an error-corrected tag sequence.

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

[0038] Determine whether the adjusted tag sequence contains invalid tags;

[0039] If the adjusted tag sequence contains invalid tags, delete the invalid tags in the adjusted tag sequence.

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

[0041] Determine whether the adjusted tag sequence contains new tags;

[0042] If the adjusted tag sequence contains new tags, determine whether the adjusted tag sequence contains a preset new tag insertion position;

[0043] If the adjusted tag sequence contains the preset new tag insertion position, insert the new tag 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 tag sequence does not contain the preset new tag insertion position, obtain system-level tag configuration information; restore the system-level tags in the adjusted tag sequence to the configuration of the system-level tags in the system-level tag configuration information to obtain a restored tag sequence; insert the new tag at the preset new tag insertion position in the restored tag sequence.

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

[0047] A restoration unit, configured to, during the process of performing error correction processing on the adjusted tag sequence to obtain an error-corrected tag sequence, if an exception is prompted, obtain system-level tag configuration information; restore the system-level tags in the adjusted tag sequence to the configuration of the system-level tags in the system-level tag configuration information to obtain a restored tag sequence as the error-corrected tag sequence.

[0048] A third aspect of the present application provides a computer program product, including computer-readable instructions, which, when running on an electronic device, enable the electronic device to implement the tag sequence processing method of the first aspect or any implementation manner of the first aspect.

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

[0050] The memory is used to store a computer program;

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

[0052] The fifth aspect of the present application provides a computer-readable storage medium carrying one or more computer programs, which, when executed by an electronic device, can enable the electronic device to perform the label sequence processing method according to the first aspect or any implementation manner of the first aspect above.

[0053] By means of the above technical solutions, the label sequence processing method and device provided by the present application can obtain the user's current label sequence and the latest external service label sequence, and 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 to-be-processed label sequence, receive the user's label order adjustment instruction, and in response to the user's label order adjustment instruction, obtain the adjusted label sequence, so as to enable the user to customize the label sorting in the scenario of multi-source label mixed output; further, it can also perform error correction processing on the adjusted label sequence to obtain the error-corrected label sequence, realize the data error correction function of the label sequence, and ensure the stability of the label sequence. Therefore, this label sequence processing solution can meet the user's customized configuration requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and the original elements and elements are not necessarily drawn to scale.

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

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

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

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

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

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

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

[0062] Figure 8 This is a schematic structural diagram of a tag sequence processing device provided by an embodiment of the present application;

[0063] Figure 9 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

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

[0065] System-level tag: A fixed-type tag predefined by the platform (such as "video", "graphic and text", "original work collection"), which is the initialization state of tag configuration;

[0066] External service: A service whose core data is stored in other systems (such as "work collection service"), and there can be multiple. The local service can only read the data of the external service and has no permission to delete or modify it;

[0067] External service tag: The format is "service prefix - service ID" (such as the work collection tag pl-1000, where pl is the prefix of the work collection service and 1000 is its ID in the work collection service);

[0068] Multi-data source tag: A tag sequence obtained by fusing system-level tags and multiple external service tags, which is also simply referred to as a multi-source tag hereinafter.

[0069] Next, the embodiments of the present application will be described with reference to the accompanying drawings in the embodiments of the present application. The terms used in the implementation part 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] Next, the embodiments of the present application will be described with reference to the accompanying drawings. Those of ordinary skill in the art will know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0071] The terms "first", "second", etc. in the specification, claims and the above accompanying drawings of the present application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing objects with the same attributes when describing the embodiments of the present application. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device including a series of units does not have to be limited to those units, but may include other units that are not clearly listed or are inherent to these processes, methods, products or devices.

[0072] For a platform with rich content and covering multiple services, its client usually contains multiple columns, such as dynamics, works, live broadcasts, mini-courses, etc. Under each column, there may be more detailed classifications, which are usually called tags. These tags are multi-data source tags, including system-level tags and multiple external service tags. For example, under the works column, there may be different tags such as videos, graphics, playlists, audio, TV series, original work collections, work collection pl-1000, work collection pl-1001, etc. Among them, "videos, graphics, playlists, audio, TV series, original work collections" are system-level tags, and "work collection pl-1000, work collection pl-1001" are external service tags. Each tag contains specific types of content, and users can click on these tags to view the corresponding types of content.

[0073] In the prior art, for a tag sequence composed of system-level tags and external service tags, only a fixed configuration method preset by the client can be adopted, 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 adopt the fixed sorting method preset by the client;

[0076] Second: It cannot respond to tag changes in a timely manner;

[0077] Third: When the tag changes, the client cannot be compatible, and the client needs to be re-developed and released, resulting in high maintenance costs;

[0078] Fourth, when an abnormality occurs in the tag sequence, it cannot be effectively processed, affecting the service quality;

[0079] To solve the above problems, the embodiments of the present application provide a method for processing a tag sequence. The method for processing a tag sequence in the embodiments of the present application will be introduced in detail below with reference to the accompanying drawings.

[0080] Referring to Figure 1 , Figure 1 is a schematic flowchart of a method for processing a tag sequence provided by an embodiment of the present application. As Figure 1 shown, a method for processing a tag sequence provided by an embodiment of the present application may include the following steps, and these steps will be 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 label sequence is obtained for the first time, or if the label sequence has not been successfully processed, the user's current label sequence may refer to the system default label sequence. At this time, the user's current label sequence only contains system-level labels. If the label sequence has been successfully processed, the user's current label sequence may also refer to the most recently processed label sequence. At this time, the user's current label sequence may only contain system-level labels, or may contain both system-level labels and external service labels. This application does not make any restrictions in this regard. In this application, the user's current label sequence can be read from the cache, and the latest external service label sequence can be obtained from an external service. The external service can be one or more. The cache can adopt distributed cache technology (such as redis), and the database can adopt a mysql database. This application does not make any restrictions in this regard.

[0083] S102: Merge the latest external service label sequence with the user's current label sequence to obtain a to-be-processed label sequence. In the to-be-processed label sequence, the latest external service label sequence is arranged after the user's current label sequence.

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

[0085] S103: Receive the user's label order adjustment instruction; the user's label order adjustment instruction is used to indicate adjusting the positions of the first label and the second label in the to-be-processed label sequence.

[0086] In this application, the user's label order adjustment instruction can be a single instruction or an instruction sequence containing multiple instructions. Each instruction is used to indicate adjusting the positions of the first label and the second label in the to-be-processed label sequence. In this application, the user can adjust the order of any label in the label sequence. Then, in this application, both the first label and the second label are system-level labels, or both the first label and the second label are external service labels, or the first label is a system-level label while the second label is an external service label, or the first label is an external service label and the second label is a system-level label. This application does not make any restrictions in this regard.

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

[0088] S104: In response to the user's tag order adjustment instruction, obtain the adjusted tag sequence;

[0089] For ease of understanding, taking the Figure 2 to-be-processed tag sequence shown as an example, assuming that the user's tag order adjustment instruction indicates to adjust the "graphic and text" tag to before the "video" tag, then the adjusted tag sequence is as Figure 3 shown. Assuming that the user's tag order adjustment instruction indicates to first adjust the "graphic and text" tag to before the "video" tag, and then adjust the "portfolio pl-1000" tag to before the "playlist" tag, then the adjusted tag sequence is as Figure 4 shown.

[0090] S105: Perform error correction processing on the adjusted tag sequence to obtain the error-corrected tag sequence.

[0091] In this application, considering that there may be some incorrect tags or duplicate tags between the latest external service tag sequence and the user's current tag sequence, or the adjusted tag sequence does not meet the business rules, therefore, it is necessary to perform error correction processing on the adjusted tag sequence to ensure that the error-corrected sequence can meet both the user's customized requirements and the business rules.

[0092] It should be noted that the process of performing error correction processing on the adjusted tag sequence is imperceptible to the user, does not affect the user experience, but instead avoids service exceptions caused by abnormal tag sequences, 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 tag sequence processing method provided in this embodiment can obtain the user's current tag sequence and the latest external service tag sequence, realize compatibility with tag changes in any system; and can fuse the latest external service tag sequence with the user's current tag sequence to obtain the to-be-processed tag sequence, receive the user's tag order adjustment instruction, and in response to the user's tag order adjustment instruction, obtain the adjusted tag sequence, realizing user-defined tag sorting in the scenario of multi-source tag mixed output; further, it can perform error correction processing on the adjusted tag sequence to obtain the error-corrected tag sequence, realizing the data error correction function of the tag sequence and ensuring the stability of the tag sequence. Therefore, this tag sequence processing solution can meet the user's customized configuration requirements.

[0094] In a possible implementation, performing error correction processing on the adjusted tag sequence to obtain an error-corrected tag sequence includes:

[0095] Performing invalid tag filtering processing on the adjusted tag sequence and performing new tag insertion processing on the adjusted tag sequence to obtain an error-corrected tag sequence.

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

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

[0098] Determining whether the adjusted tag sequence contains invalid tags; if the adjusted tag sequence contains invalid tags, deleting the invalid tags in the adjusted tag sequence.

[0099] In this application, invalid tags can be preset, and by checking whether the preset invalid tags are included in the adjusted tag sequence, it can be determined whether the adjusted tag sequence contains invalid tags.

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

[0101] For ease of understanding, taking Figure 4 the adjusted tag sequence shown as an example, assuming that the preset invalid tag is "portfolio pl-1000", the sequence after performing invalid tag filtering processing on the adjusted tag sequence is as Figure 5 shown.

[0102] In a possible implementation, the performing new tag insertion processing on the adjusted tag sequence includes:

[0103] Determine whether the adjusted label sequence contains new labels; if the adjusted label sequence contains new labels, determine whether the adjusted label sequence contains a preset new label insertion position; if the adjusted label sequence contains 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 label sequence in the user's current label sequence can be compared with the latest external service label sequence to determine new labels. Whether the adjusted label sequence contains new labels can be determined by checking whether the adjusted label sequence contains such new labels.

[0105] In this application, the preset new label insertion position can be behind a target label, and the target label can be any system-level label.

[0106] For ease of understanding, taking the Figure 5 shown sequence as an example, assuming the preset new label insertion position is behind "Original Works Collection", the sequence for inserting new labels into the adjusted label sequence is as Figure 6 shown.

[0107] In this application, it may be that some system-level labels are deleted by the user, resulting in the adjusted label sequence not containing the preset new label insertion position. For example, since the system-level label "Graphics and Text" is deleted by the user, the position of "Original Works Collection" is incorrect, making the system think that the adjusted label sequence does not contain the preset new label insertion position. In this case, further processing is required.

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

[0109] Obtain 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 to obtain a restored label sequence; insert the new label at the preset new label insertion position in the restored label sequence.

[0110] In this application, the system-level label configuration information contains system-level labels and the arrangement order of system-level labels.

[0111] After 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, the restored label sequence will surely contain the preset new label insertion position, and at this time, the original position of the new label in the restored label sequence.

[0112] The insertion logic here is the same as that in the above embodiments and will not be elaborated again.

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

[0114] Obtain system-level label configuration information; restore the system-level labels in the adjusted label sequence to the configurations of the system-level labels in the system-level label configuration information, and obtain the restored label sequence as the error-corrected label sequence.

[0115] In this application, an exception refers to an unforeseeable error that causes the inability to correct errors and requires a fallback to the default configuration.

[0116] In this application, the system-level label configuration information includes system-level labels and the arrangement order of system-level labels.

[0117] For ease of understanding, taking the Figure 5 shown sequence as an example, assuming that an exception is prompted during the process of inserting a new label into the Figure 5 shown sequence, the system-level labels in this sequence will be restored to the default configuration, and the external service label sequence remains unchanged, as specifically shown in Figure 7 shown.

[0118] The above introduces a label sequence processing method provided by an embodiment of this application. Next, an apparatus for executing the above label sequence processing method will be introduced.

[0119] Please refer to Figure 8 , Figure 8 which is a schematic structural diagram of a label sequence processing apparatus provided by an embodiment of this application. As shown in Figure 8 , the label sequence processing apparatus includes:

[0120] An obtaining unit 11, configured to obtain the user's current label sequence and the latest external service label 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 to-be-processed label sequence, where in the to-be-processed label sequence, the latest external service label sequence is arranged after the user's current label sequence;

[0122] A receiving unit 13, configured to receive the user's label order adjustment instruction; the user's label order adjustment instruction is used to indicate to adjust the positions of the first label and the second label in the to-be-processed label sequence;

[0123] A response unit 14, configured to obtain an adjusted label sequence in response to the user's label sequence adjustment instruction;

[0124] An error correction processing unit 15, configured to perform error correction processing on the adjusted label sequence to obtain an error-corrected label sequence.

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

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

[0127] And a new label insertion processing unit, configured to perform new label insertion processing on the adjusted label sequence to obtain an error-corrected label sequence.

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

[0129] Determine whether the adjusted label sequence contains invalid labels;

[0130] If the adjusted label sequence contains invalid labels, delete the invalid labels in the adjusted label sequence.

[0131] In a possible implementation, the new label insertion processing unit is specifically configured to:

[0132] Determine whether the adjusted label sequence contains new labels;

[0133] If the adjusted label sequence contains new labels, determine whether the adjusted label sequence contains a preset new label insertion position;

[0134] If the adjusted label sequence contains the preset new label insertion position, insert the new label at the preset new label insertion position of the adjusted label sequence.

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

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

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

[0138] A recovery unit is configured to, during the process of performing error correction processing on the adjusted tag sequence to obtain an error-corrected tag sequence, if an exception is prompted, obtain system-level tag configuration information; restore the system-level tags in the adjusted tag sequence to the configurations of the system-level tags in the system-level tag configuration information to obtain a restored tag sequence, which is used as the error-corrected tag sequence.

[0139] An embodiment of the present application also provides an electronic device. Refer to Figure 9 As shown, it shows a schematic structural diagram of an electronic device suitable for implementing the electronic device in 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, laptop computers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), desktop computers, and the like. Figure 9 The electronic device shown is only an example and should not impose any limitations on the functions and usage scopes of the embodiments of the present application.

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

[0141] Generally, 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 wiredly to exchange data. Although Figure 9 the electronic device shown has various devices, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0142] An embodiment of the present application also provides a computer program product including computer-readable instructions, which, when running on an electronic device, enable the electronic device to implement any one of the tag sequence processing methods provided by the embodiments of the present application.

[0143] In an embodiment of the present application, a computer-readable storage medium is further provided. 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 of the label sequence processing methods provided in the embodiments of the present application.

[0144] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationship between the modules indicates that they have a communication connection, 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. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or dedicated circuits. However, for the present application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disc of a computer, etc., and includes several instructions to enable a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0146] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part 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 processes or functions described in the embodiments of the present application are wholly or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from a website, a computer, a training device, or a data center to another website, a computer, a training device, or a data center by wired means (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless means (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

Claims

1. A method for processing label sequences, characterized in that, Including: Obtain the current tag sequence of the user and the latest external service tag sequence; Fuse the latest external service tag sequence with the current tag sequence of the user to obtain a to-be-processed tag sequence. In the to-be-processed tag sequence, the latest external service tag sequence is arranged after the current tag sequence of the user; Receive the tag order adjustment instruction of the user; the tag order adjustment instruction of the user is used to indicate to adjust the positions of the first tag and the second tag in the to-be-processed tag sequence; In response to the tag order adjustment instruction of the user, obtain the adjusted tag sequence; Perform error correction processing on the adjusted tag sequence to obtain the error-corrected tag sequence.

2. The method according to claim 1, wherein The performing error correction processing on the adjusted tag sequence to obtain the error-corrected tag sequence includes: Perform invalid tag filtering processing on the adjusted tag sequence, and perform new tag insertion processing on the adjusted tag sequence to obtain the error-corrected tag sequence.

3. The method according to claim 2, characterized in that, The performing invalid tag filtering processing on the adjusted tag sequence includes: Determine whether the adjusted tag sequence contains invalid tags; If the adjusted tag sequence contains invalid tags, delete the invalid tags in the adjusted tag sequence.

4. The method according to claim 2, wherein The performing new tag insertion processing on the adjusted tag sequence includes: Determine whether the adjusted tag sequence contains new tags; If the adjusted tag sequence contains new tags, determine whether the adjusted tag sequence contains a preset new tag insertion position; If the adjusted tag sequence contains the preset new tag insertion position, insert the new tag at the preset new tag insertion position of the adjusted tag sequence.

5. The method according to claim 4, characterized in that, If the adjusted tag sequence does not contain the preset new tag insertion position, the method further includes: Obtain the system-level tag configuration information; Restore the system-level tags in the adjusted tag sequence to the configuration of the system-level tags in the system-level tag configuration information to obtain the restored tag sequence; Insert the new tag at the preset new tag insertion position in the restored tag sequence.

6. The method according to claim 1, characterized in that, During the process of performing error correction processing on the adjusted tag sequence to obtain the error-corrected tag sequence, if an exception is prompted, the method further includes: Obtain the system-level tag configuration information; Restore the system-level tags in the adjusted tag sequence to the configuration of the system-level tags in the system-level tag configuration information to obtain the restored tag sequence as the error-corrected tag sequence.

7. A label sequence processing device, characterized in that Including: An obtaining unit, configured to obtain the current tag sequence of the user and the latest external service tag sequence; A fusing unit, configured to fuse the latest external service tag sequence with the current tag sequence of the user to obtain a to-be-processed tag sequence. In the to-be-processed tag sequence, the latest external service tag sequence is arranged after the current tag sequence of the user; A receiving unit, configured to receive a label order adjustment instruction of a user; the label order adjustment instruction of the user is used to indicate to adjust the positions of a first label and a second label in the to-be-processed label sequence; A response unit, configured to obtain an adjusted label sequence in response to the label order adjustment instruction of the user; An error correction processing unit, configured to perform error correction processing on the adjusted label sequence to obtain an error correction processed label sequence.

8. A computer program product, characterized in that, It includes computer-readable instructions, which, when running on an electronic device, cause the electronic device to implement the label sequence processing method according to any one of claims 1 to 6.

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

10. A computer-readable storage medium, characterized in that, The storage medium carries one or more computer programs, which, when executed by an electronic device, can cause the electronic device to implement the label sequence processing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Navigation tag sorting method and device

    CN106649376A

  • Text error correction method and device, electronic equipment and computer storage medium

    CN113743101A

  • Label management method and device, equipment and storage medium

    CN114065045A

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

    CN117010908A

  • Instruction storage method and device, electronic equipment and storage medium

    CN117591177A