[go: up one dir, main page]

CN103729345B - The method and apparatus of wrong content in communication text has been sent out in a kind of correction - Google Patents

The method and apparatus of wrong content in communication text has been sent out in a kind of correction Download PDF

Info

Publication number
CN103729345B
CN103729345B CN201410012919.2A CN201410012919A CN103729345B CN 103729345 B CN103729345 B CN 103729345B CN 201410012919 A CN201410012919 A CN 201410012919A CN 103729345 B CN103729345 B CN 103729345B
Authority
CN
China
Prior art keywords
content
text
error
error correction
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410012919.2A
Other languages
Chinese (zh)
Other versions
CN103729345A (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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201410012919.2A priority Critical patent/CN103729345B/en
Publication of CN103729345A publication Critical patent/CN103729345A/en
Application granted granted Critical
Publication of CN103729345B publication Critical patent/CN103729345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种纠正已发通信文本中错误内容的方法。该方法包括:终端在已发送一条通信文本,且检测到该通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容,可以操作该错误内容而输入纠错内容,按预设格式仅封装该纠错内容为第一纠错文本发送给对端设备,使对端设备能够更新接收到的通信文本。基于同样的发明构思,本发明还提出一种装置,在不需要另外发送新的通信文本的情况下,能够避免在即时通信时用户发送了错误内容后所带来的各种问题。

The invention discloses a method for correcting wrong content in sent communication texts. The method includes: when the terminal has sent a communication text and detects that there is an error in the communication text, displaying the error content in the communication text in a specific way, the error content can be manipulated and the error correction content can be input according to a preset format Only the error correction content is encapsulated as the first error correction text and sent to the peer device, so that the peer device can update the received communication text. Based on the same inventive idea, the present invention also proposes a device that can avoid various problems caused by users sending wrong content during instant messaging without additionally sending new communication texts.

Description

一种纠正已发通信文本中错误内容的方法和装置A method and device for correcting wrong content in sent communication text

技术领域technical field

本发明涉及通信技术领域,特别涉及一种纠正已发通信文本中错误内容的方法和装置。The invention relates to the technical field of communication, in particular to a method and a device for correcting wrong content in sent communication texts.

背景技术Background technique

随着即时通信使用的普及,人们在日常生活中对于即时通信的依赖越来越大。在目前的即时通信中,很大一部分用户经常使用的基于文本信息的通信方式。With the popularity of instant messaging, people rely more and more on instant messaging in their daily lives. In current instant messaging, a large part of users often use a communication method based on text information.

由于基于文本信息的通信方式的局限性,用户在误输入了不正确的文字之后,往往未能即时察觉即进行了发送。而在发送之后若用户仍未能即时察觉,则可能会影响该文本信息接收方对于用户所发内容的理解甚至产生误解;即使在发送后用户即时察觉到了此前的失误,但用户仍需要另发送新的文本信息,从而对此前的失误进行解释说明。Due to the limitation of the communication method based on text information, after the user mistakenly enters an incorrect text, he often sends it without immediately noticing it. And if the user still fails to notice immediately after sending, it may affect the recipient of the text message to understand or even misunderstand the content sent by the user; even if the user immediately notices the previous mistake after sending, the user still needs to send another text message New text information to explain previous mistakes.

因此,这种因为输入错误而带来的相应问题,在人们日常的即时通信中时有发生。很大程度上降低了用户在使用通信工具交流时的用户体验。Therefore, such corresponding problems caused by input errors often occur in people's daily instant messaging. It greatly reduces the user experience of users when using communication tools to communicate.

发明内容Contents of the invention

有鉴于此,本发明提供纠正已发通信文本中错误内容的方法和装置,在不需要另外发送新的通信文本的情况下,能够避免在即时通信时用户发送了错误内容后所带来的各种问题。In view of this, the present invention provides a method and device for correcting erroneous content in sent communication texts, which can avoid various problems caused by users sending erroneous content during instant messaging without additionally sending new communication texts. kind of problem.

为解决上述技术问题,本发明的技术方案是这样实现的:In order to solve the problems of the technologies described above, the technical solution of the present invention is achieved in the following way:

一种纠正已发通信文本中错误内容的方法,应用于可即时通信的终端上,所述方法包括:A method for correcting erroneous content in sent communication texts, applied to a terminal capable of instant communication, the method comprising:

发送一条通信文本,且检测到该已发送的通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容;Send a communication text, and when an error is detected in the sent communication text, use a specific method to display the error content in the communication text;

当接收到对所述错误内容的操作而输入的纠错内容时,按预设格式封装该纠错内容为第一纠错文本并发送给对端设备,使对端设备根据该第一纠错文本的内容替换接收到的上一条通信文本中对应的错误内容;When receiving the error correction content input by operating on the error content, the error correction content is packaged in the preset format as the first error correction text and sent to the peer device, so that the peer device The content of the text replaces the corresponding error content in the previous communication text received;

在发送完成该第一纠错文本时,取消该通信文本中对错误内容的特定方式的显示,并使用输入的纠错内容替换所述错误内容。When the sending of the first error correction text is completed, the display of the error content in the communication text in a specific manner is canceled, and the input error correction content is used to replace the error content.

一种装置,可应用于可即时通信的终端上,该装置包括:发送单元、检测单元、接收单元和处理单元;A device applicable to a terminal capable of instant communication, the device comprising: a sending unit, a detecting unit, a receiving unit and a processing unit;

所述发送单元,用于发送通信文本;将所述处理单元封装的第一纠错文本发送给对端设备,使对端设备根据该第一纠错文本的内容替换接收到的上一条通信文本中对应的错误内容;The sending unit is configured to send the communication text; send the first error correction text encapsulated by the processing unit to the peer device, so that the peer device replaces the last received communication text according to the content of the first error correction text The corresponding error content in ;

所述检测单元,用于检测所述发送单元已发送的通信文本中是否存在错误;The detection unit is used to detect whether there is an error in the communication text sent by the sending unit;

所述接收单元,用于接收对所述处理单元显示的错误内容的操作而输入的纠错内容;The receiving unit is configured to receive error correction content input by operating on the error content displayed by the processing unit;

所述处理单元,用于当所述检测单元检测到该已发送的通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容;按预设格式封装所述接收单元接收的输入内容为第一纠错文本;在所述发送单元发送完成该第一纠错文本时,取消该通信文本中对错误内容的特定方式的显示,并使用输入的纠错内容替换所述错误内容。The processing unit is configured to display the error content in the communication text in a specific way when the detection unit detects an error in the sent communication text; encapsulate the input content received by the receiving unit in a preset format It is the first error correction text; when the sending unit finishes sending the first error correction text, cancel the display of the error content in a specific way in the communication text, and replace the error content with the input error correction content.

综上所述,本发明通过终端在已发送一条通信文本,且检测到该通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容,可以操作该错误内容而输入纠错内容,按预设格式仅封装该纠错内容为第一纠错文本发送给对端设备,使对端设备能够更新接收到的通信文本。在不需要另外发送新的通信文本的情况下,能够避免在即时通信时用户发送了错误内容后所带来的各种问题。In summary, the present invention uses a specific method to display the error content in the communication text when the terminal has sent a communication text and detects an error in the communication text, and can operate the error content and input the error correction content, Only the error correction content is encapsulated as the first error correction text according to the preset format and sent to the peer device, so that the peer device can update the received communication text. Without the need to additionally send a new communication text, various problems caused by the user sending wrong content during instant messaging can be avoided.

附图说明Description of drawings

图1为本发明具体实施例中发送端纠正已发通信文本中错误内容的方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for correcting wrong content in a sent communication text by a sending end in a specific embodiment of the present invention;

图2为本发明具体实施例中接收端对已接收通信文本的纠错处理流程示意图;Fig. 2 is a schematic diagram of the error correction processing flow of the receiving end to the received communication text in a specific embodiment of the present invention;

图3为本发明具体实施例中应用于上述技术的装置的结构示意图。Fig. 3 is a schematic structural diagram of a device applied to the above technology in a specific embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明所述方案作进一步地详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the solutions of the present invention will be further described in detail below with reference to the accompanying drawings and examples.

本发明实施例中提出一种纠正已发通信文本中错误内容的方法,应用于可即时通信的终端上,该终端在已发送一条通信文本,且检测到该通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容,可以操作该错误内容而输入纠错内容,按预设格式仅封装该纠错内容为第一纠错文本发送给对端设备,使对端设备能够更新接收到的通信文本。在不需要另外发送新的通信文本的情况下,能够避免在即时通信时用户发送了错误内容后所带来的各种问题。In the embodiment of the present invention, a method for correcting the error content in the sent communication text is proposed, which is applied to a terminal capable of instant communication. When the terminal has sent a communication text and detects that there is an error in the communication text, it uses a specific The error content in the communication text can be displayed in the mode, and the error content can be operated to input the error correction content, and only the error correction content is encapsulated in the preset format as the first error correction text and sent to the peer device, so that the peer device can update the receiving received communication text. Without the need to additionally send a new communication text, various problems caused by the user sending wrong content during instant messaging can be avoided.

进行即时通信的终端上需安装纠错工具,对当前刚发送完成的通信文本进行检测,看该已发送通信文本是否存在语法错误、错别字、搭配不当、结构残缺和标点符号错误等。An error correction tool needs to be installed on the terminal for instant messaging to detect the communication text that has just been sent to see if there are grammatical errors, typos, improper collocation, incomplete structure, and punctuation errors in the sent communication text.

现有的开源的自然语言纠错工具有很多,如LanguageTool是一种支持20多种语言的风格和语法的自然语言检测纠错开源工具,在具体使用时也可以配置其他自然语言纠错工具。There are many open source natural language error correction tools. For example, LanguageTool is an open source tool for natural language detection and error correction that supports the styles and grammars of more than 20 languages. Other natural language error correction tools can also be configured for specific use.

参见图1,图1为本发明具体实施例中发送端纠正已发通信文本中错误内容的方法的流程示意图。具体步骤为:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for correcting erroneous content in a sent communication text by a sending end in a specific embodiment of the present invention. The specific steps are:

步骤101,终端发送一条通信文本,且检测到该已发送的通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容。In step 101, the terminal sends a communication text, and when an error is detected in the sent communication text, the error content in the communication text is displayed in a specific way.

在具体实现时,一条通信文本发送完成时,会使用检测工具立即检测该已发送的通信文本是否存在错误。由于是发一条通信文本,检测一条通信文本,因此,该最新发送的通信文本的前一条通信文本不再进行检测。In a specific implementation, when a communication text is sent, a detection tool will be used to immediately detect whether there is an error in the sent communication text. Since a communication text is sent and a communication text is detected, the previous communication text of the latest sent communication text is no longer detected.

本步骤中使用特定方式显示错误内容,可以根据具体使用的习惯等配置,如使用高亮色,如高亮的红色,显示通信文本中的错误内容,也可以是普通的颜色,如红色,显示通信文本中的错误内容。In this step, a specific method is used to display the error content, which can be configured according to the specific usage habits, such as using a highlighted color, such as highlighted red, to display the error content in the communication text, or a common color, such as red, to display the communication text Incorrect content in the text.

如移动终端发送了一条通信文本,其内容为“这段时间没有下雨了,谁也迟下去了”。发送完成后,检测出该通信文本中存在错误,则将错误内容“迟”字使用高亮红色显示。For example, the mobile terminal sends a communication text, the content of which is "it has not rained in this period of time, and no one is late". After the sending is completed, if an error is detected in the communication text, the word "late" in the error content will be highlighted in red.

步骤102,该终端当接收到对所述错误内容的操作而输入的纠错内容时,按预设格式封装该纠错内容为第一纠错文本并发送给对端设备,使对端设备根据该第一纠错文本的内容替换接收到的上一条通信文本中对应的错误内容。Step 102, when the terminal receives the error correction content input by the operation on the error content, it encapsulates the error correction content in a preset format as the first error correction text and sends it to the peer device, so that the peer device The content of the first error correction text replaces the corresponding error content in the last received communication text.

对所述操作内容的操作输入纠错内容,由终端的特点确定操作方法:Enter the error correction content for the operation of the operation content, and the operation method is determined by the characteristics of the terminal:

若该终端是触摸方式,则可以触摸高亮色显示的位置,在该位置弹出输入文本的输入框,输入纠错内容。If the terminal is in the touch mode, you can touch the position displayed in the highlighted color, and an input box for entering text will pop up at this position, and enter the error correction content.

若该终端时按键方式,使用特定的按键确认高亮显示的位置,(如,将输入标志移动到高亮色显示的位置,点击某个按键,弹出输入框),并在该位置弹出的输入文本的输入框中,输入纠错内容。If the terminal is in the button mode, use a specific button to confirm the highlighted position (for example, move the input symbol to the highlighted position, click a button, and the input box will pop up), and the input text that pops up at the position Enter the error correction content in the input box.

本步骤中按预设格式封装纠错内容为第一纠错文本,具体实现时,在该第一纠错文本信息的通信协议包头中加入特定的标识,或在该第一纠错文本的开头加入特定的标识,如生僻的ASCII码字符或组合作为标识,如“”2个特殊字符放在正文“退”之前。以此便于接收端识别该文本为第一纠错文本。In this step, the error correction content is encapsulated as the first error correction text according to the preset format. During specific implementation, a specific identification is added in the communication protocol packet header of the first error correction text information, or at the beginning of the first error correction text Add specific identifiers, such as uncommon ASCII code characters or combinations as identifiers, such as " "Two special characters are placed before the text "retire". This is to facilitate the receiving end to identify the text as the first error correction text.

对端设备也会安装纠错检测工具,在接收到该通信文本时,检测该通信文本中存在错误,也会使用特定的方式显示接收到的通信文本中的“迟”字。The peer device will also install an error correction detection tool to detect errors in the communication text when receiving the communication text, and will also use a specific method to display the word "late" in the received communication text.

对端设备接收到第一纠错文本时,根据第一纠错文本中的特定标识获知该文本不是普通的通信文本,是一个纠错文本,将该第一纠错文本中的内容替换到刚接收到的通信文本中的错误内容。即使用第一纠错文本中的“退”替换通信文本中的“迟”。When the peer device receives the first error correction text, it knows that the text is not an ordinary communication text but an error correction text according to the specific identification in the first error correction text, and replaces the content in the first error correction text with the just Incorrect content in received communication text. That is, replace "late" in the communication text with "back" in the first error correction text.

步骤103,该终端在发送完成该第一纠错文本时,取消该通信文本中对错误内容的特定方式的显示,并使用输入的纠错内容替换所述错误内容。Step 103, when the terminal finishes sending the first error correction text, cancel the display of the error content in the communication text in a specific way, and replace the error content with the input error correction content.

该终端将第一纠错文本发送完成时,不再使用特定方式显示错误内容,即不再以高亮色显示“迟”字;并使用纠错内容“退”字替换通信文本中的错误内容“迟”字。When the terminal finishes sending the first error correction text, it no longer uses a specific method to display the error content, that is, it no longer displays the word "late" in a highlighted color; and uses the error correction content "retire" to replace the error content in the communication text " Late" word.

上述描述为用户纠正了终端提示的错误内容,在实际使用时,用户有时会觉得没必要更正错误内容,有时候认为提示的错误内容不是错误内容,则没有进行错误内容的纠正。这时,终端不做任何处理,继续按照原有方式进行即时通信,直到再次发送完成一条通信文本时,取消上一条通信文本中对错误内容的特定方式的显示。并对最近发送的这条通信文本进行检测处理。The above description is for the user to correct the error content prompted by the terminal. In actual use, the user sometimes feels that it is unnecessary to correct the error content, and sometimes thinks that the error content prompted is not an error content, so the error content is not corrected. At this time, the terminal does not do any processing, and continues to carry out instant messaging in the original manner until a communication text is sent again, and the display of the error content in the previous communication text in a specific manner is canceled. And detect and process the communication text sent recently.

具体处理如下:该终端使用特定方式显示该通信文本中的错误内容时,若未接收到输入的纠错内容,并发送完成新的通信文本时,取消所述通信文本中对所述错误内容的特定方式的显示。The specific processing is as follows: when the terminal uses a specific method to display the error content in the communication text, if the input error correction content is not received, and the new communication text is sent, cancel the correction of the error content in the communication text. Display in a specific way.

上述描述的是对检测出的错误进行纠错的具体处理过程,本发明具体实现时,还可以主动对已发送完成的通信文本进行纠错,无论该已发送通信文本是否存在工具检测出的错误,但是本发明具体实施例中的纠错都限于对最近发送的一条通信文本进行处理,对该通信文本之前发送的通信文本不进行处理。具体处理如下:The above description is the specific processing process of correcting the detected errors. When the present invention is implemented, it can also actively correct the sent communication text, no matter whether there is an error detected by the tool in the sent communication text. , but the error correction in the specific embodiments of the present invention is limited to processing the most recently sent communication text, and the communication text sent before the communication text is not processed. The specific treatment is as follows:

该终端接收到对最新已发送完成的通信文本中的内容的操作而输入的纠错内容时,将该输入的纠错内容替换所述选择的通信文本中的内容,按预设格式封装替换后的通信文本为第二纠错文本并发送给对端设备,使对端设备使用该第二纠错文本的内容替换接收到的上一条通信文本的内容。When the terminal receives the input error correction content for the operation of the content in the latest sent communication text, it replaces the input error correction content with the content in the selected communication text, and encapsulates the replaced content in a preset format The communication text is the second error correction text and is sent to the peer device, so that the peer device uses the content of the second error correction text to replace the content of the last received communication text.

在该种处理方式中,如最新发送的通信文本的内容“今天10点在楼下咖啡厅见”。发送完成后,不论是否检测出该通信文本中的错误内容,用户发现自己发送的通信文本中存在错误,以触摸方式为例,选择“10点”位置,并在弹出的输入框中输入纠错内容“上午10点”。In this processing method, for example, the content of the latest sent communication text is "see you at the coffee shop downstairs at 10 o'clock today". After the sending is completed, regardless of whether the error content in the communication text is detected or not, the user finds that there is an error in the communication text he sent. Taking the touch method as an example, select the "10 o'clock" position, and enter the error correction in the pop-up input box. Content "10 AM".

该终端将纠错内容“上午10”点替换通信文本中的“10点”并将该通信文本的内容按特定方式封装为第二纠错文本,并发送给对端设备。The terminal replaces "10 o'clock" in the communication text with the error correction content "10 am" and encapsulates the content of the communication text into a second error correction text in a specific way, and sends it to the peer device.

在使用特定方式封装为第二纠错文本时,封装格式同第一纠错文本,但是与第一纠错文本的特定标识应该不同,使对端设备能够获知该文本为纠错文本,且为第二纠错文本,从而进行对一个处理。When using a specific method to encapsulate the second error correction text, the encapsulation format is the same as the first error correction text, but the specific identification of the first error correction text should be different, so that the peer device can know that the text is an error correction text, and for The second error-correcting text is thus carried out against a process.

对端设备当接收到第二纠错文本时,使用第二纠错文本中的内容替换接收到的上一条通信文本的内容,可见第二纠错文本的处理需要文本的内容替换整个通信文本的内容,而第一纠错文本的处理只需要使用文本的内容替换通信文本中的错误内容。When the peer device receives the second error correction text, it uses the content in the second error correction text to replace the content of the last communication text received. It can be seen that the processing of the second error correction text requires the content of the text to replace the content of the entire communication text. content, while the processing of the first error correction text only needs to replace the error content in the communication text with the content of the text.

由此可见,用户不需要重新编写一条通信文本发送给对端设备,以便通知已发文本的错误,并发送正确的通信文本,只需要在发送端输入错误的内容,发送给对端设备,设备自动会更新发送的错误文本的内容,提高了用户使用移动终端进行即时通信时的用户体验。It can be seen that the user does not need to rewrite a communication text and send it to the peer device in order to notify the error of the sent text and send the correct communication text. He only needs to input the wrong content at the sending end and send it to the peer device. The content of the sent error text is automatically updated, which improves the user experience when the user uses the mobile terminal for instant messaging.

参见图2,图2为本发明具体实施例中接收端对已接收通信文本的纠错处理流程示意图。具体步骤为:Referring to FIG. 2 , FIG. 2 is a schematic flow chart of the error correction processing of the received communication text by the receiving end in a specific embodiment of the present invention. The specific steps are:

步骤201,终端接收到对端设备发送的通信文本,并检测到该通信文本存在错误时,按特定方式显示该通信文本中的错误内容。Step 201, when the terminal receives the communication text sent by the peer device and detects that there is an error in the communication text, it displays the error content in the communication text in a specific manner.

在该步骤也是对最新接收到的通信文本进行检测,对最新接收到的通信文本之前接收到的通信文本不再检测。In this step, the latest received communication text is also detected, and the communication text received before the latest received communication text is no longer detected.

步骤202,该终端在接收到第一纠错文本时,使用接收到的第一纠错文本的内容更新接收到的上一条通信文本中对应错误内容,并提示进行了通信文本的内容的修改;结束本流程。Step 202, when the terminal receives the first error correction text, use the content of the received first error correction text to update the corresponding error content in the last received communication text, and prompt that the content of the communication text has been modified; End this process.

接收到第一纠错文本时,根据该本本的封装格式确定为纠错文本,并根据特定的标识确定是第一纠错文本,则仅替换通信文本中的错误内容。When the first error correction text is received, it is determined to be the error correction text according to the encapsulation format of the book, and it is determined to be the first error correction text according to the specific identification, then only the error content in the communication text is replaced.

步骤203,该终端在接收到第二纠错文本时,使用接收到第二纠错文本的内容更新接收到的上一条通信文本的内容,并提示进行了通信文本的内容的修改。Step 203, when the terminal receives the second error correction text, update the content of the last received communication text with the content of the received second error correction text, and prompt that the content of the communication text has been modified.

步骤202和步骤203中提示进行了通信文本的内容的修改,具体实现时,可以通过声音提示,以可以用不同的高亮色颜色等提示。In step 202 and step 203, it is prompted that the content of the communication text has been modified. During specific implementation, it may be prompted by voice, or may be prompted with different highlight colors.

如果当前接收到一条通信文本,且接收到的前一条通信文本存在特定方式显示的错误内容时,取消所述上一条通信文本中对错误内容的特定方式的显示。If a communication text is currently received and there is an error content displayed in a specific way in the previous communication text received, cancel the display of the error content in a specific way in the previous communication text.

即接收到一条新的通信文本后,之前接收到的通信文本将不会再进行任何处理。That is, after receiving a new communication text, the previously received communication text will not be processed any more.

基于同样的发明构思,本申请还提出一种装置,可应用于可即时通信的终端上。参见图3,图3为本发明具体实施例中应用于上述技术的装置的结构示意图。该装置包括:发送单元301、检测单元302、接收单元303和处理单元304。Based on the same inventive concept, the present application also proposes a device that can be applied to a terminal capable of instant communication. Referring to FIG. 3 , FIG. 3 is a schematic structural diagram of a device applied to the above technology in a specific embodiment of the present invention. The device includes: a sending unit 301 , a detecting unit 302 , a receiving unit 303 and a processing unit 304 .

发送单元301,用于发送通信文本;将处理单元304封装的第一纠错文本发送给对端设备,使对端设备根据该第一纠错文本的内容替换接收到的上一条通信文本中对应的错误内容;The sending unit 301 is configured to send the communication text; send the first error correction text encapsulated by the processing unit 304 to the peer device, so that the peer device replaces the received last communication text according to the content of the first error correction text. error content;

检测单元302,用于检测发送单元301已发送的通信文本中是否存在错误;A detection unit 302, configured to detect whether there is an error in the communication text sent by the sending unit 301;

接收单元303,用于接收对处理单元304显示的错误内容的操作而输入的纠错内容;The receiving unit 303 is configured to receive error correction content input by operating on the error content displayed by the processing unit 304;

处理单元304,用于当检测单元302检测到该已发送的通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容;按预设格式封装接收单元303接收的输入内容为第一纠错文本;在发送单元301发送完成该第一纠错文本时,取消该通信文本中对错误内容的特定方式的显示,并使用输入的纠错内容替换所述错误内容。The processing unit 304 is used for displaying the error content in the communication text in a specific way when the detection unit 302 detects that there is an error in the sent communication text; encapsulating the input content received by the receiving unit 303 in a preset format as the first Error correction text: when the sending unit 301 finishes sending the first error correction text, cancel the display of the error content in a specific way in the communication text, and replace the error content with the input error correction content.

较佳地,Preferably,

处理单元304,进一步用于使用特定方式显示该通信文本中的错误内容时,且未接收到输入的纠错内容,并在发送单元301发送完成新的通信文本时,取消所述通信文本中对所述错误内容的特定方式的显示。The processing unit 304 is further configured to use a specific method to display the error content in the communication text, and the input error correction content has not been received, and when the sending unit 301 completes sending the new communication text, cancel the error content in the communication text. A specific way of displaying the content of the error.

较佳地,Preferably,

接收单元303,进一步用于接收对最新已发送完成的通信文本中的内容的操作而输入的纠错内容;The receiving unit 303 is further configured to receive error correction content input by operating on the content in the latest sent communication text;

处理单元304,进一步用于将接收单元303接收到的纠错内容替换所述选择的通信文本中的内容,按预设格式封装替换后的通信文本为第二纠错文本;The processing unit 304 is further configured to replace the content in the selected communication text with the error correction content received by the receiving unit 303, and encapsulate the replaced communication text in a preset format as a second error correction text;

发送单元301,进一步用于将处理单元304封装的第二纠错文本发送给对端设备,使对端设备使用该第二纠错文本的内容替换接收到的上一条通信文本的内容。The sending unit 301 is further configured to send the second error correction text encapsulated by the processing unit 304 to the peer device, so that the peer device uses the content of the second error correction text to replace the content of the last received communication text.

较佳地,Preferably,

接收单元303,进一步用于接收对端设备发送的通信报文、第一纠错文本,以及第二纠错文本;The receiving unit 303 is further configured to receive the communication message sent by the peer device, the first error correction text, and the second error correction text;

检测单元302,进一步用于检测接收单元303接收到的通信文本,The detecting unit 302 is further configured to detect the communication text received by the receiving unit 303,

处理单元304,进一步用于当检测单元302检测到接收的通信文本存在错误时,按特定方式显示该通信文本中的错误内容;当接收单元303在接收到第一纠错文本时,使用接收到的第一纠错文本的内容更新接收到的上一条通信文本中对应错误内容,并提示进行了通信文本的内容的修改;当接收单元303在接收到第二纠错文本时,使用接收到第二纠错文本的内容更新接收到的上一条通信文本的内容,并提示进行了通信文本的内容的修改。The processing unit 304 is further configured to display the error content in the communication text in a specific way when the detection unit 302 detects that there is an error in the received communication text; when the receiving unit 303 receives the first error correction text, use the received The content of the first error-correcting text updates the corresponding error content in the last communication text received, and prompts that the content of the communication text has been modified; when the receiving unit 303 receives the second error-correcting text, it uses the received 2. The content of the error correction text updates the content of the last communication text received, and prompts that the content of the communication text has been modified.

较佳地,Preferably,

处理单元304,进一步用于如果接收单元303当前接收到一条通信文本,且接收到的前一条通信文本存在特定方式显示的错误内容时,取消所述上一条通信文本中对错误内容的特定方式的显示。The processing unit 304 is further configured to, if the receiving unit 303 currently receives a piece of communication text, and there is an error content displayed in a specific way in the previous piece of communication text received, cancel the error content of the previous piece of communication text in a specific way. show.

上述实施例的单元可以集成于一体,也可以分离部署;可以合并为一个单元,也可以进一步拆分成多个子单元。The units in the above embodiments can be integrated or deployed separately; they can be combined into one unit, or can be further split into multiple sub-units.

综上所述,本发明通过终端在已发送一条通信文本,且检测到该通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容,可以操作该错误内容而输入纠错内容,按预设格式仅封装该纠错内容为第一纠错文本发送给对端设备,使对端设备能够更新接收到的通信文本。在不需要另外发送新的通信文本的情况下,能够避免在即时通信时用户发送了错误内容后所带来的各种问题。In summary, the present invention uses a specific method to display the error content in the communication text when the terminal has sent a communication text and detects an error in the communication text, and can operate the error content and input the error correction content, Only the error correction content is encapsulated as the first error correction text according to the preset format and sent to the peer device, so that the peer device can update the received communication text. Without the need to additionally send a new communication text, various problems caused by the user sending wrong content during instant messaging can be avoided.

本发明具体实施例中还给出,仅通过输入纠错内容,主动修改已发送通信文本中的错误内容的实现方式。The specific embodiment of the present invention also provides an implementation method of actively modifying the error content in the sent communication text only by inputting the error correction content.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种纠正已发通信文本中错误内容的方法,应用于可即时通信的终端上,其特征在于,所述方法包括:1. A method for correcting wrong content in the sent communication text, applied to a terminal capable of instant communication, characterized in that the method comprises: 发送一条通信文本,且检测到该已发送的通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容;Send a communication text, and when an error is detected in the sent communication text, use a specific method to display the error content in the communication text; 当接收到对所述错误内容的操作而输入的纠错内容时,按预设格式封装该纠错内容为第一纠错文本并发送给对端设备,使对端设备根据该第一纠错文本的内容替换接收到的上一条通信文本中对应的错误内容;When receiving the error correction content input by the operation of the error content, the error correction content is packaged in the preset format as the first error correction text and sent to the peer device, so that the peer device The content of the text replaces the corresponding error content in the previous communication text received; 在发送完成该第一纠错文本时,取消该通信文本中对错误内容的特定方式的显示,并使用输入的纠错内容替换所述错误内容。When the sending of the first error correction text is completed, the display of the error content in the communication text in a specific manner is canceled, and the input error correction content is used to replace the error content. 2.根据权利要求1所述的方法,其特征在于,所述使用特定方式显示该通信文本中的错误内容时,所述方法进一步包括:2. The method according to claim 1, wherein, when displaying the error content in the communication text in a specific manner, the method further comprises: 未接收到输入的纠错内容,并发送完成新的通信文本时,取消所述通信文本中对所述错误内容的特定方式的显示。When the input error correction content is not received and the new communication text is sent, the display of the error content in a specific manner in the communication text is canceled. 3.根据权利要求1或2所述的方法,其特征在于,所述方法进一步包括:3. The method according to claim 1 or 2, wherein the method further comprises: 接收到对最新已发送完成的通信文本中的内容的操作而输入的纠错内容时,将该输入的纠错内容替换选择的通信文本中的内容,按预设格式封装替换后的通信文本为第二纠错文本并发送给对端设备,使对端设备使用该第二纠错文本的内容替换接收到的上一条通信文本的内容。When receiving the error correction content input for the operation of the content in the latest sent communication text, replace the input error correction content with the content in the selected communication text, and encapsulate the replaced communication text according to the preset format as The second error correction text is sent to the peer device, so that the peer device uses the content of the second error correction text to replace the content of the last received communication text. 4.根据权利要求3所述的方法,其特征在于,所述方法进一步包括:4. The method according to claim 3, wherein the method further comprises: 接收到对端设备发送的通信文本,并检测到该通信文本存在错误时,按特定方式显示该通信文本中的错误内容;When the communication text sent by the peer device is received and an error is detected in the communication text, the error content in the communication text is displayed in a specific way; 在接收到第一纠错文本时,使用接收到的第一纠错文本的内容更新接收到的上一条通信文本中对应错误内容,并提示进行了通信文本的内容的修改;When receiving the first error correction text, use the content of the received first error correction text to update the corresponding error content in the last communication text received, and prompt that the content of the communication text has been modified; 在接收到第二纠错文本时,使用接收到第二纠错文本的内容更新接收到的上一条通信文本的内容,并提示进行了通信文本的内容的修改。When the second error correction text is received, the content of the last received communication text is updated with the content of the received second error correction text, and a prompt is made to modify the content of the communication text. 5.根据权利要求4所述的方法,其特征在于,所述方法进一步包括:5. The method according to claim 4, characterized in that the method further comprises: 如果当前接收到一条通信文本,且接收到的前一条通信文本存在特定方式显示的错误内容时,取消所述上一条通信文本中对错误内容的特定方式的显示。If a communication text is currently received and there is an error content displayed in a specific way in the previous communication text received, cancel the display of the error content in a specific way in the previous communication text. 6.一种纠正已发通信文本中错误内容的装置,可应用于可即时通信的终端上,其特征在于,该装置包括:发送单元、检测单元、接收单元和处理单元;6. A device for correcting erroneous content in the sent communication text, which can be applied to a terminal capable of instant communication, and is characterized in that the device includes: a sending unit, a detecting unit, a receiving unit and a processing unit; 所述发送单元,用于发送通信文本;将所述处理单元封装的第一纠错文本发送给对端设备,使对端设备根据该第一纠错文本的内容替换接收到的上一条通信文本中对应的错误内容;The sending unit is configured to send the communication text; send the first error correction text encapsulated by the processing unit to the peer device, so that the peer device replaces the last received communication text according to the content of the first error correction text The corresponding error content in ; 所述检测单元,用于检测所述发送单元已发送的通信文本中是否存在错误;The detection unit is used to detect whether there is an error in the communication text sent by the sending unit; 所述接收单元,用于接收对所述处理单元显示的错误内容的操作而输入的纠错内容;The receiving unit is configured to receive error correction content input by operating on the error content displayed by the processing unit; 所述处理单元,用于当所述检测单元检测到该已发送的通信文本中存在错误时,使用特定方式显示该通信文本中的错误内容;按预设格式封装所述接收单元接收的输入内容为第一纠错文本;在所述发送单元发送完成该第一纠错文本时,取消该通信文本中对错误内容的特定方式的显示,并使用输入的纠错内容替换所述错误内容。The processing unit is configured to display the error content in the communication text in a specific way when the detection unit detects an error in the sent communication text; encapsulate the input content received by the receiving unit in a preset format It is the first error correction text; when the sending unit finishes sending the first error correction text, cancel the display of the error content in a specific way in the communication text, and replace the error content with the input error correction content. 7.根据权利要求6所述的装置,其特征在于,7. The device of claim 6, wherein: 所述处理单元,进一步用于使用特定方式显示该通信文本中的错误内容时,且未接收到输入的纠错内容,并在所述发送单元发送完成新的通信文本时,取消所述通信文本中对所述错误内容的特定方式的显示。The processing unit is further configured to use a specific method to display the error content in the communication text, and the input error correction content has not been received, and cancel the communication text when the sending unit completes sending the new communication text A specific way of displaying the content of the error in the . 8.根据权利要求6或7所述的装置,其特征在于,8. Apparatus according to claim 6 or 7, characterized in that 所述接收单元,进一步用于接收对最新已发送完成的通信文本中的内容的操作而输入的纠错内容;The receiving unit is further configured to receive error correction content input by operating on the content in the latest sent communication text; 所述处理单元,进一步用于将所述接收单元接收到的纠错内容替换选择的通信文本中的内容,按预设格式封装替换后的通信文本为第二纠错文本;The processing unit is further configured to replace the content in the selected communication text with the error correction content received by the receiving unit, and encapsulate the replaced communication text in a preset format as a second error correction text; 所述发送单元,进一步用于将所述处理单元封装的第二纠错文本发送给对端设备,使对端设备使用该第二纠错文本的内容替换接收到的上一条通信文本的内容。The sending unit is further configured to send the second error correction text encapsulated by the processing unit to the peer device, so that the peer device uses the content of the second error correction text to replace the content of the last received communication text. 9.根据权利要求8所述的装置,其特征在于,9. The device of claim 8, wherein: 所述接收单元,进一步用于接收对端设备发送的通信报文、第一纠错文本,以及第二纠错文本;The receiving unit is further configured to receive the communication message, the first error correction text, and the second error correction text sent by the peer device; 所述检测单元,进一步用于检测所述接收单元接收到的通信文本,The detecting unit is further configured to detect the communication text received by the receiving unit, 所述处理单元,进一步用于当所述检测单元检测到接收的通信文本存在错误时,按特定方式显示该通信文本中的错误内容;当所述接收单元在接收到第一纠错文本时,使用接收到的第一纠错文本的内容更新接收到的上一条通信文本中对应错误内容,并提示进行了通信文本的内容的修改;当所述接收单元在接收到第二纠错文本时,使用接收到第二纠错文本的内容更新接收到的上一条通信文本的内容,并提示进行了通信文本的内容的修改。The processing unit is further configured to display the error content in the communication text in a specific way when the detection unit detects that there is an error in the received communication text; when the receiving unit receives the first error correction text, Use the content of the received first error correction text to update the corresponding error content in the last received communication text, and prompt that the content of the communication text has been modified; when the receiving unit receives the second error correction text, The content of the received last communication text is updated with the content of the received second error correction text, and a reminder is made that the content of the communication text has been modified. 10.根据权利要求9所述的装置,其特征在于,10. The apparatus of claim 9, wherein: 所述处理单元,进一步用于如果所述接收单元当前接收到一条通信文本,且接收到的前一条通信文本存在特定方式显示的错误内容时,取消所述上一条通信文本中对错误内容的特定方式的显示。The processing unit is further configured to cancel the specified error content in the previous communication text if the receiving unit currently receives a communication text and there is an error content displayed in a specific way in the previous communication text received. way of display.
CN201410012919.2A 2014-01-13 2014-01-13 The method and apparatus of wrong content in communication text has been sent out in a kind of correction Active CN103729345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410012919.2A CN103729345B (en) 2014-01-13 2014-01-13 The method and apparatus of wrong content in communication text has been sent out in a kind of correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410012919.2A CN103729345B (en) 2014-01-13 2014-01-13 The method and apparatus of wrong content in communication text has been sent out in a kind of correction

Publications (2)

Publication Number Publication Date
CN103729345A CN103729345A (en) 2014-04-16
CN103729345B true CN103729345B (en) 2016-05-11

Family

ID=50453424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410012919.2A Active CN103729345B (en) 2014-01-13 2014-01-13 The method and apparatus of wrong content in communication text has been sent out in a kind of correction

Country Status (1)

Country Link
CN (1) CN103729345B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869546A (en) * 2015-03-30 2015-08-26 深圳市金立通信设备有限公司 Information processing method
CN104811541A (en) * 2015-03-30 2015-07-29 深圳市金立通信设备有限公司 Terminal and network system
CN104915264A (en) * 2015-05-29 2015-09-16 北京搜狗科技发展有限公司 An input error correction method and device
US9953077B2 (en) 2015-05-29 2018-04-24 International Business Machines Corporation Detecting overnegation in text
CN106201554A (en) * 2016-07-25 2016-12-07 珠海市魅族科技有限公司 A kind of the text field modification method and device
CN106921561B (en) * 2017-03-01 2019-01-11 维沃移动通信有限公司 A kind of information processing method and device
CN107885728A (en) * 2017-12-11 2018-04-06 中译语通科技股份有限公司 A kind of QA automatic testing methods and system based on interpreter's translation on line
CN108319692B (en) * 2018-02-01 2021-03-19 云知声智能科技股份有限公司 Abnormal punctuation cleaning method, storage medium and server
CN108768827A (en) * 2018-05-17 2018-11-06 上海爱优威软件开发有限公司 A kind of information processing method and information processing system

Citations (3)

* 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
CN101620610A (en) * 2008-06-30 2010-01-06 国际商业机器公司 Method and device for correcting Web content, recovery service method and apparatus for Web content
CN102937949A (en) * 2012-10-15 2013-02-20 福建榕基软件股份有限公司 Method and system for checking English spelling in rich text editor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032174B2 (en) * 2001-03-27 2006-04-18 Microsoft Corporation Automatically adding proper names to a database
US8321786B2 (en) * 2004-06-17 2012-11-27 Apple Inc. Routine and interface for correcting electronic text
WO2008053466A2 (en) * 2006-10-30 2008-05-08 Cellesense Technologies Ltd. Context sensitive, error correction of short text messages
US8205114B2 (en) * 2010-04-07 2012-06-19 Verizon Patent And Licensing Inc. Method and system for partitioning data files for efficient processing

Patent Citations (3)

* 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
CN101620610A (en) * 2008-06-30 2010-01-06 国际商业机器公司 Method and device for correcting Web content, recovery service method and apparatus for Web content
CN102937949A (en) * 2012-10-15 2013-02-20 福建榕基软件股份有限公司 Method and system for checking English spelling in rich text editor

Also Published As

Publication number Publication date
CN103729345A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN103729345B (en) The method and apparatus of wrong content in communication text has been sent out in a kind of correction
JP2009527811A5 (en)
CN104102629B (en) Text data processing method and electronic device thereof
US8874148B2 (en) Automatic contact recognition from SMS
CN102831108B (en) The automated systems and methods of integration multi-platform communication including real-time language translation
RU2008133569A (en) MACHINE TRANSFER IN THE INSTANT EXCHANGE OF MESSAGES
CN105426511A (en) Recitation assisting method and device
US11095627B2 (en) Message display method, apparatus, and device
US11461117B2 (en) Systems and methods for localizing a user interface based on pre-defined settings stored in a personal storage device
US20160170958A1 (en) Messaging auto-correction using recipient feedback
JP2015210683A (en) Information processing system, information processing apparatus, information processing method, and program
CN102404379A (en) Communication device and communication method
WO2015117313A1 (en) Short message service processing method, terminal, and computer storage medium
CN104123125A (en) Webpage resource acquisition method and device
CN100525336C (en) Number matching method and terminal
CN106060220A (en) Contact information creation method and mobile terminal
CN106921561A (en) A kind of information processing method and device
CN104102411B (en) A kind of method for editing text and text editing apparatus
CN111031063B (en) A kind of data transmission method and device based on tutoring machine
CN110955747B (en) Method and device for modifying complex text font
CN105224295A (en) Software running method and device
US20120254771A1 (en) Method and device for displaying information of email
CN105391845A (en) A remote operation method and device for a mobile intelligent terminal
Reschke Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)
CN110633202A (en) Automatic detection method for version information of touch screen all-in-one machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant