CN110297549B - Input processing method, device, equipment and storage medium - Google Patents

Input processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110297549B
CN110297549B CN201910403622.1A CN201910403622A CN110297549B CN 110297549 B CN110297549 B CN 110297549B CN 201910403622 A CN201910403622 A CN 201910403622A CN 110297549 B CN110297549 B CN 110297549B
Authority
CN
China
Prior art keywords
input
input code
cloud
code string
result
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
CN201910403622.1A
Other languages
Chinese (zh)
Other versions
CN110297549A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910403622.1A priority Critical patent/CN110297549B/en
Publication of CN110297549A publication Critical patent/CN110297549A/en
Application granted granted Critical
Publication of CN110297549B publication Critical patent/CN110297549B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The application provides an input processing method, an input processing device, input processing equipment and a storage medium, wherein the input processing method comprises the following steps: acquiring a first trigger instruction acting on the terminal equipment, wherein the first trigger instruction is generated when an operating medium presses a key displayed on the terminal equipment, and an input code corresponding to the first trigger instruction is a first input code; acquiring a first cloud input result according to a first trigger instruction; acquiring a second trigger instruction acting on the terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code; and displaying the first cloud input result when the first input code is consistent with the second input code. The design can effectively improve the return speed of the final cloud input result, is beneficial to the user to acquire the final cloud input result in a shorter time, and is beneficial to improving the preference rate of the input method and improving the use experience of the user.

Description

