CN-116567554-B - Information processing method and device
Abstract
The embodiment of the application provides an information processing method and device, a terminal device acquires a first travel short message, when a first server judges that a first proportion is greater than or equal to a first threshold value, because the first proportion is the proportion of failure of a plurality of devices to analyze the travel short message, the plurality of devices comprise the terminal device, therefore, the first server can send an updated model to the terminal device, the terminal device analyzes the first travel short message based on the updated model to obtain a first analysis result, the first analysis result comprises travel starting time and travel starting date, the terminal device can recommend services to a user based on the travel starting time and the travel starting date, in this way, the first server can send the updated model to the terminal device without periodically updating the short message analysis model when the first proportion is greater than or equal to the first threshold value, the timeliness of model updating can be improved, and the trip reminding accuracy of a user can be improved.
Inventors
- ZOU JUN
Assignees
- 荣耀终端有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20220128
Claims (12)
- 1. An information processing method, characterized by being applied to an information processing system, the system including a terminal device and a first server for serving the terminal device, the method comprising: the terminal equipment monitors and acquires a first travel short message from a ticket booking application through registering a travel short message fence; If the type of the first travel short message is a first type, the terminal equipment calls a model corresponding to the first type from a preset model library to analyze the first travel short message to obtain a second analysis result, wherein the first type is a ticket refund, a ticket discharge, a ticket booking, a cancellation, a delay or a change, and when the second analysis result does not comprise the travel starting time and the travel starting date, the identification of the terminal equipment and information for indicating that the model corresponding to the first type fails to analyze the first travel short message of the ticket booking application are sent to a first server; If the type of the first travel short message is a second type, the terminal displays travel information corresponding to the first travel short message in a calendar, wherein the terminal equipment calls a model corresponding to the second type to analyze the first travel short message, and a third analysis result is obtained; the terminal equipment compares the third analysis result with the travel information displayed in the calendar, and when the similarity between the third analysis result and the travel information displayed in the calendar is smaller than a third threshold value, the terminal equipment sends information for indicating that a first travel short message of a model analysis ticket booking application corresponding to the second type fails to be displayed to a first server; the first server counts a first proportion of failure of the first travel short message of the ticket booking application which is analyzed by a plurality of devices in a first time; When the first server judges that the first proportion is greater than or equal to a first threshold value, the first server determines a first format according to the first travel short message, wherein the first format is determined according to the number in the failed travel short message and the character adjacent to the number or is determined according to the number and a keyword, and the keyword comprises one or more of year, month or day; the first server acquires a model corresponding to the first format of the ticket booking application from a second server, wherein the second server is used for storing the model corresponding to the ticket booking application; the first server sends a model corresponding to the first format of the ticket booking application to the terminal equipment and other terminal equipment; The terminal equipment analyzes the first travel short message based on the updated model to obtain a first analysis result, wherein the first analysis result comprises travel starting time and travel starting date; when the first travel short message is a flight short message, the terminal equipment acquires a travel identifier corresponding to the first travel short message; the terminal device recommends services based on the trip identification, the trip start time and the trip start date, wherein the services comprise one or more of a ticket issuing feedback service, a check-in service, a flight changing service, a boarding gate changing service, an electronic boarding gate service and a destination reminding service.
- 2. The method of claim 1, wherein the type of the travel message of the plurality of devices is a first type, the first type is used for indicating the type of the travel message, the type of the travel message comprises a ticket refund, ticket booking, cancellation, change or delay, and the travel message of the plurality of devices comprises the first travel message.
- 3. The method of claim 2, wherein the first server determining a first format from the first travel message comprises: the first server acquires a first number in the first travel short message and a first character adjacent to the first number; When the first server determines that the first number and a first character adjacent to the first number form first content, and the first content indicates a date, the first server determines that the first format is a format corresponding to the first content.
- 4. The method of claim 2, wherein the first server determining a first format from the first travel message comprises: The first server acquires a second number in the first travel short message and a first keyword adjacent to the second number, wherein the first keyword comprises one or more of year, month or day; When the first server determines that the second number and the first keyword adjacent to the second number form second content, and the second content indicates date, the first server determines that the first format is a format corresponding to the second content.
- 5. The method of claim 1, wherein the determining, by the terminal device, that the type of the first travel sms is a first type comprises: the terminal equipment acquires a second keyword in the first travel short message; When the terminal equipment inquires a keyword matched with the second keyword from a first corresponding relation, the terminal equipment determines that the type of the first travel short message is the first type based on the first corresponding relation, wherein the first corresponding relation comprises the relation between the keyword and the travel short message type corresponding to the keyword.
- 6. The method of claim 5, wherein the first correspondence includes, when the keyword is a predetermined success, the type of travel message corresponding to the keyword is a ticket order, and when the keyword is a ticket exit, the type of travel message corresponding to the keyword is a ticket exit, and when the keyword is a ticket refund, the type of travel message corresponding to the keyword is a ticket refund, and when the keyword is a delay, the type of travel message corresponding to the keyword is a delay.
- 7. The method of any one of claims 1 to 6, wherein the preset model library includes a first model and a second model, and the terminal device calls a model corresponding to the first type from the preset model library to parse the first travel short message to obtain a second parsing result, where the parsing result includes: The terminal equipment calls the first model to analyze the first travel short message to obtain a first result; the terminal equipment calls the second model to analyze the first travel short message to obtain a second result; And when the first result is the same as the second result, the terminal equipment determines one of the first result or the second result as the second analysis result.
- 8. The method as recited in claim 7, further comprising: When the first result is different from the second result and the similarity between one of the first result or the second result and a third result is the largest, the terminal device determines one of the first result or the second result as the second analysis result, wherein the third result is acquired from the ticket booking application by the terminal device, and the third result comprises the trip start time and the trip start date.
- 9. The method according to any of claims 1-8, wherein the updated model is a software development kit, SDK, or a plug-in.
- 10. An information processing apparatus comprising a processor and a memory for storing code instructions, wherein the processor is configured to execute the code instructions to perform the method of any of claims 1-9.
- 11. A computer readable storage medium storing instructions that, when executed, cause a computer to perform the method of any one of claims 1-9.
- 12. A computer program product comprising a computer program which, when run, causes a computer to perform the method of any of claims 1-9.
Description
Information processing method and device Technical Field The present application relates to the field of terminal technologies, and in particular, to an information processing method and apparatus. Background With the increasing development of terminal technology, the functions provided by the terminal device can meet the demands of users, for example, when the terminal device obtains the trip intention of the users, the terminal device can remind the users of trip time. Under normal conditions, the terminal equipment can receive the travel short message of the user, and the terminal equipment can analyze the travel short message to obtain the travel intention of the user, so as to remind the user of travel time. However, when the terminal device cannot acquire the trip intention of the user through the trip message, the accuracy of the trip prompt of the user may be reduced. Disclosure of Invention The embodiment of the application provides an information processing method and device, which can improve timeliness of model updating, enable terminal equipment to acquire travel intention of a user based on the updated model, further recommend travel service to the user, and improve accuracy of travel reminding of the user. In a first aspect, an embodiment of the present application provides an information processing method, applied to an information processing system, where the system includes a terminal device and a first server, and the first server is configured to serve the terminal device, where the method includes that the terminal device obtains a first travel short message, when the first server determines that a first proportion is greater than or equal to a first threshold, the first server sends an updated model to the terminal device, where the first proportion is a proportion of failure of resolving travel short messages by a plurality of devices, the plurality of devices include the terminal device, the terminal device resolves the first travel short message based on the updated model, and obtains a first resolving result, where the first resolving result includes a travel start time and a travel start date, and the terminal device recommends services based on the travel start time and the travel start date. Thus, the short message analysis model does not need to be periodically updated, the first server can send the updated model to the terminal equipment when the first ratio is greater than or equal to the first threshold value, and timeliness of model updating can be improved, so that the accuracy of user travel reminding is improved, and the user experience is improved. In a possible implementation manner, the first travel short message is a travel short message from a ticket booking application, when the first server judges that the first proportion is greater than or equal to a first threshold value, the first server sends an updated model to the terminal equipment, the model comprises that the first server counts the first proportion of failure of the travel short message of the ticket booking application, which is analyzed by a plurality of equipment in the first time, the type of the travel short message of the equipment is a first type, the first type is used for indicating the type of the travel short message, the type of the travel short message comprises a ticket returning, ticket booking, canceling, changing or delaying, the travel short message of the equipment comprises the first travel short message, when the first server judges that the first proportion is greater than or equal to the first threshold value, the first server determines a first format according to the first travel short message, wherein the first format is used for indicating the format of the content in the first travel short message, the first format is related to the content indicated by characters or the numbers and the indicated by the characters, the first format corresponds to the content indicated by the characters and the characters, and the corresponding type of the ticket booking application from the second server and the first server obtains the first ticket booking type of the corresponding to the first application format and the first model. In this way, the first server can obtain the model corresponding to the first type and the first format of the ticket booking application from the second server according to the first type and the first format, so that the terminal equipment can obtain the model corresponding to the first type and the first format of the ticket booking application, and further the terminal equipment can obtain the trip intention of the user based on the model, and the accuracy of the trip reminding of the user is improved. In a possible implementation manner, the first server determines a first format according to the first travel short message, wherein the first server acquires a first number in the first travel short message and a first character adjacent to the first number,