CN110837305A - Input method error correction method and device - Google Patents
Input method error correction method and device Download PDFInfo
- Publication number
- CN110837305A CN110837305A CN201810936030.1A CN201810936030A CN110837305A CN 110837305 A CN110837305 A CN 110837305A CN 201810936030 A CN201810936030 A CN 201810936030A CN 110837305 A CN110837305 A CN 110837305A
- Authority
- CN
- China
- Prior art keywords
- error correction
- input
- key
- grip
- corrected
- 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.)
- Pending
Links
- 238000012937 correction Methods 0.000 title claims abstract description 229
- 238000000034 method Methods 0.000 title claims abstract description 137
- 238000013507 mapping Methods 0.000 claims abstract description 109
- 238000012545 processing Methods 0.000 claims abstract description 49
- 230000008569 process Effects 0.000 claims abstract description 34
- 230000015654 memory Effects 0.000 claims description 19
- 230000001960 triggered effect Effects 0.000 claims description 10
- 230000001133 acceleration Effects 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 8
- 230000036544 posture Effects 0.000 description 100
- 238000012549 training Methods 0.000 description 34
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 7
- 238000013145 classification model Methods 0.000 description 6
- 238000013528 artificial neural network Methods 0.000 description 4
- 210000004247 hand Anatomy 0.000 description 4
- 230000005291 magnetic effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000013480 data collection Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 210000003813 thumb Anatomy 0.000 description 3
- 241000282414 Homo sapiens Species 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000006403 short-term memory Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007787 long-term memory Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000306 recurrent effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
Description
技术领域technical field
本发明涉及输入法纠错领域,具体涉及一种输入法纠错方法及装置。The invention relates to the field of input method error correction, in particular to an input method error correction method and device.
背景技术Background technique
输入法是一种将各种符号输入计算机或其他设备的编码方法,是人类和计算机打交道不可或缺的工具,比如,拼音输入是众多输入法中的一种,是按照拼音规定来进行输入汉字的,不需要特殊记忆,符合人的思维习惯,只要会拼音就可以输入汉字。Input method is a coding method for inputting various symbols into computers or other devices. It is an indispensable tool for human beings to deal with computers. For example, Pinyin input is one of many input methods. Yes, no special memory is required, it is in line with human thinking habits, as long as you know Pinyin, you can input Chinese characters.
在用户输入过程中,有时不小心或者按键点击速度较快时,经常会出现点错按键的情况,造成输入错误,为此,在一些输入法中融入了纠错技术,以实现在用户输入过程中后台自动纠错。在现有技术中,输入法的纠错技术大致分为两种:按键纠错和位置纠错。其中,按键纠错不考虑按键之间的位置关系,只考虑按键序列的逻辑关系,比如:zle,按键纠错可能会纠成zhe;位置纠错是根据按键的坐标预测纠成附近按键的可能性。In the process of user input, sometimes the wrong button is clicked accidentally or the button is clicked at a fast speed, resulting in input error. Automatic error correction in the middle and background. In the prior art, the error correction technology of the input method is roughly divided into two types: button error correction and position error correction. Among them, the button error correction does not consider the positional relationship between the buttons, but only considers the logical relationship of the button sequence, such as: zle, button error correction may be corrected to zhe; position error correction is based on the coordinate prediction of the button to correct the possibility of a nearby button sex.
在实际使用中,由于用户设备、输入习惯等不同,都有可能产生不同的输入错误,因此无论是上述按键纠错还是位置纠错,其纠错时考虑的因素有限,纠错结果的准确性仍有待提高。In actual use, due to different user equipment, input habits, etc., different input errors may occur. Therefore, whether it is the above-mentioned button error correction or position error correction, the factors considered in error correction are limited, and the accuracy of the error correction results. There is still room for improvement.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种输入法纠错方法及装置,以提高输入法纠错能力及准确性,提升用户输入质量。Embodiments of the present invention provide an input method error correction method and device, so as to improve the error correction capability and accuracy of the input method and improve the quality of user input.
为此,本发明提供如下技术方案:For this reason, the present invention provides the following technical solutions:
一种输入法纠错方法,所述方法包括:An input method error correction method, the method comprises:
在用户输入过程中,确定当前按键对应的握姿类型;During the user input process, determine the grip type corresponding to the current button;
获取所述握姿类型对应的纠错映射关系表;Obtain an error correction mapping table corresponding to the grip type;
根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串。Perform error correction processing according to the error correction mapping relationship table to obtain one or more input strings after error correction.
优选地,所述确定当前按键对应的握姿类型包括:Preferably, the determining the grip type corresponding to the current key includes:
获取当前按键触发时的握姿识别特征;所述握姿识别特征包括以下任意一种或多种:位置信息、时间信息、运动信息、设备方向、设备类型;Acquire the recognition feature of the grip posture when the current button is triggered; the recognition feature of the grip posture includes any one or more of the following: position information, time information, motion information, device orientation, and device type;
所述位置信息包括以下任意一种或多种:按键坐标,相邻两次按键的距离,按键在键盘上所处区域;The location information includes any one or more of the following: key coordinates, the distance between two adjacent keys, and the area where the key is located on the keyboard;
所述时间信息包括:相邻两次按键的时间差;The time information includes: the time difference between two adjacent keys;
所述运动信息包括:加速度、转动角速度;The motion information includes: acceleration, rotational angular velocity;
将所述握姿识别特征输入预先构建的握姿识别模型,根据所述握姿识别模型的输出确定当前按键对应的握姿类型。The grip posture recognition feature is input into a pre-built grip posture recognition model, and the grip posture type corresponding to the current key is determined according to the output of the grip posture recognition model.
优选地,所述方法还包括:按以下方式构建握姿识别模型:Preferably, the method further comprises: constructing a grip gesture recognition model in the following manner:
确定握姿识别模型的拓扑结构;Determine the topology of the grip gesture recognition model;
采集训练数据,所述训练数据包括:用户输入过程中不同握姿下的握姿识别特征;Collect training data, where the training data includes: grip posture recognition features under different grip postures during user input;
利用所述训练数据训练得到握姿识别模型的参数。The parameters of the grip posture recognition model are obtained by training using the training data.
优选地,所述握姿类型包括:左手握机左手输入、右手握机右手输入、双手握机单拇指输入。Preferably, the gripping posture types include: left-hand gripping the phone with left-hand input, right-hand gripping phone with right-hand input, and double-hand gripping phone with single thumb input.
优选地,所述方法还包括:Preferably, the method further includes:
按以下方式构建各握姿类型对应的纠错映射关系表:The error correction mapping table corresponding to each grip type is constructed as follows:
确定所述握姿类型下操控距离大于设定值的各按键,并将其作为待纠错按键;Determine each button whose control distance is greater than the set value under the grip type, and use it as the button to be corrected;
记录并统计所述待纠错按键的纠错信息,所述纠错信息包括:在用户输入过程中被所述待纠错按键替换的其它按键及替换次数;Record and count the error correction information of the to-be-corrected keys, where the error-correction information includes: other keys replaced by the to-be-corrected keys and the number of times of replacement during user input;
根据所述待纠错按键的纠错信息建立所述握姿类型对应的纠错映射关系表。An error correction mapping relationship table corresponding to the grip type is established according to the error correction information of the button to be corrected.
优选地,所述纠错映射关系表中的映射关系是单向的映射关系。Preferably, the mapping relationship in the error correction mapping relationship table is a one-way mapping relationship.
优选地,所述根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串包括:Preferably, performing error correction processing according to the error correction mapping relationship table, and obtaining one or more input strings after error correction includes:
如果所述纠错映射关系表中有对应所述当前按键的映射关系,则使用所述映射关系中的字符替换输入串中所述当前按键对应的字符,得到纠错后的一个或多个输入串。If there is a mapping relationship corresponding to the current key in the error correction mapping relationship table, use the character in the mapping relationship to replace the character corresponding to the current key in the input string to obtain one or more input after error correction string.
优选地,所述根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串包括:Preferably, performing error correction processing according to the error correction mapping relationship table, and obtaining one or more input strings after error correction includes:
如果所述纠错映射关系表中有对应所述当前按键的映射关系,则使用所述映射关系中的字符替换输入串中所述当前按键对应的字符,得到替换后的输入串;If there is a mapping relationship corresponding to the current key in the error correction mapping relationship table, then use the character in the mapping relationship to replace the character corresponding to the current key in the input string to obtain the replaced input string;
分别计算替换字符前的输入串及替换字符后的输入串的得分;Calculate the scores of the input string before the replacement character and the input string after the replacement character respectively;
获取得分较高的输入串作为纠错后的输入串。The input string with higher score is obtained as the error-corrected input string.
优选地,所述方法还包括:Preferably, the method further includes:
记录用户输入过程中各按键的使用习惯;Record the usage habits of each key in the user input process;
在所述根据所述纠错映射关系表进行纠错处理之前,根据记录的当前按键的使用习惯判断是否需要对触发当前按键输入的字符进行纠错处理;Before performing error correction processing according to the error correction mapping relationship table, judge whether it is necessary to perform error correction processing on the character that triggers the input of the current button according to the recorded usage habit of the current button;
如果需要,则执行所述根据所述纠错映射关系表进行纠错处理的步骤。If necessary, the step of performing error correction processing according to the error correction mapping relationship table is performed.
优选地,所述按键的使用习惯包括:按键按错的次数以及所述按键使用的总次数;Preferably, the usage habit of the key includes: the number of times the key is pressed incorrectly and the total number of times the key is used;
所述根据记录的当前按键的使用习惯判断是否需要对触发当前按键输入的字符进行纠错处理包括:The judging whether it is necessary to perform error correction processing on the character that triggers the input of the current key according to the recorded usage habits of the current key includes:
根据记录的当前按键按错的次数以及当前按键使用的总次数,计算所述当前按键的出错率;Calculate the error rate of the current button according to the recorded number of times the current button is pressed incorrectly and the total number of times the current button is used;
如果所述出错率大于设定的错误阈值,则确定需要对触发当前按键输入的字符进行纠错处理;If the error rate is greater than the set error threshold, it is determined that it is necessary to perform error correction processing on the character that triggers the current key input;
否则,确定不需要对触发当前按键输入的字符进行纠错处理。Otherwise, it is determined that it is not necessary to perform error correction processing on the character that triggers the current key input.
一种输入法纠错装置,所述装置包括:An input method error correction device, the device comprises:
握姿确定模块,用于在用户输入过程中,确定当前按键对应的握姿类型;The grip posture determination module is used to determine the grip posture type corresponding to the current button during the user input process;
映射关系确定模块,用于获取所述握姿类型对应的纠错映射关系表;a mapping relationship determination module, configured to obtain an error correction mapping relationship table corresponding to the grip posture type;
纠错模块,用于根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串。An error correction module, configured to perform error correction processing according to the error correction mapping relationship table to obtain one or more input strings after error correction.
优选地,所述握姿确定模块包括:Preferably, the grip posture determination module includes:
特征获取单元,用于在用户输入过程中,获取当前按键触发时的握姿识别特征;所述握姿识别特征包括以下任意一种或多种:位置信息、时间信息、运动信息、设备方向、设备类型;The feature acquisition unit is used to acquire the grip gesture recognition feature when the current button is triggered during the user input process; the grip gesture recognition feature includes any one or more of the following: position information, time information, motion information, device orientation, Equipment type;
所述位置信息包括以下任意一种或多种:按键坐标,相邻两次按键的距离,按键在键盘上所处区域;The location information includes any one or more of the following: key coordinates, the distance between two adjacent keys, and the area where the key is located on the keyboard;
所述时间信息包括:相邻两次按键的时间差;The time information includes: the time difference between two adjacent keys;
所述运动信息包括:加速度、转动角速度。The motion information includes: acceleration and rotational angular velocity.
握姿检测单元,用于将所述握姿识别特征输入预先构建的握姿识别模型,根据所述握姿识别模型的输出确定所述当前按键对应的握姿类型。The grip posture detection unit is configured to input the grip posture recognition feature into a pre-built grip posture recognition model, and determine the grip posture type corresponding to the current key according to the output of the grip posture recognition model.
优选地,所述装置还包括:Preferably, the device further comprises:
模型构建模块,用于构建所述握姿识别模型;所述模型构建模块包括:A model building module for building the grip posture recognition model; the model building module includes:
拓扑结构确定单元,用于确定握姿识别模型的拓扑结构;a topology determination unit, used to determine the topology of the grip posture recognition model;
数据采集单元,用于采集训练数据,所述训练数据包括:用户输入过程中不同握姿下的握姿识别特征;a data collection unit, configured to collect training data, the training data including: grip posture recognition features under different grip postures during user input;
参数训练单元,用于利用所述训练数据训练得到握姿识别模型的参数。The parameter training unit is used for obtaining the parameters of the grip posture recognition model by training the training data.
优选地,所述握姿类型包括:左手握机左手输入、右手握机右手输入、双手握机单拇指输入。Preferably, the gripping posture types include: left-hand gripping the phone with left-hand input, right-hand gripping phone with right-hand input, and double-hand gripping phone with single thumb input.
优选地,所述装置还包括:Preferably, the device further comprises:
关系表建立模块,用于预先构建各握姿类型对应的纠错映射关系表;所述关系表建立模块包括:A relationship table establishment module is used to pre-build an error correction mapping relationship table corresponding to each grip type; the relationship table establishment module includes:
待纠错按键确定单元,用于确定所述握姿类型下操控距离大于设定值的各按键,并将其作为待纠错按键;A button determination unit to be corrected, configured to determine each button whose control distance is greater than the set value under the grip type, and use it as the button to be corrected;
统计单元,用于记录并统计所述待纠错按键的纠错信息,所述纠错信息包括:在用户输入过程中被所述待纠错按键替换的其它按键及替换次数;A statistical unit, configured to record and count the error correction information of the to-be-corrected keys, where the error-correction information includes: other keys replaced by the to-be-corrected keys and the number of times of replacement during user input;
关系建立单元,用于根据所述待纠错按键的纠错信息建立所述握姿类型对应的纠错映射关系表。A relationship establishing unit, configured to establish an error correction mapping relationship table corresponding to the grip posture type according to the error correction information of the button to be corrected.
优选地,所述纠错映射关系表中的映射关系是单向的映射关系。Preferably, the mapping relationship in the error correction mapping relationship table is a one-way mapping relationship.
优选地,所述纠错模块,具体用于在所述纠错映射关系表中有对应所述当前按键的映射关系时,使用所述映射关系中的字符替换输入串中所述当前按键对应的字符,得到纠错后的一个或多个输入串。Preferably, the error correction module is specifically configured to, when there is a mapping relationship corresponding to the current key in the error correction mapping relationship table, use the characters in the mapping relationship to replace the corresponding character of the current key in the input string character to get one or more input strings after error correction.
优选地,所述纠错模块包括:Preferably, the error correction module includes:
字符替换单元,用于在所述纠错映射关系表中有对应所述当前按键的映射关系时,使用所述映射关系中的字符替换输入串中所述当前按键对应的字符,得到替换后的输入串;A character replacement unit is used to replace the character corresponding to the current key in the input string with the character in the mapping relationship when there is a mapping relationship corresponding to the current key in the error correction mapping relationship table, and obtain the replaced input string;
得分计算单元,用于分别计算替换字符前的输入串及替换后的输入串的得分;a score calculation unit, used to calculate the scores of the input string before the replacement character and the input string after the replacement respectively;
输出单元,用于获取得分较高的输入串作为纠错后的输入串。The output unit is used to obtain an input string with a higher score as an error-corrected input string.
优选地,所述装置还包括:Preferably, the device further comprises:
记录模块,用于记录用户输入过程中各按键的使用习惯;The recording module is used to record the usage habits of each key in the user input process;
纠错判断模块,用于在所述纠错模块根据所述纠错映射关系表进行纠错处理之前,根据所述记录模块记录的当前按键的使用习惯判断是否需要对触发当前按键输入的字符进行纠错处理;如果需要,则触发所述纠错模块根据所述纠错映射关系表进行纠错处理。The error correction judgment module is used to judge whether the character that triggers the input of the current button needs to be processed according to the usage habit of the current button recorded by the recording module before the error correction module performs error correction processing according to the error correction mapping relationship table. Error correction processing; if necessary, trigger the error correction module to perform error correction processing according to the error correction mapping relationship table.
优选地,所述按键的使用习惯包括:按键按错的次数以及所述按键使用的总次数;Preferably, the usage habit of the key includes: the number of times the key is pressed incorrectly and the total number of times the key is used;
所述纠错判断模块,具体用于根据所述记录模块记录的当前按键按错的次数以及当前按键使用的总次数,计算所述当前按键的出错率;如果所述出错率大于设定的错误阈值,则确定需要对触发当前按键输入的字符进行纠错处理;否则,确定不需要对触发当前按键输入的字符进行纠错处理。The error correction judgment module is specifically used to calculate the error rate of the current button according to the number of times that the current button is wrongly pressed and the total number of times the current button is used; if the error rate is greater than the set error If the threshold is set, it is determined that error correction processing needs to be performed on the character that triggers the input of the current key; otherwise, it is determined that the character that triggers the input of the current key does not need to be subjected to error correction.
一种计算机设备,包括:一个或多个处理器、存储器;A computer device, comprising: one or more processors, memory;
所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令,以实现前面所述的方法。The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the methods described above.
一种可读存储介质,其上存储有指令,所述指令被执行以实现前面所述的方法。A readable storage medium having stored thereon instructions that are executed to implement the aforementioned method.
本发明实施例提供的输入法纠错方法及装置,在用户输入过程中,通过对用户握姿的检测,确定握姿类型,进而根据所述握姿类型对应的纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串,有效地提高了输入法纠错能力及准确性,提升了用户输入质量。In the input method error correction method and device provided by the embodiments of the present invention, in the process of user input, the holding posture type is determined by detecting the user's holding posture, and then the error correction is performed according to the error correction mapping relationship table corresponding to the holding posture type. After processing, one or more input strings after error correction are obtained, which effectively improves the error correction capability and accuracy of the input method, and improves the input quality of the user.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only described in the present invention. For some of the embodiments, those of ordinary skill in the art can also obtain other drawings according to these drawings.
图1是本发明实施例输入法纠错方法中构建握姿识别模型的流程图;Fig. 1 is a flowchart of constructing a grip posture recognition model in an input method error correction method according to an embodiment of the present invention;
图2是本发明实施例输入法纠错方法的一种流程图;2 is a flowchart of an input method error correction method according to an embodiment of the present invention;
图3是本发明实施例输入法纠错方法中的一种键盘布局示例;3 is an example of a keyboard layout in an input method error correction method according to an embodiment of the present invention;
图4是本发明实施例输入法纠错方法的另一种流程图;4 is another flowchart of an input method error correction method according to an embodiment of the present invention;
图5是本发明实施例输入法纠错装置的一种结构示意图;5 is a schematic structural diagram of an input method error correction device according to an embodiment of the present invention;
图6是本发明实施例输入法纠错装置中模型构建模块的结构示意图;6 is a schematic structural diagram of a model building module in an input method error correction device according to an embodiment of the present invention;
图7是本发明实施例输入法纠错装置的另一种结构示意图;7 is another schematic structural diagram of an input method error correction device according to an embodiment of the present invention;
图8是根据一示例性实施例示出的一种用于输入法纠错方法的装置的框图;8 is a block diagram of an apparatus for an input method error correction method according to an exemplary embodiment;
图9是本发明实施例中服务器的结构示意图。FIG. 9 is a schematic structural diagram of a server in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明实施例的方案,下面结合附图和实施方式对本发明实施例作进一步的详细说明。In order to enable those skilled in the art to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
考虑到用户进行输入时,用户手握输入设备的姿势很大程度上也会影响用户对按键的操作,尤其是单手输入的情况,极易造成按键输入错误。针对这种情况,本发明实施例提供一种输入法纠错方法及装置,在用户输入过程中,通过对用户握姿的检测,确定握姿类型,进而根据所述握姿类型对应的纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串。Considering that when the user performs input, the gesture of the user holding the input device will also affect the user's operation of the keys to a large extent, especially in the case of single-handed input, which may easily cause key input errors. In response to this situation, the embodiments of the present invention provide an input method error correction method and device. During the user input process, the grip posture type is determined by detecting the user's grip posture, and then the error correction corresponding to the grip posture type is performed. Error correction processing is performed on the mapping relationship table to obtain one or more input strings after error correction.
在进行握姿检测时,可以利用预先构建的握姿识别模型,将获取的各按键触发时的握姿识别特征输入该握姿识别模型,根据模型的输出确定所述按键对应的握姿类型。当然,也可以基于其它信息,比如特征感应等来确定具体的握姿类型,对此本发明实施例不做限定。When performing grip posture detection, a pre-built grip posture recognition model can be used to input the acquired grip posture recognition features when each key is triggered into the grip posture recognition model, and the grip posture type corresponding to the key is determined according to the output of the model. Of course, the specific grip type may also be determined based on other information, such as feature sensing, etc., which is not limited in this embodiment of the present invention.
如图1所示,是本发明实施例中构建握姿识别模型的流程图,包括以下步骤:As shown in Figure 1, it is a flowchart of building a grip posture recognition model in an embodiment of the present invention, including the following steps:
步骤101,确定握姿识别模型的拓扑结构。Step 101: Determine the topology of the grip posture recognition model.
所述握姿识别模型的拓扑结构可以采用但不限于以下任意一种:DNN(DeepNeural Networks,深度神经网络)、RNN(Recurrent Neural Network,循环神经网络)、LSTM(Long Short-Term Memory,长短期记忆网络)。The topological structure of the grip posture recognition model can be adopted but is not limited to any of the following: DNN (Deep Neural Networks, deep neural network), RNN (Recurrent Neural Network, cyclic neural network), LSTM (Long Short-Term Memory, long and short term memory) memory network).
在实际应用中,所述握姿识别模型可以是分类模型或回归模型,对此本发明实施例不做限定。In practical applications, the grip posture recognition model may be a classification model or a regression model, which is not limited in this embodiment of the present invention.
握姿识别模型的输入为握姿识别特征,握姿识别模型的输出根据模型采用的是分类模型还是回归模型,会有所不同。具体地,如果采用分类模型,则模型的输出为握姿类型的判断结果。如果采用回归模型,则模型的输出为各握姿类型的概率,概率值越大,表明该握姿类型的可能性越高;因此,根据该概率和设定的概率阈值,即可确定对应当前按键的握姿类型,具体地,如果某握姿类型的概率大于设定的概率阈值,则当前按键的握姿类型为该握姿类型。The input of the grip gesture recognition model is the grip gesture recognition feature, and the output of the grip gesture recognition model will be different depending on whether the model adopts a classification model or a regression model. Specifically, if a classification model is used, the output of the model is the judgment result of the grip posture type. If the regression model is used, the output of the model is the probability of each grip type. The larger the probability value, the higher the possibility of the grip type. Therefore, according to the probability and the set probability threshold, the corresponding current The grip type of the button. Specifically, if the probability of a certain grip type is greater than the set probability threshold, the grip type of the current button is the grip type.
步骤102,采集训练数据,所述训练数据包括:用户输入过程中不同握姿下的握姿识别特征。
所述握姿识别特征包括但不限于以下任意一种或多种:位置信息、时间信息、运动信息、设备方向、设备类型。其中:The grip gesture recognition features include, but are not limited to, any one or more of the following: location information, time information, motion information, device orientation, and device type. in:
所述位置信息包括以下任意一种或多种:按键坐标,相邻两次按键的距离,按键在键盘上所处区域。其中,所述相邻两次按键的距离是指当前按键与前一次按键之间的距离,该距离可以根据这两个按键的坐标计算得到;所述按键在键盘上所处区域是指当前按键是位于键盘左侧还是右侧。虽然对于不同的输入设备,其键盘上按键的布局及在屏幕上的位置可能会不同,但这些信息都可以通过输入设备提供的应用程序接口得到。The location information includes any one or more of the following: key coordinates, the distance between two adjacent keys, and the area where the key is located on the keyboard. The distance between the two adjacent keys refers to the distance between the current key and the previous key, and the distance can be calculated according to the coordinates of the two keys; the area where the key is located on the keyboard refers to the current key Whether it is on the left or right side of the keyboard. Although the layout of keys on the keyboard and the positions on the screen may be different for different input devices, these information can be obtained through the application program interface provided by the input device.
所述时间信息包括:相邻两次按键的时间差。具体地,可以通过记录每次按键触发的时间,两者相减即可得到当前按键与前一次按键的时间差。The time information includes: the time difference between two adjacent keys. Specifically, the time difference between the current key press and the previous key press can be obtained by recording the time triggered by each key press and subtracting the two.
所述运动信息包括:加速度、转动角速度。这些信息同样可以通过输入设备提供的应用程序接口获得,通常输入设备会自带加速度计和陀螺仪,分别感测这两个参数。The motion information includes: acceleration and rotational angular velocity. This information can also be obtained through the application program interface provided by the input device. Usually, the input device will have its own accelerometer and gyroscope to sense these two parameters respectively.
需要说明的是,所述训练数据可以来源于多个不同的用户利用各种不同握姿进行输入的情况,而且训练数据的量要足够多,因为训练样本越多,训练得到的模型参数越准确。It should be noted that the training data may come from the input of multiple different users using various gripping postures, and the amount of training data should be sufficient, because the more training samples, the more accurate the model parameters obtained by training. .
步骤103,利用所述训练数据训练得到握姿识别模型的参数。
模型参数的训练方式可以采用现有技术,其原理如下:The training method of the model parameters can adopt the existing technology, and the principle is as follows:
1)初始化权重,比如可以采用正态分布随机化初始权重;1) Initialize the weights, for example, a normal distribution can be used to randomize the initial weights;
2)选择样本集合即训练数据的一个样本(Ai,Bi),其中Ai为训练数据,即所述握姿识别特征;Bi为标签,即Ai对应的握姿;2) Select a sample set, that is, a sample (Ai, Bi) of the training data, wherein Ai is the training data, that is, the grip posture recognition feature; Bi is a label, that is, the gripping posture corresponding to Ai;
3)将Ai输入网络,计算网络的输出Y;3) Input Ai into the network, and calculate the output Y of the network;
4)计算预测值与实际值的误差:D=Bi-Y;4) Calculate the error between the predicted value and the actual value: D=Bi-Y;
5)根据误差D调整权重矩阵W;5) Adjust the weight matrix W according to the error D;
6)对每个样本重复上述过程,直到对整个样本集来说,误差不超过规定范围。6) Repeat the above process for each sample until the error does not exceed the specified range for the entire sample set.
通过上述过程,最终得到网络的权重矩阵W,即握姿识别模型的参数。Through the above process, the weight matrix W of the network is finally obtained, that is, the parameters of the grip posture recognition model.
需要说明的是,在用户利用采用了本发明纠错方案的输入法进行输入的过程中,也可以采集模型训练所需的数据,利用这些数据对所述握姿识别模型的参数进行更新,比如采集的数据达到一定量时,将这些新采集的数据与全部或部分原有训练数据一起,重新训练握姿识别模型,得到更新后的模型参数;或者使用预先训练好的模型的权重作为初始化权重,然后针对新的数据集调整权重,与从随机初始化开始相比,能够更快地训练,并且得到的模型参数准确性更好。It should be noted that, in the process of inputting by the user using the input method using the error correction scheme of the present invention, the data required for model training can also be collected, and the parameters of the grip posture recognition model can be updated by using these data, such as When the collected data reaches a certain amount, retrain the grip recognition model together with all or part of the original training data to obtain the updated model parameters; or use the weight of the pre-trained model as the initialization weight , and then adjust the weights for the new dataset, training faster than starting with random initialization, and resulting in better model parameter accuracy.
本发明实施例提供的输入法纠错方法,在用户输入过程中,检测各按键对应的握姿类型,然后利用所述握姿类型对应的纠错映射关系表对输入错误的按键进行纠错处理。In the input method error correction method provided by the embodiment of the present invention, during the user input process, the grip type corresponding to each button is detected, and then the error correction mapping table corresponding to the grip type is used to correct the input wrong button. .
如图2所示,是本发明实施例输入法纠错方法的一种流程图,包括以下步骤:As shown in Figure 2, it is a flowchart of an input method error correction method according to an embodiment of the present invention, including the following steps:
步骤201,在用户输入过程中,确定当前按键对应的握姿类型。
比如,可以基于上述握姿识别模型确定当前的握姿类型。具体地,首先,获取当前按键触发时的握姿识别特征,然后将所述握姿识别特征输入预先构建的握姿识别模型,根据所述握姿识别模型的输出确定所述当前按键对应的握姿类型。For example, the current grip type can be determined based on the above-mentioned grip gesture recognition model. Specifically, first, the grip posture recognition feature when the current button is triggered is obtained, then the grip posture recognition feature is input into a pre-built grip posture recognition model, and the grip corresponding to the current button is determined according to the output of the grip posture recognition model. pose type.
所述握姿识别特征与前面握姿识别模型构建时所使用的握姿识别特征相同,具体可以包括但不限于以下任意一种或多种:位置信息、时间信息、运动信息、设备方向、设备类型。其中,所述位置信息包括以下任意一种或多种:按键坐标,相邻两次按键的距离,按键在键盘上所处区域;所述时间信息包括:相邻两次按键的时间差;所述运动信息包括:加速度、转动角速度。The grip gesture recognition feature is the same as the grip gesture recognition feature used in the construction of the previous grip gesture recognition model, and may specifically include, but is not limited to, any one or more of the following: position information, time information, motion information, device orientation, equipment type. The location information includes any one or more of the following: key coordinates, the distance between two adjacent keys, and the area where the key is located on the keyboard; the time information includes: the time difference between two adjacent keys; the The motion information includes: acceleration, rotational angular velocity.
上述各握姿识别特征的具体含义及如何获取,在前面已有详细说明,在此不再赘述。The specific meanings and how to obtain the above-mentioned grip posture recognition features have been described in detail above, and will not be repeated here.
前面提到,握姿识别模型的输入为握姿识别特征,握姿识别模型的输出根据模型采用的是分类模型还是回归模型,会有所不同。具体地,如果采用分类模型,则模型的输出为握姿类型的判断结果。如果采用回归模型,则模型的输出为各握姿类型的概率,概率值越大,表明该握姿类型的可能性越高;因此,根据该概率和设定的概率阈值,即可确定对应当前按键的握姿类型,具体地,如果某握姿类型的概率大于设定的概率阈值,则当前按键的握姿类型为该握姿类型。As mentioned earlier, the input of the grip gesture recognition model is the grip gesture recognition feature, and the output of the grip gesture recognition model will be different depending on whether the model adopts a classification model or a regression model. Specifically, if a classification model is used, the output of the model is the judgment result of the grip posture type. If the regression model is used, the output of the model is the probability of each grip type. The larger the probability value, the higher the possibility of the grip type. Therefore, according to the probability and the set probability threshold, the corresponding current The grip type of the button. Specifically, if the probability of a certain grip type is greater than the set probability threshold, the grip type of the current button is the grip type.
考虑到用户进行输入时,由握姿造成按键输入错误的现象主要是单手输入的情况,因此,在实际应用中,所述握姿类型可以包括:左手握机左手输入、右手握机右手输入、双手握机单拇指输入。当然,还可以进行更加细致的区分,比如,除上述这些握姿类型外,还可进一步包括以下任意一种或多种类型:双手握机双手输入、左手握机右手输入、右手握机左手输入、设备固定单手输入等。Considering that when the user is inputting, the phenomenon of key input errors caused by the holding posture is mainly the case of single-handed input. Therefore, in practical applications, the holding posture types may include: left-hand holding the phone for left-hand input, right-hand holding the phone for right-hand input. , Hold the machine with both hands and input with a single thumb. Of course, more detailed distinctions can also be made. For example, in addition to the above-mentioned types of holding postures, any one or more of the following types may be further included: two-hand input with both hands, left-hand with right-hand input, right-hand with left-hand input , device fixed one-hand input, etc.
步骤202,获取所述握姿类型对应的纠错映射关系表。Step 202: Acquire an error correction mapping relationship table corresponding to the grip posture type.
所述纠错映射关系表可以预先根据键盘中按键的分布情况及位置关系、相关按键的统计信息来构建,可以自动构建,也可以由人工构建,对此本发明实施例不做限定。所述纠错映射关系表反映了在对应的握姿情况下,容易输错按键的映射关系。The error correction mapping relationship table may be constructed in advance according to the distribution and positional relationship of keys in the keyboard, and statistical information of related keys, and may be constructed automatically or manually, which is not limited in this embodiment of the present invention. The error correction mapping relationship table reflects the mapping relationship of the keys that are easy to enter wrongly under the condition of the corresponding holding posture.
具体地,各握姿类型对应的纠错映射关系表的一种构建方式如下:Specifically, a construction method of the error correction mapping relationship table corresponding to each grip posture type is as follows:
确定所述握姿类型下操控距离大于设定值的各按键,并将其作为待纠错按键;Determine each button whose control distance is greater than the set value under the grip type, and use it as the button to be corrected;
记录并统计所述待纠错按键的纠错信息,所述纠错信息包括:在用户输入过程中被所述待纠错按键替换的其它按键及替换次数;Record and count the error correction information of the to-be-corrected keys, where the error-correction information includes: other keys replaced by the to-be-corrected keys and the number of times of replacement during user input;
根据所述待纠错按键的纠错信息建立所述握姿类型对应的纠错映射关系表。比如,对于图3所示的键盘布局,对应于握姿类型为右手握机右手输入的情况,可以以右手斜对角的键盘区域中的按键为基础,因为该区域中的按键的操控距离较远,比如按键q、w、e、a、s、d、z等,将其作为待纠错按键,记录并统计这些按键的纠错信息,根据所述纠错信息建立映射关系。An error correction mapping relationship table corresponding to the grip type is established according to the error correction information of the button to be corrected. For example, for the keyboard layout shown in Figure 3, corresponding to the case where the grip type is the right hand holding the phone and the right hand input, the keys in the diagonally diagonal keyboard area of the right hand can be used as the basis, because the control distance of the keys in this area is relatively long. For example, keys q, w, e, a, s, d, z, etc., are used as the keys to be corrected, the error correction information of these keys is recorded and counted, and a mapping relationship is established according to the error correction information.
需要说明的是,所述纠错映射关系表中的映射关系与普通纠错的映射关系不同,它是单向的映射关系,比如映射关系为s->q,而且在实际应用中,根据键盘布局的不同,所述映射关系可以是一对一的映射关系,也可以是一对多的映射关系。It should be noted that the mapping relationship in the error correction mapping relationship table is different from that of ordinary error correction. It is a one-way mapping relationship, for example, the mapping relationship is s->q, and in practical applications, according to the keyboard Depending on the layout, the mapping relationship may be a one-to-one mapping relationship or a one-to-many mapping relationship.
步骤203,根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串。Step 203: Perform error correction processing according to the error correction mapping relationship table to obtain one or more input strings after error correction.
具体地,在进行纠错处理处理时,可以首先检查所述纠错映射关系表中是否有对应当前按键的映射关系,如果有,则使用所述映射关系中的字符替换输入串中所述当前按键对应的字符。由于所述映射关系可以是一对一,也可以是一对多,因此,得到纠错后的输入串也可以有一个或多个。当然,如果所述纠错映射关系表中没有对应当前按键的映射关系,则无需进行上述字符替换,继续检测下一个按键输入。Specifically, when performing error correction processing, it is possible to first check whether there is a mapping relationship corresponding to the current key in the error correction mapping relationship table, and if so, use the characters in the mapping relationship to replace the current key in the input string. The character corresponding to the key. Since the mapping relationship may be one-to-one or one-to-many, there may also be one or more input strings after error correction. Of course, if there is no mapping relationship corresponding to the current key in the error correction mapping relationship table, the above-mentioned character replacement is not required, and the next key input is continued to be detected.
比如用户右手握机右手输入,使用拼音输入法输入“韩秦”,需要输入的字符串为hanqin,但是由于离按键q较远,在点击按q时,错误地点击了按键s,结果输入串变成了hansin。由于事先检测出用户是右手握机右手输入,建立起了右手握机右手输入对应的纠错映射关系,因此根据其中的映射关系s->q,将输入字符“s”替换为“q”,得到纠错后的输入串“hanqin”,候选栏中输出对应输入串“hanqin”的候选词“韩秦”。For example, when the user holds the phone with the right hand and inputs with the right hand, and uses the Pinyin input method to input "Han Qin", the string to be input is hanqin. became hansin. Since it is detected in advance that the user is inputting with the right hand holding the phone, the error correction mapping relationship corresponding to the right hand input is established. Therefore, according to the mapping relationship s->q, the input character "s" is replaced with "q", The error-corrected input string "hanqin" is obtained, and the candidate word "hanqin" corresponding to the input string "hanqin" is output in the candidate column.
需要说明的是,用户的输入过程是连续的,相应地,上述的纠错处理过程需要针对每个按键的输入都要进行。It should be noted that the user's input process is continuous, and accordingly, the above error correction process needs to be performed for each key input.
进一步地,为了避免误替换,在本发明方法另一实施例中,还可以在进行纠错处理处理时,先按照前述纠错处理方式对输入串中所述当前按键对应的字符进行替换,得到替换后的输入串;然后再分别计算替换字符前的输入串及替换字符后的输入串的得分,所述得分具体可以是输入法中的排序得分;获取得分较高的输入串作为纠错后的输入串。Further, in order to avoid erroneous replacement, in another embodiment of the method of the present invention, when performing error correction processing, the character corresponding to the current key in the input string can be replaced first according to the aforementioned error correction processing method, so as to obtain: The input string after the replacement; then calculate the score of the input string before the replacement character and the input string after the replacement character respectively, and the score can specifically be the sorting score in the input method; Obtain the input string with a higher score as the error correction the input string.
本发明实施例提供的输入法纠错方法,在用户输入过程中,检测当前按键对应的握姿类型,然后利用所述握姿类型对应的纠错映射关系表对输入错误的按键进行纠错处理,从而有效地提高了输入法纠错能力及准确性,尤其是对于用户单手握机输入造成的按键输入错误,能够得到很好的纠错效果,大大提升了用户输入质量。In the input method error correction method provided by the embodiment of the present invention, during the user input process, the grip type corresponding to the current button is detected, and then the error correction mapping table corresponding to the grip type is used to correct the input wrong button. , thereby effectively improving the error correction ability and accuracy of the input method, especially for the key input errors caused by the user's single-handed holding the machine input, a good error correction effect can be obtained, and the user input quality is greatly improved.
如图4所示,是本发明实施例输入法纠错方法的另一种流程图,包括以下步骤:As shown in Figure 4, it is another flowchart of the input method error correction method according to the embodiment of the present invention, including the following steps:
步骤401,用户开始输入。In
步骤402,确定当前按键对应的握姿类型。Step 402: Determine the type of grip posture corresponding to the current key.
所述握姿类型可以包括:左手握机左手输入、右手握机右手输入、双手握机单拇指输入。当然,还可以进行更加细致的区分,比如,除上述这些握姿类型外,还可进一步包括以下任意一种或多种类型:双手握机双手输入、左手握机右手输入、右手握机左手输入、设备固定单手输入等。The gripping posture types may include: left-hand gripping the phone for left-hand input, right-hand gripping the phone for right-hand input, and two-hand gripping the phone for single-thumb input. Of course, more detailed distinctions can be made. For example, in addition to the above-mentioned types of gripping postures, any one or more of the following types can be further included: two-hand input with two hands, two-hand input with left-hand grip, right-hand input with right-hand grip and left-hand input , device fixed one-hand input, etc.
步骤403,获取所述握姿类型对应的纠错映射关系表。Step 403: Obtain an error correction mapping relationship table corresponding to the grip posture type.
步骤404,检查所述纠错映射关系表中是否有对应当前按键的映射关系;如果有,则执行步骤405;否则,返回步骤402。
所述映射关系可以是一对一,也可以是一对多,在步骤404中,在一对多的情况下,只要检测到有一条对应当前按键的映射关系,则执行步骤405。The mapping relationship may be one-to-one or one-to-many. In
步骤405,根据记录的当前按键的使用习惯判断是否需要对触发当前按键输入的字符进行纠错处理;如果是,则执行步骤406;否则,返回步骤402。
所述按键使用习惯可以包括:按键按错的次数以及所述按键使用的总次数。各按键的使用习惯可以在用户输入过程进行记录并统计。The key usage habit may include: the number of wrong key presses and the total number of times the key is used. The usage habits of each key can be recorded and counted during the user's input process.
在进行是否需要对触发当前按键输入的字符进行纠错处理的判断时,可以先根据记录的当前按键按错的次数以及当前按键使用的总次数,计算所述当前按键的出错率;如果所述出错率大于设定的错误阈值,则确定需要对触发当前按键输入的字符进行纠错处理;否则,确定不需要对触发当前按键输入的字符进行纠错处理。When judging whether it is necessary to perform error correction processing on the character that triggers the input of the current key, the error rate of the current key can be calculated according to the recorded number of times the wrong key is pressed and the total number of times the current key is used; If the error rate is greater than the set error threshold, it is determined that error correction processing needs to be performed on the character that triggers the input of the current key; otherwise, it is determined that the character that triggers the input of the current key does not need to be corrected.
步骤406,根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串。Step 406: Perform error correction processing according to the error correction mapping relationship table to obtain one or more input strings after error correction.
所述纠错处理,主要是使用所述映射关系中的字符替换输入串中所述当前按键对应的字符。同样,为了避免误替换,在进行纠错处理处理时,还可以分别计算替换字符前的输入串及替换字符后的输入串的得分,所述得分具体可以是输入法中的排序得分;获取得分较高的输入串作为纠错后的输入串。当然,如果所述映射关系是一对多的关系,也可以得到纠错后的多个输入串。The error correction processing mainly uses the characters in the mapping relationship to replace the characters corresponding to the current keys in the input string. Similarly, in order to avoid wrong replacement, when performing error correction processing, the scores of the input string before the replacement character and the input string after the replacement character can also be calculated respectively, and the score can be the sorting score in the input method; obtain the score; The higher input string is used as the error-corrected input string. Of course, if the mapping relationship is a one-to-many relationship, multiple input strings after error correction can also be obtained.
与图2所示实施例相比,该实施例的输入法纠错方法,通过记录用户输入过程中各按键的使用习惯,在进行纠错处理时,综合考虑用户输入时对各按键的历史操作习惯,进一步提高了纠错的准确性,提升了用户的输入体验。Compared with the embodiment shown in FIG. 2, the input method error correction method of this embodiment records the usage habit of each key in the user input process, and comprehensively considers the historical operation of each key during user input when performing error correction processing. It further improves the accuracy of error correction and improves the user's input experience.
需要说明的是,本发明实施例提供的输入法纠错方法,可以应用于各种不同的输入法中,而且不仅适用于利用各种输入法实现的中文输入,还可以适用于英文及其它语种的输入,如果是英文输入,则最后输出的候选词是英文单词。It should be noted that the input method error correction method provided by the embodiment of the present invention can be applied to various input methods, and is not only applicable to Chinese input realized by various input methods, but also applicable to English and other languages If the input is in English, the final output candidate word is an English word.
相应地,本发明实施例还提供一种输入法纠错装置,该装置可以集成在用户设备中,所述用户设备可以是笔记本、计算机、PAD、手机等。用户在进行输入操作时,需要按下或触摸用户设备键盘中相应按键,所述键盘可以是实体键盘,也可以是用户设备触摸屏上的虚拟键盘。Correspondingly, an embodiment of the present invention further provides an input method error correction apparatus, which may be integrated in user equipment, and the user equipment may be a notebook, a computer, a PAD, a mobile phone, or the like. When a user performs an input operation, the user needs to press or touch a corresponding key in the keyboard of the user equipment, and the keyboard may be a physical keyboard or a virtual keyboard on the touch screen of the user equipment.
如图5所示,是本发明实施例输入法纠错装置的一种结构示意图。As shown in FIG. 5 , it is a schematic structural diagram of an input method error correction apparatus according to an embodiment of the present invention.
在该实施例中,所述装置包括:In this embodiment, the apparatus includes:
握姿确定模块501,用于在用户输入过程中,确定当前按键对应的握姿类型;The grip
映射关系确定模块502,用于获取所述握姿类型对应的纠错映射关系表;a mapping
纠错模块503,用于根据所述纠错映射关系表进行纠错处理,得到纠错后的一个或多个输入串。The
上述握姿确定模块501具体可以采用基于模型的方式确定当前按键对应的握姿类型,当然,也可以基于其它信息,比如特征感应等来确定具体的握姿类型,对此本发明实施例不做限定。The above-mentioned grip
所述握姿确定模块501的一个具体实现结构可以包括:特征获取单元和握姿检测单元(未图示)。其中,所述特征获取单元用于在用户输入过程中,获取当前按键触发时的握姿识别特征;所述握姿检测单元用于将所述握姿识别特征输入预先构建的握姿识别模型,根据所述握姿识别模型的输出确定所述当前按键对应的握姿类型。A specific implementation structure of the grip
所述握姿识别特征与前面握姿识别模型构建时所使用的握姿识别特征相同,具体可以包括但不限于以下任意一种或多种:位置信息、时间信息、运动信息、设备方向、设备类型。其中,所述位置信息包括以下任意一种或多种:按键坐标,相邻两次按键的距离,按键在键盘上所处区域;所述时间信息包括:相邻两次按键的时间差;所述运动信息包括:加速度、转动角速度。The grip gesture recognition feature is the same as the grip gesture recognition feature used in the construction of the previous grip gesture recognition model, and may specifically include but not limited to any one or more of the following: position information, time information, motion information, device orientation, equipment type. The location information includes any one or more of the following: key coordinates, the distance between two adjacent keys, and the area where the key is located on the keyboard; the time information includes: the time difference between two adjacent keys; the The motion information includes: acceleration, rotational angular velocity.
上述各握姿识别特征的具体含义及如何获取,在前面已有详细说明,在此不再赘述。The specific meanings and how to obtain the above-mentioned grip posture recognition features have been described in detail above, and will not be repeated here.
所述握姿检测单元将所述握姿识别特征输入预先构建的握姿识别模型,根据所述握姿识别模型的输出确定所述当前按键对应的握姿类型。具体地,所述握姿识别模型可以是分类模型或回归模型,如果采用回归模型,则所述握姿识别模型的输出为各握姿类型的概率;所述握姿检测单元需要进一步将各握姿类型的概率和设定的概率阈值相比较,如果某握姿类型的概率大于设定的概率阈值,则当前按键的握姿类型为该握姿类型。The grip gesture detection unit inputs the grip gesture recognition feature into a pre-built grip gesture recognition model, and determines the grip gesture type corresponding to the current key according to the output of the grip gesture recognition model. Specifically, the grip posture recognition model may be a classification model or a regression model. If a regression model is used, the output of the grip posture recognition model is the probability of each grip posture type; the grip posture detection unit needs to further The probability of the gesture type is compared with the set probability threshold. If the probability of a certain grip type is greater than the set probability threshold, the grip type of the current button is the grip type.
在实际应用中,所述握姿类型可以包括:左手握机左手输入、右手握机右手输入、双手握机单拇指输入。当然,还可以进行更加细致的区分,比如,除上述这些握姿类型外,还可进一步包括以下任意一种或多种类型:双手握机双手输入、左手握机右手输入、右手握机左手输入、设备固定单手输入等。In practical applications, the gripping posture types may include: left-hand gripping the phone for left-hand input, right-hand gripping the phone for right-hand input, and two-hand gripping the phone for single-thumb input. Of course, more detailed distinctions can be made. For example, in addition to the above-mentioned types of gripping postures, any one or more of the following types can be further included: two-hand input with two hands, two-hand input with left-hand grip, right-hand input with right-hand grip and left-hand input , device fixed one-hand input, etc.
所述纠错映射关系表可以预先由人工或系统根据键盘中按键的分布情况及位置关系来构建,所述纠错映射关系表中包含相应握姿情况下,容易输错按键的映射关系。该映射关系可以是一对一的关系,也可以是一对多的关系,而且该映射关系是单向的。比如,可以设置关系表建立模块(未图示),所述预先构建各握姿类型对应的纠错映射关系表,所述关系表建立模块可以集成于本发明输入法纠错装置,可以独立于本发明输入法纠错装置,对此不做限定。The error correction mapping relationship table may be constructed manually or by the system in advance according to the distribution and positional relationship of keys in the keyboard, and the error correction mapping relationship table includes the mapping relationship of keys that are easy to enter wrongly under the condition of the corresponding holding posture. The mapping relationship may be a one-to-one relationship or a one-to-many relationship, and the mapping relationship is unidirectional. For example, a relationship table establishment module (not shown) can be set up, and the error correction mapping relationship table corresponding to each grip posture type can be pre-built. The relationship table establishment module can be integrated into the input method error correction device of the present invention, and can be independent of The input method error correction device of the present invention is not limited thereto.
所述关系表建立模块的一种具体结构可以包括以下各单元:A specific structure of the relationship table establishment module may include the following units:
待纠错按键确定单元,用于确定所述握姿类型下操控距离大于设定值的各按键,并将其作为待纠错按键;A button determination unit to be corrected, configured to determine each button whose control distance is greater than the set value under the grip type, and use it as the button to be corrected;
统计单元,用于记录并统计所述待纠错按键的纠错信息,所述纠错信息包括:在用户输入过程中被所述待纠错按键替换的其它按键及替换次数;A statistical unit, configured to record and count the error correction information of the to-be-corrected keys, where the error-correction information includes: other keys replaced by the to-be-corrected keys and the number of times of replacement during user input;
关系建立单元,用于根据所述待纠错按键的纠错信息建立所述握姿类型对应的纠错映射关系表。A relationship establishing unit, configured to establish an error correction mapping relationship table corresponding to the grip posture type according to the error correction information of the button to be corrected.
所述纠错模块503对当前按键的纠错处理主要是检查所述纠错映射关系表中是否有对应当前按键的映射关系,如果有,则使用所述映射关系中的字符替换输入串中所述当前按键对应的字符,得到纠错后的一个或多个输入串。当然,如果所述纠错映射关系表中没有对应当前按键的映射关系,则无需进行上述字符替换。The error correction processing of the current button by the
需要说明的是,用户的输入过程是连续的,相应地,上述的纠错处理过程需要针对每个按键的输入都要进行。It should be noted that the user's input process is continuous, and accordingly, the above error correction process needs to be performed for each key input.
为了避免误替换,所述纠错模块503还可以进一步分别计算替换字符前的输入串及替换后的输入串的得分,所述得分具体可以是输入法中的排序得分,将得分较高的输入串作为纠错后的输入串。相应地,所述纠错模块503的一种具体结构可以包括以下各单元:In order to avoid mistaken replacement, the
字符替换单元,用于在所述纠错映射关系表中有对应所述当前按键的映射关系时,使用所述映射关系中的字符替换输入串中所述当前按键对应的字符,得到替换后的输入串;A character replacement unit is used to replace the character corresponding to the current key in the input string with the character in the mapping relationship when there is a mapping relationship corresponding to the current key in the error correction mapping relationship table, and obtain the replaced input string;
得分计算单元,用于分别计算替换字符前的输入串及替换后的输入串的得分;a score calculation unit, used to calculate the scores of the input string before the replacement character and the input string after the replacement respectively;
输出单元,用于获取得分较高的输入串作为纠错后的输入串。The output unit is used to obtain an input string with a higher score as an error-corrected input string.
本发明实施例提供的输入法纠错装置,在用户输入过程中,检测各按键对应的握姿类型,然后利用所述握姿类型对应的纠错映射关系表对输入错误的按键进行纠错处理,从而有效地提高了输入法纠错能力及准确性,尤其是对于用户单手握机输入造成的按键输入错误,能够得到很好的纠错效果,大大提升了用户输入质量。In the input method error correction device provided by the embodiment of the present invention, in the process of user input, the grip type corresponding to each key is detected, and then the error correction mapping table corresponding to the grip type is used to correct the input wrong key. , thereby effectively improving the error correction ability and accuracy of the input method, especially for the key input errors caused by the user's single-handed holding the machine input, a good error correction effect can be obtained, and the user input quality is greatly improved.
所述握姿识别模型可以由模型构建模块利用采集的大量训练数据构建,所述模型构建模块可以集成于本发明输入法纠错装置,可以独立于本发明输入法纠错装置,对此不做限定。The grip posture recognition model can be constructed by a model building module using a large amount of training data collected. The model building module can be integrated into the input method error correction device of the present invention, and can be independent of the input method error correction device of the present invention. limited.
如图6所示,是本发明实施例输入法纠错装置中模型构建模块的结构示意图。As shown in FIG. 6 , it is a schematic structural diagram of a model building module in an input method error correction device according to an embodiment of the present invention.
该模型构建模块包括以下各单元:The model building block includes the following units:
拓扑结构确定单元61,用于确定握姿识别模型的拓扑结构;所述拓扑结构可以采用但不限于以下任意一种:DNN、RNN、LSTM等。The
数据采集单元62,用于采集训练数据,所述训练数据包括:用户输入过程中不同握姿下的握姿识别特征。所述训练数据可以来源于多个不同的用户利用各种不同握姿进行输入的情况,所述握姿识别特征在前面已有详细说明,在此不再赘述。The
参数训练单元63,用于利用所述训练数据训练得到握姿识别模型的参数。模型参数的训练方式可以采用现有技术,在此不再赘述。The
需要说明的是,在实际应用中,上述数据采集单元63还可以在用户每次输入过程中,采集模型训练所需的数据,利用这些数据对所述握姿识别模型的参数进行更新,比如采集的数据达到一定量时,触发所述参数训练单元64将这些新采集的数据与全部或部分原有训练数据一起,重新训练握姿识别模型,得到更新后的模型参数;或者触发所述参数训练单元64使用预先训练好的模型的权重作为初始化权重,然后针对新的数据集调整权重,与从随机初始化开始相比,能够更快地训练,并且得到的模型参数准确性更好。It should be noted that, in practical applications, the above-mentioned
如图7所示,是本发明实施例输入法纠错装置的另一种结构示意图。As shown in FIG. 7 , it is another schematic structural diagram of an input method error correction apparatus according to an embodiment of the present invention.
与图5所示实施例的区别在于,在该实施例中,所述装置不仅包括前述握姿确定模块501、映射关系确定模块502、纠错模块503,还进一步包括:记录模块504和纠错判断模块505。其中:The difference from the embodiment shown in FIG. 5 is that in this embodiment, the apparatus not only includes the aforementioned holding
所述记录模块504用于记录用户输入过程中各按键的使用习惯;The
所述纠错判断模块505用于在所述纠错模块503根据所述纠错映射关系表进行纠错处理之前,根据所述记录模块504记录的当前按键的使用习惯判断是否需要对触发当前按键输入的字符进行纠错处理;如果需要,则触发所述纠错模块503根据所述纠错映射关系表进行纠错处理。The error
其中,所述按键的使用习惯可以包括:按键按错的次数以及所述按键使用的总次数。Wherein, the usage habit of the key may include: the number of times the key is pressed incorrectly and the total number of times the key is used.
相应地,所述纠错判断模块505具体可以根据所述记录模块504记录的当前按键按错的次数以及当前按键使用的总次数,计算所述当前按键的出错率;如果所述出错率大于设定的错误阈值,则确定需要对触发当前按键输入的字符进行纠错处理;否则,确定不需要对触发当前按键输入的字符进行纠错处理。Correspondingly, the error
关于上述各实施例中的装置,其中各个模块执行操作的具体方式可参照有关该方法的实施例中的描述,在此不做详细阐述说明。Regarding the apparatuses in the foregoing embodiments, reference may be made to the descriptions in the embodiments of the method for specific manners in which each module performs operations, which will not be described in detail here.
可见,本发明实施例的输入法纠错装置,通过记录用户输入过程中各按键的使用习惯,在进行纠错处理时,综合考虑用户输入时对各按键的历史操作习惯,进一步提高了纠错的准确性,提升了用户的输入体验。It can be seen that the input method error correction device of the embodiment of the present invention further improves the error correction by recording the usage habit of each button during the user input process, and comprehensively considering the historical operation habit of each button during the user input when performing error correction processing. accuracy, improving the user's input experience.
本发明实施例提供的输入法纠错装置,可以应用于各种不同的输入法中,而且不仅适用于利用各种输入法实现的中文输入,还可以适用于英文及其它语种的输入,比如英文输入。The input method error correction device provided in the embodiment of the present invention can be applied to various input methods, and is not only applicable to Chinese input realized by various input methods, but also applicable to input in English and other languages, such as English enter.
需要说明的是,本发明实施例提供的输入法纠错方法及装置,可以独立使用,也可以和其它现有纠错方案相结合,作为其它现有纠错方案的优化方案,也就是说,先进行基于握姿检测的纠错,然后再进行其它方案的纠错,从而可以进一步提高输入法纠错能力及准确性,提升用户输入质量。It should be noted that the input method error correction method and device provided by the embodiments of the present invention can be used independently, or can be combined with other existing error correction schemes as an optimization scheme of other existing error correction schemes, that is, The error correction based on grip posture detection is performed first, and then the error correction of other schemes is performed, so that the error correction capability and accuracy of the input method can be further improved, and the input quality of the user can be improved.
本发明实施例的方法及装置可以适用于实体键盘或者用户设备屏幕上的虚拟键盘,所述用户设备可以是计算机、笔记本、手机、PAD等。The method and apparatus of the embodiments of the present invention may be applied to a physical keyboard or a virtual keyboard on a screen of a user equipment, and the user equipment may be a computer, a notebook, a mobile phone, a PAD, and the like.
图8是根据一示例性实施例示出的一种用于输入法纠错方法的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 8 is a block diagram of an
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, the
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理部件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
本发明还提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行上述各方法实施例中的部分或全部步骤,以实现对相应输入错误进行纠错。The present invention also provides a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can perform some or all of the steps in the above method embodiments, so as to Implement error correction for corresponding input errors.
图9是本发明实施例中服务器的结构示意图。该服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(Central Processing Units,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在服务器1900上执行存储介质1930中的一系列指令操作。FIG. 9 is a schematic structural diagram of a server in an embodiment of the present invention. The
服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any modifications, uses or adaptations of the present invention that follow the general principles of the invention and include common knowledge or common technical means in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810936030.1A CN110837305A (en) | 2018-08-16 | 2018-08-16 | Input method error correction method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810936030.1A CN110837305A (en) | 2018-08-16 | 2018-08-16 | Input method error correction method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110837305A true CN110837305A (en) | 2020-02-25 |
Family
ID=69574190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810936030.1A Pending CN110837305A (en) | 2018-08-16 | 2018-08-16 | Input method error correction method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110837305A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113435185A (en) * | 2020-03-23 | 2021-09-24 | 北京搜狗科技发展有限公司 | Input error correction method and device for input error correction |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719022A (en) * | 2010-01-05 | 2010-06-02 | 汉王科技股份有限公司 | Character input method for all-purpose keyboard and processing device thereof |
JP2010207330A (en) * | 2009-03-09 | 2010-09-24 | Nintendo Co Ltd | Device and program for calculating posture, game device and game program |
CN101907943A (en) * | 2009-06-05 | 2010-12-08 | 宏达国际电子股份有限公司 | Method and system for correcting software keyboard input and computer program product using the method |
KR20120059235A (en) * | 2010-11-30 | 2012-06-08 | 엘지전자 주식회사 | Input apparatus and input method of image display device |
JP2013206396A (en) * | 2012-03-29 | 2013-10-07 | Fujitsu Ltd | Input device, input program and input method |
CN104685451A (en) * | 2012-09-18 | 2015-06-03 | 谷歌公司 | Posture-adaptive selection |
CN105353839A (en) * | 2015-09-28 | 2016-02-24 | 淄博环能海臣环保技术服务有限公司 | Smart tablet computer with U-shaped layout touch control screen holding gesture input self-setting keyboard |
CN106896931A (en) * | 2015-12-18 | 2017-06-27 | 北京搜狗科技发展有限公司 | A kind of input method error correction method and device |
CN107229348A (en) * | 2016-03-23 | 2017-10-03 | 北京搜狗科技发展有限公司 | A kind of input error correction method, device and the device for inputting error correction |
-
2018
- 2018-08-16 CN CN201810936030.1A patent/CN110837305A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010207330A (en) * | 2009-03-09 | 2010-09-24 | Nintendo Co Ltd | Device and program for calculating posture, game device and game program |
CN101907943A (en) * | 2009-06-05 | 2010-12-08 | 宏达国际电子股份有限公司 | Method and system for correcting software keyboard input and computer program product using the method |
CN101719022A (en) * | 2010-01-05 | 2010-06-02 | 汉王科技股份有限公司 | Character input method for all-purpose keyboard and processing device thereof |
KR20120059235A (en) * | 2010-11-30 | 2012-06-08 | 엘지전자 주식회사 | Input apparatus and input method of image display device |
JP2013206396A (en) * | 2012-03-29 | 2013-10-07 | Fujitsu Ltd | Input device, input program and input method |
CN104685451A (en) * | 2012-09-18 | 2015-06-03 | 谷歌公司 | Posture-adaptive selection |
CN105353839A (en) * | 2015-09-28 | 2016-02-24 | 淄博环能海臣环保技术服务有限公司 | Smart tablet computer with U-shaped layout touch control screen holding gesture input self-setting keyboard |
CN106896931A (en) * | 2015-12-18 | 2017-06-27 | 北京搜狗科技发展有限公司 | A kind of input method error correction method and device |
CN107229348A (en) * | 2016-03-23 | 2017-10-03 | 北京搜狗科技发展有限公司 | A kind of input error correction method, device and the device for inputting error correction |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113435185A (en) * | 2020-03-23 | 2021-09-24 | 北京搜狗科技发展有限公司 | Input error correction method and device for input error correction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11514706B2 (en) | Method and device for detecting hand gesture key points | |
CN103885632B (en) | Input method and device | |
WO2020042727A1 (en) | Interaction method of application scenario, and mobile terminal and storage medium | |
US11138422B2 (en) | Posture detection method, apparatus and device, and storage medium | |
WO2018214734A1 (en) | Photographing control method and related product | |
CN107436691A (en) | A kind of input method carries out method, client, server and the device of error correction | |
CN107340880A (en) | A kind of association-feeding method, device and the electronic equipment for realizing association's input | |
CN106851026A (en) | Inactive phone number is recognized and method for cleaning, device and mobile terminal | |
CN104123072B (en) | It is a kind of for providing the method and apparatus of the dummy keyboard in mobile device | |
WO2020038108A1 (en) | Dynamic motion detection method and dynamic motion control method and device | |
EP3792740A1 (en) | Key setting method and device, and storage medium | |
CN107037965A (en) | A kind of information displaying method based on input, device and mobile terminal | |
WO2017096958A1 (en) | Human-computer interaction method, apparatus, and mobile device | |
WO2015131590A1 (en) | Method for controlling blank screen gesture processing and terminal | |
CN112015279B (en) | Key false touch error correction method and device | |
WO2023016372A1 (en) | Control method and apparatus, and electronic device and storage medium | |
CN107958273B (en) | Volume adjusting method and device and storage medium | |
CN110389666B (en) | Input error correction method and device | |
CN115291786A (en) | False touch judgment method and device based on machine learning and storage medium | |
CN110858099B (en) | Candidate word generation method and device | |
JP7489048B2 (en) | Gesture recognition device, system and program thereof | |
KR20110041757A (en) | Terminal and method for providing a user interface using a gesture | |
WO2014032504A1 (en) | Method for terminal to customize hand gesture and terminal thereof | |
CN110837305A (en) | Input method error correction method and device | |
CN110908523B (en) | Input method and device |
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 |