CN109274814B - Message prompting method and device and terminal equipment - Google Patents

Message prompting method and device and terminal equipment Download PDF

Info

Publication number
CN109274814B
CN109274814B CN201810948275.6A CN201810948275A CN109274814B CN 109274814 B CN109274814 B CN 109274814B CN 201810948275 A CN201810948275 A CN 201810948275A CN 109274814 B CN109274814 B CN 109274814B
Authority
CN
China
Prior art keywords
messages
prompting
prompt
mode
message
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.)
Active
Application number
CN201810948275.6A
Other languages
Chinese (zh)
Other versions
CN109274814A (en
Inventor
唐俊坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810948275.6A priority Critical patent/CN109274814B/en
Publication of CN109274814A publication Critical patent/CN109274814A/en
Application granted granted Critical
Publication of CN109274814B publication Critical patent/CN109274814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Abstract

The invention provides a message prompting method, a message prompting device and terminal equipment. The method comprises the following steps: when a target application program receives unread messages, acquiring the first N sending messages sent by the target application program and closest to the current time and the first M received messages received and closest to the current time; wherein N and M are positive integers greater than or equal to 1; performing syntax analysis on the first N sending messages and the first M receiving messages; determining a prompt mode matched with the grammar analysis result; and prompting the unread message according to the prompting mode. The invention can avoid that the user spends a great deal of energy to check the unread messages which are not concerned by the user, thereby saving the time of the user and further increasing the use experience of the user.

Description

Message prompting method and device and terminal equipment
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a message prompting method, an apparatus, and a terminal device.
Background
With the development of communication technology, applications installed in terminal devices are becoming more and more abundant, such as game applications, video applications, social applications, communication applications, and the like. Different applications provide different functions, providing a good experience for the user.
At present, various communication software layers are on the rise, multimedia communication such as information, pictures, videos and the like is gradually improved, and more information is received by users. In this information explosion age, users need to spend a lot of effort to check and distinguish information which may not be concerned about, which greatly wastes user time and reduces user experience.
Disclosure of Invention
The embodiment of the invention provides a message prompting method, a message prompting device and terminal equipment, and aims to solve the problem that in the prior art, a user time is greatly wasted in a message checking mode, and user experience is poor.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a message prompting method, which is applied to a terminal device, and includes: when a target application program receives unread messages, acquiring the first N sending messages sent by the target application program and closest to the current time and the first M received messages received and closest to the current time; wherein N and M are positive integers greater than or equal to 1; performing syntax analysis on the first N sending messages and the first M receiving messages; determining a prompt mode matched with the grammar analysis result; and prompting the unread message according to the prompting mode.
In a second aspect, an embodiment of the present invention further provides a message prompting apparatus, including: the sending message acquisition module is used for acquiring the first N sending messages sent by the target application program and closest to the current time and the first M received messages received and closest to the current time when the target application program receives the unread messages; wherein N and M are positive integers greater than or equal to 1; a syntax analysis module for performing syntax analysis on the first N sending messages and the first M receiving messages; the prompt mode determining module is used for determining a prompt mode matched with the grammar analysis result; and the message prompting module is used for prompting the unread message according to the prompting mode.
In a third aspect, an embodiment of the present invention provides a terminal device, a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the message prompting method according to any one of the above items.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the message prompting method described in any one of the above are implemented.
In the embodiment of the invention, when the target application program receives the unread messages, the first N sending messages sent by the target application program and closest to the current time and the first M receiving messages received by the target application program and closest to the current time are obtained, wherein N and M are positive integers greater than or equal to 1, the first N sending messages and the first M receiving messages are subjected to syntactic analysis, a prompt mode matched with a syntactic analysis result is determined, and then the unread messages are prompted according to the prompt mode, so that the unread messages can be prompted according to prompts matched with the syntactic analysis result on the basis of the first N sending messages sent by the target application program and closest to the current time and the grammar analysis result of the first M receiving messages received and closest to the current time, and therefore, a user can be prevented from spending a great deal of effort on looking up the unread messages which are not concerned by the user, the time of the user is saved, and the use experience of the user is further increased.
Drawings
Fig. 1 is a flowchart illustrating steps of a message prompting method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a message prompting method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message prompt apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message prompt apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a message prompting method provided by the present invention is shown, where the message prompting method may be applied to a terminal device, and specifically may include the following steps:
step 101: when a target application program receives unread messages, the first N sending messages sent by the target application program and closest to the current time are obtained, and the first M receiving messages received and closest to the current time are obtained.
In the embodiment of the present invention, the terminal device may be a mobile electronic device such as a mobile phone, a PAD, and a notebook computer.
The target application is an application installed in the terminal device and having a function of transmitting and receiving information, for example, an application such as WeChat or QQ installed in a mobile phone.
The current time refers to a time corresponding to the target application program receiving the unread message, for example, the time when the target application program a receives the unread message is 12:10, and the current time is 12: 10.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
An open interface is preset in the terminal device, and when the target application receives an unread message, the first N messages sent by the target application and closest to the current time may be acquired through an interface built in the calling device, or the first M messages received by the target application and closest to the current time may also be acquired, where N and M may be positive integers greater than or equal to 1, for example, 1, 3, 4, and the like, and may be the last one or several pieces of information sent by the target application.
Of course, the sizes of N and M may be equal or unequal, and the embodiment of the present invention is not limited thereto.
After the first N sent messages sent by the target application program and closest to the current time and the first M received messages received and closest to the current time are obtained, step 102 is executed.
Step 102: and carrying out syntactic analysis on the first N sending messages and the first M receiving messages.
After the first N sent messages and the first M received messages sent by the target application are obtained, the first N sent messages and the first M received messages may be parsed.
The grammar analysis in the embodiment of the present invention may be to analyze the sentence mood types of the first N sent messages and the first M received messages, for example, sentence mood types such as question sentences and exclamation sentences.
In the present invention, the question can be divided into the following types:
1. special questions, ask questions about something, such as where you travel this year?
2. Question back, for example, do you find it hard to know not about today's company outage service?
3. General question sentences, question sentences that are or are not answers, e.g. what you did you write at the end of the year?
Of course, it is also possible to analyze whether there are words in the sent message and the received message that are strongly waiting for a reply utterance, such as words that are urgent, fast spots, urgency, etc., or words that are relevant to urgency, or some special punctuation marks are added, such as! | A | A Is it? Is there a Is there a The repeated overlapping of the punctuations is generally a very urgent problem, and specifically, will be described in detail in the following embodiment two, and will not be described again here.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
After parsing the first N sent messages and the first M received messages, step 103 is performed.
Step 103: and determining a prompt mode matched with the grammar analysis result.
For example, the system is provided with a presentation mode A, B, C in advance, which corresponds to the parsing results a, B, and c, respectively, and when the syntax analysis result obtained after parsing the first N sent messages and the first M received messages is B, the presentation mode B with the matching parsing result can be determined.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
After determining the prompting mode matching the parsing result, step 104 is executed.
Step 104: and prompting the unread message according to the prompting mode.
After the prompt mode is determined, the unread message received by the target application program can be prompted according to the determined prompt mode, for example, the screen is turned off and also prompted, and the screen is triggered to be on or off for display; or only add an unread message number not to pop up the message prompt, etc., and will be described in detail in the following embodiment two, which is not described herein again.
The message prompting method provided by the embodiment of the invention can be used for obtaining the first N sending messages which are sent by the target application program and are closest to the current time and the first M receiving messages which are received and are closest to the current time when the target application program receives the unread messages, wherein N and M are positive integers which are more than or equal to 1, carrying out syntactic analysis on the first N sending messages and the first M receiving messages, determining a prompting mode which is matched with a syntactic analysis result, and prompting the unread messages according to the prompting mode, so that the unread messages can be prompted according to the prompting matched with the syntactic analysis result on the basis of the first N sending messages which are sent by the target application program and are closest to the current time and the syntactic analysis result of the first M receiving messages which are received and are closest to the current time, and therefore, a user can be prevented from spending a great deal of energy to check the unread messages which are not concerned by the user, the time of the user is saved, and the use experience of the user is further increased.
Example two
Referring to fig. 2, a flowchart illustrating steps of a message prompting method provided by the present invention is shown, where the message prompting method may be applied to a terminal device, and specifically may include the following steps:
step 201: when a target application program receives unread messages, the first N sending messages sent by the target application program and closest to the current time are obtained, and the first M receiving messages received and closest to the current time are obtained.
In the embodiment of the present invention, the terminal device may be a mobile electronic device such as a mobile phone, a PAD, and a notebook computer.
The target application is an application installed in the terminal device and having a function of transmitting and receiving information, for example, an application such as WeChat or QQ installed in a mobile phone.
The current time is the time corresponding to the target application receiving the unread message, for example, if the time for the target application a to receive the unread message is 13:15, the current time is 13: 15.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
An open interface is preset in the terminal device, and when the target application receives an unread message, the first N messages sent by the target application and closest to the current time and the first M messages received by the target application and closest to the current time may be acquired through the interface built in the calling device, where N and M may be positive integers greater than or equal to 1, such as 2, 3, 5, and the like, which may be the last one or several pieces of information sent by the target application.
Of course, the values of N and M may be equal or unequal, and the embodiment of the present invention is not limited thereto.
After the first N sent messages sent by the target application program and closest to the current time and the first M received messages received and closest to the current time are obtained, step 202 is executed.
Step 202: and analyzing the sentence tone types of the first N sending messages and the first M receiving messages to determine the sentence tone types respectively corresponding to the first N sending messages and the first M receiving messages.
After the first N sent messages and the first M received messages sent by the target application are obtained, the tone type of the sentence may be analyzed for the first N sent messages and the first M received messages.
In a preferred embodiment of the present invention, the step 202 may further include:
substep S1: and analyzing the tone type of the sentence according to the punctuation marks, the keywords and the sentence pattern structures of the first N sending messages and the first M receiving messages.
In the embodiment of the present invention, the sentence mood type may be a sentence mood type such as a question, an exclamation, or the like.
The sentence mood types of the first N sending messages and the first M receiving messages can be analyzed through punctuation marks at the ends of the first N sending messages and the first M receiving messages, or keywords in the first N sending messages and the first M receiving messages, or sentence pattern structures of the first N sending messages and the first M receiving messages.
For example, punctuation marks at the end of a sent message and a received message, such as "? ","? Is there a Is there a "etc., or" catch up, fast spot, urgency, "etc., contained in the sent and received messages, indicate an eager related vocabulary, or a repeated superposition of punctuation of the sent and received messages, such as! | A | A Is it? Is there a Is there a Repeating the superimposed punctuation marks, etc.
In the present invention, the question can be divided into the following types:
1. special questions, ask questions about something, such as where you travel this year?
2. Question back, for example, do you find it hard to know not about today's company outage service?
3. General question sentences, question sentences that are or are not answers, e.g. what you did you write at the end of the year?
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
Step 203: and determining the prompt priority of the unread message according to the tone types of sentences corresponding to the first N sending messages and the first M receiving messages respectively.
In the embodiment of the present invention, the corresponding relationship between each grammar type and the prompt priority may be preset, for example, a question plus a strong tone is an a-class urgent reply, a question without a tone is a B-class more desirable reply, only a strong tone is a C-class possibly desirable reply, and a D-class priority without any tone or question rule is the lowest, different target application programs may set different level screening to implement differentiated experience, which is not limited in the embodiment of the present invention.
After determining the sentence mood types corresponding to the first N sent messages and the first M received messages respectively, the sentence mood types corresponding to the first N sent messages and the first M received messages respectively may be determined according to the correspondence between the sentence mood types and the prompt priorities, and then the weights corresponding to the sentence mood types of each sent message and each received message may be calculated, so as to calculate the total weight, and then the prompt priorities of the unread messages may be determined according to the total weight, for example, the correspondence between the total weight and the prompt priority may be preset, such as: 1-a, 0.5-B, 0.6-C, etc. (A, B, C indicating prompt priority), the weight corresponding to the received message is 0.1, the weights corresponding to the two sent messages are 0.2 and 0.3, respectively, then the total weight of the received message and the two sent messages is 0.6, and then the prompt priority of the unread message can be determined to be C.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
Step 204: and determining the prompting mode of the unread message according to the mapping relation between the prompting priority and the prompting mode.
In the system, a mapping relationship between the prompt priority and the prompt mode may also be preset, for example, as shown in table 1 below:
TABLE 1
Prompt priority Prompting mode
A e
B f
C h
As shown in table 1, the presentation priority a has a mapping relationship with the presentation mode e, the presentation priority B has a mapping relationship with the presentation mode f, the presentation priority C has a mapping relationship with the presentation mode h, and so on.
Of course, in practical applications, a database may also be set in the system to store the mapping relationship between the prompt priority and the prompt mode, which is not limited in the present invention.
After the prompt priority of the unread message is determined, the prompt mode of the unread message can be determined according to the mapping relation between the prompt priority and the prompt mode.
After determining the prompting mode for the unread message, step 205 is performed.
Step 205: and acquiring a prompt effect matched with the prompt mode.
In the embodiment of the present invention, a plurality of prompt effects may also be preset, such as a highlight unread message, a normal unread message, a dark message, or a message with different reduced brightness.
In the system, different corresponding relations between the prompting modes and the prompting effects can also be preset, for example, the prompting mode a corresponds to the prompting effect 1, the prompting mode B corresponds to the under-prompting effect 2, and the like.
After the prompt mode of the unread message is determined, the prompt effect corresponding to the prompt mode of the unread message can be obtained according to the corresponding relationship between the prompt mode and the prompt effect.
After obtaining the prompting effect matching with the prompting mode, step 206 is executed.
Step 206: and prompting the unread message according to the prompting mode and the prompting effect.
After the prompt mode and the prompt effect of the unread message are determined, the unread message can be correspondingly prompted according to the prompt mode and the prompt effect.
The prompting mode can be as follows:
1. the screen is turned off and also prompted to trigger the screen to be lightened or turned off for display;
2. the screen-off state does not prompt, the screen-on prompt does not trigger the screen-on;
3. an unlocking state display prompt;
4. only adding message unread numbers does not pop up message prompts, such as 3 unread, or 5 unread, etc.
The prompting effect can be as follows:
a. highlighting unread messages, for example, while software-defined animations may accompany;
b. a common unread message, e.g., a classic unread message color of red;
c. dark or differently reduced brightness.
In the embodiment of the invention, the unread message can be prompted by combining a prompting mode and a prompting effect, for example, a bright screen or a bright screen display is triggered and is accompanied by a software-defined animation, or the bright screen prompt is accompanied by a red classic unread message color and the like.
The message prompting method provided by the embodiment of the invention has the beneficial effects that the message prompting method shown in the first embodiment has, and can also obtain the prompting effect corresponding to the prompting mode according to the prompting mode, and prompt the unread message according to the prompting mode and the prompting effect, so that the unread message concerned by the user can be ensured to be prompted to the user in time, and the user experience is improved.
EXAMPLE III
Referring to fig. 3, a schematic structural diagram of a message prompting apparatus provided in an embodiment of the present invention is shown, where the message prompting apparatus may include:
a sending message obtaining module 310, configured to, when a target application program receives an unread message, obtain the first N sending messages sent by the target application program and closest to a current time, and the received first M receiving messages closest to the current time; wherein N and M are positive integers greater than or equal to 1; a syntax analysis module 320, configured to perform syntax analysis on the first N sent messages and the first M received messages; a prompt mode determining module 330, configured to determine a prompt mode matching the parsing result; and the message prompting module 340 is configured to prompt the unread message according to the prompting manner.
The message prompting device provided by the embodiment of the invention can be used for acquiring the first N sending messages which are sent by the target application program and are closest to the current time and the first M receiving messages which are received when the target application program receives the unread messages, wherein N and M are positive integers which are more than or equal to 1, carrying out syntactic analysis on the first N sending messages and the first M receiving messages, determining a prompting mode which is matched with a syntactic analysis result, and prompting the unread messages according to the prompting mode, so that the unread messages can be prompted according to the prompting matched with the syntactic analysis result on the first N sending messages which are sent by the target application program and are closest to the current time and the grammar analysis result of the first M receiving messages which are received and are closest to the current time, and therefore, a user can be prevented from spending a great deal of effort on looking up the unread messages which are not concerned by the user, the time of the user is saved, and the use experience of the user is further increased.
Example four
Referring to fig. 4, a schematic structural diagram of a message prompting apparatus provided in an embodiment of the present invention is shown, where the message prompting apparatus may include:
a sending message obtaining module 410, configured to, when a target application program receives an unread message, obtain the first N sending messages sent by the target application program and closest to the current time, and the received first M receiving messages closest to the current time; wherein N and M are positive integers greater than or equal to 1; a syntax analysis module 420, configured to perform syntax analysis on the first N sent messages and the first M received messages; a prompt mode determining module 430, configured to determine a prompt mode matching the parsing result; a prompt effect obtaining module 440, configured to obtain a prompt effect matched with the prompt mode; and a message prompt module 450, configured to prompt the unread message according to the prompt mode.
Preferably, the parsing module 420 includes: a first mood type analyzing submodule 4201, configured to analyze the mood types of the sentences in the first N sending messages and the first M receiving messages to determine the mood types of the sentences corresponding to the first N sending messages and the first M receiving messages, respectively.
Preferably, the first mood type analysis submodule 4201 includes: and the second tone type analysis submodule is used for analyzing the tone types of the sentences according to the punctuation marks, the keywords and the sentence pattern structures of the first N sending messages and the first M receiving messages.
Preferably, the prompt mode determining module 430 includes: a prompt priority determining submodule 4301, configured to determine a prompt priority of the unread message according to the respective sentence mood types corresponding to the first N sent messages and the first M received messages; and the prompt mode determining submodule 4302 is configured to determine a prompt mode of the unread message according to a mapping relationship between the prompt priority and the prompt mode.
Preferably, the message prompt module 450 includes: and a message prompt submodule 4501, configured to prompt the unread message according to the prompt mode and the prompt effect.
The message prompting device provided by the embodiment of the invention not only has the beneficial effects of the message prompting device shown in the first embodiment, but also can obtain the prompting effect corresponding to the prompting mode according to the prompting mode, and prompt the unread message according to the prompting mode and the prompting effect, thereby ensuring that the unread message concerned by the user can be prompted to the user in time, and improving the user experience.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510, configured to, when a target application program receives an unread message, obtain the first N sending messages sent by the target application program and closest to a current time, and the first M received messages received and closest to the current time; wherein N and M are positive integers greater than or equal to 1; performing syntax analysis on the first N sending messages and the first M receiving messages; determining a prompt mode matched with the grammar analysis result; and prompting the unread message according to the prompting mode.
In the embodiment of the invention, when the target application program receives the unread messages, the first N sending messages sent by the target application program and closest to the current time and the first M receiving messages received by the target application program and closest to the current time are obtained, wherein N and M are positive integers greater than or equal to 1, the first N sending messages and the first M receiving messages are subjected to syntactic analysis, a prompt mode matched with a syntactic analysis result is determined, and then the unread messages are prompted according to the prompt mode, so that the unread messages can be prompted according to the prompt matched with the syntactic analysis result on the basis of the first N sending messages sent by the target application program and closest to the current time and the grammar analysis result of the first M receiving messages received and closest to the current time, a user is prevented from spending a great deal of energy on viewing the unread messages, and the time of the user is saved, the use experience of the user is further increased.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when being executed by the processor 510, the computer program implements each process of the above-mentioned message prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned message prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A message prompting method is applied to terminal equipment and is characterized by comprising the following steps:
when a target application program receives unread messages, acquiring the first N sending messages sent by the target application program and closest to the current time and the first M received messages received and closest to the current time; wherein N and M are positive integers greater than or equal to 1;
performing syntax analysis on the first N sending messages and the first M receiving messages;
determining a prompt mode matched with the grammar analysis result;
prompting the unread message according to the prompting mode;
wherein the parsing the first N messages and the first M messages comprises:
and analyzing the sentence tone types of the first N sending messages and the first M receiving messages to determine the sentence tone types respectively corresponding to the first N sending messages and the first M receiving messages.
2. The method of claim 1, wherein said step of analyzing sentence mood types of said first N sent messages and said first M received messages comprises:
and analyzing the tone type of the sentence according to the punctuation marks, the keywords and the sentence pattern structures of the first N sending messages and the first M receiving messages.
3. The method of claim 1, wherein the step of determining the prompting mode matching the parsing result comprises:
determining the prompt priority of the unread message according to the tone types of sentences corresponding to the first N sending messages and the first M receiving messages respectively;
and determining the prompting mode of the unread message according to the mapping relation between the prompting priority and the prompting mode.
4. The method of claim 1, further comprising, after the step of determining a prompt style that matches the parsing result:
acquiring a prompt effect matched with the prompt mode;
the step of prompting the unread message according to the prompting mode comprises the following steps:
and prompting the unread message according to the prompting mode and the prompting effect.
5. A message prompting apparatus, comprising:
the sending message acquisition module is used for acquiring the first N sending messages sent by the target application program and closest to the current time and the first M receiving messages received and closest to the current time when the target application program receives the unread messages; wherein N and M are positive integers greater than or equal to 1;
the syntax analysis module is used for carrying out syntax analysis on the first N sending messages and the first M receiving messages;
the prompt mode determining module is used for determining a prompt mode matched with the grammar analysis result;
the message prompting module is used for prompting the unread message according to the prompting mode;
the parsing module includes:
and the first tone type analysis submodule is used for analyzing the sentence tone types of the first N sending messages and the first M receiving messages so as to determine the sentence tone types respectively corresponding to the first N sending messages and the first M receiving messages.
6. The apparatus of claim 5, wherein the first mood type analysis sub-module comprises:
and the second tone type analysis submodule is used for analyzing the tone types of the sentences according to the punctuation marks, the keywords and the sentence pattern structures of the first N sending messages and the first M receiving messages.
7. The apparatus of claim 5, wherein the prompt mode determination module comprises:
a prompt priority determining submodule, configured to determine a prompt priority of the unread message according to the respective sentence mood types corresponding to the first N pieces of sent messages and the first M pieces of received information;
and the prompt mode determining submodule is used for determining the prompt mode of the unread message according to the mapping relation between the prompt priority and the prompt mode.
8. The apparatus of claim 5, further comprising:
the prompt effect acquisition module is used for acquiring the prompt effect matched with the prompt mode;
the message prompting module comprises:
and the message prompting submodule is used for prompting the unread message according to the prompting mode and the prompting effect.
9. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the message alert method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the message prompting method according to any one of claims 1 to 4.
CN201810948275.6A 2018-08-20 2018-08-20 Message prompting method and device and terminal equipment Active CN109274814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810948275.6A CN109274814B (en) 2018-08-20 2018-08-20 Message prompting method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810948275.6A CN109274814B (en) 2018-08-20 2018-08-20 Message prompting method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109274814A CN109274814A (en) 2019-01-25
CN109274814B true CN109274814B (en) 2020-10-23

Family

ID=65154192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810948275.6A Active CN109274814B (en) 2018-08-20 2018-08-20 Message prompting method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109274814B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225185B (en) * 2019-05-13 2021-01-08 维沃移动通信有限公司 Message text processing method and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933215A (en) * 2016-07-09 2016-09-07 东莞市华睿电子科技有限公司 Chat message withdraw control method based on instant messaging
CN106095440A (en) * 2016-06-13 2016-11-09 浙江翼信科技有限公司 A kind of method and apparatus presenting message
CN106713117A (en) * 2016-11-29 2017-05-24 维沃移动通信有限公司 Group message display method and mobile terminal
CN106897290A (en) * 2015-12-17 2017-06-27 中国移动通信集团上海有限公司 A kind of method and device for setting up keyword models
CN107368476A (en) * 2017-07-25 2017-11-21 深圳市腾讯计算机系统有限公司 The method and relevant apparatus that a kind of method of translation, target information determine
CN107786416A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Information processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957318B (en) * 2014-04-28 2016-10-05 广州三星通信技术研究有限公司 The equipment of session content between management and contact person and method in the terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897290A (en) * 2015-12-17 2017-06-27 中国移动通信集团上海有限公司 A kind of method and device for setting up keyword models
CN106095440A (en) * 2016-06-13 2016-11-09 浙江翼信科技有限公司 A kind of method and apparatus presenting message
CN105933215A (en) * 2016-07-09 2016-09-07 东莞市华睿电子科技有限公司 Chat message withdraw control method based on instant messaging
CN107786416A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Information processing method and device
CN106713117A (en) * 2016-11-29 2017-05-24 维沃移动通信有限公司 Group message display method and mobile terminal
CN107368476A (en) * 2017-07-25 2017-11-21 深圳市腾讯计算机系统有限公司 The method and relevant apparatus that a kind of method of translation, target information determine

Also Published As

Publication number Publication date
CN109274814A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN107580147B (en) Management method of notification message and mobile terminal
CN111343081A (en) Information display method and electronic equipment
CN109857494B (en) Message prompting method and terminal equipment
CN109388456B (en) Head portrait selection method and mobile terminal
CN109947650B (en) Script step processing method, device and system
CN108616448B (en) Information sharing path recommendation method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN108600089B (en) Expression image display method and terminal equipment
CN108833661B (en) Information display method and mobile terminal
CN109495638B (en) Information display method and terminal
CN109982273B (en) Information reply method and mobile terminal
CN110069407B (en) Function test method and device for application program
CN110784394A (en) Prompting method and electronic equipment
CN109815349B (en) Information acquisition method and terminal equipment
CN108520760B (en) Voice signal processing method and terminal
CN109067979B (en) Prompting method and mobile terminal
CN109063076B (en) Picture generation method and mobile terminal
CN111007980A (en) Information input method and terminal equipment
CN108270928B (en) Voice recognition method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN110740265B (en) Image processing method and terminal equipment
CN109274814B (en) Message prompting method and device and terminal equipment
CN109660657B (en) Application program control method and device
CN108848240B (en) Information security protection method, terminal and computer readable storage medium
CN107957789B (en) Text input method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant