Message display method and electronic device
AssigneeVivo Mobile Communication Co., Ltd.
InventorHongxing Luo
Life of this patent
Estimating the term…
Abstract
A message display method includes: in a case of receiving a target message, parsing the target message to obtain text content of the target message; extracting key information of the target message based on the text content; associating the key information with the target message to obtain a first target association message; and displaying the first target association message.
Claims12
A message display method, performed by an electronic device, wherein the electronic device comprises a processor and a display unit, and the method comprises:
- in a case of receiving a target message, parsing, by the processor, the target message to obtain text content of the target message;
- extracting, by the processor, key information of the target message based on the text content;
- associating, by the processor, the key information with the target message to obtain a first target association message;
- and
- displaying, by the display unit, the first target association message;
- wherein the extracting key information of the target message based on the text content comprises:
- extracting, by the processor, M keywords from the text content, wherein M is a positive integer;
- matching, by the processor, the M keywords with vocabulary libraries under a plurality of preset scenarios, wherein each keyword has a matching relationship with a vocabulary library under at most one of the preset scenarios;
- and
- in a case of being matched successfully, determining, by the processor, a target scenario to which the target message belongs from at least one successfully matched preset scenario;
- wherein
- the key information comprises the M keywords and a scenario identifier of the target scenario;
- and
- in a case that the M keywords of the text content comprise a target keyword, displaying, by the display unit, a second annotation icon at a third target position;
- wherein the second annotation icon is generated based on the target keyword, the target keyword is a place keyword or a time keyword;
- the second annotation icon is associated with a hyperlink corresponding to the target keyword, the hyperlink is used for jumping to an interface corresponding to the target keyword, an interface corresponding to the place keyword is used to navigate to the position corresponding to the place keyword, an interface corresponding to the time key word is used to set an alarm clock, and M is a positive integer;
- wherein the third target position is corresponding to a display position of the target message;
- wherein
- the extracting, by the processor, key information of the target message based on the text content further comprises:
- if there is a target history message in a preset time period before the target message, determining, by the processor, whether there is an association relationship between the target message and the target history message, wherein a scenario to which the target history message belongs is same as the target scenario;
- and
- if there is an association relationship between the target message and the target history message, associating, by the processor, the target message with the target history message to obtain association information of the target message, wherein the association information is used to link the target message to the target history message, and the key information comprises the association information.
An electronic device, comprising a processor, a display unit, a memory, and a program or an instruction stored in the memory and executable on the processor, wherein the program or the instruction, when executed by the processor:
- the processor is configured to:
- in a case of receiving a target message, parsing the target message to obtain text content of the target message;
- extract key information of the target message based on the text content;
- and
- associate the key information with the target message to obtain a first target association message;
- and
- the display unit is configured to display the first target association message;
- wherein the processor is further configured to:
- extract M keywords from the text content, wherein M is a positive integer;
- match the M keywords with vocabulary libraries under a plurality of preset scenarios, wherein each keyword has a matching relationship with a vocabulary library under at most one of the preset scenarios;
- and
- in a case of being matched successfully, determine a target scenario to which the target message belongs from at least one successfully matched preset scenario;
- wherein the key information comprises the M keywords and a scenario identifier of the target scenario;
- and
- the display unit is further configured to:
- in a case that the M keywords of the text content comprise a target keyword, display a second annotation icon at a third target position;
- wherein the second annotation icon is generated based on the target keyword, the target keyword is a place keyword or a time keyword;
- the second annotation icon is associated with a hyperlink corresponding to the target keyword, the hyperlink is used for jumping to an interface corresponding to the target keyword, an interface corresponding to the place keyword is used to navigate to the position corresponding to the place keyword, an interface corresponding to the time key word is used to set an alarm clock, and M is a positive integer;
- wherein the third target position is corresponding to a display position of the target message;
- wherein
- the processor is further configured to:
- if there is a target history message in a preset time period before the target message, determine whether there is an association relationship between the target message and the target history message, wherein a scenario to which the target history message belongs is same as the target scenario;
- and
- if there is an association relationship between the target message and the target history message, associate the target message with the target history message to obtain association information of the target message, wherein the association information is used to link the target message to the target history message, and the key information comprises the association information.
A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a program or an instruction, and the program or the instruction, when executed by a processor of an electronic device:
- the processor is configured to:
- in a case of receiving a target message, parsing the target message to obtain text content of the target message;
- extract key information of the target message based on the text content;
- and
- associate the key information with the target message to obtain a first target association message;
- and
- a display unit of the electronic is configured to display the first target association message;
- wherein the processor is further configured to:
- extract M keywords from the text content, wherein M is a positive integer;
- match the M keywords with vocabulary libraries under a plurality of preset scenarios, wherein each keyword has a matching relationship with a vocabulary library under at most one of the preset scenarios;
- and
- in a case of being matched successfully, determine a target scenario to which the target message belongs from at least one successfully matched preset scenario;
- wherein the key information comprises the M keywords and a scenario identifier of the target scenario;
- and
- the display unit is further configured to:
- in a case that the M keywords of the text content comprise a target keyword, display a second annotation icon at a third target position;
- wherein the second annotation icon is generated based on the target keyword, the target keyword is a place keyword or a time keyword;
- the second annotation icon is associated with a hyperlink corresponding to the target keyword, the hyperlink is used for jumping to an interface corresponding to the target keyword, an interface corresponding to the place keyword is used to navigate to the position corresponding to the place keyword, an interface corresponding to the time key word is used to set an alarm clock, and M is a positive integer;
- wherein the third target position is corresponding to a display position of the target message;
- wherein
- the processor is further configured to:
- if there is a target history message in a preset time period before the target message, determine whether there is an association relationship between the target message and the target history message, wherein a scenario to which the target history message belongs is same as the target scenario;
- and
- if there is an association relationship between the target message and the target history message, associate the target message with the target history message to obtain association information of the target message, wherein the association information is used to link the target message to the target history message, and the key information comprises the association information.
Dependencies are inferred from the claim text.