Input processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of input methods, and in particular, to an input processing method, apparatus, device, and storage medium.
Background
With the development of input method technology, the cloud input method is increasingly applied to various use scenes. The cloud input method is an input method applying a cloud computing technology, and can be used online without downloading and installing client software. Because the processing capacity of the cloud computing background is many times stronger than that of a computer used by a user, the accuracy rate of the cloud computing background is higher, and the cloud computing background gradually replaces a client input method.
In the existing cloud input technology, when a user releases a key displayed on a terminal device, the terminal device acquires a trigger instruction, and a cloud input request is initiated according to the trigger instruction to obtain a cloud input result.
However, after the user releases the key to complete input of the input code, the terminal device initiates a cloud input request to the cloud server, which results in slow return of the cloud input result, and there is a time delay in acquiring the cloud input result by the user, so that the user experience is affected.
Disclosure of Invention
The application provides an input processing method, an input processing device, input processing equipment and a storage medium, which are used for solving the problems of long return time and low efficiency of cloud input results.
In a first aspect, the present application provides an input processing method, including:
acquiring a first trigger instruction acting on terminal equipment, wherein the first trigger instruction is generated when an operation medium presses a key displayed on the terminal equipment, and an input code corresponding to the first trigger instruction is a first input code;
Acquiring a first cloud input result according to the first trigger instruction;
acquiring a second trigger instruction acting on terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code; and
and when the first input code is consistent with the second input code, displaying the first cloud input result.
Further, according to the first trigger instruction, obtaining a first cloud input result includes:
determining a first input code string according to the first trigger instruction, wherein the first input code string comprises the first input code and/or a historical input code;
and when the first input code string is a valid input code, acquiring the first cloud input result according to the first input code string.
Further, obtaining the first cloud input result according to the first input code string includes:
determining whether a local cloud input result corresponding to the first input code string exists or not according to the first input code string and the local cloud input result;
and if so, taking the local cloud input result corresponding to the first input code string as the first cloud input result and displaying the first cloud input result.
Further, the method further comprises:
if the first input code string does not exist, sending an acquisition request to a cloud server, wherein the acquisition request comprises sending the first input code string;
receiving and displaying the first cloud input result returned by the cloud server, and
receiving third cloud input results respectively corresponding to N first association code strings, wherein the first association code strings are code strings matched with the first input code strings, and N is a positive integer greater than or equal to 1;
and storing the third cloud input result to the local area to form the local cloud input result.
Further, when the first input code string is a valid input code, before the first cloud input result is obtained according to the first input code string, the method further includes:
and if the length of the first input code string is greater than the set threshold value and the word frequency of the accurate matching word corresponding to the first input code is lower than the set threshold value, determining that the first input code string is an effective input code.
Further, the method further comprises:
determining a second input code string according to the second trigger instruction when the first input code string is not a valid input code, wherein the second input code string comprises the second input code and/or a historical input code;
Acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code;
and displaying the second cloud input result.
Further, the method further comprises:
when the first input code is inconsistent with the second input code, determining a second input code string according to the second trigger instruction, wherein the second input code string comprises the second input code and/or a historical input code;
acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code;
and displaying the second cloud input result.
In a second aspect, the present application provides an input processing apparatus comprising:
the terminal equipment comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a first trigger instruction acting on the terminal equipment, the first trigger instruction is generated when an operation medium presses a key displayed on the terminal equipment, and an input code corresponding to the first trigger instruction is a first input code;
the first processing unit is used for acquiring a first cloud input result according to the first trigger instruction;
the second acquisition unit is used for acquiring a second trigger instruction acting on the terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code;
And the second processing unit is used for displaying the first cloud input result when the first input code is consistent with the second input code.
Further, the first processing unit includes:
the first processing subunit is used for determining a first input code string according to the first trigger instruction, wherein the first input code string comprises the first input code and/or a historical input code;
and the second processing subunit is used for acquiring the first cloud input result according to the first input code string when the first input code string is a valid input code.
Further, the second processing subunit includes:
the first processing module is used for determining whether a local cloud input result corresponding to the first input code string exists or not according to the first input code string and the local cloud input result;
and the second processing module is used for taking the local cloud input result corresponding to the first input code string as the first cloud input result when the local cloud input result corresponding to the first input code string exists.
Further, the second processing subunit further includes:
a third processing module, configured to send an acquisition request to a cloud server when there is no local cloud input result corresponding to the first input code string, and receive the first cloud input result returned by the cloud server,
Wherein the third processing module comprises:
the first processing submodule is used for sending an acquisition request to the cloud server, and the acquisition request comprises the first input code string;
the second processing submodule is used for receiving the first cloud input result returned by the cloud server and third cloud input results corresponding to N first association code strings respectively, wherein the first association code strings are code strings matched with the first input code strings, and N is a positive integer greater than or equal to 1;
and the third processing sub-module is used for storing the third cloud input result to the local area to form the local cloud input result.
Further, if the length of the first input code string is greater than a set threshold value and the word frequency of the accurate matching word corresponding to the first input code is lower than the set threshold value, determining that the first input code string is a valid input code.
Further, the apparatus further comprises:
and the third processing unit is used for determining and displaying a second cloud input result when the first input code string is not a valid input code or the first input code is inconsistent with the second input code.
Further, the third processing unit includes:
the first processing subunit is used for determining a second input code string according to the second trigger instruction, wherein the second input code string comprises the second input code and/or a history input code;
And the second processing subunit is used for acquiring and displaying a second cloud input result according to the second input code string when the second input code string is a valid input code.
In a third aspect, the present application provides an input processing device comprising: a processor, a memory, and a computer program;
wherein the computer program is stored in a memory and configured to be executed by a processor to implement the method of any of the above.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to perform a method as any one of the above.
According to the input processing method, the input processing device, the input processing equipment and the storage medium, a first trigger instruction acting on the terminal equipment is obtained, and the first trigger instruction is generated when the operation medium presses a key displayed on the terminal equipment; acquiring a first cloud input result according to a first trigger instruction; acquiring a second trigger instruction, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment; determining a final cloud input result according to the first trigger instruction and the second trigger instruction, and displaying the final cloud input result, wherein the final cloud input result is a first cloud input result or a second cloud input result corresponding to the second trigger instruction. When an operating medium presses a key displayed on a terminal device, a first trigger instruction acting on the terminal device is obtained, a first cloud input result is obtained according to the first trigger instruction, and the final cloud input result is the first cloud input result or a second cloud input result corresponding to the second trigger instruction. When the content of the first trigger instruction is the same as that of the second trigger instruction, the corresponding first cloud input result is the same as that of the second cloud input result, and the final cloud input result is the first cloud input result, namely, the final cloud input result is determined to be completed before the operation medium releases the key on the terminal equipment, so that the return speed of the final cloud input result is effectively improved, the work efficiency of the cloud input process is improved, a user can acquire the cloud input result in a shorter time, the situation that the flickering preferred word is not the cloud input result with higher accuracy rate can be effectively avoided, the situation that the user selects the input result to be wrong can be effectively avoided, the preference rate of the input method is improved, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic flow chart of an input processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of another input processing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of another input processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an input processing device according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another input processing device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an input processing device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The application scene is as follows: with the development of input method technology, the cloud input method is increasingly applied to various use scenes. In the existing cloud input technology, when a user releases a key displayed on a terminal device, the terminal device acquires a trigger instruction, and a cloud input request is initiated according to the trigger instruction to obtain a cloud input result. However, after the user releases the key to complete input of the input code, the terminal device initiates a cloud input request to the cloud server, which results in slow return of the cloud input result, and there is a time delay in acquiring the cloud input result by the user, so that the user experience is affected.
The input processing method, device, equipment and storage medium provided by the application aim to solve the technical problems in the prior art.
Fig. 1 is a flow chart of an input processing method provided in an embodiment of the present application, as shown in fig. 1, the method includes:
step 101, a first trigger instruction acting on the terminal equipment is obtained, wherein the first trigger instruction is generated when an operating medium presses a key displayed on the terminal equipment, and an input code corresponding to the first trigger instruction is a first input code.
In this embodiment, specifically, the execution body of this embodiment is a terminal device, or a controller, a server, or other devices or apparatuses capable of executing this embodiment. In this embodiment, the execution body is used as a terminal device to describe, and application software may be set in the terminal device, and then the terminal device controls the application software to execute the method provided in this embodiment.
In this embodiment, the operation medium is used as a user to explain, when the user performs a triggering operation on a key displayed on the terminal device, due to factors such as finger sliding, excessive touch area, and long-time key, there may be a plurality of keys triggered during the triggering operation, and the key triggered during the user key may be different from the key triggered during the user key release. And acquiring a first trigger instruction acting on the terminal equipment, wherein the first trigger instruction is generated when a user presses a key displayed on the terminal equipment. When a user presses a key displayed on the terminal device, the terminal device can acquire a first input code corresponding to the key. And acquiring a first trigger instruction, namely acquiring a first input code input when a user presses a key displayed on the terminal equipment.
For example, when a user performs a triggering operation on a 26-grid key displayed on a mobile phone, since a finger slides, there may be a plurality of keys triggered during the triggering operation, the key triggered when the user key is g, and the key triggered when the user key is released is y. And acquiring a first trigger instruction generated when the user presses a key g displayed on the mobile phone, namely acquiring a first input code g input when the user presses the key g displayed on the mobile phone.
Step 102, acquiring a first cloud input result according to a first trigger instruction.
In this embodiment, specifically, according to a first trigger instruction generated when an acquired user presses a key displayed on a terminal device, an acquisition request is sent to a cloud server, where the acquisition request includes input code content indicated by the first trigger instruction, and waits for receiving a first input result corresponding to the acquisition request returned by the cloud server.
Step 103, acquiring a second trigger instruction acting on the terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code;
in this embodiment, specifically, in the process of releasing the key of the user, the key on the terminal device is still triggered, and the second trigger instruction is generated when the user releases the key displayed on the terminal device. When the user releases the key displayed on the terminal device, the terminal device can acquire a second input code corresponding to the released key. And acquiring a second trigger instruction, namely acquiring a second input code input by a user when releasing a key displayed on the terminal equipment.
For example, a second trigger instruction generated when the user releases the key y displayed on the mobile phone is obtained, that is, the input code y input by the user when the user releases the key y displayed on the mobile phone is obtained.
And 104, displaying a first cloud input result when the first input code is consistent with the second input code.
In this embodiment, specifically, the key triggered when the user key is pressed and the key triggered when the user key is released may be different or the same, i.e. the contents of the first input code and the second input code may be different or the same. And when the first trigger instruction is consistent with the second trigger instruction, displaying a first cloud input result.
The first triggering instruction acting on the terminal equipment is obtained, wherein the first triggering instruction is generated when the operating medium presses a key displayed on the terminal equipment, and an input code corresponding to the first triggering instruction is a first input code; acquiring a first cloud input result according to a first trigger instruction; acquiring a second trigger instruction acting on the terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code; and displaying the first cloud input result when the first input code is consistent with the second input code. When the content of the first trigger instruction is the same as that of the second trigger instruction, a first cloud input result is displayed, namely, the final cloud input result is determined to be completed before the operation medium releases the key on the terminal equipment, so that the return speed of the final cloud input result is effectively improved, the work efficiency of the cloud input process is improved, the cloud input result can be obtained in a shorter time by a user, the situation that the flickering preferred word is not the cloud input result with higher accuracy rate can be effectively avoided, the situation that the user selects the input result to be wrong can be effectively avoided, the preference rate of the input method is improved, and the user experience is improved.
Fig. 2 is a flow chart of another input processing method according to an embodiment of the present application, as shown in fig. 2, where the method includes:
step 201, a first trigger instruction acting on the terminal device is obtained, wherein the first trigger instruction is generated when an operation medium presses a key displayed on the terminal device, and an input code corresponding to the first trigger instruction is a first input code.
In this embodiment, the step may be referred to as step 101 in fig. 1, and will not be described again.
Step 202, determining a first input code string according to a first trigger instruction, wherein the first input code string comprises a first input code and/or a historical input code.
In this embodiment, specifically, when the user presses a key displayed on the terminal device, a first trigger instruction acting on the terminal device is obtained, where the first trigger instruction indicates a first input code corresponding to the user pressing the key. The first input code forms a current input code, the current input code is separated from all input codes in the last screen operation period to form a historical input code, the screen operation refers to the operation of acquiring a selection instruction of a user on an input result and inserting the input result into a target application, and the input result can be a final cloud input result or a local input result. The historical input codes and the current input codes form a first input code string, and the sequence of the input codes in the first input code string is the same as the sequence of the input time.
For example, the key triggered when the user presses the key is y, and according to the first trigger instruction, the first input code y input by the user when the user presses the key is obtained, where the first input code y is the current input code. All input codes waihc during the last screen operation of the current input code y form a historical input code, and the historical input code waihc and the current input code y form a first input code string waihcy. The sequence of the input codes in the first input code string is the same as the sequence of the input time.
Step 203, when the first input code string is a valid input code, acquiring a first cloud input result according to the first input code string.
When the length of the first input code string is larger than a set threshold value and the word frequency of the accurate matching word corresponding to the first input code string is smaller than the set threshold value, determining that the first input code string is an effective input code, wherein the complete input code corresponding to the accurate matching word is identical to the first input code string. For example, when the first input code string is tiwen, the candidate word "question" and "body temperature" are exact match words corresponding to the first input code string, and the candidate word "body commission" is not an exact match word corresponding to the first input code string, where the candidate word "question" corresponds to the complete input code "t iwen" and is identical to the first input code string tiwen. Each word corresponds to a word frequency, the word frequency of the word is marked behind the word in a database, and a word is obtained, namely, the word frequency corresponding to the word can be obtained. Generally, the frequency of occurrence of a word in a statistical network in all sample documents is used as the word frequency of the word. When the word frequency of the precisely matched word is higher than a set threshold value, judging that the word is higher in use frequency, and acquiring the word in a local fixed word stock is more likely, a cloud input result is not required to be acquired, and determining that the first input code string is not an effective input code; when the word frequency of the precisely matched word is lower than a set threshold value, judging that the word is low in use frequency, and the word can not be accurately acquired in a local fixed word stock, judging that a cloud input result is required to be acquired, and determining that the first input code string is an effective input code.
Optionally, step 203 further includes: determining whether a local cloud input result corresponding to the first input code string exists or not according to the first input code string and the local cloud input result; and if the first cloud input result exists, taking the local cloud input result corresponding to the first input code string as the first cloud input result. If the first input code string does not exist, sending an acquisition request to a cloud server, wherein the acquisition request comprises the first input code string; and receiving a first cloud input result returned by the cloud server and a third cloud input result corresponding to the first associated code string, wherein the first associated code string is at least one associated code string which is determined by the cloud server according to the first input code string and is matched with the first input code string.
In this embodiment, specifically, when determining the first cloud input result according to the first input code string, it is first determined whether a local cloud input result corresponding to the first input code string is cached locally, if so, the local cloud input result corresponding to the first input code string is directly used as the first cloud input result and returned to the terminal device.
When a local cloud input result corresponding to the first input code string is not cached locally, sending an acquisition request to a cloud server, wherein the acquisition request comprises the first input code string; and receiving and displaying a first cloud input result returned by the cloud server, and receiving third cloud input results respectively corresponding to N first association code strings, wherein the first association code strings are code strings matched with the first input code strings, and N is a positive integer greater than or equal to 1. The method for determining the first association code string by the cloud server comprises the following steps: and determining at least one associated code string matched with the first input code string as the first associated code string according to the first input code string, specifically, counting the associated word frequency among the input codes input by the user in a preset time period according to the counted user behavior historical data, and taking the input code with the associated word frequency exceeding a set threshold value as the associated input code, wherein the associated input code and the first input code string form the first associated code string. For example, according to the obtained first trigger instruction, the determined first input code string is tiga, the input codes determined that word frequencies associated with the first input code string tiga exceed the set threshold include n, o, and ng, the input codes n, o, and ng are determined as associated input codes, and the associated input codes and the first input code string form a first associated code string: tigan, tigao, tigang. Receiving a first cloud input result returned by the cloud server and a third cloud input result corresponding to the first associated code string, namely receiving a first cloud input result Tiga corresponding to the first input code string Tiga returned by the cloud server, and acquiring third cloud input results 'somatosensory', 'improving', 'outline' corresponding to the first associated code strings tigan, tigao and t igang. And storing the third cloud input result to the local to form the local cloud input result. When the first trigger instruction acting on the terminal equipment is obtained again, the first trigger instruction is generated when the user presses a key displayed on the terminal equipment, and when the first trigger instruction determines that the first input code string is t igao, the local cloud input result 'improvement' corresponding to the first input code string tigao can be directly obtained in the local cache and used as the first cloud input result. When a first cloud input result is determined according to a first input code string, whether a local cloud input result corresponding to the first input code string is cached or not is judged firstly, if so, the local cloud input result corresponding to the first input code string is directly used as the first cloud input result and is returned to the terminal equipment, and the design effectively improves the return speed of the final cloud input result, is beneficial to improving the working efficiency of the cloud input process, and can realize that a user obtains the cloud input result in a shorter time.
And storing the third cloud input result into a local cache word stock to form a local cloud input result. The local cache word stock is different from the local fixed word stock, and the local cache word stock and the local fixed word stock are not directly connected. The local fixed word stock stores words with higher use frequency, and when the first input code string is not a valid code, an input result is directly obtained from the local fixed word stock. The local cache word stock is used for temporarily storing the local cloud input result, and when the memory size of the local cache word stock is exceeded, the first stored part of the local cloud input result is released.
Step 204, a second trigger instruction acting on the terminal device is obtained, wherein the second trigger instruction is generated when the operating medium releases the key displayed on the terminal device, and the input code corresponding to the second trigger instruction is a second input code.
In this embodiment, the step may be referred to as step 103 in fig. 1, and will not be described again.
Step 205, when the first input code is consistent with the second input code, displaying a first cloud input result; and when the first input code is inconsistent with the second input code, acquiring and displaying a second cloud input result according to the second trigger instruction.
Optionally, step 205 includes: when the first input code is inconsistent with the second input code or the first input code string is not a valid input code, determining the second input code string according to a second trigger instruction, wherein the second input code string comprises the second input code and/or a historical input code; and under the condition that the second input code string is a valid input code, acquiring a second cloud input result according to the second input code string, and displaying the second cloud input result.
In this embodiment, specifically, the first trigger instruction is generated when the operating medium presses a key displayed on the terminal device, and the second trigger instruction is generated when the operating medium releases the key displayed on the terminal device. When the first input code string is not a valid input code, determining a second input code string according to a second trigger instruction, wherein the second input code string comprises an input code and/or a history input code corresponding to the key; acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code; and determining the second cloud input result as a final cloud input result. The process may refer to step 203 in fig. 2, and will not be described again.
And under the condition that the first input code string is not a valid input code, determining a second cloud input result corresponding to the second trigger instruction as a final cloud input result. And determining the local input result as a final cloud input result in the case that the second input code string is not a valid input code.
The method for displaying the final cloud input result comprises the steps of displaying the final cloud input result in a special position of the cloud input result, and directly replacing the forefront local input result with the final cloud input result for displaying, or placing the final cloud input result in the front end position of the local input result for displaying.
The first triggering instruction acting on the terminal equipment is obtained, wherein the first triggering instruction is generated when the operating medium presses a key displayed on the terminal equipment; determining a first input code string according to the first trigger instruction, wherein the first input code string comprises a first input code and/or a historical input code corresponding to the key; under the condition that the first input code string is a valid input code, acquiring a first cloud input result according to the first input code string; acquiring a second trigger instruction, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment; when the first input code is consistent with the second input code, determining that the first cloud input result is a final cloud input result; and when the first input code is inconsistent with the second input code, determining the second cloud input result as a final cloud input result. When the first input code is consistent with the second input code, determining that the final cloud input result is the first cloud input result, namely determining that the final cloud input result is finished before the key displayed on the terminal equipment is released by the operation medium. Meanwhile, when the first cloud input result is determined according to the first input code string, whether the local cloud input result corresponding to the first input code string is cached or not is judged firstly, if so, the local cloud input result corresponding to the first input code string is directly used as the first cloud input result and is returned to the terminal equipment, so that the return speed of the final cloud input result is effectively improved, the work efficiency of the cloud input process is improved, a user can acquire the cloud input result in a shorter time, the situation that the flickering preferred word is not the cloud input result with higher accuracy rate can be effectively avoided, the situation that the user selects the input result to be wrong can be effectively avoided, the preference rate of the input method is improved, and the user experience is improved. Meanwhile, the final cloud input result is directly displayed instead of the forefront local input result, or is displayed at the front end of the local input result, so that the return speed of the final cloud input result can be improved, a user can quickly obtain the final cloud input result with higher accuracy, and the situation that the user performs false selection due to the flickering of the preference word can be effectively avoided.
Fig. 3 is a schematic flow chart of another input processing method provided in the embodiment of the present application, and the input processing process described in fig. 2 may refer to steps 201 to 205 in fig. 2, which is not repeated.
Fig. 4 is a schematic structural diagram of an input processing device according to an embodiment of the present application, as shown in fig. 4, where the device includes:
the first acquiring unit 1 is configured to acquire a first trigger instruction acting on the terminal device, where the first trigger instruction is generated when the operating medium presses a key displayed on the terminal device;
the first acquiring unit 1 is configured to acquire a first trigger instruction acting on the terminal device, where the first trigger instruction is generated when the operating medium presses a key displayed on the terminal device, and an input code corresponding to the first trigger instruction is a first input code;
the first processing unit 2 is used for acquiring a first cloud input result according to a first trigger instruction;
a second obtaining unit 3, configured to obtain a second trigger instruction acting on the terminal device, where the second trigger instruction is generated when the operating medium releases a key displayed on the terminal device, and an input code corresponding to the second trigger instruction is a second input code;
the second processing unit 4 is configured to display a first cloud input result when the first input code is consistent with the second input code.
The first triggering instruction acting on the terminal equipment is obtained, wherein the first triggering instruction is generated when the operating medium presses a key displayed on the terminal equipment, and an input code corresponding to the first triggering instruction is a first input code; acquiring a first cloud input result according to a first trigger instruction; acquiring a second trigger instruction acting on the terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code; and displaying the first cloud input result when the first input code is consistent with the second input code. When the content of the first trigger instruction is the same as that of the second trigger instruction, a first cloud input result is displayed, namely, the final cloud input result is determined to be completed before the operation medium releases the key on the terminal equipment, so that the return speed of the final cloud input result is effectively improved, the work efficiency of the cloud input process is improved, the cloud input result can be obtained in a shorter time by a user, the situation that the flickering preferred word is not the cloud input result with higher accuracy rate can be effectively avoided, the situation that the user selects the input result to be wrong can be effectively avoided, the preference rate of the input method is improved, and the user experience is improved.
Fig. 5 is a schematic structural diagram of another input processing device according to an embodiment of the present application, and on the basis of the embodiment shown in fig. 3, as shown in fig. 5,
the first processing unit 2 includes:
a first processing subunit 21, configured to determine a first input code string according to the first trigger instruction, where the first input code string includes a first input code and/or a history input code;
the second processing subunit 22 is configured to obtain, when the first input code string is a valid input code, a first cloud input result according to the first input code string.
The second processing subunit 22 comprises:
a first processing module 221, configured to determine whether a local cloud input result corresponding to the first input code string exists according to the first input code string and the local cloud input result;
the second processing module 222 is configured to, when there is a local cloud input result corresponding to the first input code string, take the local cloud input result corresponding to the first input code string as the first cloud input result.
A second processing subunit 22, further comprising
The third processing module 223 is configured to send an acquisition request to the cloud server and receive the first cloud input result returned by the cloud server when there is no local cloud input result corresponding to the first input code string.
The third processing module 223 includes:
a first processing sub-module 2231, configured to send an acquisition request to the cloud server, where the acquisition request includes a first input code string;
the second processing sub-module 2232 is configured to receive a first cloud input result returned by the cloud server and third cloud input results corresponding to N first association code strings respectively, where the first association code string is a code string matched with the first input code string, and N is a positive integer greater than or equal to 1;
the third processing sub-module 2233 is configured to store the third cloud input result to the local area, so as to form a local cloud input result.
If the length of the first input code string is greater than the set threshold value and the word frequency of the words matched with the first input code string is less than the preset frequency, determining that the first input code string is an effective input code.
The device of this embodiment further includes:
and the third processing unit 5 is configured to determine and display a second cloud input result when the first input code string is not a valid input code or the first input code is inconsistent with the second input code.
The third processing unit 5 includes:
a first processing subunit 51, configured to determine a second input code string according to the second trigger instruction, where the second input code string includes a second input code and/or a history input code;
And the second processing subunit 52 is configured to obtain and display a second cloud input result according to the second input code string when the second input code string is a valid input code.
The first triggering instruction acting on the terminal equipment is obtained, wherein the first triggering instruction is generated when the operating medium presses a key displayed on the terminal equipment; determining a first input code string according to the first trigger instruction, wherein the first input code string comprises a first input code and/or a historical input code corresponding to the key; under the condition that the first input code string is a valid input code, acquiring a first cloud input result according to the first input code string; acquiring a second trigger instruction, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment; when the first input code is consistent with the second input code, determining that the first cloud input result is a final cloud input result; and when the first input code is inconsistent with the second input code, determining the second cloud input result as a final cloud input result. When the first input code is consistent with the second input code, determining that the final cloud input result is the first cloud input result, namely determining that the final cloud input result is finished before the key displayed on the terminal equipment is released by the operation medium. Meanwhile, when the first cloud input result is determined according to the first input code string, whether the local cloud input result corresponding to the first input code string is cached or not is judged firstly, if so, the local cloud input result corresponding to the first input code string is directly used as the first cloud input result and is returned to the terminal equipment, so that the return speed of the final cloud input result is effectively improved, the work efficiency of the cloud input process is improved, a user can acquire the cloud input result in a shorter time, the situation that the flickering preferred word is not the cloud input result with higher accuracy rate can be effectively avoided, the situation that the user selects the input result to be wrong can be effectively avoided, the preference rate of the input method is improved, and the user experience is improved. Meanwhile, the final cloud input result is directly displayed instead of the forefront local input result, or is displayed at the front end of the local input result, so that the return speed of the final cloud input result can be improved, a user can quickly obtain the final cloud input result with higher accuracy, and the situation that the user performs false selection due to the flickering of the preference word can be effectively avoided.
Fig. 6 is a schematic structural diagram of an input processing device provided in the embodiment of the present application, and as shown in fig. 6, the embodiment of the present application provides an input processing device, which may be used to execute the actions or steps of the input processing device in the embodiments shown in fig. 1 to 3, and specifically includes: a processor 601, a memory 602 and a communication interface 603.
Memory 602 for storing a computer program.
The processor 601 is configured to execute a computer program stored in the memory 602 to implement the actions of the input processing device in the embodiments shown in fig. 1-4, which are not described herein.
Optionally, the trajectory prediction device may also include a bus 604. Wherein the processor 601, the memory 602, and the communication interface 603 may be connected to each other through a bus 604; bus 604 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus 604 may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
In the embodiments of the present application, the foregoing embodiments may be referred to and referred to each other, and the same or similar steps and terms are not repeated herein.
Alternatively, part or all of the above modules may be implemented in the form of an integrated circuit embedded on a certain chip of the trajectory prediction device. And they may be implemented separately or integrated together. That is, the above modules may be configured as one or more integrated circuits implementing the above methods, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), or one or more microprocessors (Digital Singnal Processor, DSP for short), or one or more field programmable gate arrays (Field Programmable Gate Array, FPGA for short)
A computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the above-described processing method.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means from one website site, computer, track prediction device, or data center. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more integrated trajectory prediction devices, data centers, and the like. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (sol id state disk, SSD)), or the like.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An input processing method, comprising:
acquiring a first trigger instruction acting on terminal equipment, wherein the first trigger instruction is generated when an operation medium presses a key displayed on the terminal equipment, and an input code corresponding to the first trigger instruction is a first input code;
acquiring a first cloud input result according to the first trigger instruction;
acquiring a second trigger instruction acting on terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code; and
when the first input code is consistent with the second input code, displaying the first cloud input result;
when the first input code is inconsistent with the second input code, determining a second input code string according to the second trigger instruction, wherein the second input code string comprises the second input code and/or a historical input code;
Acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code;
and displaying the second cloud input result.
2. The method of claim 1, wherein obtaining a first cloud input result according to the first trigger instruction comprises:
determining a first input code string according to the first trigger instruction, wherein the first input code string comprises the first input code and/or a historical input code;
and when the first input code string is a valid input code, acquiring the first cloud input result according to the first input code string.
3. The method of claim 2, wherein obtaining the first cloud input result from the first input code string comprises:
determining whether a local cloud input result corresponding to the first input code string exists or not according to the first input code string and the local cloud input result;
and if so, taking the local cloud input result corresponding to the first input code string as the first cloud input result and displaying the first cloud input result.
4. A method according to claim 3, characterized in that the method further comprises:
If the first input code string does not exist, sending an acquisition request to a cloud server, wherein the acquisition request comprises sending the first input code string;
receiving and displaying the first cloud input result returned by the cloud server, and
receiving third cloud input results respectively corresponding to N first association code strings, wherein the first association code strings are code strings matched with the first input code strings, and N is a positive integer greater than or equal to 1;
and storing the third cloud input result to the local area to form the local cloud input result.
5. The method of claim 2, wherein when the first input code string is a valid input code, prior to obtaining the first cloud input result from the first input code string, further comprising:
and if the length of the first input code string is greater than the set threshold value and the word frequency of the accurate matching word corresponding to the first input code is lower than the set threshold value, determining that the first input code string is an effective input code.
6. The method according to claim 2, characterized in that the method further comprises:
when the first input code string is not a valid input code, determining the second input code string according to the second trigger instruction;
Acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code;
and displaying the second cloud input result.
7. An input processing device, comprising:
the terminal equipment comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a first trigger instruction acting on the terminal equipment, the first trigger instruction is generated when an operation medium presses a key displayed on the terminal equipment, and an input code corresponding to the first trigger instruction is a first input code;
the first processing unit is used for acquiring a first cloud input result according to the first trigger instruction;
the second acquisition unit is used for acquiring a second trigger instruction acting on the terminal equipment, wherein the second trigger instruction is generated when the operating medium releases a key displayed on the terminal equipment, and an input code corresponding to the second trigger instruction is a second input code;
the second processing unit is used for displaying the first cloud input result when the first input code is consistent with the second input code;
the third processing unit is used for determining a second input code string according to the second trigger instruction when the first input code is inconsistent with the second input code, wherein the second input code string comprises the second input code and/or a history input code;
Acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code;
and displaying the second cloud input result.
8. The apparatus of claim 7, wherein the first processing unit comprises:
the first processing subunit is used for determining a first input code string according to the first trigger instruction, wherein the first input code string comprises the first input code and/or a historical input code;
and the second processing subunit is used for acquiring the first cloud input result according to the first input code string when the first input code string is a valid input code.
9. The apparatus of claim 8, wherein the second processing subunit comprises:
the first processing module is used for determining whether a local cloud input result corresponding to the first input code string exists or not according to the first input code string and the local cloud input result;
and the second processing module is used for taking the local cloud input result corresponding to the first input code string as the first cloud input result when the local cloud input result corresponding to the first input code string exists.
10. The apparatus of claim 9, wherein the second processing subunit further comprises:
A third processing module, configured to send an acquisition request to a cloud server when there is no local cloud input result corresponding to the first input code string, and receive the first cloud input result returned by the cloud server,
wherein the third processing module comprises:
the first processing submodule is used for sending an acquisition request to the cloud server, and the acquisition request comprises the first input code string;
the second processing submodule is used for receiving the first cloud input result returned by the cloud server and third cloud input results corresponding to N first association code strings respectively, wherein the first association code strings are code strings matched with the first input code strings, and N is a positive integer greater than or equal to 1;
and the third processing sub-module is used for storing the third cloud input result to the local area to form the local cloud input result.
11. The apparatus of claim 10, wherein the first input code string is determined to be a valid input code if the first input code string length is greater than a set threshold and the word frequency of the exact match word to which the first input code corresponds is less than the set threshold.
12. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
The third processing unit is configured to determine, when the first input code string is not a valid input code, the second input code string according to the second trigger instruction;
acquiring a second cloud input result according to the second input code string under the condition that the second input code string is a valid input code;
and displaying the second cloud input result.
13. An input processing device, comprising: a processor, a memory, and a computer program;
wherein the computer program is stored in a memory and configured to be executed by a processor to implement the method of any one of claims 1-6.
14. A computer readable storage medium having stored thereon a computer program for execution by a processor to implement a method according to any one of claims 1-6.
CN201910403622.1A 2019-05-15 2019-05-15 Input processing method, device, equipment and storage medium Active CN110297549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910403622.1A CN110297549B (en) 2019-05-15 2019-05-15 Input processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910403622.1A CN110297549B (en) 2019-05-15 2019-05-15 Input processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110297549A CN110297549A (en) 2019-10-01
CN110297549B true CN110297549B (en) 2023-06-20

