CN107291698A - Information revision method, device, storage medium and electronic equipment - Google Patents

Information revision method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107291698A
CN107291698A CN201710526231.XA CN201710526231A CN107291698A CN 107291698 A CN107291698 A CN 107291698A CN 201710526231 A CN201710526231 A CN 201710526231A CN 107291698 A CN107291698 A CN 107291698A
Authority
CN
China
Prior art keywords
word
information
chat record
record information
wrong
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.)
Granted
Application number
CN201710526231.XA
Other languages
Chinese (zh)
Other versions
CN107291698B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710526231.XA priority Critical patent/CN107291698B/en
Publication of CN107291698A publication Critical patent/CN107291698A/en
Application granted granted Critical
Publication of CN107291698B publication Critical patent/CN107291698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of Information revision method, device, storage medium and electronic equipment.This method includes:Character information to be sent in instant messaging application interactive interface is obtained, the character information includes multiple words;Whether detect in the character information comprising wrong word;If detecting in the character information comprising wrong word, the chat record information of instant messaging application is obtained;According to the chat record information, the corresponding correct word of the wrong word is predicted;According to the correct word, the wrong word is modified.The embodiment of the present invention can improve the degree of accuracy of wrong word amendment.

Description

Information revision method, device, storage medium and electronic equipment
Technical field
Set the invention belongs to communication technical field, more particularly to a kind of Information revision method, device, storage medium and electronics It is standby.
Background technology
With the intelligence degree more and more higher of terminal, the task that terminal can be performed is also more and more extensive.Such as, terminal Wrongly written character detection can be carried out to text message, and the wrongly written character detected is prompted to user to check, to remind the text that user inputs There is mistake in this information.
The content of the invention
The embodiment of the present invention provides a kind of Information revision method, device, storage medium and electronic equipment, can improve wrong text The degree of accuracy of word amendment.
The embodiment of the present invention provides a kind of method, including:
Character information to be sent in instant messaging application interactive interface is obtained, the character information includes multiple texts Word;
Whether detect in the character information comprising wrong word;
If detecting in the character information comprising wrong word, the chat record letter of the instant messaging application is obtained Breath;
According to the chat record information, the corresponding correct word of the wrong word is predicted;
According to the correct word, the wrong word is modified.
The embodiment of the present invention provides a kind of device, including:
First acquisition module, for obtaining character information to be sent in instant messaging application interactive interface, the character Information includes multiple words;
Detection module, for whether detecting in the character information comprising wrong word;
Second acquisition module, if for detecting in the character information comprising wrong word, obtaining the IMU Believe the chat record information of application;
Prediction module, for according to the chat record information, predicting the corresponding correct word of the wrong word;
Correcting module, for according to the correct word, being modified to the wrong word.
The embodiment of the present invention provides a kind of storage medium, computer program is stored thereon with, when the computer program exists When being performed on computer so that the computer performs Information revision method provided in an embodiment of the present invention.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor, and the processor is by calling The computer program stored in memory is stated, for performing Information revision method provided in an embodiment of the present invention.
Information revision method provided in an embodiment of the present invention, device, storage medium and electronic equipment, are used instant in user When communications applications carry out instant messaging, terminal can obtain character letter to be sent in the interactive interface that the instant messaging is applied Breath, the character information includes multiple words.Then, whether terminal can be detected in the character information comprising wrong word.If It is that then terminal can obtain the chat record information of instant messaging application.Then, terminal can be believed according to the chat record Breath, predicts the corresponding correct word of the wrong word, and the wrong word is modified according to the correct word.Therefore, originally Inventive embodiments can improve the degree of accuracy of wrong word amendment.
Brief description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the embodiment to the present invention, technical scheme will be made And its advantage is apparent.
Fig. 1 is to interact schematic diagram between terminal provided in an embodiment of the present invention and server.
Fig. 2 is the schematic flow sheet of Information revision method provided in an embodiment of the present invention.
Fig. 3 is another schematic flow sheet of Information revision method provided in an embodiment of the present invention.
Fig. 4 A to Fig. 4 E are the schematic diagram of a scenario of Information revision method provided in an embodiment of the present invention.
Fig. 5 is the structural representation of Information revision device provided in an embodiment of the present invention.
Fig. 6 is the structural representation of mobile terminal provided in an embodiment of the present invention.
Fig. 7 is another structural representation of mobile terminal provided in an embodiment of the present invention.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
It will be detailed below.
It is understood that the executive agent of the embodiment of the present invention can be the end of smart mobile phone or tablet personal computer etc. End equipment.
Instant messaging application can be installed on the terminal device.As shown in figure 1, by means of the instant messaging application and Its server, the user of this terminal can carry out instant messaging with the user of other-end.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of Information revision method provided in an embodiment of the present invention, flow can be wrapped Include:
In step S101, obtain in character information to be sent in instant messaging application interactive interface, the character information Including multiple words.
Such as, with the intelligence degree more and more higher of terminal, the task that terminal can be performed is also more and more extensive.Example Such as, terminal can carry out wrongly written character detection to text message, and the wrongly written character detected is prompted into user checked, to remind user defeated There is mistake in the text message entered.However, in correlation technique, terminal can not be modified to the wrongly written character detected.
In the step S101 of the embodiment of the present invention, such as, applied in user using instant messaging and good friend is carried out immediately During communication, terminal can be obtained first can in character information to be sent in the instant messaging application interactive interface, the character information With including multiple words.
In step s 102, whether detect in the character information comprising wrong word.
In step s 103, if detecting in the character information comprising wrong word, instant messaging application is obtained Chat record information.
In step S104, according to the chat record information, the corresponding correct word of the wrong word is predicted.
Such as, step S102, S103 and S104 can include:
After character information to be sent in getting instant messaging application interactive interface, terminal can detect the character Whether wrong word is included in information.
If detecting not including wrong word in the character information, then terminal can perform other operations, i.e. step S106。
If detected in the character information comprising wrong word, then terminal can obtain chatting for instant messaging application Its record information.
Then, terminal can predict correct word corresponding with the wrong word according to the chat record information.
For example, the chat record information that terminal is applied according to the instant messaging, the prediction word " attached enter " that makes mistake is corresponding Correct word for " near ".
In step S105, according to the correct word, the wrong word is modified.
Such as, after correct word corresponding with wrong word is determined, terminal can be according to the correct word, to this Mistake word is modified.
It is understood that when carrying out instant messaging, user is often typewrited with speed quickly, therefore user sends out Give and often there is wrong word in the information of other side.Under some scenes, these wrong words are easy to that other side can be caused Misunderstanding.
In embodiments of the present invention, terminal can carry out mistake to character information to be sent in instant messaging interactive interface Text detection, and predict the corresponding correct word of the wrong word, then predicts the correct word come to detecting with this Mistake word is modified.Therefore, the embodiment of the present invention can reduce the wrong word in the information that terminal is sent, so that Improve the accuracy of terminal transmitted information.
Simultaneously as in instant messaging, there is very strong context relation before and after user between the character information of input, because This embodiment of the present invention is after wrong word is detected, and chat record that can be before is corresponding with wrong word to predict Correct word, and the wrong word is modified according to the correct word.In this way, terminal can improve mistake The degree of accuracy of word amendment.
In embodiments of the present invention, terminal can obtain character letter to be sent in the interactive interface that the instant messaging is applied Breath, the character information includes multiple words.Then, whether terminal can be detected in the character information comprising wrong word.If It is that then terminal can obtain the chat record information of instant messaging application.Then, terminal can be believed according to the chat record Breath, predicts the corresponding correct word of the wrong word, and the wrong word is modified according to the correct word.Therefore, originally Inventive embodiments can improve the degree of accuracy of terminal transmitted information.
Referring to Fig. 3, Fig. 3 is another schematic flow sheet of Information revision method provided in an embodiment of the present invention, flow can With including:
In step s 201, terminal obtains character information to be sent in instant messaging application interactive interface, character letter Breath includes multiple words.
Such as, when user is applied using instant messaging and good friend carries out instant messaging, terminal can first obtain IMU Inputted in letter application interactive interface by user, and the character information not yet sent, can include in the character information by Multiple words.
After character information to be sent is got, whether terminal can be detected in the character information comprising mistake text Word.
In one embodiment, whether terminal can be detected in character information by third-party application comprising mistake text Word.For example, the third-party application can be the wrongly written character inspection software in embedded instant messaging application.
If detecting not including wrong word in the character information, then terminal can perform other operations.
If detected in the character information comprising wrong word, then enter step S202.
In step S202, if detecting, comprising wrong word in the character information, terminal obtains the instant messaging should The chat record information to be selected generated in preset time range, and during the corresponding generation of each bar chat record information to be selected Between.
Such as, terminal is detected in character information to be sent in instant messaging application interactive interface comprising wrong word. In this case, terminal can obtain the instant messaging and apply the chat record information generated in preset time range, i.e., Chat record information to be selected.I.e. it is understood that be sent to before the chat record information user to be selected good friend i.e. When communication information and (being sent by the good friend) instant communication message for receiving.
In addition, terminal can also obtain each bar chat record information to be selected corresponding generation time.
For example, including the feelings of wrong word in character information to be sent in detecting instant messaging application interactive interface Under condition, terminal can obtain the chat record information (chat record information to be selected) generated in default 2 minutes or 3 minutes, with And each bar chat record information to be selected corresponding generation time.
For example, the chat record information to be selected generated in nearest 2 minutes that terminal is got includes A, B, C, D, E, F, The wherein A generation time is the latest;The B generation time is later than C, D, E and F earlier than A;The C generation time earlier than B, but be later than D, E and F;The D generation time is later than E and F earlier than C;E be the generation time earlier than D, but be later than F;The F generation time is earliest.
In step S203, terminal, by the rear order to elder generation, is arranged chat record information to be selected according to the generation time Row, obtain the sequence on chat record information to be selected.
In step S204, the chat record information to be selected that terminal will come the default tagmeme of the sequence is defined as target and chatted Its record information.
Such as, step S203 and S204 can include:
After chat record information to be selected, and each bar chat record information to be selected corresponding generation time is got, Terminal can be arranged all chat record information to be selected, so as to obtain according to the generation time by the rear order to elder generation One sequence on chat record information to be selected.That is, in the sequence, what is made number one is generation time the latest that Bar chat record information to be selected, and come that chat record information to be selected of last four generation times of sequence earliest.
After the sequence on chat record information to be selected is obtained, terminal can will come the chat to be selected of default tagmeme Record information is defined as target chat record information.
For example, after chat record information A, B, C, D, E, F to be selected, and its respective generation time is obtained, terminal can , by the rear order to elder generation, to be arranged according to the generation time this six chat record information to be selected, so as to obtain a sequence Row.For example, due to A the generation time the latest;The B generation time is later than C, D, E and F earlier than A;The C generation time earlier than B, But it is later than D, E and F;The D generation time is later than E and F earlier than C;E be the generation time earlier than D, but be later than F;The F generation time Earliest.Therefore, the sequence obtained is (A, B, C, D, E, F).
Then, terminal can determine the chat record information to be selected that default first to the 3rd is come in the sequence For target chat record information.For example, the target chat record information that terminal is determined is A, B, C.
In step S205, terminal extracts at least one keyword from the target chat record information.
In step S206, terminal obtains the corresponding phonetic of the wrong word, and is obtained according to the phonetic and multiple treat selection Word.
In step S207, terminal from the word to be selected, choose with the target text of the keyword match, and by the mesh It is the corresponding correct word of the wrong word to mark Word-predictor.
Such as, step S205, S206 and S207 can include:
After target chat record information is obtained, terminal can extract at least one from the target chat record information Keyword.
Then, terminal can obtain the corresponding phonetic of wrong word detected before, and obtain multiple according to the phonetic Word to be selected.For example, in one embodiment, the plurality of word to be selected is consistent with the phonetic of wrong word.That is, terminal can With the phonetic according to wrong word, multiple phonetics to be selected word consistent with the phonetic of the wrong word is obtained.
After word to be selected is got, terminal can select one and step S205 from the plurality of word to be selected In the word of keyword match that extracts, i.e. target text.Then, the target text can be predicted as mistake text by terminal The corresponding correct word of word.
For example, target chat record information C is " evening, where we had a meal", target chat record information B is " OK, you are fixed local.", target chat record information A is " we go to the XX restaurants of Che Kung Temple how", then terminal can To extract keyword from this three target chat record information.For example, terminal can by certain learning algorithm, to this three Bar chat record information is analyzed and processed, and extracts keyword " evening ", " having a meal ", " Che Kung Temple ", " XX restaurants ".
For example, the character information that user inputs in instant communications applications interactive interface in step S201 for " can be with, under me Noon just Che Kung Temple it is attached enter handle affairs.", the wrong word that wherein terminal is detected is " attached enter ".So, terminal can be obtained The phonetic " fujin " of " attached enter ".Then, terminal can obtain multiple words to be selected according to phonetic " fujin ", the plurality of to treat selection The phonetic of word is " fujin ".For example, the word to be selected that gets of terminal include " near ", " Fujin ", " Fu Jin ".
Then, terminal can from word to be selected " near ", " Fujin ", choose in " Fu Jin " one with keyword " evening ", " having a meal ", " Che Kung Temple ", the target text of " XX restaurants " matching.For example, terminal is by certain learning algorithm, by word to be selected Including " near ", " Fujin ", " Fu Jin " and keyword " evening ", " having a meal ", " Che Kung Temple ", " XX restaurants " matched one by one Afterwards, detect word that the phonetic matched with keyword " Che Kung Temple " and " XX restaurants " is " fujin " for " near ".So, eventually End can by " near " be defined as target text.
In step S208, terminal is modified according to the correct word to the wrong word.
Such as, after correct word is predicted, terminal can be repaiied according to the correct word to the wrong word Just.
For example, determine correct word " near " after, terminal can be " attached to wrong word according to the correct word Enter " it is modified.That is, the character information that user is inputted by " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon." modification For " can be with, I just handles affairs afternoon near Che Kung Temple.”.
For example, in one embodiment, terminal is repaiied according to the correct word to the wrong word in step S208 Positive step can include:
Terminal determines the position of the wrong word in the character information;
According to the position, terminal is carried out highlighted aobvious using the correct word amendment wrong word to the correct word Show.
Such as, after correct word is determined, terminal can determine position of the word in character information that make mistake, so Terminal can delete the correct word from the character information afterwards, then insert correct literary on the original position of the wrong word Word, so as to complete the amendment to the correct word.Then, terminal can be highlighted to the correct word, so as to remind User's this terminal-pair mistake word is corrected.
For example, determine correct word " near " after, terminal can determine to make mistake word " attached enter " in character letter Breath " can be so that I just handles affairs afternoon near Che Kung Temple." in position.For example, terminal determines to make mistake, word " attached enter " exists Character information " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon." the 13rd and 14 word position.
Then, terminal can by wrong word " attached enter " from character information " can be with, my just enters to do Che Kung Temple is attached in afternoon Thing." in delete, then by correct word " near " be inserted into the character information after deletion error word " can be so that I just exists afternoon Handle affairs Che Kung Temple." the 13rd and 14 word position, obtaining revised character information " can be so that I am just in Che Kung Temple afternoon Nearby handle affairs.”.
It is understood that by character information by " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon." be modified to " can be so that I just handles affairs afternoon near Che Kung Temple." after, the degree of accuracy for the information that terminal is sent is improved.
In one embodiment, the embodiment of the present invention can detect user's inputting punctuation mark or space character every time After number, obtain being inputted before the punctuation mark or space symbol and without the character information of wrong text detection, and detect Wherein whether include wrong word.
For example, user have input the in short " XXXXX, " on instant communications applications interactive interface, then when detecting User have input after first punctuation mark ", ", and terminal can obtain the character information inputted before first comma " XXXXX ", and whether detect in the character information " XXXXX " comprising wrong word.Then, user have input the second word " * * * * * *, ".So, when terminal, which detects user, inputs second comma, terminal can obtain defeated before second comma Enter and without character information " the * * * * * * ", and whether detecting wherein comprising wrong word of wrong text detection.
In one embodiment, user is somebody's turn to do after the correct word being highlighted is seen if not approving that terminal is used Correct word amendment mistake word, then terminal can also click on the correct word that this is highlighted, so that triggering terminal is recovered Word before, that is, cancel the amendment to wrong word.
Fig. 4 A to Fig. 4 E are referred to, Fig. 4 A to Fig. 4 E illustrate for the scene of Information revision method provided in an embodiment of the present invention Figure.
Such as, as shown in Figure 4 A, user carries out instant messaging with good friend Xiao Zhang, in instant communications applications interactive interface Middle input character " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon.", but not yet send this information.
Terminal can obtain character to be sent " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon.", and detect wherein Whether wrong word is included.For example, terminal is detected wherein comprising wrong word " attached enter ".
In this case, terminal can obtain the chat record information to be selected generated in default 2 minutes, and each bar The chat record information to be selected corresponding generation time.For example, the chat to be selected note generated in nearest 2 minutes that terminal is got Recording information includes A, B, C, D, E, F, and the wherein A generation time is the latest;The B generation time is later than C, D, E and F earlier than A;C's The generation time is later than D, E and F earlier than B;The D generation time is later than E and F earlier than C;E is the generation time earlier than D, but evening In F;The F generation time is earliest.
After chat record information A, B, C, D, E, F to be selected, and its respective generation time is obtained, terminal can be according to The generation time is arranged this six chat record information to be selected, so as to obtain a sequence by rear to first order.Example Such as, due to A the generation time the latest;The B generation time is later than C, D, E and F earlier than A;The C generation time is earlier than B, but evening In D, E and F;The D generation time is later than E and F earlier than C;E be the generation time earlier than D, but be later than F;The F generation time is most It is early.Therefore, the sequence obtained is (A, B, C, D, E, F).
The chat record information to be selected that default first to the 3rd is come in the sequence can be defined as mesh by terminal Mark chat record information.For example, the target chat record information that terminal is determined is A, B, C.
For example, as shown in Figure 4 B, target chat record information C is " evening, where we had a meal", target chat record Information B is " all right, you are fixed local.", target chat record information A is " we go to the XX restaurants of Che Kung Temple how", So terminal can extract keyword from this three target chat record information.For example, terminal can pass through certain study This three chat record information are analyzed and processed, extract keyword " evening ", " having a meal ", " Che Kung Temple ", " XX by algorithm Restaurant ".
Then, terminal can obtain the phonetic " fujin " of wrong word " attached enter ".Then, terminal can be according to phonetic " fujin " obtains multiple words to be selected, and the phonetic of the plurality of word to be selected is " fujin ".For example, terminal get it is to be selected Word include " near ", " Fujin ", " Fu Jin ".
Then, terminal can from word to be selected " near ", " Fujin ", choose in " Fu Jin " one with keyword " evening ", " having a meal ", " Che Kung Temple ", the target text of " XX restaurants " matching.For example, terminal is by certain learning algorithm, by word to be selected Including " near ", " Fujin ", " Fu Jin " and keyword " evening ", " having a meal ", " Che Kung Temple ", " XX restaurants " matched one by one Afterwards, detect word that the phonetic matched with keyword " Che Kung Temple " and " XX restaurants " is " fujin " for " near ".So, eventually End can by " near " be defined as target text, and by the target text " near " to be predicted as wrong word " attached enter " corresponding just True word.
Predict correct word " near " after, terminal can be carried out according to the correct word to wrong word " attached enter " Amendment.That is, the character information that user is inputted by " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon." be revised as " can So that I just handles affairs afternoon near Che Kung Temple.", as shown in Figure 4 C.
Afterwards, as shown in Figure 4 D, user clicks " transmission " button, and information is sent.Sent by information Afterwards, the interactive interface of terminal instant messaging application can be as shown in Figure 4 E.
Referring to Fig. 5, Fig. 5 is the structural representation of Information revision device provided in an embodiment of the present invention.Information revision is filled Putting 300 can include:First acquisition module 301, detection module 302, the second acquisition module 303, prediction module 304, Yi Jixiu Positive module 305.
First acquisition module 301, for obtaining character information to be sent in instant messaging application interactive interface, the word Symbol information includes multiple words.
Such as, when user is applied using instant messaging and good friend carries out instant messaging, the first acquisition module 301 can be first Obtain the character information to be sent inputted in instant messaging application interactive interface by user.It can include in the character information Multiple words.
Detection module 302, for whether detecting in the character information comprising wrong word.
Such as, character information to be sent in the first acquisition module 301 gets instant messaging application interactive interface it Afterwards, whether detection module 302 can be detected in the character information comprising wrong word.
If detecting not including wrong word in the character information, then terminal can perform other operations.
Second acquisition module 303, if for detecting in the character information comprising wrong word, obtaining described instant The chat record information of communications applications.
Prediction module 304, for according to the chat record information, predicting the corresponding correct word of the wrong word.
Such as, detection module 302 is detected in character information to be sent in instant messaging interactive interface comprising mistake text Word, then the second acquisition module 303 can obtain the chat record information of instant messaging application.
Then, prediction module 304 can predict the corresponding correct word of the wrong word according to the chat record information.
For example, prediction module 304 predict with wrong word " attached enter " corresponding correct word for " near ".
Correcting module 305, for according to the correct word, being modified to the wrong word.
Such as, after correct word corresponding with wrong word is predicted, correcting module 305 can be according to the correct text Word, is modified to the wrong word.
In one embodiment, prediction module 304 can be used for:
At least one keyword is extracted from the chat record information.
The corresponding phonetic of the wrong word is obtained, and multiple words to be selected are obtained according to the phonetic.
From the word to be selected, the target text with the keyword match is chosen, and the target text is predicted For the corresponding correct word of the wrong word.
Such as, after the chat record information that the second acquisition module 303 gets instant messaging application, prediction module 304 can extract at least one keyword from the chat record information.Then, prediction module 304 can obtain wrong word Corresponding phonetic, and multiple words to be selected are obtained according to the phonetic, then chosen and keyword match from the plurality of word to be selected Target text, and the target text is predicted as the corresponding correct word of the wrong word.
In one embodiment, correcting module 305 can be used for:
Determine position of the wrong word in the character information;
According to the position, using wrong word described in the correct word amendment, and the correct word is carried out high Bright display.
Such as, after correct word is predicted, correcting module 305 can determine to make mistake word in character information Position, then correcting module 305 the wrong word can be deleted from the character information, then in the original position of the wrong word The corresponding correct word of insertion is put, so as to complete the amendment to the wrong word.Then, terminal can be entered to the correct word Row is highlighted, and reminds the user that terminal is corrected to the wrong word detected.
For example, predict correct word " near " after, the word " attached enter " that can determine to make mistake of correcting module 305 exists Character information " can be so that I just handles affairs afternoon near Che Kung Temple." in position.For example, correcting module 305 determines to make mistake Word " attached enter " character information " can be with, my just enters to handle affairs Che Kung Temple is attached in afternoon." the 13rd and 14 word position.
Then, correcting module 305 can " can be so that I am just public in car afternoon from character information by wrong word " attached enter " Mausoleum is attached to be entered to handle affairs." in delete, then by correct word " near " be inserted into the character information after deletion error word " can be with, under me Noon just handles affairs in Che Kung Temple." the 13rd and 14 word position, obtain revised character information " can be with, my just in afternoon Handled affairs near Che Kung Temple.”.
In one embodiment, the second acquisition module 303 can be used for:
The chat record information to be selected generated in preset time range of the instant messaging application is obtained, and each bar is treated Select the chat record information corresponding generation time.
According to each bar chat record information to be selected corresponding generation time, selected from the chat record information to be selected Take target chat record information.
So, prediction module 304 can be used for:According to the target chat record information, the wrong word pair is predicted The correct word answered.
Such as, the second acquisition module 303 can obtain the instant messaging and apply the generation in default 2 minutes or 3 minutes Chat record information to be selected, and each bar chat record information to be selected corresponding generation time.
Then, the second acquisition module 303 can be according to each bar chat record information to be selected corresponding generation time, from all Target chat record information is chosen in chat record information to be selected.
So, after target chat record information is obtained, prediction module 304 can just be believed according to the target chat record Breath, predicts the corresponding correct word of the wrong word.
For example, in one embodiment, the second acquisition module 303 can be used for:
Chat record information to be selected is arranged to first order by rear according to the generation time, obtains chatting on to be selected The sequence of its record information.
The chat record information to be selected that the default tagmeme of the sequence will be come is defined as target chat record information.
Such as, after chat record information A, B, C, D, E, F to be selected, and its respective generation time is obtained, second obtains Modulus block 303 can be arranged this six chat record information to be selected according to the generation time by rear to first order, so that Obtain a sequence.For example, due to A the generation time the latest;The B generation time is later than C, D, E and F earlier than A;C generation Time is later than D, E and F earlier than B;The D generation time is later than E and F earlier than C;E be the generation time earlier than D, but be later than F;F The generation time it is earliest.Therefore, the sequence obtained is (A, B, C, D, E, F).
Then, the second acquisition module 303 can will come the chat to be selected of default first to the 3rd in the sequence Record information is defined as target chat record information.For example, the target chat record information that the second acquisition module 303 is determined For A, B, C.
The embodiment of the present invention provides a kind of computer-readable storage medium, computer program is stored thereon with, when described When computer program is performed on computers so that the computer performs such as Information revision side provided in an embodiment of the present invention Method.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor, and the processor is by calling The computer program stored in memory is stated, for performing Information revision method provided in an embodiment of the present invention.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet personal computer or smart mobile phone.Referring to Fig. 6, Fig. 6 is the structural representation of mobile terminal provided in an embodiment of the present invention.
The mobile terminal 400 can include the parts such as communication unit 401, memory 402, processor 403.Art technology Personnel are appreciated that the mobile terminal structure shown in Fig. 6 does not constitute the restriction to mobile terminal, can include than diagram more Many or less parts, either combine some parts or different parts arrangement.
Communication unit 401 can be used for receiving and sending messages, or in communication process signal reception and transmission, for example, by descending letter After breath is received, transfer to one or more than one processor 403 is handled;In addition, being sent up data are related to.
Memory 402 can be used for storage application program and data.Include and can hold in the application program that memory 402 is stored Line code.Application program can constitute various functions module.Processor 403 is stored in the application journey of memory 402 by operation Sequence, so as to perform various function application and data processing.
Processor 403 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in application program in memory 402, and calls and be stored in memory 402 Data, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.
In the present embodiment, processor 403 is by calling the computer program being stored in memory 402, for performing Following steps:
Processor 403 is obtained in character information to be sent in instant messaging application interactive interface, the character information and wrapped Include multiple words.
Whether processor 403 is detected in the character information comprising wrong word.
If detecting comprising wrong word in the character information, processor 403 obtains the instant messaging application Chat record information.
According to the chat record information, processor 403 predicts the corresponding correct word of the wrong word.
According to the correct word, 403 pairs of the processor wrong word is modified.
Referring to Fig. 7, in another embodiment, mobile terminal 500 can include communication unit 501, memory 502nd, the part such as processor 503, input block 504 and output unit 505.
Communication unit 501 can be used for receiving and sending messages, or in communication process signal reception and transmission, for example, by descending letter After breath is received, transfer to one or more than one processor 503 is handled;In addition, being sent up data are related to.
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 is stored Line code.Application program can constitute various functions module.Processor 503 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.
Processor 503 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in application program in memory 502, and calls and be stored in memory 502 Data, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.
Input block 504 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.One In embodiment, input block 504 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen Or Trackpad.
Output unit 505 can be used for the information that is inputted by user of display or the information for being supplied to user and mobile terminal Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Output unit may include display panel.
In the present embodiment, processor 503 is by calling the computer program being stored in memory 502, for performing Following steps:
Processor 503 is obtained in character information to be sent in instant messaging application interactive interface, the character information and wrapped Include multiple words.
Whether processor 503 is detected in the character information comprising wrong word.
If detecting comprising wrong word in the character information, processor 503 obtains the instant messaging application Chat record information.
According to the chat record information, processor 503 predicts the corresponding correct word of the wrong word.
According to the correct word, 503 pairs of the processor wrong word is modified.
In one embodiment, processor 503 performs described according to the chat record information, the prediction mistake text During the step of the corresponding correct word of word, it can perform:Processor 503 extracts at least one pass from the chat record information Key word.Processor 503 obtains the corresponding phonetic of the wrong word, and obtains multiple words to be selected according to the phonetic.From institute State in word to be selected, processor 503 chooses the target text with the keyword match, and the target text is predicted as into institute State the corresponding correct word of wrong word.
In one embodiment, processor 503 performs described according to the correct word, and the wrong word is carried out During the step of amendment, it can perform:Processor 503 determines position of the wrong word in the character information.According to institute Rheme is put, and processor 503 is carried out highlighted aobvious using wrong word described in the correct word amendment to the correct word Show.
In one embodiment, processor 503 performs the chat record information for obtaining the instant messaging application Step when, can perform:Processor 503 obtain instant messaging application generated in preset time range to be selected chat Its record information, and each bar chat record information to be selected corresponding generation time.Processor 503 is according to each bar chat to be selected The record information corresponding generation time, target chat record information is chosen from the chat record information to be selected.
So, processor 503 performs described according to the chat record information, predicts that the wrong word is corresponding correct During the step of word, it can perform:According to the target chat record information, processor 503 predicts the wrong word correspondence Correct word.
In one embodiment, processor 503 performs described according to the corresponding generation of each bar chat record information Time, when the step of target chat record information is chosen from the chat record information to be selected, it can perform:During according to generation Between by rear to first order, chat record information to be selected is arranged, the sequence on chat record information to be selected is obtained.Will The chat record information to be selected for coming the default tagmeme of the sequence is defined as target chat record information.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, the detailed description above with respect to Information revision method is may refer to, here is omitted.
Described information correcting device provided in an embodiment of the present invention belongs to same with the Information revision method in foregoing embodiments One design, can run the either method provided in described information modification method embodiment on described information correcting device, its The process of implementing refers to described information modification method embodiment, and here is omitted.
It should be noted that for described information modification method of the embodiment of the present invention, those of ordinary skill in the art can To understand all or part of flow for realizing described information modification method of the embodiment of the present invention, computer program can be by Related hardware is controlled to complete, the computer program can be stored in a computer read/write memory medium, be such as stored in In memory, and by least one computing device, the embodiment of Information revision method as described is may include in the process of implementation Flow.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only Memory), random Access/memory body (RAM, Random Access Memory) etc..
For the described information correcting device of the embodiment of the present invention, its each functional module can be integrated in a processing core In piece or modules are individually physically present, can also two or more modules be integrated in a module.On Stating integrated module can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The collection If into module realized and as independent production marketing or in use, can also be stored in using in the form of software function module In one computer read/write memory medium, the storage medium is for example read-only storage, disk or CD etc..
A kind of Information revision method, device, storage medium and the electronic equipment provided above the embodiment of the present invention It is described in detail, specific case used herein is set forth to the principle and embodiment of the present invention, and the above is real The explanation for applying example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those skilled in the art, According to the thought of the present invention, it will change in specific embodiments and applications, in summary, in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of Information revision method, it is characterised in that methods described includes:
Character information to be sent in instant messaging application interactive interface is obtained, the character information includes multiple words;
Whether detect in the character information comprising wrong word;
If detecting in the character information comprising wrong word, the chat record information of the instant messaging application is obtained;
According to the chat record information, the corresponding correct word of the wrong word is predicted;
According to the correct word, the wrong word is modified.
2. Information revision method according to claim 1, it is characterised in that described according to the chat record information, in advance The corresponding correct word of the wrong word is surveyed, including:
At least one keyword is extracted from the chat record information;
The corresponding phonetic of the wrong word is obtained, and multiple words to be selected are obtained according to the phonetic;
From the word to be selected, the target text with the keyword match is chosen, and the target text is predicted as institute State the corresponding correct word of wrong word.
3. Information revision method according to claim 2, it is characterised in that described according to the correct word, to described Mistake word is modified, including:
Determine position of the wrong word in the character information;
According to the position, using wrong word described in the correct word amendment, and the correct word is carried out highlighted aobvious Show.
4. Information revision method according to claim 1, it is characterised in that what the acquisition instant messaging was applied chats Its record information, including:
The chat record information to be selected generated in preset time range of instant messaging application is obtained, and each bar is to be selected chats Its record information corresponding generation time;
According to each bar chat record information to be selected corresponding generation time, mesh is chosen from the chat record information to be selected Mark chat record information;
It is described according to the chat record information, predict that the corresponding correct word of the wrong word includes:According to the target Chat record information, predicts the corresponding correct word of the wrong word.
5. Information revision method according to claim 4, it is characterised in that described according to each bar chat record to be selected The information corresponding generation time, target chat record information is chosen from the chat record information to be selected, including:
Chat record information to be selected is arranged to first order by rear according to the generation time, obtained on chat note to be selected Record the sequence of information;
The chat record information to be selected that the default tagmeme of the sequence will be come is defined as target chat record information.
6. a kind of Information revision device, it is characterised in that described device includes:
First acquisition module, for obtaining character information to be sent in instant messaging application interactive interface, the character information Include multiple words;
Detection module, for whether detecting in the character information comprising wrong word;
Second acquisition module, if for detecting in the character information comprising wrong word, obtaining the instant messaging should Chat record information;
Prediction module, for according to the chat record information, predicting the corresponding correct word of the wrong word;
Correcting module, for according to the correct word, being modified to the wrong word.
7. Information revision device according to claim 6, it is characterised in that the prediction module is used for:
At least one keyword is extracted from the chat record information;
The corresponding phonetic of the wrong word is obtained, and multiple words to be selected are obtained according to the phonetic;
From the word to be selected, the target text with the keyword match is chosen, and the target text is predicted as institute State the corresponding correct word of wrong word.
8. Information revision device according to claim 7, it is characterised in that the correcting module is used for:
Determine position of the wrong word in the character information;
According to the position, using wrong word described in the correct word amendment, and the correct word is carried out highlighted aobvious Show.
9. a kind of storage medium, is stored thereon with computer program, it is characterised in that when the computer program on computers During execution so that the computer performs the Information revision method as any one of claim 1 to 5.
10. a kind of electronic equipment, including memory, processor, it is characterised in that the processor is by calling the memory The computer program of middle storage, for performing the Information revision method as any one of claim 1 to 5.
CN201710526231.XA 2017-06-30 2017-06-30 Information correction method, information correction device, storage medium and electronic equipment Active CN107291698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710526231.XA CN107291698B (en) 2017-06-30 2017-06-30 Information correction method, information correction device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710526231.XA CN107291698B (en) 2017-06-30 2017-06-30 Information correction method, information correction device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107291698A true CN107291698A (en) 2017-10-24
CN107291698B CN107291698B (en) 2020-08-04

