Information prompting method and terminal
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a terminal for prompting information.
Background
With the development of science and technology, people have more and more contact ways. For example, with the current mobile phone, people can receive and send short messages, multimedia messages, Email, and the like, and also can receive and send chat information through various instant messaging tools (IM for short). A large amount of information may need to be processed during the day, especially for busy business people, various types of staff. Such people often accumulate large amounts of unread information a day for various reasons (e.g., discussing questions with others, writing documents, playing mahjong, meeting, etc.), and even hearing an informational ring tone or perceiving other alert means may not be as time consuming to deal with. This may miss important information and even cause irreparable losses.
Currently, a ring tone can be set according to a contact person, but the information of what person comes can be judged from the ring tone only, and the rough content of the information cannot be judged; and for some salesmen, insurance salesmen and merchants in the online stores, the information of the salesmen, insurance salesmen and merchants in the online stores can be from strangers, and the merchant can be delayed if the information is not processed in time.
In implementing the embodiments of the present invention, the inventors of the present invention found that: the existing ring setting can only be set according to the contact person, and can only judge the message sent by the contact person through the ring; in addition, many important messages come from strangers, but whether the message is important or not cannot be judged by the ring tone.
Disclosure of Invention
In view of this, the embodiment of the present invention discloses an information prompting method and a terminal, so as to solve the problem that the information content cannot be judged according to the prompted ringing in the prior art.
The embodiment of the invention provides an information prompting method, which comprises the following steps:
the mobile terminal presets and stores a corresponding relation list between ringing and keywords in a matching database;
the mobile terminal receives a short message sent by a network side;
the mobile terminal matches the information content of the short message with the keywords in the keyword database, and triggers the preset ringing corresponding to the keywords according to the matching result of the information content and the keywords to prompt the corresponding preset ringing; and if the information content of the short message is unsuccessfully matched with the keywords in the keyword database, prompting the user according to a common ringing mode.
Meanwhile, the embodiment of the invention also discloses a mobile terminal, which comprises:
the matching database module is used for receiving the corresponding relation between the keywords and the ringing input by a user or preset by default of the system and storing the corresponding relation;
a receiving unit, configured to receive a short message sent by a network side;
a keyword matching unit for matching keywords in a keyword database contained in the information content of the short message;
a ring matching unit, which is used for triggering corresponding rings according to the matching result of the keyword matching unit and the preset corresponding relationship between the keywords and the rings;
and the prompting unit is used for prompting the ringing to the terminal user or prompting the user according to a common ringing mode.
The embodiment of the invention matches the keywords according to the information content of the received short message, then selects the preset ringing according to the corresponding relation between the keywords and the ringing, and prompts the ringing to the terminal user, so that the user can judge the approximate content of the received short message through the ringing, important information can not be missed even when the user is busy, and the user experience is greatly improved.
Drawings
FIG. 1 is a flow chart of a method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method according to a second embodiment of the present invention;
FIG. 3 is a diagram of an apparatus according to a third embodiment of the present invention;
fig. 4 is a structural diagram of a keyword matching unit in the third embodiment of the present invention;
fig. 5 is a structural diagram of a ring matching unit according to a third embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention is clearly and completely described below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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, an embodiment of the present invention discloses an information prompting method, including:
step S101: the terminal receives the information sent by the network side;
in the embodiment of the present invention, the terminal may be a mobile terminal, such as a mobile phone, a personal digital Processing Device (PDA), or other terminals, such as a Personal Computer (PC). It is understood that the terminal in the embodiment of the present invention includes, but is not limited to, the above-mentioned device having a communication function. The information received by the terminal is generally a text message, and specifically, may be a Short Message Service (SMS) sent by the mobile terminal, or may also be an Email message or a Multimedia Message Service (MMS). Of course, the embodiments of the present invention include, but are not limited to, the above text messages.
Step S102: after receiving the information, matching the information content of the information with a preset keyword, and triggering corresponding preset ringing according to the matching result of the information content and the keyword;
step S103: prompting the corresponding preset ringing. The prompting mode can be voice prompting, screen display prompting, vibration prompting and the like. Embodiments of the present invention include, but are not limited to, alerting the end user in the manner described above.
For example, an end user receives a message (e.g. a short message from a mobile phone), and the content of the message is: "do you want to buy a mobile hard disk in your treasure house and ask for a price that can be cheaper? … …'. If the keyword is set as 'mobile hard disk' by the terminal user, the terminal prompts the terminal user according to the ringing 1 (for example, the ringing 1 can be the ring 1) corresponding to the mobile hard disk. Thus, because the prompting mode of the information is different from the prompting mode of the common information, the terminal user can know the rough content in the information in advance according to the prompting of the ringing, and the user can not miss some important information.
The embodiment of the invention matches the keywords according to the information content of the received information, then selects the preset ringing according to the corresponding relation between the keywords and the ringing, and prompts the ringing to the terminal user, so that the user can judge the approximate content of the received information through the ringing, important information can not be missed even when the user is busy, and the user experience is greatly improved.
Example two
The technical solution in the first embodiment is clearly described in detail below. Referring to fig. 2, a second embodiment of the present invention provides an information prompting method, including:
step S201: presetting a key database;
the keyword database stores keywords, and the setting mode can be that a user manually inputs keywords which are arbitrarily set by the user, such as keywords of 'mobile hard disk', 'buying', 'selling', and the like. Of course, various keywords may be combined by boolean logic symbols (e.g., logic symbols such as and, or, etc.) to form a boolean logic expression, for example, a boolean logic expression is "mobile hard disk and (sold by buyer). As can be understood by those skilled in the art from this logic formula, the keyword set by the user means to buy or sell the mobile hard disk. The complexity of setting the keywords can be set according to the needs of the user in different degrees.
Preferably, the keyword database has a default keyword "nu 11" as the basic keyword. "nu 11" indicates that the matching result for the keyword is null. It is understood that the keyword database may be stored in the terminal side, and may also be stored in the network side for the terminal to query.
Step S202: presetting a matching database;
the matching database stores the corresponding relation between the keywords and the ringing. As shown in table 1, for example, the mobile hard disk corresponds to ring 1, MP3 corresponds to ring 2, and so on. Thus, when the information includes a keyword such as a mobile hard disk, the terminal prompts the user through the ring 1 that the piece of information is information about the mobile hard disk. Of course, in the embodiment of the present invention, the representation manner of the keyword may also be represented by a boolean logic operation symbol. For example, in table 1, the user may set the keyword as boolean logic "mobile hard disk and (buyer and seller)", and when the received information includes the keyword of the boolean logic, the terminal prompts the user through ring 3 and vibration that the information is the buying and selling information about the mobile hard disk. It can be understood that the way of setting the keywords (such as chinese phrases, boolean logic) can be set by the user himself, and the degree of feeling the user is given by the ring alert will be different due to the different complexity of setting the keywords. It is understood that the matching database may be stored on the terminal side, or may be stored on the network side for the terminal to query.
| Key word |
Ringing mode |
| nu11 (default system) |
Common ringing mode |
| Mobile hard disk |
Ring 1 |
| MP3 |
Ring 2 |
| Mobile hard disk and (buy or sell) |
Ring 3+ vibration |
| ...... |
...... |
TABLE 1
In other embodiments, the manner in which the user sets the keywords may be simpler. As shown in table 2. When the user sets the keyword "sound", the terminal actually defaults to the keyword boolean logic expression "sound or speaker or subwoofer or (soundbox)". That is to say, the user only needs to set one keyword, and can match a plurality of keywords synonymous with the keyword or related to the keyword, so that the trouble that the user needs to connect a plurality of Boolean logic operation symbols to form a complex Boolean logic formula for more comprehensively and clearly matching the keyword is eliminated, the keyword in the matching information can be more comprehensively and accurately while the user sets a simple keyword, and the matching result is more optimized. Of course, the boolean logic formula may be set by default in the system, or may be modified by the user at any time according to conditions, for example, the user may modify the boolean logic formula equivalent to the input keyword "sound" into "sound or speaker or subwoofer" to avoid the inefficiency caused by the burden on the terminal system computation due to the excessively complex logic formula.
| Key word |
Boolean logic formula |
Ringing mode |
| Sound equipment |
Sound or sound box or subwoofer or (sound box) |
Ring 1 |
| Trousers |
Trousers or long trousers or short trousers or leisure trousers ortrousers |
Ringing 2+ vibration |
| Zhang three |
Zhang Sanor Xiao Sanor dog or Jacky |
Ring 3 |
TABLE 2
It should be understood that there is no precedence order between the above steps S201 and S202, as long as the result of presetting the key database and matching the key database can be achieved.
Step S203: and receiving the information sent by the network side. This step is the same as step S101 in the first embodiment of the present invention, and is not described herein again.
Step S204: and matching the information content of the received information with the keywords stored in the keyword database, and outputting a matching result.
Specifically, the terminal matches and analyzes a preset keyword contained in the received information content in the keyword database. The keyword database is a user dictionary storing keywords preset by the end user. And because the terminal obtains a matching result through matching, inquiring the ringing mode corresponding to the keyword in a matching database. The matching database stores the correspondence between the keywords and the ringing.
Step S205: and prompting ringing according to the preset corresponding relation between the ringing and the keywords. There are two cases here: the first situation is that the information content of the received information is not matched with the keyword preset by the user, namely the matching result is nu11, namely a null value is output, and the user is prompted according to a common ringing mode in the prior art; the second case is that the matching result is not "nu 11", i.e., is not a null value, and the ring is prompted according to the correspondence between the keyword and the ring.
The embodiment of the invention matches the keywords according to the information content of the received information, then selects the preset ringing according to the corresponding relation between the keywords and the ringing, and prompts the ringing to the terminal user, so that the user can judge the approximate content of the received information through the ringing, important information can not be missed even when the user is busy, and the user experience is greatly improved.
EXAMPLE III
As shown in fig. 3, a third embodiment of the present invention provides a terminal corresponding to the first embodiment of the present invention, where the terminal includes: receiving unit 301, keyword matching unit 302, ringing matching unit 303, and prompting unit 304. Wherein,
a receiving unit 301, configured to receive information sent by a network side;
a keyword matching unit 302, configured to match a preset keyword included in information content of the information;
a ring matching unit 303, configured to trigger a corresponding ring according to a preset correspondence between a keyword and a ring according to a matching result of the keyword matching unit;
a prompting unit 304, configured to prompt the end user with the ringing.
After the receiving unit 301 receives the information sent by the network side, the keyword matching unit 302 matches the preset keyword according to the information content of the information, and outputs a matching result.
Further, as shown in fig. 4, the keyword matching unit 302 may include:
a keyword database module 401, configured to accept user input or preset keywords by default in a system, and store the keywords;
a first matching module 402, configured to match the information received by the receiving unit with the keyword stored in the keyword database module, and output a matching result.
Further, as shown in fig. 5, the ringing matching unit 303 may include:
the matching database module 501 is used for receiving the corresponding relation between the keywords and the ringing input by a user or preset by default of a system, and storing the corresponding relation;
a second matching module 502, configured to match the ring stored in the matching database module 501 according to the matching result of the keyword matching unit 302, so as to obtain a ring corresponding to the keyword.
In other embodiments, the keyword matching unit 302 may also obtain data of a keyword by querying a keyword database on the network side, and match the keyword with the received information content to obtain a matching result; the ring matching unit 303 may also obtain a corresponding relationship between the keyword and the ring by querying a matching database on the network side, then find the ring corresponding to the keyword in the matching result according to the matching result of the keyword matching unit 302, and then prompt the corresponding ring to the terminal user by the prompting unit 304.
The embodiment of the invention matches the keywords according to the information content of the received information, then selects the preset ringing according to the corresponding relation between the keywords and the ringing, and prompts the ringing to the terminal user, so that the user can judge the approximate content of the received information through the ringing, important information can not be missed even when the user is busy, and the user experience is greatly improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.