Family

ID=68026818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910403622.1A Active CN110297549B (en) 2019-05-15 2019-05-15 Input processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110297549B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2684823A1 (en) * 2009-11-06 2011-05-06 Research In Motion Limited Portable electronic device and method of information rendering on portable electronic device
CN105141570A (en) * 2014-06-05 2015-12-09 腾讯科技(深圳)有限公司 Information processing method, client and server
CN107145242A (en) * 2017-03-24 2017-09-08 北京百度网讯科技有限公司 Error correction term methods of exhibiting, device, equipment and storage medium
CA2980789A1 (en) * 2017-09-28 2019-03-28 The Toronto-Dominion Bank System and method to perform an undo operation using a continuous gesture

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316211B (en) * 2010-07-08 2014-06-18 腾讯科技(北京)有限公司 Method and device for realizing key acceleration
CN102520804A (en) * 2011-12-08 2012-06-27 周志农 Touch screen soft keyboard and input method
US20140198047A1 (en) * 2013-01-14 2014-07-17 Nuance Communications, Inc. Reducing error rates for touch based keyboards
CN104216648A (en) * 2013-05-30 2014-12-17 北京三星通信技术研究有限公司 Information input method and device
JP2015022590A (en) * 2013-07-19 2015-02-02 株式会社東芝 Character input apparatus, character input method, and character input program
CN103530057A (en) * 2013-10-28 2014-01-22 小米科技有限责任公司 Character input method, character input device and terminal equipment
CN103647843B (en) * 2013-12-20 2017-01-18 百度在线网络技术(北京)有限公司 Method and device for triggering and responding to cloud input requests
US10275152B2 (en) * 2014-10-28 2019-04-30 Idelan, Inc. Advanced methods and systems for text input error correction
CN106293428A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 The characters input method of touch control terminal
CN106484132B (en) * 2015-09-02 2021-05-25 北京搜狗科技发展有限公司 Input error correction method and input method device
CN107436691B (en) * 2016-05-26 2021-12-28 北京搜狗科技发展有限公司 Method, client, server and device for correcting errors of input method
CN107870677B (en) * 2016-09-23 2022-02-25 北京搜狗科技发展有限公司 Input method, input device and input device
CN107085471B (en) * 2017-04-25 2021-01-05 北京百度网讯科技有限公司 Input method error correction method and device based on user input speed
CN109144285B (en) * 2017-06-16 2022-09-06 北京搜狗科技发展有限公司 Input method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2684823A1 (en) * 2009-11-06 2011-05-06 Research In Motion Limited Portable electronic device and method of information rendering on portable electronic device
CN105141570A (en) * 2014-06-05 2015-12-09 腾讯科技(深圳)有限公司 Information processing method, client and server
CN107145242A (en) * 2017-03-24 2017-09-08 北京百度网讯科技有限公司 Error correction term methods of exhibiting, device, equipment and storage medium
CA2980789A1 (en) * 2017-09-28 2019-03-28 The Toronto-Dominion Bank System and method to perform an undo operation using a continuous gesture

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Adrienn Dineva ; József K. Tar.Application of fixed point transformation to classical model identification using new tuning rule.《2017 IEEE 15th International Symposium on Applied Machine Intelligence and Informatics (SAMI)》.2017,第265-270页. *
基于笔画的MeeGo手机操作系统输入法的设计与实现;李娅娅;《中国优秀硕士学位论文全文数据库 (信息科技辑)》(第8期);I138-711 *

