CN117874303A - Data processing method and related device - Google Patents
Data processing method and related device Download PDFInfo
- Publication number
- CN117874303A CN117874303A CN202311836998.4A CN202311836998A CN117874303A CN 117874303 A CN117874303 A CN 117874303A CN 202311836998 A CN202311836998 A CN 202311836998A CN 117874303 A CN117874303 A CN 117874303A
- Authority
- CN
- China
- Prior art keywords
- data
- key
- value
- type information
- serialized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a data processing method and a related device, which are applied to the technical field of terminals, wherein the method comprises the following steps: acquiring target data; and carrying out serialization processing on the target data to obtain serialized data, wherein the serialized data comprises data type information of the target data, and the data type information is analyzed in the reverse serialization, so that the accuracy of the data type is facilitated when the serialized data is restored to the target data in the reverse serialization process, the use of the target data in the context of the original service environment is facilitated, and the recovery of the service flow realized based on the target data is facilitated.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a data processing method and a related device.
Background
JSON is a lightweight data exchange format that is easy for a person to read and write, and at the same time easy for a machine to parse and generate. In programming practice, a method for serialization and deserialization is widely used by using JSON as a data storage format. In some examples, class objects in a high-level language (e.g., c++) may be stored in bytes to disk, database, or transmitted through a JSON serialization tool, and serialized byte objects may be restored to class objects through a JSON deserialization tool.
In some implementations, in the case of interruption of some services of the electronic device, the electronic device performs serialization processing on data related to the service into JSON format and stores the JSON format, and in the case of restoration of the service, performs deserialization processing on the JSON format data to apply the deserialization processing in the original service flow, so as to restore the service. However, at present, there are cases that the service cannot be recovered after the interruption, which affect the user experience.
Disclosure of Invention
The embodiment of the application provides a data processing method and a related device, which can enable serialized data obtained by serializing target data to include data type information of the target data, and the data type information can be analyzed in a reverse serialization process, so that the target data can be recovered to be a correct data type in the reverse serialization process, the target data can be used in the context of an original service environment, and a service flow realized based on the target data can be recovered.
In a first aspect, an embodiment of the present application proposes a data processing method, applied to an electronic device, where the method includes: acquiring target data; and carrying out serialization processing on the target data to obtain serialized data, wherein the serialized data comprises data type information of the target data, and the data type information is analyzed in the reverse serialization.
It should be appreciated that the target data may be any Object, such as a Bean entity Object, a generic Map Object, an Object, or other custom Object, which is not limited in this application.
In the embodiment of the application, the serialized data obtained after the serialization processing of the target data comprises the data type information of the target data, and the data type information is analyzed in the reverse serialization process and can be used for recovering the real data type of the target data, so that the real data type of the target data can be recovered in the reverse serialization process no matter what data type is in the target data, the data processing method provided by the application is used for recovering the service flow realized based on the target data.
With reference to the first aspect, in certain implementations of the first aspect, the serialized data includes a first key-value pair including a first key and a first value, the first key including data type information for the first value.
In one possible implementation, only the data type information of the first value may be included in the first key.
With reference to the first aspect, in certain implementations of the first aspect, the first key includes a first portion for identifying the first key-value pair and a second portion including data type information of the first value.
In one possible implementation, the first key may include a second key corresponding to the first value in the target data and data type information of the first value.
In this embodiment of the present application, the first key includes data type information of the first value, so that the data type information of the first value is obtained by identifying the first key in the reverse serialization process, and then the first value is parsed based on the data type information of the first value, which is helpful for recovering the original data type of the first value.
With reference to the first aspect, in certain implementations of the first aspect, there is also a first separator between the first portion and the second portion.
Alternatively, the first separator may be "/", ": "and the like, which can distinguish the first portion from the second portion, are not limited in this application.
With reference to the first aspect, in certain implementation manners of the first aspect, the first value is an array, and the second portion further includes first information for indicating that the first value is an array, and the data type information of the first value includes data type information of elements in the array.
Alternatively, the first information may be used to indicate that the first value is a tuple, a set, a dictionary, or a list, and the data type information of the element may be integer, floating point, or boolean, but the application is not limited thereto.
With reference to the first aspect, in certain implementation manners of the first aspect, a second separator is further included between the first information and data type information of the data element.
Alternatively, the second separator may be "/", for example: "any character that can distinguish the first information from the data type information of the data element, the first separator and the second separator may be the same or different, and the present application is not limited thereto.
With reference to the first aspect, in certain implementations of the first aspect, the target data includes a second key-value pair including a second key and a first value; the step of carrying out serialization processing on the target data to obtain serialized data comprises the following steps: determining data type information of the first value; taking the second key as a first part of a first key and the data type information of the first value as a second part of the first key to obtain a first key value pair comprising the first key and the first value; and converting the first key value pair into a serialization format to obtain serialization data.
It should be understood that, by the method provided in the embodiments of the present application, the second key value pair included in the target data may be recombined into the first key value pair, and the first key value pair is converted into the serialization format, where the first key in the first key value pair includes a first portion and a second portion, the first portion may include the second key, and the second portion may include the data type information of the first value.
It should also be appreciated that the second key-value pair may refer broadly to any key-value pair in the target data.
In this embodiment, by traversing all key value pairs in the target data, according to the real data types of the median value of different key value pairs, a new key is assembled with a key corresponding to the value, for example, the second key in the second key value pair is assembled with the data type information of the first value to obtain the first key, and the first key value pair including the first key and the first value is subjected to format conversion to obtain the serialized data including the first key value pair, so that the serialized data may include the real data types of the median value of each key value pair, which is favorable for recovering the original data types through the deserialization process.
With reference to the first aspect, in certain implementation manners of the first aspect, the electronic device includes a target module, and the acquiring target data includes: under the condition that the service of the target module is interrupted, the target module acquires the target data; the step of carrying out serialization processing on the target data to obtain serialized data further comprises the following steps: storing the serialized data.
Optionally, the target module may be an intention registration module, an intention triggering module, a slot analysis module, an intention decision module and an intention notification module in the electronic device, and the service of the target module may be an intelligent film service or any other service that can be implemented, where the application does not specifically limit the service types of the target module and the target module.
Alternatively, the serialized data may be stored in a Database (DB), a file system, or a cloud server in the form of a string (string), which is not limited in this application.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: acquiring the serialization data; extracting the data type information included in the serialized data; and analyzing the serialized data based on the data type information to obtain the target data.
In the embodiment of the application, the data type information of the target data contained in the serialized data is analyzed in the reverse serialization process, and the value in the serialized data is analyzed into the real data type based on the data type information, so that the serialized data can be restored into the original target data and can be utilized in the context of the original service.
With reference to the first aspect, in certain implementation manners of the first aspect, the acquiring the serialized data includes: and under the condition that the service of the target module is recovered, the target module acquires the serialized data.
With reference to the first aspect, in certain implementation manners of the first aspect, the serializing data includes a first key-value pair, and the extracting the data type information included in the serializing data includes: and extracting the data type information of the first value included in the first key value pair.
With reference to the first aspect, in certain implementation manners of the first aspect, the parsing the serialized data based on the data type information to obtain the target data includes: parsing the first value based on data type information of the first value; and combining a second key in the first keys with the first value to obtain the target data containing a second key value pair.
With reference to the first aspect, in certain implementations of the first aspect, the data type information includes one or more of: integer, floating point, string, list, tuple, dictionary, collection, boolean, or custom types.
In a second aspect, an embodiment of the present application provides an electronic device, including an acquisition unit and a processing unit, where the acquisition unit is configured to: acquiring target data; the processing unit is used for: and carrying out serialization processing on the target data to obtain serialized data, wherein the serialized data comprises data type information of the target data, and the data type information is analyzed in the reverse serialization.
Optionally, the acquiring unit and the processing unit may be integrated in the same target module, where the target module may be an intention registration module, an intention triggering module, a slot resolution module, an intention decision module, and an intention notification module in the electronic device, and the service of the target module may be an intelligent film service or any other service that can be implemented, and the application does not specifically limit the service types of the target module and the target module.
Optionally, the serialized data includes a first key-value pair, the first key-value pair including a first key and a first value, the first key including data type information for the first value.
Optionally, the first key includes a first portion for identifying the first key-value pair and a second portion including data type information of the first value.
Optionally, a first separator is also provided between the first portion and the second portion.
Optionally, the first value is an array, and the second part further includes first information for indicating that the first value is an array, and the data type information of the first value includes data type information of elements in the array.
Optionally, a second separator is further included between the first information and the data type information of the data element.
Optionally, the target data includes a second key-value pair, the second key-value pair including a second key and a first value;
optionally, the processing unit is further configured to: determining data type information of the first value; taking the second key as a first part of a first key and the data type information of the first value as a second part of the first key to obtain a first key value pair comprising the first key and the first value; and converting the first key value pair into a serialization format to obtain serialization data.
Optionally, the processing unit is further configured to: under the condition that the service of the target module is interrupted, the target module acquires the target data; and storing the serialized data.
Optionally, the acquiring unit is further configured to: acquiring the serialization data; extracting the data type information included in the serialized data; the processing unit is further configured to: and analyzing the serialized data based on the data type information to obtain the target data.
Optionally, the acquiring unit is further configured to: and under the condition of service recovery, acquiring the serialized data.
Optionally, the serialized data includes a first key value pair, the extracting the data type information included in the serialized data, and the processing unit is further configured to: and extracting the data type information of the first value included in the first key value pair.
Optionally, the processing unit is further configured to: parsing the first value based on data type information of the first value; and combining a second key in the first keys with the first value to obtain the target data containing a second key value pair.
Optionally, the data type information includes one or more of: integer, floating point, string, list, tuple, dictionary, collection, boolean, or custom types.
In a third aspect, an embodiment of the present application provides an electronic device, which in one possible implementation may be a terminal device, and may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The terminal device may be a mobile phone, a smart television, a wearable device, a tablet (Pad), a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), or the like.
The electronic device includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to cause the terminal device to perform a method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon. The computer program, when executed by a processor, implements a method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when run, causes a computer to perform the method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a chip comprising a processor for invoking a computer program in a memory to perform a method as described in the first aspect.
It should be understood that, the second aspect to the fifth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
Fig. 1 is a schematic diagram of an electronic device interface provided in an embodiment of the present application;
Fig. 2 is a schematic diagram of a service framework according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of a serialization method according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of a deserialization method according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of another data processing method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
In order to facilitate the clear description of the technical solutions of the embodiments of the present application, the following simply describes some terms and techniques related to the embodiments of the present application:
1. serializing: serialization (serialization) is the process of converting the state information of an object into a form that can be stored or transmitted, during which the object writes the current state to a temporary or persistent storage area, saving the state information as a string. After serialization, the object may be recreated by deserialization.
2. Anti-serialization: deserialize (un-serialization) is the re-conversion of a string after serialization into an object.
3. Other terms
In the embodiments of the present application, the words "first," "second," and the like are used to distinguish between identical or similar items that have substantially the same function and effect. For example, the first chip and the second chip are merely for distinguishing different chips, and the order of the different chips is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
4. Electronic equipment
The electronic device of the embodiment of the application can comprise a handheld device, a vehicle-mounted device and the like with intelligent sheeting function. For example, some electronic devices are: a mobile phone, tablet, palm, notebook, mobile internet device (mobile internet device, MID), wearable device, virtual Reality (VR) device, augmented reality (augmented reality, AR) device, wireless terminal in industrial control (industrial control), wireless terminal in unmanned (self driving), wireless terminal in teleoperation (remote medical surgery), wireless terminal in smart grid (smart grid), wireless terminal in transportation security (transportation safety), wireless terminal in smart city (smart city), wireless terminal in smart home (smart home), cellular phone, cordless phone, session initiation protocol (session initiation protocol, SIP) phone, wireless local loop (wireless local loop, WLL) station, personal digital assistant (personal digital assistant, PDA), handheld device with wireless communication function, public computing device or other processing device connected to wireless modem, vehicle-mounted device, wearable device, terminal device in 5G network or evolving land mobile terminal (public land mobile network), and the like, without limiting the examples of this.
By way of example, and not limitation, in embodiments of the present application, the electronic device may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device includes full functionality, large size, and may not rely on the smart phone to implement complete or partial functionality, such as: smart watches or smart glasses, etc., and focus on only certain types of application functions, and need to be used in combination with other devices, such as smart phones, for example, various smart bracelets, smart jewelry, etc. for physical sign monitoring.
In addition, in the embodiment of the application, the electronic device may also be a terminal device in an internet of things (internet of things, ioT) system, and the IoT is an important component of future information technology development, and the main technical characteristic of the IoT is that the article is connected with a network through a communication technology, so that man-machine interconnection and an intelligent network for internet of things are realized.
The electronic device in the embodiment of the application may also be referred to as: a terminal device, a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, a user equipment, or the like.
In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running above the hardware layer, and an application layer running above the operating system layer. The hardware layer includes hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and a memory (also referred to as a main memory). The operating system may be any one or more computer operating systems that implement business processes through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer comprises applications such as a browser, an address book, word processing software, instant messaging software and the like.
In one possible implementation, the electronic device has a smart-sheeting function. The intelligent film forming can be understood as a process that the electronic equipment can intelligently detect and screen pictures and videos in the gallery according to the preference and key nodes of the user and automatically match with the music captions to generate the film, and select proper time to push to the user.
In one example, a user may turn on a smart cut service through a process as shown in FIG. 1. The user can enter the setting application, click on the YoyO suggestion interface shown in a in fig. 1, click on the Smart gallery in the life service list of the interface into the Smart gallery service management interface shown in b in fig. 1, click on the corresponding buttons of the Smart gallery and Smart tablet in the interface, and the user can use the Smart tablet function after the buttons are in an on state. It should be understood that the opening process of the smart cut service may include more or fewer interfaces or buttons than those shown in fig. 1, which is not limited in this application.
In another example, the electronic device is provided with and has turned on a voice assistant, and the user can input a voice command to the electronic device to turn on the smart film forming function.
It should be understood that after the smart film forming function is started, the electronic device can intelligently detect and screen the pictures and videos in the gallery according to the preference and key nodes of the user, automatically match the music captions to generate the short film, and push and remind the user to view at a proper time. Alternatively, the video clip may be pushed to a desktop, negative one-screen, or other application, which is not limited in this application.
In one possible implementation, the smart sheeting service may be implemented based on the intent engine service framework shown in FIG. 2. As shown in fig. 2, the framework for implementing a service based on an intention engine may include a service layer, an interface layer, an intention engine layer, and an intention recognition layer. Wherein the business layer comprises a scene (service) or other plug-ins; the interface layer is used for providing an open interface, and the interface of the interface layer can be used for carrying out interaction such as intended subscription and unsubscribe; the intention engine layer is used for realizing the process arrangement of intention, and executing the processes of intention triggering, slot position analysis, intention decision, intention notification and the like after intention registration (various fence registration) and intention fence triggering so as to realize intelligent sheeting service; the intention recognition layer is used for registering the intention fence and notifying the graph engine layer to execute each node according to the well-arranged flow after the intention fence is triggered.
In some implementations, a user registers an intention with an intention registration module of an intention engine layer through an open interface of a service layer call interface layer, the intention registration module transmits the intention registered by the user to an intention fence registration module to form an intention fence, and the intention engine layer is notified of the intention fence trigger under the condition that the intention fence identified by an intention identification layer is triggered, so that the electronic device executes slot analysis, intention decision and intention notification flow based on an intention engine.
Alternatively, the framework shown in fig. 2 may be a framework corresponding to an artificial intelligence (Artificial Intelligence, AI) module in the electronic device, where the AI module may be, for example, a YOYO suggestion, and the smart film-forming service may be implemented by interacting with applications such as gallery, calendar, music, etc. based on the framework shown in fig. 2, but this application is not limited thereto.
Illustratively, the YOYO suggestion is combined with a gallery and a calendar to implement intelligent sheeting as an example, and the intelligent sheeting process is described. In the smart cut process, the process of intention registration may be understood as a process in which the yoyoyo suggestion determines the timing of smart cut and takes the timing as an intention fence, for example, the YOYO suggestion determines that a plot is about to come based on interaction with a calendar to decide to push a video related to the plot for a user at the time of the plot, so that the time of the plot is registered as an intention, the plot comes to be considered as an intention trigger, an intention engine layer of the electronic device performs slot analysis, which may be understood as a process in which the yoyoyo suggestion interacts with a gallery and determines whether a video to be pushed is ready, an intention decision may be made in case it is determined that the video to be pushed is ready, and an intention notification may be made in case it is determined that the current scene satisfies the scene intention fence by the intention recognition layer, that the yoyoyo suggestion is ready to push a video generated by the gallery for the user, and the video may be pushed to a desktop, a negative screen or other applications, for example.
In one possible scenario, YOYO suggests that video is ready to be pushed to the user, but detects that the electronic device is in an off-screen state, not a valid opportunity to push video, so wisdom is that the piece of business is on intent to notify this node disruption, intent to notify the module that the context of the business needs to be stored to read the context when the business resumes, resuming the business. The context of the service is a class object that needs to be converted into a serialization format for storage. In some examples, the electronic device may store the context of the smart patch service in the form of a string to a disk, a database, and may restore the serialized string to a class object through the JSON deserialization tool after service restoration.
In some implementations, the context of the service is a generic object, that is, when a class is defined, the data type is not specified for the attributes and methods in the class, but rather, when a class object is created, the corresponding data type is specified for the class object, that means, the data type of the generic object is not limited, and the generic object may include multiple data types. However, when the generic object is restored through the existing serialization and the existing reverse sequence process, since the existing serialization tool cannot identify the class of all class objects, the class objects which cannot be identified by the existing serialization tool are mapped to the class objects preset by the tool instead of the original class objects, for example, the existing serialization tool Gson can reverse-sequence any json character string into Map objects, and when the original class object of the character string is not the Map object, the correct class object data type cannot be restored through the Gson reverse sequence process, so that the class objects after the deserialization are different from the original class object of the data and are difficult to use in the original context.
In view of this, the present application provides a data processing method and related device, which can enable serialized data obtained by serializing target data to include data type information of the target data, and the data type information can be resolved in a reverse serialization process, so as to facilitate recovery of the data type information of the target data in the reverse serialization process, facilitate use of the target data in the context of the original service environment, and facilitate recovery of the service flow.
It should be understood that the smart sheeting service may be interrupted and resumed at any node in the service flows of intent registration, intent trigger, slot resolution, intent decision, intent notification, etc., which is not limited in this application.
It should be further understood that the service framework shown in fig. 2 is not limited to implementing the smart-slice service, and the data processing method provided in the embodiment of the present application is not limited to executing in the case of interruption and resumption of the smart-slice service, and is applicable to any service that can be executed by the electronic device, which is not limited in this application.
Next, the processing flow of the electronic device for the service related data after the service flow is interrupted and when the service flow is recovered is introduced. Fig. 3 schematically shows a flow chart of a data processing method 300.
The method 300 includes the steps of:
s301, acquiring a member quantity (field) under the condition of service interruption.
It should be understood that the membership (field) is a field describing the traffic data. Alternatively, the service data may be defined by any Object, such as a Bean entity Object, a generic Map Object, an Object, or other custom objects, which is not limited in this application.
Alternatively, the service may be a smart-slice service or any other service, which is not specifically limited in this application.
S302, judging whether the membership is converted into JSON based on the annotation of the membership, and if so, executing S303.
It should be understood that the format of the data store may be JSON format or other formats, which are not specifically limited in this application.
In one possible implementation, field may be identified in the form of an annotation describing the format in which the data is stored, optionally if the electronic device recognizes that the annotation is JSON, S303 is performed.
S303, converting the membership from the object to JSON.
Illustratively, the membership may be converted from an object to JSON with reference to the subsequent method 400, which is not described herein.
S304, storing JSON to a Database (DB) in a string (string) format.
Optionally, the JSON structure may also be stored in a file system or cloud server, which is not limited in this application.
Alternatively, in the case of service restoration, the subsequent S305 to S308 are performed.
Taking the service as an intelligent film-forming service and the purpose of the service flow as an example of pushing a video related to the plot for a user in the plot, the service can be interrupted in the following cases: the intelligent sheeting process is started, but the gallery is not ready for the video; the gallery is ready for the video, but not to the plot; or the plot of the lover is up, the gallery is also ready for the video, but the electronic device is in a screen-off state at the current moment, and the like. Correspondingly, in the case of service restoration corresponding to any of the above cases, the electronic device may execute S305 to S308.
S305, reading the data in the character string format from the database.
S306, judging whether the data is JSON, if so, executing S307.
It should be understood that traffic restoration means that the serialized data needs to be de-serialized so that it can be used in the original context.
Illustratively, after reading data from the database in String mode, if the mapped field is JSON type, then JSON is back-serialized into membership, where the field raw data type needs to be known, because the framework supports both Map structures and Object most basic Object types.
S307, based on the original object type, the JSON is converted into an object.
Illustratively, the membership may be converted from an object to JSON with reference to the subsequent method 500, which is not described herein.
S308, obtaining the original member quantity.
It should be understood that the obtained original member amount is the same as the data type of the service interruption, that is, it can be understood that the obtained original member amount in S308 is consistent with the member amount obtained in S301, so that the service can be identified in the original context when being recovered, which is beneficial to the normal operation of the service flow.
The serialization process is described below in connection with fig. 4.
Fig. 4 schematically illustrates a schematic flow chart of a serialization method 400 according to an embodiment of the present application. The method 400 includes the steps of:
s401, acquiring an Object Map < String, object > to be serialized.
It should be understood that Map < String, object > is a data structure of java representing a mapping relationship in which keys are String types and values are Object (Object) types, meaning that any data type of Object can be included in Map < String, object > as a value. The membership in the above method 400 may be understood as a field in Map < String, object >.
S402, traversing all key value pairs in the object.
In one possible implementation, a plurality of key-value pairs are included in Map < String, object >, and for each key-value pair, the following S403 to S404 may be performed.
S403, extracting the real data type of the value (value) by using a reflection mechanism.
S404, assembling a new key, wherein the new key comprises the real data types of the original key and/or the value, and the key value pair of the new key and the value replaces the original key value pair.
In one possible implementation, the manner of assembling the new key may include the following three:
mode one: in the case where the true data type of the value (value) is a character string type or a boolean type, the original key is taken as a new key.
It should be understood that, in the reverse serialization process, the data types of the basic data types such as the character string type and the boolean type are easy to identify without additional identification of the data types, so that in the case that the actual data type of the value (value) is the character string type or the boolean type, the original key can not be processed, which is beneficial to reducing the complexity of data processing in the subsequent reverse serialization process.
Mode two: in the case that the real data type of the value (value) is a list type, a tuple type, a dictionary type or a collection type, a plurality of elements are contained in the value (value), the data type of the value (value) and the data type of the elements are acquired, and the new key includes the original key, the data type of the value and the data type of the elements.
Illustratively, the data type of the original key and value may be separated by a first separator, the data type of the value and the data type of the element may be separated by a second separator, the first separator may be "/", the second separator may be ": ", but the present application is not limited thereto.
Mode three: in the case where the real data type of the value (value) is integer, floating point or custom type, the real data type of the original key and the value is included in the new key.
Illustratively, the data type of the original key and the value may be separated by a first separator, which may be "/", but this application is not limited thereto.
In one possible implementation, the custom type may be a custom class object or may be further nested, which is not limited in this application.
S405, judging whether the traversal is completed, if yes, executing S406, otherwise, returning to continue executing S402-S405.
S406, converting key value pairs of all new keys and values into JSON.
In the embodiment of the application, when traversing all key value pairs in the object to be serialized, new keys are assembled according to the real data types of the median values of different key value pairs, so that the finally obtained JSON structure body can contain the real data types of the median values of each key value pair, and the original data types of each member number in the object can be recovered through the deserialization process.
Next, a structure of JSON data obtained by processing the above method 400 will be described with reference to a specific example, where the data structure may be as follows in example 1:
in one possible implementation, the value is an integer, floating point, or custom data type.
Illustratively, taking a key value pair of 'key_float/java.land.float' 1.0 as an example, a key of the key value pair is 'key_float/java.land.float', which includes two parts of key_float and java.land.float, wherein the key_float is used for identifying the key value pair, and the key_float may be, for example, a key corresponding to 1.0 in the original service data, and the java.land.float is used for indicating that the data type of 1.0 is a floating point type (Float).
Optionally, there is a first separator between the key_float and the java. Land. Float, and the first separator may be "/", for example: "etc., and this application is not limited thereto.
In another possible implementation manner, the value is an array, and multiple elements are included in the value, and the new key corresponding to the value may be exemplified by the following two examples:
in one example, the data types of the multiple elements in the value are the same.
Illustratively, taking the example of ' key_list/java. Uti1.Arraylist ' in the above example, java. Lang. Intger ' 1,2,3, wherein value is an array and comprises three elements of 1,2 and 3, the value corresponds to a new key, the value comprises a plurality of elements indicated by java. Uti1.Arraylist, the plurality of elements are in list form, and the data type of the plurality of elements included by the value is indicated by java. Lang. Intger is Integer (Intger).
In another example, the data types of the plurality of elements in the value are not all the same.
Illustratively, taking the example that 'key_list/java. Uti1. Arrayist' is included in JSON data, java. Lang. Inter:. Java. Lang. Flow: java. Lang. Inter: [1,2.0,3] is taken as an example, wherein value comprises three elements of 1,2.0 and 3, the value comprises a plurality of elements in a new key corresponding to the value and the plurality of elements are in a list form, the data type of a first element in the value is Integer (inter), the data type of a second element in the value is Float (Float), and the data type of a third element in the value is Integer (inter).
Alternatively, in the case where value is an array, value may be a tuple, a set, a dictionary, or a list type, and elements in value may be integer, floating point, or boolean type, but this is not a limitation of the present application.
In yet another possible implementation, a value may nest class objects.
Taking "key_map/java.uti1.hashmap" in the above example as an example, wherein { "key_long/java.land.long": 2, "key_int/java.inter": 2 "indicates that the value is a Map object through a java.uti1.hashmap in the new key corresponding to the value, the value {" key_long/java.land.long ":2," key_int/java.inter ": 2" includes a first sub-key value pair "key_long/java.land.long": 2 "and a second sub-key value pair" key_int/java.inter ": 2", wherein the first sub-key value pair includes a first sub-key_long/long.long ": 2" and the second sub-key value pair "key_int/java.inter": 2 "and the first sub-key value pair is a type of the value corresponding to the first sub-key_long.long; the second sub key value pair includes a second sub key sub_int/java. Jang. Inteler and a second sub value 2, and the data type of the second sub value 2 is Integer (intelger) indicated by java. Lang. Long in the second sub key.
The reverse serialization process is described below in connection with fig. 5.
Fig. 5 schematically illustrates a flow chart of an anti-serialization method 500 provided by an embodiment of the present application. The method 500 shows a process of deserializing JSON data obtained in the method 400 described above, the method 500 comprising:
s501, acquiring JSON data, and preprocessing the JSON data into JSON objects.
It should be appreciated that JSON data obtained from the database is in string format, and illustratively, the JSON string may be pre-processed as a JSON object prior to the de-serialization process so that the de-serialization tool can identify the object.
S502, traversing all key value pairs in the JSON object.
It should be appreciated that the key in the JSON object is the new key obtained in the method 400 described above. In the process of traversing all key value pairs in the JSON object, if the key does not contain a separator, the key does not need to be analyzed; if the key includes a separator, the following steps S503 to S505 can be executed.
S503, extracting the real data type of the value included in the key, and analyzing the value corresponding to the key into the real data type.
The way to parse the value from its real data type may include:
Mode 1: only the first separator is included in the key, and the first separator is the original key before and the value is the real data type after the first separator.
Mode 2: the key includes a first separator and at least one second separator, the value is an array, the value includes a plurality of elements, the first separator is preceded by the original key, a data type (such as a set, a list, a dictionary or a tuple) between the first separator and a first second separator after the first separator is the value, and a data type (such as integer, floating point or character string) between each second separator in the at least one second separator is the element.
In one possible implementation, if the number of the at least one second separator is one, the data types of the plurality of elements in the value are the same; if the number of the at least one second separator is a plurality, the data types of the plurality of elements in the value may not be identical, and the number of the at least one second separator may be equal to the number of the elements.
S504, recovering the key value pair of the original key and the value.
It should be understood that the data type of value in the key-value pair of the restored original key and value is its original, real data type, rather than the unified data type preset by the serialization tool.
S505, judging whether the traversal is completed, if yes, executing S506, otherwise, returning to executing S502-S505.
S506, synthesizing the object.
It should be understood that the format of the serialized data is a string format, and the format of the service data may be a generic Map object.
In the embodiment of the application, the data type information contained in the JSON object is analyzed in the reverse serialization process, and the value in the serialization data is analyzed into the real data type based on the data type information, so that the JSON data can be converted into the object containing the correct data type and can be utilized in the context of the original service.
It should be understood that the sequence numbers of the above methods do not mean the order of execution, and the order of execution of the methods should be determined by their functions and internal logic.
The data processing method according to the embodiment of the present application is described in detail below by way of specific embodiments. The following embodiments may be combined with each other or implemented independently, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 6 is a schematic flow chart of a data processing method 600 provided in an embodiment of the present application, where the method may be performed by an electronic device, and the electronic device may implement a smart-cut service or any other service that may be implemented based on the service framework shown in fig. 2, which is not limited in this application.
The method 600 includes:
s601, acquiring target data.
S602, carrying out serialization processing on the target data to obtain serialized data, wherein the serialized data comprises data type information of the target data, and the data type information is analyzed in the reverse serialization.
It should be understood that the target data may be the service data described in the above embodiment, and the service may be a smart cut service, but the present application is not limited thereto.
Alternatively, the method for serializing the target data may refer to the above-mentioned method 400, and the target data may be an object to be serialized, which is not described herein.
In the embodiment of the application, the serialized data obtained after the serialization processing of the target data comprises the data type information of the target data, and the data type information is analyzed in the reverse serialization process and can be used for recovering the real data type of the target data, so that the real data type of the target data can be recovered in the reverse serialization process no matter what data type is in the target data after the serialization processing is performed based on the data processing method.
As an optional embodiment, the electronic device includes a target module, and one implementation of S601 described above includes: under the condition that the service of the target module is interrupted, the target module acquires target data; after S602 above, the method 600 further includes:
S603, storing the serialized data.
Optionally, the target module may be an intention registration module, an intention triggering module, a slot resolution module, an intention decision module and an intention notification module as shown in fig. 2, and the service of the target module may be an intelligent film service or any other service that can be implemented, where the service types of the target module and the target module are not specifically limited in this application.
Alternatively, the serialized data may be stored in a Database (DB), a file system, or a cloud server in the form of a string (string), which is not limited in this application.
As an alternative embodiment, the target data includes a second key value pair, where the second key value pair includes a second key and a first value, and the serializing processing is performed on the target data in S602 to obtain serialized data, where the serializing includes: determining data type information of a first value; taking the second key as a first part of the first key and the data type information of the first value as a second part of the first key to obtain a first key value pair comprising the first key and the first value; and converting the first key value pair into a serialization format to obtain serialization data.
It should be appreciated that the second key-value pair may refer broadly to any key-value pair in the target data, and illustratively, the second key in the second key-value pair may be the "original key" described in the methods 400 and 500, and the first key in the first key-value pair may be the "new key" described in the methods 400 and 500, and the "original key" and the "new key" correspond to the same value. Alternatively, the method for serializing the target data in the embodiment of the present application may refer to the above-mentioned method 400, which is not described herein again.
After the method provided by the embodiment of the application is used for carrying out serialization processing on the target data, taking the case that the serialized data comprises a first key value pair, the first key value pair comprises a first key and a first value, and the structure of the first key can be realized in the following two ways:
the first implementation mode: the first key includes a first portion for identifying a first key-value pair and a second portion including data-type information for the first value. Specific examples may be referred to example 1 above.
Optionally, a first separator is also present between the first portion and the second portion. The first separator is used for separating the first part and the second part so as to facilitate identification of the electronic device. The first separator may be "/", for example: "etc., this application is not limited thereto.
In the case that the first value is an array, the second part further includes first information for indicating that the first value is an array, and the data type information of the first value includes data type information of elements in the array.
Optionally, a second separator is further included between the first information and the data type information of the data element. The second separator may be, for example "/", ": "any character that can distinguish the first information from the data type information of the data element, the first separator and the second separator may be the same or different, and the present application is not limited thereto.
The second implementation mode: the first key includes only data type information of the first value. I.e. the first key may not contain the first part of the first implementation, thus reducing the complexity of subsequent parsing while storing the real type of data during the serialization process.
Taking the target service as the intelligent film-forming service and the purpose of the service flow as an example of pushing a video related to the plot for the user in the plot, the service can be interrupted in the following cases: the intelligent sheeting process is started, but the gallery is not ready for the video; the gallery is ready for the video, but not to the plot; or the plot of the lover is up, the gallery is also ready for the video, but the electronic device is in a screen-off state at the current moment, and the like. Accordingly, in the case of service restoration corresponding to any of the above cases, the electronic device may execute the flow corresponding to S604 to S606 described below.
As an alternative embodiment, after S603, the method 600 further includes:
s604, obtaining the serialization data.
Optionally, in the case of service restoration of the target module, the target module acquires the serialized data.
S605, extracting data type information included in the serialized data.
In one possible implementation, the serialized data includes a first key-value pair, the first key-value pair includes a first key and a first value, and extracting the data type information included in the serialized data may include: data type information of a first value included in a first key of the first key-value pair is extracted. It should be appreciated that the first key-value pair may refer broadly to any key-value pair in the serialized data.
S606, analyzing the serialized data based on the data type information to obtain the target data.
It will be appreciated that traffic restoration by the target module means that the serialized data needs to be de-serialized so that it can be used in the original context.
Alternatively, one implementation of S606 may be: parsing the first value based on the data type information of the first value; and combining the second key in the first key with the first value to obtain target data containing the second key value pair.
Alternatively, the serialization processing of the target data after the service interruption and the anti-serialization processing of the serialized data after the service restoration may be implemented by the same target module, but the application is not limited thereto.
As an alternative embodiment, the data type information of the first value comprises one or more of the following: integer, floating point, string, list, tuple, dictionary, collection, boolean, or custom types.
It should be further noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data is required to comply with the related laws and regulations and standards of the related country and region, and is provided with a corresponding operation entry for the user to select authorization or rejection.
The data processing method provided by the embodiment of the application can be applied to the electronic equipment with the communication function. The specific device configuration of the electronic device may be referred to the above description, and will not be described herein.
It should be appreciated that in order to achieve the above-described functionality, the electronic device may comprise corresponding hardware structures and/or software modules that perform the respective functionality. Those of skill in the art will readily appreciate that the various illustrative method steps described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional modules of the apparatus implementing the method according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 7 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 700 includes one or more (including two) processors 701, communication lines 702, communication interfaces 703, and memory 704.
In some implementations, the memory 704 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
The methods described in the embodiments of the present application may be applied to the processor 701 or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 701 or by instructions in the form of software. The processor 701 may be a general purpose processor (e.g., a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gates, transistor logic, or discrete hardware components, and the processor 701 may implement or perform the methods, steps, and logic diagrams associated with the processes disclosed in the embodiments of the present application.
The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a state-of-the-art storage medium such as random access memory, read-only memory, programmable read-only memory, or charged erasable programmable memory (electrically erasable programmable read only memory, EEPROM). The storage medium is located in the memory 704, and the processor 701 reads information in the memory 704, and in combination with its hardware, performs the steps of the above method.
The processor 701, the memory 704 and the communication interface 703 may communicate with each other via a communication line 702.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
In the embodiment of the present application, the chip 700 may also be a chip system, for example: a system on chip (SoC) is not limited in this application.
An embodiment of the present application provides an electronic device, including: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to cause the terminal device to perform the method described above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program can realize the method when being executed by a processor. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
In one possible implementation, the computer readable medium may include RAM, ROM, compact disk-read only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium targeted for carrying or storing the desired program code in the form of instructions or data structures and accessible by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (Digital Subscriber Line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes optical disc, laser disc, optical disc, digital versatile disc (Digital Versatile Disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The present embodiments provide a computer program product comprising a computer program which, when executed, causes a computer to perform the above-described method.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the invention.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311836998.4A CN117874303B (en) | 2023-12-28 | 2023-12-28 | Data processing method and related device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311836998.4A CN117874303B (en) | 2023-12-28 | 2023-12-28 | Data processing method and related device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117874303A true CN117874303A (en) | 2024-04-12 |
| CN117874303B CN117874303B (en) | 2025-04-29 |
Family
ID=90596301
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311836998.4A Active CN117874303B (en) | 2023-12-28 | 2023-12-28 | Data processing method and related device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117874303B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120144405A1 (en) * | 2010-12-06 | 2012-06-07 | Ibm Corporation | Efficient Serialization of Mutable Objects |
| WO2019171130A1 (en) * | 2018-03-06 | 2019-09-12 | Pratik Sharma | Continuous stream of key-value pairs of string data type |
| CN112286594A (en) * | 2020-10-10 | 2021-01-29 | 百度(中国)有限公司 | Object serialization and deserialization method and device, electronic device and medium |
| CN112491857A (en) * | 2020-11-20 | 2021-03-12 | 北京人大金仓信息技术股份有限公司 | Method, device and equipment for transmitting set type data |
| CN114117992A (en) * | 2021-11-25 | 2022-03-01 | 北京力控元通科技有限公司 | Serialization and deserialization method and device and electronic equipment |
| CN115391696A (en) * | 2022-08-26 | 2022-11-25 | 浙江中控信息产业股份有限公司 | Model data processing method, device, equipment and storage medium |
| CN116483366A (en) * | 2022-01-17 | 2023-07-25 | 腾讯科技(成都)有限公司 | Service data transmission method and device, storage medium and electronic equipment |
-
2023
- 2023-12-28 CN CN202311836998.4A patent/CN117874303B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120144405A1 (en) * | 2010-12-06 | 2012-06-07 | Ibm Corporation | Efficient Serialization of Mutable Objects |
| WO2019171130A1 (en) * | 2018-03-06 | 2019-09-12 | Pratik Sharma | Continuous stream of key-value pairs of string data type |
| CN112286594A (en) * | 2020-10-10 | 2021-01-29 | 百度(中国)有限公司 | Object serialization and deserialization method and device, electronic device and medium |
| CN112491857A (en) * | 2020-11-20 | 2021-03-12 | 北京人大金仓信息技术股份有限公司 | Method, device and equipment for transmitting set type data |
| CN114117992A (en) * | 2021-11-25 | 2022-03-01 | 北京力控元通科技有限公司 | Serialization and deserialization method and device and electronic equipment |
| CN116483366A (en) * | 2022-01-17 | 2023-07-25 | 腾讯科技(成都)有限公司 | Service data transmission method and device, storage medium and electronic equipment |
| CN115391696A (en) * | 2022-08-26 | 2022-11-25 | 浙江中控信息产业股份有限公司 | Model data processing method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117874303B (en) | 2025-04-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11588653B2 (en) | Blockchain-based smart contract call methods and apparatus, and electronic device | |
| US11093523B2 (en) | Blockchain based data processing method and device | |
| US10601834B2 (en) | Multi-blockchain network data processing | |
| CN107251060B (en) | Pre-training and/or transfer learning for sequence labelers | |
| EP3923274A1 (en) | Voice interaction method and electronic device | |
| CN109582772B (en) | Contract information extraction method, contract information extraction device, computer equipment and storage medium | |
| CN114743196B (en) | Text recognition method and device and neural network training method | |
| EP4390753A1 (en) | Text data processing method, neural network training method, and related devices | |
| US10573317B2 (en) | Speech recognition method and device | |
| WO2024082914A1 (en) | Video question answering method and electronic device | |
| CN113039513A (en) | Recommendation method for candidate content of input method and electronic equipment | |
| WO2022022546A1 (en) | Data synchronization method and device for mobile distributed system | |
| CN113272799B (en) | Encoded information extractor | |
| US20240038223A1 (en) | Speech recognition method and apparatus | |
| WO2024131630A1 (en) | License plate recognition method and apparatus, electronic device, and storage medium | |
| CN119967081A (en) | Interface display method and related device | |
| US20240330394A1 (en) | Information processing method and apparatus, terminal and storage medium | |
| CN117874303B (en) | Data processing method and related device | |
| CN110597765A (en) | Large retail call center heterogeneous data source data processing method and device | |
| CN120107556A (en) | A target detection method, device, terminal device and storage medium | |
| CN115690544B (en) | Multi-task learning methods and devices, electronic equipment and media | |
| CN112052234B (en) | Service data processing method and device, storage medium and electronic device | |
| CN116204671A (en) | Image searching method and device | |
| CN117935281B (en) | Text recognition method and related device | |
| CN113761116A (en) | Medical word mapping method and device, computer equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Applicant after: Honor Terminal Co.,Ltd. Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Applicant before: Honor Device Co.,Ltd. Country or region before: China |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |