CN107765884B - Sliding input method and device and electronic equipment - Google Patents

Sliding input method and device and electronic equipment Download PDF

Info

Publication number
CN107765884B
CN107765884B CN201610702707.6A CN201610702707A CN107765884B CN 107765884 B CN107765884 B CN 107765884B CN 201610702707 A CN201610702707 A CN 201610702707A CN 107765884 B CN107765884 B CN 107765884B
Authority
CN
China
Prior art keywords
key
keys
obtaining
character strings
outlier
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
CN201610702707.6A
Other languages
Chinese (zh)
Other versions
CN107765884A (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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610702707.6A priority Critical patent/CN107765884B/en
Publication of CN107765884A publication Critical patent/CN107765884A/en
Application granted granted Critical
Publication of CN107765884B publication Critical patent/CN107765884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced 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

The invention discloses a sliding input method, a sliding input device and electronic equipment, wherein the sliding input method comprises the following steps: obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key; obtaining a key of which the operation parameter meets a preset condition as an outlier; and generating and displaying candidate character strings according to the at least two keys and the outliers. In the technical scheme, the position coordinates and the outliers of each key corresponding to the sliding input operation are obtained to increase the constraint condition for generating the candidate character string by performing combination conversion on the characters corresponding to the sliding input operation, so that the candidate items provided in the sliding input are more accurate and closer to the actual input intention of the user, the technical problem of lower accuracy of the candidate items in the sliding input in the prior art is solved, and the accuracy of the candidate items is improved.

Description

Sliding input method and device and electronic equipment
Technical Field
The invention relates to the technical field of software, in particular to a sliding input method and device and electronic equipment.
Background
With the continuous development of the internet, portable electronic devices have been rapidly developed and popularized, and human-computer interaction has become more and more frequent. The human-computer interaction can be input through a physical keyboard, a virtual keyboard, a handwriting board and sound acquisition equipment, and then conversion is performed through an input method to provide candidate items for screen display.
The traditional keyboard input method is to input characters corresponding to each key into the electronic equipment by clicking each key on the keyboard, and the input method has the advantages of accurate input and low input efficiency, such as: when the traditional input mode is adopted to input the 'tuihui' through the full keyboard, 6 times of clicking operation is needed. In order to improve input efficiency, in the prior art, a sliding input method is proposed, in which a user is allowed to perform a sliding operation on a keyboard, a trajectory of the sliding operation passes through a plurality of keys, an electronic device obtains a plurality of input keys corresponding to the sliding operation, and performs combined conversion on the obtained plurality of input keys through an input method to generate candidates, for example: when the user intends to input "tui", the user successively passes through the keys "t", "u", and "i" in a sliding operation manner, wherein the key "u" is located between the key "t" and the key "u", and therefore, the input method analyzes the key through which the sliding operation trajectory passes: t, y, u and i, and performing combined conversion on the t, y, u and i to obtain related input strings, such as: the method greatly improves the speed of user input operation, but because the input characters contain unnecessary input characters, the input method obtains more combination items when analyzing the input characters, such as "ti", "yi", "tiyu", "tui", and the like, and the quantity of candidates generated by corresponding conversion is relatively large, so that the accuracy of the candidates provided by the input method is relatively low.
Therefore, the technical problem of low accuracy of candidate items exists in the sliding input in the prior art.
Disclosure of Invention
The embodiment of the invention provides a sliding input method, a sliding input device and electronic equipment, which are used for solving the technical problem of low accuracy of candidate items in sliding input in the prior art and improving the accuracy of the candidate items.
The embodiment of the application provides a sliding input method, which comprises the following steps:
obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key;
obtaining a key of which the operation parameter meets a preset condition as an outlier;
and generating and displaying candidate character strings according to the at least two keys and the outliers.
Optionally, the operation parameters include: a key press pressure value and/or a key press duration.
Optionally, the obtaining the key with the operation parameter meeting the preset condition as an outlier includes:
when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or
And when the operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold value as the outlier.
Optionally, the generating and displaying candidate character strings according to the at least two keys and the outliers includes:
obtaining the position coordinates of each key;
and generating and displaying candidate character strings according to the at least two keys, the position coordinates of each key and the outliers.
Optionally, the generating and displaying a candidate character string according to the at least two keys, the position coordinates of each key, and the outlier includes:
obtaining the weight of each key according to the distance between the position coordinate of each key and the outlier;
according to the at least two keys and the weight of each key, obtaining a top n-bit target character string with the highest weight combination value, wherein n is a positive integer;
and generating and displaying candidate character strings according to the n target character strings.
Optionally, the key weight with the distance from the outlier is larger with the outlier as the center.
Optionally, the generating and displaying candidate character strings according to the n target character strings includes:
generating candidate character strings according to the n target character strings, and obtaining the word frequency of each candidate character string;
sequencing all the candidate character strings according to the word frequency of each candidate character string and the weight combination value of the corresponding target character string;
and displaying all the candidate character strings according to the sorting result.
Optionally, after obtaining at least two keys corresponding to the user sliding input operation and the operation parameters of each key, the method further includes:
and obtaining adjacent keys of any key in the at least two keys, and adding the adjacent keys into the at least two keys.
Optionally, the generating and displaying candidate character strings according to the at least two keys and the outliers includes:
acquiring a combination mode corresponding to the outlier according to historical input data of a user;
generating a target character string according to the combination of the at least two keys and the outliers according to the combination mode;
and generating and displaying candidate character strings according to the target character strings.
An embodiment of the present application further provides a sliding input device, where the device includes:
the first acquisition unit is used for acquiring at least two keys corresponding to the sliding input operation of a user and the operation parameters of each key;
the second acquisition unit is used for acquiring the key of which the operation parameter meets the preset condition as an outlier;
and the generating unit is used for generating and displaying the candidate character strings according to the at least two keys and the outliers.
Optionally, the operation parameters include: a key press pressure value and/or a key press duration.
Optionally, the second obtaining unit is configured to:
when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or
And when the operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold value as the outlier.
Optionally, the generating unit includes:
the position acquisition subunit is used for acquiring the position coordinates of each key;
and the generating subunit is used for generating and displaying the candidate character strings according to the at least two keys, the position coordinates of each key and the outliers.
Optionally, the generating subunit is configured to:
obtaining the weight of each key according to the distance between the position coordinate of each key and the outlier;
according to the at least two keys and the weight of each key, obtaining a top n-bit target character string with the highest weight combination value, wherein n is a positive integer;
and generating and displaying candidate character strings according to the n target character strings.
Optionally, the key weight with the distance from the outlier is larger with the outlier as the center.
Optionally, the generating subunit is further configured to:
generating candidate character strings according to the n target character strings, and obtaining the word frequency of each candidate character string;
sequencing all the candidate character strings according to the word frequency of each candidate character string and the weight combination value of the corresponding target character string;
and displaying all the candidate character strings according to the sorting result.
Optionally, the apparatus further comprises:
and the adding unit is used for obtaining adjacent keys of any key in the at least two keys after obtaining the at least two keys corresponding to the user sliding input operation and the operation parameters of each key, and adding the adjacent keys into the at least two keys.
Optionally, the generating unit is further configured to:
acquiring a combination mode corresponding to the outlier according to historical input data of a user;
generating a target character string according to the combination of the at least two keys and the outliers according to the combination mode;
and generating and displaying candidate character strings according to the target character strings.
Embodiments of the present application also provide an electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key;
obtaining a key of which the operation parameter meets a preset condition as an outlier;
and generating and displaying candidate character strings according to the at least two keys and the outliers.
One or more technical solutions in the embodiments of the present application have at least the following technical effects:
in the sliding input, at least two keys corresponding to the sliding input operation of a user and the operation parameters of each key are obtained, and the keys of which the operation parameters meet preset conditions are obtained as outliers; and generating and displaying candidate character strings according to the at least two keys and the outliers, namely increasing a candidate character string constraint condition generated by performing combination conversion on the characters corresponding to the sliding input operation by obtaining the position coordinates and the outliers of each key corresponding to the sliding input operation, so that the candidate items provided during the sliding input are more accurate and closer to the actual input intention of the user, thereby solving the technical problem of lower accuracy of providing the input candidate items during the sliding input in the prior art, improving the accuracy of the candidate items and improving the user experience.
Drawings
Fig. 1 is a flowchart of a coasting input method according to an embodiment of the present application;
FIG. 2 is a schematic view of a skating input device according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an electronic device for implementing a sliding input method according to an embodiment of the present disclosure.
Detailed Description
In the technical scheme provided by the embodiment of the application, the position coordinates and the outliers of the keys, namely the key marked points, are obtained during the sliding input to provide the screening condition for the generation of the candidate items of the sliding input, so that the technical problem of low accuracy of the candidate items during the sliding input in the prior art is solved, and the accuracy of the candidate items is improved.
The main implementation principle, the specific implementation mode and the corresponding beneficial effects of the technical scheme of the embodiment of the present application are explained in detail with reference to the accompanying drawings.
Examples
Referring to fig. 1, an embodiment of the present application provides a sliding input method, including:
s101: obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key;
s102: obtaining a key of which the operation parameter meets a preset condition as an outlier;
s103: and generating and displaying candidate character strings according to the at least two keys and the outliers.
The sliding input method provided by the embodiment of the application is applied to virtual keys or virtual keyboards. The user can perform a slide input operation on the virtual keys or the virtual keyboard to input two or more keys in a continuous operation, thereby inputting a plurality of characters to the electronic device at a high speed. The method can be used for inputting characters of multiple languages such as Chinese and English, and the implementation process of the sliding input method provided by the application is exemplified below by taking the Chinese input of a virtual keyboard as an example.
S101, at least two keys corresponding to the sliding input operation of the user and the operation parameters of each key are obtained. The operation parameters are used for recording the change process of the sliding input operation. Specifically, the operating parameters may include: a key press pressure value and/or a key press duration. When a user needs to input characters through at least two keys, a sliding input operation can be performed on the positions of the corresponding keys on the virtual keyboard, for example: when the "yi" needs to be input, the electronic device can slide to the key "i" from the position where the key "y" is located, and the corresponding sliding track sequentially passes through the keys "y", and "i", so that the electronic device can obtain the key "y", "u", and "i" corresponding to the sliding input operation of the user and the operation parameters of each key "y", "u", and "i".
According to the operation parameters of each key obtained in the step S101, the step S102 is executed to obtain keys with operation parameters meeting preset conditions as outliers. Specifically, when the obtained operation parameter is a key pressure value, a key with the key pressure value greater than a preset pressure threshold is obtained as an outlier, and the outlier is a pressure outlier at this time. The preset pressure threshold may be set to a pressure value when the pressing is heavier according to the pressing weight, for example: the pressing force component in the 3D-touch is a light touch, and a heavy touch, and then the preset pressure threshold may be set as a pressure value of the heavy touch, and certainly, the preset pressure threshold may also be set as other values as long as the value can distinguish a key press in the sliding input process, and the specific value of the preset pressure threshold is not limited in the embodiment of the present application. And when the obtained operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold value as an outlier, wherein the outlier is a time outlier. Similarly, the embodiment of the present application also does not limit the specific value of the preset duration threshold, as long as the value can distinguish the key press in the sliding input process, for example: if the dwell time of the normal slide input operation on one key is 0.1s and the dwell time of the key press on one key is 0.3s, the preset time threshold may be set to 0.2 s. And when the operation parameters are the key pressure value and the key duration, obtaining the key which is greater than the preset pressure threshold value and the preset duration threshold value and meets the requirement as an outlier.
For the obtained outliers, the embodiment of the present application may also perform correction and adjustment based on the historical behavior data of the user, for example: if the outliers input by the user each time are the second input characters according to the historical behavior data analysis of the user, the outliers obtained in the current sliding input operation are the third input characters, and the outliers can be corrected to be the second input characters. Similarly, the specific value of the pressure threshold and/or the preset duration may also be modified and adjusted according to the historical behavior data of the user.
Therefore, a user can operate a necessary key in the process of the slide input, the electronic device obtains the necessary key, namely, the outlier through the steps S101 and S102, and further executes S103 to generate and display the candidate character string according to at least two keys and the outlier corresponding to the slide input operation, and the outlier is used as a constraint condition for generating the candidate character string through conversion, so that the number of the candidate character string generated through combination and conversion of a plurality of key characters can be greatly reduced, and the accuracy of the candidate character string is further improved.
In a specific implementation process, the candidate character strings can be generated and displayed according to at least two keys and outliers corresponding to the sliding input operation by adopting one or more of the following modes:
the first mode is that all character combinations containing outliers in at least two keys are directly obtained, and candidate character strings are generated through conversion according to the character combinations. For example: when a user inputs by adopting the pinyin input method, the keys corresponding to a sliding input operation sequentially comprise: "t", "y", "u", and "i", where the outlier is "u", then obtaining the character combination from "u" includes: "tui", "yu", and "tu", excluding unnecessary combinations "ti" and "yi", to generate candidate strings according to the tui "," yu ", and" tu "conversions and display, such as: back, leg, and, figure, etc.
And secondly, acquiring all character combinations of the touch starting point key and the touch ending key which comprise the outlier and the sliding input operation in the at least two keys, and converting and generating the candidate character string according to the character combinations. For example: when a user inputs by adopting the pinyin input method, keys corresponding to a sliding input operation sequentially comprise: "t", "y", "u", and "i", obtaining the outlier as "u", the touch start key "t", and the touch end key "i", then obtaining the character combination according to "t", "u", and "i" includes: "tui" excluding unnecessary combinations "ti", "yi", "yu" and "tu" to generate candidate strings according to the "tui" conversion and display, such as: retreat, leg, push, fade, etc.
Obtaining the position coordinates of each key in at least two keys corresponding to the sliding input operation; and generating and displaying candidate character strings according to at least two keys corresponding to the sliding input operation, the position coordinates and the outliers of each key. Specifically, the weight of each key is obtained according to the distance between the position coordinate of each key and the outlier; according to at least two keys and the weight of each key, obtaining a top n-bit target character string with the highest weight combination value, wherein n is a positive integer; and generating and displaying candidate character strings according to the n target character strings.
The weight of the key is centered on the outlier, the closer the key weight to the outlier, the greater the weight, and the maximum value of the weight of the outlier, for example: assuming that the weight value of the outlier is 5, the distance increases by 1 and the weight value decreases by 0.5, the weight of the key adjacent to the outlier is 4.5, the weight of the key spaced from the outlier by one key is 4.0, and so on. Optionally, the weight of the touch start key and the touch end key corresponding to the sliding input operation is between the weight of the outlier and the weight of the key adjacent to the outlier, such as: assuming that the weight of the outlier is 5 and the weight of the key adjacent to the outlier is 4.5, the weights of the touch start key and the touch end key may be 4.75. The combination of each key corresponds to a weight combination value, and the weight combination value is a weighted average value of the weights of each key.
Specifically, when candidate character strings are generated and displayed according to the n target character strings, the candidate character strings may be generated according to the n target character strings, and the word frequency of each candidate character string is obtained; sequencing all the candidate character strings according to the word frequency of each candidate character string and the weight combination value of the corresponding target character string; and displaying all the candidate character strings according to the sorting result. When all the candidate character strings are sorted, the final score of each candidate character string may be sorted according to the size of score. score is hzscore0 pyscore1, hzscore0 represents word frequency, and pyscore1 represents weights of target strings.
For example: assuming that a user inputs by adopting the pinyin input method, keys corresponding to a sliding input operation sequentially comprise: "t", "y", "u", and "i", obtaining the outlier "u", the touch start key "t", and the touch end key "i", and accordingly obtaining the weights of "t", "y", "u", and "i" as follows: 4.75, 4.5, 5, 4.75, then the key combinations and the combination weight values are calculated as: if "ti" is 4.75, "yi" is 4.125, "tu" is 4.875, "tui" is 4.833 … …, then the target character strings "tu" and "tui" of 2 bits before the combined weight value can be obtained as the target character strings, and further the candidates generated by the conversion of the target character strings "tu" and "tui" and the word frequencies thereof are obtained, assuming that the candidate character strings generated by the conversion of "tu" and the word frequencies thereof are respectively: the 'figure': 9, "spit": 8; the candidate character string generated by the conversion of "tui" and the word frequency thereof are respectively: "retreat": 9.5, "legs": then, the scores for "figure", "spit", "retreat" and "leg" according to score h score0 pyscore1 are: 43.875, 39, 45.913, 43.497, for which the candidate character strings are sorted and displayed according to the scores: "retreat", "drawing", "leg" spit ".
In a specific implementation process, in order to further reduce the number of candidate character strings generated by converting a plurality of key character combinations, in the embodiment of the present application, when the candidate is generated in S103, historical input data of a user may also be obtained, and a combination manner corresponding to the outlier is obtained according to the historical input data of the user; generating a target character string according to the combination mode corresponding to the outliers and the at least two keys; and generating and displaying candidate character strings according to the target character strings. Wherein, the combination mode includes: the outlier is a first letter of a target character string, the outlier is a syllable dividing point of the target character string, the outlier is a first letter or a middle letter of a syllable in the target character string, and the like.
Example 1: analyzing the historical input data of the user, and finding that the user habitually performs emphasis operation on the middle character of a syllable, namely the combination mode corresponding to the outlier is as follows: the outlier is a middle letter of a syllable in the target character string, and if the keys currently operated by the user are sequentially't', 'y', 'u' (outlier) and 'i', the target character string obtained according to the combination mode corresponding to the outlier is only 'tui', and the candidate character string is generated and displayed according to the target character string: the candidate character strings may be generated and displayed only based on the "tui" conversion, or may be generated based on the target character string and other key combinations such as "tiyu", respectively, and the candidate character strings generated based on the "tui" conversion may be displayed with the candidate character strings being arranged in front.
Example 2: assume that the key currently operated by the user includes: "x", "i", "a" (outlier), "n", if the combination corresponding to the outlier is: the outlier is the initial of the target character string, and the target character string generated by combination according to the combination mode is as follows: "anxi"; if the combination mode corresponding to the outlier is as follows: the outliers are syllable dividing points of the target character string, and the target character string generated by combination according to the combination mode is ' xi ' an '. If the combination mode corresponding to the outlier is as follows: the outlier is the first letter of a syllable in the target string, and the key currently operated by the user includes: "x" (outlier), "i", "a", "n", then the target string generated from the combination is "xian", rather than "xi' an" because "a" is not an outlier and cannot be the first letter of a syllable. Similarly, when the candidate is generated and displayed according to the target character string, the candidate character string may be generated and displayed only according to the target character string conversion, or the candidate character strings may be generated according to the target character string and other key combinations, respectively, and the candidate character string generated according to the target character string conversion is arranged in front when displayed.
For the sliding input method, after obtaining at least two keys corresponding to the sliding input operation of the user and the operation parameters of each key, the embodiment of the application also obtains adjacent keys of any key in the at least two keys, adds the adjacent keys into the at least two keys corresponding to the sliding input operation, and further generates and displays candidate character strings according to the updated at least two keys and the outlier conversion, so as to improve the input efficiency. For example: when the user slides to input the operation input, the following steps are carried out: when the characters are "t", "y", "u", and "i", the adjacent keys "r" and "o" may be obtained and added to at least two keys corresponding to the user's slide input operation, and the candidate character string thus obtained may include "back", "ri", "off", and the like.
Referring to fig. 2, based on the above-mentioned sliding input method provided in the embodiment of the present application, a sliding input device is correspondingly provided, which includes:
the first obtaining unit 21 is configured to obtain at least two keys and an operation parameter of each key corresponding to a user slide input operation;
a second obtaining unit 22, configured to obtain a key with the operation parameter meeting a preset condition as an outlier;
and the generating unit 23 is configured to generate and display a candidate character string according to the at least two keys and the outlier.
In a specific implementation process, the operation parameters include: a key press pressure value and/or a key press duration.
The second obtaining unit 22 is configured to: when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or when the operation parameter is the key duration, obtaining the key with the key duration greater than a preset duration threshold as the outlier.
Further, the generating unit 23 may include: for which a subunit is acquired and a subunit is generated. The position acquisition subunit is used for acquiring the position coordinates of each key; and the generating subunit is used for generating and displaying the candidate character strings according to the at least two keys, the position coordinates of each key and the outliers.
When the generating subunit generates and displays the candidate character string according to the at least two keys, the position coordinate of each key, and the outlier, the weight of each key may be obtained according to a distance between the position coordinate of each key and the outlier; further, according to the at least two keys and the weight of each key, obtaining a top n-bit target character string with the highest weight combination value, wherein n is a positive integer; further, candidate character strings are generated and displayed according to the n target character strings. Optionally, the key weight with the distance from the outlier is larger with the outlier as the center.
Further, when the generating subunit generates and displays the candidate character strings according to the n target character strings, the generating subunit may further be configured to: generating candidate character strings according to the n target character strings, and obtaining the word frequency of each candidate character string; sequencing all the candidate character strings according to the word frequency of each candidate character string and the weight combination value of the corresponding target character string; and displaying all the candidate character strings according to the sorting result.
In a specific implementation process, the apparatus may further include: and the adding unit is used for obtaining adjacent keys of any key in the at least two keys after obtaining the at least two keys corresponding to the user sliding input operation and the operation parameters of each key, and adding the adjacent keys into the at least two keys.
In a specific implementation process, the generating unit 23 may further be configured to: acquiring a combination mode corresponding to the outlier according to historical input data of a user; generating a target character string according to the combination of the at least two keys and the outliers according to the combination mode; and generating and displaying candidate character strings according to the target character strings.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 3 is a block diagram illustrating an electronic device 800 for implementing a coast input according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a coast input method, the method comprising: obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key; obtaining a key of which the operation parameter meets a preset condition as an outlier; and generating and displaying candidate character strings according to the at least two keys and the outliers.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A method of taxi input, the method comprising:
obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key; the operating parameters include: a key press pressure value and/or a key press duration;
obtaining the key with the operation parameter meeting the preset condition as an outlier, comprising: when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or when the operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold as the outlier;
and generating and displaying candidate character strings according to the at least two keys and the outliers.
2. The method of claim 1, wherein generating and displaying candidate character strings based on the at least two keys and the outliers comprises:
obtaining the position coordinates of each key;
and generating and displaying candidate character strings according to the at least two keys, the position coordinates of each key and the outliers.
3. The method of claim 2, wherein generating and displaying candidate character strings based on the at least two keys, the position coordinates of each key, and the outliers comprises:
obtaining the weight of each key according to the distance between the position coordinate of each key and the outlier;
according to the at least two keys and the weight of each key, obtaining a top n-bit target character string with the highest weight combination value, wherein n is a positive integer;
and generating and displaying candidate character strings according to the n target character strings.
4. The method of claim 3, wherein the closer the distance to the outlier is, the greater the weight of the key centered on the outlier.
5. The method of claim 3, wherein generating and displaying candidate character strings from the n target character strings comprises:
generating candidate character strings according to the n target character strings, and obtaining the word frequency of each candidate character string;
sequencing all the candidate character strings according to the word frequency of each candidate character string and the weight combination value of the corresponding target character string;
and displaying all the candidate character strings according to the sorting result.
6. The method of claim 1, wherein after obtaining the at least two keys and the operating parameters of each key corresponding to the user coast input operation, the method further comprises:
and obtaining adjacent keys of any key in the at least two keys, and adding the adjacent keys into the at least two keys.
7. The method of claim 1, wherein generating and displaying candidate character strings based on the at least two keys and the outliers comprises:
acquiring a combination mode corresponding to the outlier according to historical input data of a user;
generating a target character string according to the combination of the at least two keys and the outliers according to the combination mode;
and generating and displaying candidate character strings according to the target character strings.
8. A sliding input device, the device comprising:
the first acquisition unit is used for acquiring at least two keys corresponding to the sliding input operation of a user and the operation parameters of each key; the operating parameters include: a key press pressure value and/or a key press duration;
a second obtaining unit, configured to obtain a key with the operation parameter meeting a preset condition as an outlier, and specifically configured to: when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or when the operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold as the outlier;
and the generating unit is used for generating and displaying the candidate character strings according to the at least two keys and the outliers.
9. The apparatus of claim 8, wherein the generating unit comprises:
the position acquisition subunit is used for acquiring the position coordinates of each key;
and the generating subunit is used for generating and displaying the candidate character strings according to the at least two keys, the position coordinates of each key and the outliers.
10. The apparatus of claim 9, wherein the generating subunit is to:
obtaining the weight of each key according to the distance between the position coordinate of each key and the outlier;
according to the at least two keys and the weight of each key, obtaining a top n-bit target character string with the highest weight combination value, wherein n is a positive integer;
and generating and displaying candidate character strings according to the n target character strings.
11. The apparatus of claim 10, wherein keys closer to the outlier are weighted more heavily centered on the outlier.
12. The apparatus of claim 10, wherein the generating subunit is further to:
generating candidate character strings according to the n target character strings, and obtaining the word frequency of each candidate character string;
sequencing all the candidate character strings according to the word frequency of each candidate character string and the weight combination value of the corresponding target character string;
and displaying all the candidate character strings according to the sorting result.
13. The apparatus of claim 8, wherein the apparatus further comprises:
and the adding unit is used for obtaining adjacent keys of any key in the at least two keys after obtaining the at least two keys corresponding to the user sliding input operation and the operation parameters of each key, and adding the adjacent keys into the at least two keys.
14. The apparatus of claim 8, wherein the generating unit is further to:
acquiring a combination mode corresponding to the outlier according to historical input data of a user;
generating a target character string according to the combination of the at least two keys and the outliers according to the combination mode;
and generating and displaying candidate character strings according to the target character strings.
15. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key; the operating parameters include: a key press pressure value and/or a key press duration;
obtaining the key with the operation parameter meeting the preset condition as an outlier, comprising: when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or when the operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold as the outlier;
and generating and displaying candidate character strings according to the at least two keys and the outliers.
16. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
obtaining at least two keys corresponding to the sliding input operation of a user and operation parameters of each key; the operating parameters include: a key press pressure value and/or a key press duration;
obtaining the key with the operation parameter meeting the preset condition as an outlier, comprising: when the operation parameter is the key pressure value, obtaining a key with the key pressure value larger than a preset pressure threshold value as the outlier; or when the operation parameter is the key duration, obtaining the key with the key duration being greater than a preset duration threshold as the outlier;
and generating and displaying candidate character strings according to the at least two keys and the outliers.
CN201610702707.6A 2016-08-22 2016-08-22 Sliding input method and device and electronic equipment Active CN107765884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610702707.6A CN107765884B (en) 2016-08-22 2016-08-22 Sliding input method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610702707.6A CN107765884B (en) 2016-08-22 2016-08-22 Sliding input method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107765884A CN107765884A (en) 2018-03-06
CN107765884B true CN107765884B (en) 2021-11-02

Family

ID=61263668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610702707.6A Active CN107765884B (en) 2016-08-22 2016-08-22 Sliding input method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107765884B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI770614B (en) * 2020-09-22 2022-07-11 南亞科技股份有限公司 System for monitoring machines and method for monitoring machines

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117175A (en) * 2010-09-29 2011-07-06 北京搜狗科技发展有限公司 Method and device for inputting Chinese in sliding way and touch-screen input method system
JP4886582B2 (en) * 2007-04-24 2012-02-29 パナソニック株式会社 Character input device, character input program, and character input method
CN102880302A (en) * 2012-07-17 2013-01-16 重庆优腾信息技术有限公司 Word identification method, device and system on basis of multi-word continuous input
CN105159550A (en) * 2015-07-09 2015-12-16 百度在线网络技术(北京)有限公司 Method and apparatus for determining effective input sequences of slide operations
CN105260113A (en) * 2015-09-18 2016-01-20 科大讯飞股份有限公司 Sliding input method and apparatus and terminal device
CN105511784A (en) * 2015-12-02 2016-04-20 北京新美互通科技有限公司 Information input method, device and mobile terminal based on pressure detection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4886582B2 (en) * 2007-04-24 2012-02-29 パナソニック株式会社 Character input device, character input program, and character input method
CN102117175A (en) * 2010-09-29 2011-07-06 北京搜狗科技发展有限公司 Method and device for inputting Chinese in sliding way and touch-screen input method system
CN102880302A (en) * 2012-07-17 2013-01-16 重庆优腾信息技术有限公司 Word identification method, device and system on basis of multi-word continuous input
CN105159550A (en) * 2015-07-09 2015-12-16 百度在线网络技术(北京)有限公司 Method and apparatus for determining effective input sequences of slide operations
CN105260113A (en) * 2015-09-18 2016-01-20 科大讯飞股份有限公司 Sliding input method and apparatus and terminal device
CN105511784A (en) * 2015-12-02 2016-04-20 北京新美互通科技有限公司 Information input method, device and mobile terminal based on pressure detection

Also Published As

Publication number Publication date
CN107765884A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
US10296201B2 (en) Method and apparatus for text selection
JP2017535007A (en) Classifier training method, type recognition method and apparatus
CN110874145A (en) Input method and device and electronic equipment
CN107291260B (en) Information input method and device for inputting information
CN107688399B (en) Input method and device and input device
US11335348B2 (en) Input method, device, apparatus, and storage medium
CN107037888B (en) Input method, input device and input device
JP2017525076A (en) Character identification method, apparatus, program, and recording medium
CN110795014B (en) Data processing method and device and data processing device
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN109388249B (en) Input information processing method and device, terminal and readable storage medium
CN107422921B (en) Input method, input device, electronic equipment and storage medium
CN108536653B (en) Input method, input device and input device
CN110554780A (en) sliding input method and device
CN107765884B (en) Sliding input method and device and electronic equipment
CN110780749B (en) Character string error correction method and device
CN109542244B (en) Input method, device and medium
CN108062168B (en) Candidate word screen-on method and device and candidate word screen-on device
CN111722727B (en) Model training method applied to handwriting input, handwriting input method and device
CN108345590B (en) Translation method, translation device, electronic equipment and storage medium
CN109558017B (en) Input method and device and electronic equipment
CN107015736B (en) Key processing method and device for key processing
CN107102747B (en) Information input method and device for inputting information
CN112306251A (en) Input method, input device and input device
CN110716653B (en) Method and device for determining association source

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
GR01 Patent grant
GR01 Patent grant