Family

ID=60098448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710526231.XA Active CN107291698B (en) 2017-06-30 2017-06-30 Information correction method, information correction device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107291698B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009136A (en) * 2017-10-31 2018-05-08 努比亚技术有限公司 A kind of modified method of message and mobile terminal, computer-readable recording medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136871A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Corrective method, instant communication terminal and system of transmitting error message
CN103019398A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Character input method and character input device
CN104036047A (en) * 2014-07-02 2014-09-10 携程计算机技术(上海)有限公司 Method and system for automatically correcting character strings
CN105247446A (en) * 2013-05-16 2016-01-13 株式会社酷凯 Type error correction method and device implementing the same method
CN105378607A (en) * 2013-07-05 2016-03-02 三星电子株式会社 Method for restoring autocorrected character and electronic device thereof
CN106095751A (en) * 2016-06-07 2016-11-09 维沃移动通信有限公司 The knowledge mistake processing method of a kind of word input and mobile terminal
CN106250364A (en) * 2016-07-20 2016-12-21 科大讯飞股份有限公司 A kind of text modification method and device
CN106249909A (en) * 2015-06-05 2016-12-21 苹果公司 Language in-put corrects
CN106656748A (en) * 2016-11-15 2017-05-10 北京三快在线科技有限公司 Information display method and device, and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136871A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Corrective method, instant communication terminal and system of transmitting error message
CN103019398A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Character input method and character input device
CN105247446A (en) * 2013-05-16 2016-01-13 株式会社酷凯 Type error correction method and device implementing the same method
CN105378607A (en) * 2013-07-05 2016-03-02 三星电子株式会社 Method for restoring autocorrected character and electronic device thereof
CN104036047A (en) * 2014-07-02 2014-09-10 携程计算机技术(上海)有限公司 Method and system for automatically correcting character strings
CN106249909A (en) * 2015-06-05 2016-12-21 苹果公司 Language in-put corrects
CN106095751A (en) * 2016-06-07 2016-11-09 维沃移动通信有限公司 The knowledge mistake processing method of a kind of word input and mobile terminal
CN106250364A (en) * 2016-07-20 2016-12-21 科大讯飞股份有限公司 A kind of text modification method and device
CN106656748A (en) * 2016-11-15 2017-05-10 北京三快在线科技有限公司 Information display method and device, and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009136A (en) * 2017-10-31 2018-05-08 努比亚技术有限公司 A kind of modified method of message and mobile terminal, computer-readable recording medium
CN108009136B (en) * 2017-10-31 2021-09-21 努比亚技术有限公司 Message correction method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN107291698B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
EP3369219B1 (en) Predictive responses to incoming communications
US9686275B2 (en) Correlating cognitive biometrics for continuous identify verification
CN108234283B (en) Detecting external social media messages
US20140122057A1 (en) Techniques for input method editor language models using spatial input models
US20230385543A1 (en) Selective text prediction for electronic messaging
CN105144040A (en) Communication context based predictive-text suggestion
US11381527B2 (en) Information prompt method and apparatus
US20170109651A1 (en) Annotating text using emotive content and machine learning
CN109716370B (en) System and method for transmitting responses in a messaging application
US11050688B2 (en) Apparatus and method for improving communication between matched individuals
JP6776310B2 (en) User-Real-time feedback information provision methods and systems associated with input content
CN108829371A (en) interface control method, device, storage medium and electronic equipment
CN105069013A (en) Control method and device for providing input interface in search interface
CN106030527B (en) By the system and method for application notification user available for download
CN109074547B (en) Text message ordering based on message content
WO2020227629A1 (en) System and method to avoid sending a message to the unintended recipient
CN114205212A (en) Network security early warning method, device, equipment and readable storage medium
US10891365B2 (en) CAPTCHA generation based on environment-specific vocabulary
CN107291698A (en) Information revision method, device, storage medium and electronic equipment
CN109951380B (en) Method, electronic device, and computer-readable medium for finding conversation messages
CN105589570A (en) Input error processing method and apparatus
US11662886B2 (en) System and method for directly sending messages with minimal user input
CN104135725A (en) Short message sending method and portable terminal
CN106716308A (en) Input method editor for inputting names of geographic locations
CN112333081A (en) Message processing method and electronic equipment

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant