A kind of information correction reminding method and its device in instant messaging
Technical field
The present invention relates to the communications field, more particularly to a kind of information correction reminding method and its dress in instant messaging
Put.
Background technology
The popularization of the smart machines such as the fast-developing and various smart mobile phone with internet, the communication modes of people
Have a very large change, various easily instant communication modes of today be gradually converted into from originally traditional phone, short message,
Such as:The instant communication modes such as wechat, QQ, Fetion, these new instant messaging modes allow the communication way of people to become more
Diversification, also allows communication more convenient using the communication modes of word, picture, voice.
Existing instant messaging is typically user's selection needs the object of chat, and the content that then editor's need sends includes
Content after the completion of editor is simultaneously sent to chatting object by the contents such as word, voice, but working as has multiple chatting objects while entering
In row chat or chat list when having multiple chatting objects, it is easy to switch chat interface or selection chatting object when
Time is falsely dropped because of error, so as to will by mistake issue another chatting object with the chat content of a chatting object, causes user's
Puzzlement.
The content of the invention
Goal of the invention:In order to solve problem present in background technology, i.e., in order to be able to judge to be somebody's turn to do when user sends message
Whether message is to be sent to current chat object, and Consumer's Experience is strengthened to point out to user when object mistake, and the present invention is implemented
Example provides a kind of information correction reminding method and its device in instant messaging.
Technical scheme:A kind of information correction reminding method in instant messaging, methods described includes:
Monitor information editing operate when, obtain in editing mode information to be sent and with current chat object chat
Tail end information in its record, is defined as the first tail end information;
Judge that the information to be sent whether there is semantic relevance with the first tail end information;
If the tail end information with the chat record of other chatting objects is obtained in the absence of if, the second tail end information is defined as;
Judge that the information to be sent whether there is semantic relevance with the second tail end information;
If in the presence of if to user's output calibration prompt message with point out user switch chatting object.
As a kind of preferred embodiment of the invention, judge that the information to be sent whether there is with the first tail end information
Semantic relevance, including:
Obtain sender's account data of the first tail end information and identification is carried out to it, identify sender's account
When the identity of data is user itself, judge whether the information to be sent is the letter that continues for the first tail end information
Breath;When the identity for identifying sender's account data is for chatting object, judge whether the information to be sent is for described
The question information of the first tail end information answers information.
As a kind of preferred embodiment of the invention, judge whether the information to be sent is for the first tail end information
The information that continues, including:
Judge whether the information to be sent can be added the complete sentence of composition with the first tail end information.
It is right to point out user to switch chat to user's output calibration prompt message as a kind of preferred embodiment of the invention
As, including:
Obtain sender's account data of the second tail end information;
To user's output calibration prompt message pointing out user to be switched to the sender's account data with the second tail end information
Corresponding chat interface;
Whether detecting user clicks on the correction prompt information;
The information to be sent is emptied if clicking on and sender's account data with the second tail end information is affixed to
In information editing's frame of corresponding chat interface.
As a kind of preferred embodiment of the invention, right to point out user to switch chat to user's output calibration prompt message
As before, also including:
Judge to whether there is appellation word in the information to be sent;
In judging whether the appellation word appears in chat record in the presence of if;
In judging whether the appellation word appears in the chat record with other chatting objects in the absence of if;
If continuing executing with step in the presence of if.
A kind of information correction suggestion device in instant messaging, described device includes:
First information acquisition module, for when monitoring that information editing operates, obtaining the information to be sent in editing mode
And with the chat record of current chat object in tail end information, be defined as the first tail end information;
First semantic relevance judge module, for judging that the information to be sent whether there is language with the first tail end information
Adopted relevance;
Second data obtaining module, for judging the information to be sent and institute in the first semantic relevance judge module
It is when not existing semantic relevance, to obtain the tail end information with the chat record of other chatting objects to state the first tail end information, fixed
Justice is the second tail end information;
Second semantic relevance judge module, for judging that the information to be sent whether there is language with the second tail end information
Adopted relevance;
Correction prompt module, for judging the information to be sent with described in the second semantic relevance judge module
When there is semantic relevance in two tail end information, to user's output calibration prompt message with point out user switch chatting object.
Used as a kind of preferred embodiment of the invention, the first semantic relevance judge module also includes:
First account data acquisition module, the sender's account data for obtaining the first tail end information;
Identification module, identification is carried out for the sender's account data to the first tail end information;
Continue signal judgement module, for identified in the identification module identity of sender's account data for user from
During body, judge whether the information to be sent is the information that continues for the first tail end information;
Question and answer signal judgement module, for identifying the identity of sender's account data in the identification module for chat is right
As when, judge whether the information to be sent is question information or answer information for the first tail end information.
Used as a kind of preferred embodiment of the invention, the signal judgement module that continues is additionally operable to judge the information to be sent
Whether the complete sentence of composition can be added with the first tail end information.
Used as a kind of preferred embodiment of the invention, the correction prompt module includes:
Second account data acquisition module, the sender's account data for obtaining the second tail end information;
Nformation alert module, for user's output calibration prompt message pointing out user to be switched to and the second tail end information
The corresponding chat interface of sender's account data;
Detecting module is clicked on, for detecting whether user clicks on the correction prompt information;
Message processing module to be sent, the correction prompt information is clicked on for detecting user in the click detecting module
When, empty the information to be sent and affixed to chat corresponding with sender's account data of the second tail end information
In information editing's frame at interface.
As a kind of preferred embodiment of the invention, also include:
First appellation word judge module, for judging to whether there is appellation word in the information to be sent;
Second appellation word judge module, for judging exist in the information to be sent in the first appellation word judge module
During appellation word, in judging whether the appellation word appears in chat record;
3rd appellation word judge module, for judging that the appellation word is not appeared in the second appellation word judge module
When in chat record, in judging whether the appellation word appears in the chat record with other chatting objects.
The present invention realizes following beneficial effect:Judge by semantic relevance, appellation word judge etc. method judge user
Correct object to be sent, points out user to switch to correct chatting object, it is to avoid user transmits the content to mistake when object is wrong
Chatting object, lifts user experience by mistake.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and it is used to explain the principle of the disclosure together in specification.A kind of letter in instant messaging that Fig. 1 is provided for the present invention
Cease the flow chart of correction prompt method;
The flow chart of the information correction reminding method that Fig. 2 is used in instant messaging for the another kind for providing of the invention;
A kind of block diagram of information correction suggestion device in instant messaging that Fig. 3 is provided for the present invention;
The block diagram of the information correction suggestion device that Fig. 4 is used in instant messaging for the another kind for providing of the invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
Embodiment one
With reference to Fig. 1, a kind of flow chart of information correction reminding method in instant messaging that Fig. 1 is provided for the present invention.
Specifically, a kind of information correction reminding method in instant messaging, methods described includes:
Monitor information editing operate when, obtain in editing mode information to be sent and with current chat object chat
Tail end information in its record, is defined as the first tail end information;
Judge that the information to be sent whether there is semantic relevance with the first tail end information;
If the tail end information with the chat record of other chatting objects is obtained in the absence of if, the second tail end information is defined as;
Judge that the information to be sent whether there is semantic relevance with the second tail end information;
If in the presence of if to user's output calibration prompt message with point out user switch chatting object.
As a kind of preferred embodiment of the invention, judge that the information to be sent whether there is with the first tail end information
Semantic relevance, including:
Obtain sender's account data of the first tail end information and identification is carried out to it, identify sender's account
When the identity of data is user itself, judge whether the information to be sent is the letter that continues for the first tail end information
Breath;When the identity for identifying sender's account data is for chatting object, judge whether the information to be sent is for described
The question information of the first tail end information answers information.
As a kind of preferred embodiment of the invention, judge whether the information to be sent is for the first tail end information
The information that continues, including:
Judge whether the information to be sent can be added the complete sentence of composition with the first tail end information.
It is right to point out user to switch chat to user's output calibration prompt message as a kind of preferred embodiment of the invention
As, including:
Obtain sender's account data of the second tail end information;
To user's output calibration prompt message pointing out user to be switched to the sender's account data with the second tail end information
Corresponding chat interface;
Whether detecting user clicks on the correction prompt information;
The information to be sent is emptied if clicking on and sender's account data with the second tail end information is affixed to
In information editing's frame of corresponding chat interface.
Specifically, first embodiment of the invention provides a kind of information correction reminding method in instant messaging, institute
The method of stating is comprised the following steps:
Step 101, when monitoring that information editing operates, obtains information to be sent and and current chat in editing mode
Tail end information in the chat record of object, is defined as the first tail end information.
Step 102, judges that the information to be sent whether there is semantic relevance with the first tail end information.
If step 103 is performed in the absence of if, the tail end information with the chat record of other chatting objects is obtained, be defined as the
Two tail end information.
Step 104, judges that the information to be sent whether there is semantic relevance with the second tail end information.
If in the presence of if perform step 105, to user's output calibration prompt message with point out user switch chatting object.
Wherein, the instant messaging can including wechat, QQ, Fetion etc. instant communication mode.
Specifically, the step 101, described information edit operation can be the edit operations such as copy editor, phonetic entry
Mode, when user in chat interface text input box input content or have voice typing operate when be judged as information editing grasp
Make.
Further, when monitor information editing operate when, obtain in editing mode information to be sent and with work as
Tail end information in the chat record of preceding chatting object, and by with the chat record of current chat object in tail end information definition
It is the first tail end information.
Further, step 102 judges that the information to be sent whether there is semantic association with the first tail end information
Property, step 103 is performed if the information to be sent does not exist semantic relevance with the first tail end information, obtain and it
The tail end information of the chat record of its chatting object, is defined as the second tail end information.
Further, step 104 judges that the information to be sent whether there is semantic association with the second tail end information
Property, step 105 is performed if it there is semantic relevance, it is right to point out user to switch chat to user's output calibration prompt message
As.
In the step 102, if judging there is semantic relevance in the information to be sent with the first tail end information,
Do not perform step 103 downwards then, continue executing with step 102.
In the step 104, if judging, the information to be sent does not exist semantic association with the second tail end information
Property, then step 105 is not performed downwards, continue to return to execution step 102.
In the step 102, judge that the information to be sent whether there is semantic association with the first tail end information
Property, specifically include:
Obtain sender's account data of the first tail end information and identification is carried out to it, identify sender's account
When the identity of data is user itself, judge whether the information to be sent is the letter that continues for the first tail end information
Breath;When the identity for identifying sender's account data is for chatting object, judge whether the information to be sent is for described
The question information of the first tail end information answers information.
Wherein, sender's account data of the first tail end information was first obtained before judgement, and by the account data and is used
Family account data is compared, and the subscriber data can be that instant messaging account or the pet name of user or both have concurrently, the use
Family data is the unique RM of each user, when it is user itself to confirm the first tail end information transmitter account, is judged
Whether the information to be sent is the information that continues for the first tail end information, including:
Judge whether the information to be sent can be added the complete sentence of composition with the first tail end information.
For example:First tail end information is " just run out suddenly a cat ", and information to be sent is " frightened my a jump ", is treated
Send information representation is the user emotion reaction for providing the first tail end information situation, then judge that the information to be sent is first
The information that continues of tail end information.
When the identity for identifying sender's account data is for chatting object, then judge whether the information to be sent is pin
Question information or answer information to the first tail end information, specifically for example:The first tail end information is " having eaten ", institute
Information to be sent is stated for " noon has eaten beef rice ", the first tail end information is the theme with " eating " with information to be sent with " food ",
Judge that the information to be sent is the answer information to the first tail end information.
In the step 104, judge that the information to be sent whether there is semantic association with the second tail end information
Property, specifically judge the information to be sent with the first tail end information with the presence or absence of semantic relevance with step 102
Method is identical.
In the step 105, user's output calibration prompt message is specifically included with pointing out user to switch chatting object:
Obtain sender's account data of the second tail end information;
To user's output calibration prompt message pointing out user to be switched to the sender's account data with the second tail end information
Corresponding chat interface;
Whether detecting user clicks on the correction prompt information;
The information to be sent is emptied if clicking on and sender's account data with the second tail end information is affixed to
In information editing's frame of corresponding chat interface.
Wherein, sender's account data of the second tail end information is obtained, and the account data is chatted right with user
As the object user's data in list is compared, the user that will possess same subscriber data extracts, to user's output calibration
Prompt message is described to point out user to be switched to chat interface corresponding with sender's account data of the second tail end information
Correction prompt information may include the account data of the sender of the second tail end information judged and " confirmation is cut for user's selection
Change " button, the button can be one setting graphic button or for the correction prompt information in itself, detecting user whether click on institute
Correction prompt information is stated, then the information to be sent of inputting interface is emptied and replicated when user clicks on the correction prompt information
Paste in information editing's frame of chat interface corresponding with sender's account data of the second tail end information, user is optional
Continuation is selected to edit the information or transmit it out.
Embodiment two
In second embodiment of the invention, the content with above-mentioned first embodiment is essentially identical, and difference is, used as this hair
A kind of bright preferred embodiment, to user's output calibration prompt message with point out user switch chatting object before, also include:
Step 201, judges to whether there is appellation word in the information to be sent;
If performing step 202 in the presence of if, in judging whether the appellation word appears in chat record;
If performing step 203 in the absence of if, in judging whether the appellation word appears in the chat record with other chatting objects;
If continuing executing with step in the presence of if.
Wherein, the appellation word includes the relative appellative words such as " two elder sisters ", " aunt ", also including " Li is total, " Xiao Zhang " etc. is conventional
Appellation word.
Specifically, in step 201, judge in the information to be sent with the presence or absence of appellation word, if performing step in the presence of if
Rapid 202, during step 202 judges whether the appellation word appears in chat record, chat record described herein is existing object
Chat record, if step is continued executing with the presence of if, if the execution step 203 in the absence of if.Whether step 203 judges the appellation word
Appear in the chat record with other chatting objects, the chat record of other chatting objects is except current chat object
The chat record of other chatting objects, if continuing executing with step in the presence of if to user's output calibration prompt message to point out user to cut
Change chatting object.
Embodiment three
With reference to Fig. 3-4, a kind of block diagram of information correction suggestion device in instant messaging that Fig. 3 is provided for the present invention;Fig. 4
It is the block diagram of the information correction suggestion device that the another kind that the present invention is provided is used in instant messaging.
A kind of specific information correction suggestion device in instant messaging, described device includes:
First information acquisition module 1, for when monitoring that information editing operates, obtaining the information to be sent in editing mode
And with the chat record of current chat object in tail end information, be defined as the first tail end information;
First semantic relevance judge module 2, for judging that the information to be sent whether there is with the first tail end information
Semantic relevance;
Second data obtaining module 3, for the first semantic relevance judge module judge the information to be sent with
When the first tail end information is in the absence of semantic relevance, the tail end information with the chat record of other chatting objects is obtained,
It is defined as the second tail end information;
Second semantic relevance judge module 4, for judging that the information to be sent whether there is with the second tail end information
Semantic relevance;
Correction prompt module 5, for the second semantic relevance judge module judge the information to be sent with it is described
When there is semantic relevance in the second tail end information, to user's output calibration prompt message with point out user switch chatting object.
Used as a kind of preferred embodiment of the invention, the first semantic relevance judge module also includes:
First account data acquisition module 21, the sender's account data for obtaining the first tail end information;
Identification module 22, identification is carried out for the sender's account data to the first tail end information;
Continue signal judgement module 23, and the identity for identifying sender's account data in the identification module is user
Itself when, judge whether the information to be sent is the information that continues for the first tail end information;
Question and answer signal judgement module 24, is chat for identifying the identity of sender's account data in the identification module
During object, judge whether the information to be sent is question information or answer information for the first tail end information.
Used as a kind of preferred embodiment of the invention, the signal judgement module that continues is additionally operable to judge the information to be sent
Whether the complete sentence of composition can be added with the first tail end information.
Used as a kind of preferred embodiment of the invention, the correction prompt module includes:
Second account data acquisition module 51, the sender's account data for obtaining the second tail end information;
Nformation alert module 52, for being believed with second tail end with pointing out user to be switched to user's output calibration prompt message
The corresponding chat interface of sender's account data of breath;
Detecting module 53 is clicked on, for detecting whether user clicks on the correction prompt information;
Message processing module to be sent 54, the correction prompt information is clicked on for detecting user in the click detecting module
When, empty the information to be sent and affixed to chat corresponding with sender's account data of the second tail end information
In information editing's frame at interface.
On the basis of Fig. 3, before the module of Fig. 4 is arranged at correction prompt module 5 as a kind of preferred embodiment of the invention,
Including:
First appellation word judge module 6, for judging to whether there is appellation word in the information to be sent;
Second appellation word judge module 7, for judging to be deposited in the information to be sent in the first appellation word judge module
In appellation word, in judging whether the appellation word appears in chat record;
3rd appellation word judge module 8, for judging that the appellation word does not occur in the second appellation word judge module
When in chat record, in judging whether the appellation word appears in the chat record with other chatting objects.
The present embodiment described device belongs to same design with embodiment of the method, and it implements process and refers to method implementation
Example, will not be repeated herein.
The above embodiments merely illustrate the technical concept and features of the present invention, and the skill of the technical field is familiar with the purpose is to allow
Art personnel will appreciate that present disclosure and implement according to this, can not be limited the scope of the invention with this.All bases
Equivalents or modification done by spirit of the invention, should all be included within the scope of the present invention.