Also Published As

Publication number Publication date
CN110297549A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN110519401B (en) Method, device, equipment and storage medium for improving network access success rate
US20150082242A1 (en) Providing Context Menu Based on Predicted Commands
CN110351115A (en) Reduce method, apparatus, computer equipment and the storage medium of network access time delay
CN110830234B (en) User traffic distribution method and device
CN108415657B (en) Message sending method, device, medium and electronic equipment
CN109246234B (en) Image file downloading method and device, electronic equipment and storage medium
CN111177513B (en) Determination method and device of abnormal access address, electronic equipment and storage medium
CN110955390B (en) Data processing method, device, electronic equipment and storage medium
CN115671723A (en) Resource processing method, device, equipment and medium
CN104024991B (en) Different event models are supported using single input source
CN110347578B (en) Application testing method and device and storage medium
CN111813307B (en) Application program display method and device and electronic equipment
CN110297549B (en) Input processing method, device, equipment and storage medium
KR20190065386A (en) Method, system and medium for pairing devices to complete a task using an application request
CN108574610B (en) Pressure testing method and device, electronic equipment and medium
CN111090515B (en) Access control method, device, terminal equipment and storage medium
CN111988195B (en) Response scheme determination method, device, equipment and medium for packet test
CN108009095B (en) Memory test method and related product
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN107169133B (en) Snapshot capturing method, device, server and system
CN108304433B (en) Data searching method and equipment, storage medium and server thereof
CN110888690A (en) Application starting method and device, electronic equipment and storage medium
CN110876852A (en) Network game data processing method and system of micro-service
CN114265537B (en) Display method and device for use mode of data center monitoring system
CN114390098B (en) Data transmission method and device, electronic equipment and storage medium

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