Word determination method and electronic device
By obtaining and establishing the association relationship between the characteristic information of touch input and the words on the screen in the electronic device, the problem of the decrease in input speed after the user changes the input method application is solved, and the input efficiency of maintaining the original input habit in the application of the new input method is achieved.
Patent Information
- Application Number
- CN202210681972.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-15
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-06-15
AI Technical Summary
When the user changes the input method application, the prior art cannot determine the user's input habits, resulting in a decrease in the input speed, and the user passively selects the original input method application.
By obtaining the characteristic information of the first touch input in the electronic device, including the input position, the identification information of the input method application and the device information, the association relationship between the input information and the upper screen words is established, and the corresponding upper screen words are determined after changing the input method application.
Even if the input method application is changed, the original input efficiency can still be maintained. Users can choose new input method applications at will to avoid passively selecting the original input method.
Smart Images

Figure CN114995663B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a method for determining a word and an electronic device. Background Art
[0002] In order to improve the input efficiency of users, input methods installed in electronic devices usually record input information and words frequently used by users.
[0003] In the related art, when a user wants to change to a new input method, the new input method is often required to re-record the user's input habits.
[0004] However, when a user enters a new message into a new input method, it cannot determine the user's input habits and can only display candidate words in a non-discriminatory manner. If the candidate words displayed do not contain the word the user wants to enter, the user needs to trigger the new input method to display more candidate words. Because this mechanism slows down the user's input speed, users often passively choose the original input method to maintain their original input speed. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a word determination method and electronic device that can solve the problem that users need to passively select existing input method applications.
[0006] In a first aspect, an embodiment of the present application provides a method for determining a word, the method comprising: receiving a first touch input from a user when the electronic device displays a first input interface; obtaining a first on-screen word and first feature information in response to the first touch input; determining the first input information corresponding to the first touch input based on the first feature information; determining the second on-screen word corresponding to the second touch input based on the association between the first input information and the first on-screen word when the electronic device displays a second input interface and receives a second touch input from the user; wherein the first feature information comprises: the input position of the first touch input, identification information of the input method application corresponding to the first input interface, and device information of the electronic device, the first input interface and the second input interface respectively corresponding to different input method applications.
[0007] In the second aspect, an embodiment of the present application provides a word determination device, including: a receiving module, an acquisition module and a processing module; the receiving module is used to receive the user's first touch input when the electronic device displays a first input interface; the acquisition module is used to obtain a first upper-screen word and first feature information in response to the first touch input; the processing module is used to determine the first input information corresponding to the first touch input based on the first feature information; when the electronic device displays a second input interface and receives the user's second touch input, the second upper-screen word corresponding to the second touch input is determined based on the association relationship between the first input information and the first upper-screen word; wherein the first feature information includes: the input position of the first touch input, the identification information of the input method application corresponding to the first input interface, and the device information of the electronic device, and the first input interface and the second input interface correspond to different input method applications respectively.
[0008] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0012] In an embodiment of the present application, when the electronic device displays a first input interface, it receives a first touch input from a user; in response to the first touch input, it obtains a first on-screen word and first feature information; and determines the first input information corresponding to the first touch input based on the first feature information; when the electronic device displays a second input interface and receives a second touch input from the user, it determines the second on-screen word corresponding to the second touch input based on the association between the first input information and the first on-screen word; wherein the first feature information includes: the input position of the first touch input, the identification information of the input method application corresponding to the first input interface, and the device information of the electronic device, and the first input interface and the second input interface correspond to different input method applications. Through this solution, since the first on-screen word and the first feature information can be obtained when the input method application corresponding to the first input interface is used, and the first input information having an association relationship with the first on-screen word is determined based on the first feature information, when the input method application corresponding to the second input interface is changed to the second input interface, the second on-screen word corresponding to the second touch input can be determined based on the association relationship between the first input information and the first on-screen word. In this way, even if the user switches to a new input method application, the input habits recorded in the original input method application can be retained, so that the user can freely choose a new input method application while maintaining the original input efficiency, thereby avoiding the problem of the user having to passively select the original input method application. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 1 is a flow chart of a method for determining a word provided in an embodiment of the present application;
[0014] Figure 2 Schematic diagram of the interface of the method for determining a word provided in an embodiment of the present application;
[0015] Figure 3 is a structural diagram of a device for determining a word provided in an embodiment of the present application;
[0016] Figure 4 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0017] Figure 5 This is a hardware diagram of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0019] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of a class, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character group " / " generally indicates that the objects connected are in an "or" relationship.
[0020] The following describes in detail the word determination method provided in the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0021] The method for determining a word provided in the embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the method for determining a word. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, wearable devices, etc. The method for determining a word provided in the embodiment of the present application is described below using an electronic device as an example of the execution subject.
[0022] like Figure 1 As shown, the embodiment of the present application provides a method for determining a word, which may include steps 101 to 104:
[0023] Step 101: When the electronic device displays a first input interface, the electronic device receives a first touch input from a user.
[0024] Optionally, when the electronic device displays the first input interface, if the user wants to input information in the input area of the first input interface, the electronic device can be triggered to display a virtual keyboard of the input method application corresponding to the first input interface. Thereafter, the user can perform a first touch input on the virtual keyboard, and accordingly, the electronic device can receive the user's first touch input.
[0025] Optionally, the first touch input may be a click input of a target character in a virtual keyboard of the first input interface by the user, or a swipe input of a handwriting area in a virtual keyboard of the first input interface by the user.
[0026] Optionally, the input method application corresponding to the first input interface may be a third-party input method application.
[0027] It should be noted that the above-mentioned first input interface refers to an interface for inputting information. For example, the first input interface can be an input interface of a note application, a search bar display interface of a search engine, etc.
[0028] Step 102: The electronic device obtains a first on-screen word and first feature information in response to the first touch input.
[0029] The first feature information may include: the input position of the first touch input, identification information of the input method application corresponding to the first input interface, and device information of the electronic device.
[0030] Optionally, the electronic device obtains the first on-screen word and the first characteristic information in response to the first touch input, which may specifically include: the electronic device may obtain the first characteristic information and the running timestamp of the input method application corresponding to the first input interface in response to the first touch input; and obtain the first on-screen word displayed in the first input interface based on the running timestamp.
[0031] Optionally, after receiving the user's first touch input, the electronic device can respond to the first touch input, obtain the input position of the first touch input through the touch module of the electronic device, and obtain the identification information of the input method application corresponding to the first input interface, the device information of the electronic device, and the running timestamp of the input method application corresponding to the first input interface through the artificial intelligence engine module of the electronic device.
[0032] Specifically, after receiving the user's first touch input, the electronic device can, in response to the first touch input, obtain the first feature information and the running timestamp of the input method application corresponding to the first input interface, and display at least one candidate word in the candidate word display area of the virtual keyboard of the first input interface. Afterwards, the user can click to input a target candidate word among the at least one candidate word, and the electronic device can, in response to the click input, display the target candidate word in the input area of the first input interface. Afterwards, the electronic device can obtain the first on-screen word corresponding to the running timestamp from the target candidate word displayed in the input area through the application to which the first input interface belongs.
[0033] For example, Figure 2As shown, after the electronic device runs the input method application corresponding to the first input interface, if the user enters the characters "p" and "g" in the virtual keyboard of the first input interface through the first touch input, the electronic device may display candidate words such as "apple," "evaluation," and "leather" in the candidate word display area 21 of the virtual keyboard. Subsequently, if the user clicks on the candidate word "apple," the electronic device may, in response to the click input, use the candidate word "apple" as the top-screen word for the characters "p" and "g" and display "apple" in the input area 22 of the first input interface. Subsequently, if the time period indicated by the execution timestamp includes the time when "apple" was displayed in the input area 22, "apple" may be used as the first top-screen word.
[0034] In an embodiment of the present application, since the running timestamp of the input method application corresponding to the first feature information and the first input interface can be obtained; and the first on-screen word displayed in the first input interface is obtained based on the running timestamp, the electronic device can determine the first on-screen word triggered by the first touch input when the user uses the input method application corresponding to the first input interface, thereby providing a basis for establishing an association relationship between the first input information and the first on-screen word.
[0035] Optionally, the device information of the electronic device may include at least one of the following: the model of the electronic device, the screen size of the electronic device, the display position of the virtual keyboard on the screen of the electronic device, etc.
[0036] Step 103: The electronic device determines first input information corresponding to the first touch input according to the first feature information.
[0037] Optionally, the electronic device determines the first input information corresponding to the first touch input based on the first feature information, which may specifically include: the electronic device determines the coordinate range of each virtual key in the first input interface based on the device information and the identification information; and determines the first input information based on the coordinate range to which the input position belongs.
[0038] For example, taking the first touch input as a user clicking on a target character in a virtual keyboard of a first input interface, and the target character being the character "p" as an example, the electronic device can determine, based on the device information and identification information, that the display coordinate range of the character "p" in the virtual keyboard of the first input interface on the electronic device screen is (5.0-5.3, 9.7-10.0). After receiving the first touch input, the electronic device can determine that the input position of the first touch input is (5.2, 9.8). Since the coordinates (5.2, 9.8) belong to the coordinate range (5.0-5.3, 9.7-10.0), the electronic device can determine that the first input information input by the user in the first input interface includes the character "p".
[0039] In an embodiment of the present application, since the first input information can be determined based on the first characteristic information, the electronic device can record the historical input information of the user when using the input method application corresponding to the first input interface, thereby providing a basis for establishing an association relationship between the first input information and the first on-screen word.
[0040] Optionally, the first input information may be a target character or a target graphic. If the first touch input is a user clicking on a target character on a virtual keyboard of the first input interface, the first input information is the target character; if the first touch input is a user swiping on a handwriting area of the virtual keyboard of the first input interface, the first input information is the target graphic.
[0041] Optionally, in the case where the first touch input is a user's swiping input on a handwriting area in a virtual keyboard of a first input interface, the electronic device determines the first input information corresponding to the first touch input based on the first feature information, which may specifically include: the electronic device determines the coordinate range of the handwriting area in the virtual keyboard based on the device information and the identification information; and then determines the first input information based on the user's input position within the coordinate range of the handwriting area, where the first input information is a target graphic.
[0042] Optionally, the electronic device may establish an association relationship between the first input information and the first on-screen word, and store the association relationship in a historical input record.
[0043] It should be noted that, after obtaining the first input information and the first on-screen word, the electronic device can send the first input information and the first on-screen word to the server, and then establish an association relationship between the first input information and the first on-screen word through the server, and store the association relationship in the historical input record; or it can first establish an association relationship between the first input information and the first on-screen word, and then after storing the association relationship in the historical input record, send the updated historical input record to the server.
[0044] In an embodiment of the present application, since an association relationship can be established between the first input information and the first on-screen word, and the association relationship can be stored in the historical input record, when the user triggers the electronic device to switch the input method application, the electronic device can still determine the user's input habits based on the historical input record, thereby improving the user's input efficiency when using other input method applications.
[0045] Step 104: When the electronic device displays a second input interface and receives a second touch input from the user, determine a second on-screen word corresponding to the second touch input based on the association between the first input information and the first on-screen word.
[0046] The first input interface and the second input interface may correspond to different input method applications, respectively. The input method application corresponding to the second input interface may be a self-developed application of the electronic device, that is, an input method application that comes with the electronic device when it leaves the factory.
[0047] Optionally, when the electronic device runs the input method application corresponding to the second input interface, that is, the electronic device displays the second input interface, if the electronic device receives the second touch input of the user on the second input interface, the electronic device can obtain the historical input record.
[0048] Specifically, when the user controls the electronic device to switch from running the input method application corresponding to the first input interface to running the input method application corresponding to the second input interface; or, when the user changes the electronic device and controls the replaced electronic device to run the input method application corresponding to the second input interface, if the electronic device receives the user's second touch input to the second input interface, the electronic device can obtain the historical input record of the input method application corresponding to the first input interface.
[0049] Optionally, the second touch input may be a user's touch input to the second input interface. For example, the touch input may be a user's click input on a target character in a virtual keyboard of the second input interface, or a user's swiping input on a handwriting area in a virtual keyboard of the second input interface.
[0050] Optionally, the electronic device determines the second upper screen word corresponding to the second touch input based on the association relationship between the first input information and the first upper screen word, which may specifically include: the electronic device determines the second input information corresponding to the second touch input; when the first input information includes the second input information, based on the association relationship between the first input information and the first upper screen word, determines the first upper screen word as the second upper screen word corresponding to the second touch input.
[0051] Specifically, since the input method application corresponding to the second input interface can be a self-developed application of the electronic device, when the user performs a second touch input on the second input interface, the electronic device can directly obtain the second input information corresponding to the second touch input. Afterwards, the electronic device can determine whether the first input information of the historical input record includes the second input information. If included, the electronic device can determine the first upper screen word as the second upper screen word corresponding to the second touch input based on the association between the first input information and the first upper screen word.
[0052] In an embodiment of the present application, since the first upper-screen word can be determined as the second upper-screen word corresponding to the second touch input based on the association between the first input information and the first upper-screen word, even if the user changes the electronic device or changes the input method application, the input habits recorded in the input method application corresponding to the first input interface can still be retained, thereby avoiding the problem that the user can only passively select the original input method application.
[0053] Optionally, after determining the second word on the screen, the electronic device may preferentially display the second word on the screen in the candidate word display area of the virtual keyboard of the second input interface, that is, the electronic device may display the second word on the screen in front of other candidate words. Figure 2 , when determining that the second upper-screen word corresponding to the character “p” and the character “g” is “apple”, the electronic device may display “apple” in front of “evaluation” and “leather”.
[0054] Optionally, the second on-screen words may include at least one on-screen word. When the number of the second on-screen words is greater than one, the electronic device may determine the display priority of each on-screen word according to the number of times each on-screen word in the second on-screen words appears on the screen. For example, if the second on-screen words include on-screen word 1 and on-screen word 2, where the number of times on-screen word 1 appears on the screen is 3 and the number of times on-screen word 2 appears on the screen is 2, the electronic device may display on-screen word 1 before on-screen word 2.
[0055] In the embodiment of the present application, since the first on-screen word and the first characteristic information can be obtained when the input method application corresponding to the first input interface is used, and the first input information associated with the first on-screen word is determined based on the first characteristic information, when the input method application corresponding to the second input interface is changed, the second on-screen word corresponding to the second touch input can be determined based on the association between the first input information and the first on-screen word. In this way, even if the user switches to a new input method application, the input habits recorded in the original input method application can be retained, so that the new input method application can be selected at will while maintaining the original input efficiency, thereby avoiding the problem of the user having to passively select the original input method application.
[0056] The word determination method provided in the embodiment of the present application can be executed by a word determination device. In the embodiment of the present application, the word determination device provided in the embodiment of the present application is described by taking the word determination method executed by the word determination device as an example.
[0057] like Figure 3As shown, an embodiment of the present application also provides a word determination device 300, including: a receiving module 301, an acquisition module 302 and a processing module 303; the receiving module 301 is used to receive the user's first touch input when the electronic device displays a first input interface; the acquisition module 302 is used to obtain a first on-screen word and first feature information in response to the first touch input; the processing module 303 is used to determine the first input information corresponding to the first touch input based on the first feature information; when the electronic device displays a second input interface and receives the user's second touch input, the second on-screen word corresponding to the second touch input is determined based on the association relationship between the first input information and the first on-screen word; wherein the first feature information includes: the input position of the first touch input, the identification information of the input method application corresponding to the first input interface, and the device information of the electronic device, and the first input interface and the second input interface correspond to different input method applications respectively.
[0058] Optionally, the processing module 303 is specifically configured to determine a coordinate range of each virtual key in the first input interface according to the device information and the identification information; and determine the first input information according to the coordinate range to which the input position belongs.
[0059] Optionally, the acquisition module 302 is specifically used to obtain the first feature information and the running timestamp of the input method application corresponding to the first input interface in response to the first touch input; and obtain the first on-screen word displayed in the first input interface according to the running timestamp.
[0060] Optionally, the processing module 303 is further configured to establish an association relationship between the first input information and the first on-screen word, and store the association relationship in a historical input record.
[0061] Optionally, the processing module 303 is specifically used to determine the second input information corresponding to the second touch input; when the first input information includes the second input information, based on the association relationship between the first input information and the first upper-screen word, the first upper-screen word is determined as the second upper-screen word corresponding to the second touch input.
[0062] In the embodiment of the present application, since the first on-screen word and the first characteristic information can be obtained when the input method application corresponding to the first input interface is used, and the first input information associated with the first on-screen word is determined based on the first characteristic information, when the input method application corresponding to the second input interface is changed, the second on-screen word corresponding to the second touch input can be determined based on the association between the first input information and the first on-screen word. In this way, even if the user switches to a new input method application, the input habits recorded in the original input method application can be retained, so that the new input method application can be selected at will while maintaining the original input efficiency, thereby avoiding the problem of the user having to passively select the original input method application.
[0063] The word determination device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0064] The word determination device in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0065] The word determination device provided in the embodiment of the present application can achieve Figures 1 to 2 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0066] Alternatively, as Figure 4As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401 and a memory 402, wherein the memory 402 stores a program or instruction that can be run on the processor 401, and when the program or instruction is executed by the processor 401, the various steps of the embodiment of the method for determining the above-mentioned words are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0067] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0068] Figure 5 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0069] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .
[0070] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0071] The user input unit 1007 is configured to receive a first touch input from a user when the electronic device displays a first input interface.
[0072] Sensor 1005 is used to obtain a first on-screen word and first feature information in response to the first touch input.
[0073] Processor 1010 is used to determine the first input information corresponding to the first touch input based on the first feature information; when the electronic device displays a second input interface and receives the second touch input of the user, determine the second upper-screen word corresponding to the second touch input based on the association relationship between the first input information and the first upper-screen word; wherein the first feature information includes: the input position of the first touch input, the identification information of the input method application corresponding to the first input interface, and the device information of the electronic device, and the first input interface and the second input interface respectively correspond to different input method applications.
[0074] In the embodiment of the present application, since the first on-screen word and the first characteristic information can be obtained when the input method application corresponding to the first input interface is used, and the first input information associated with the first on-screen word is determined based on the first characteristic information, when the input method application corresponding to the second input interface is changed, the second on-screen word corresponding to the second touch input can be determined based on the association between the first input information and the first on-screen word. In this way, even if the user switches to a new input method application, the input habits recorded in the original input method application can be retained, so that the new input method application can be selected at will while maintaining the original input efficiency, thereby avoiding the problem of the user having to passively select the original input method application.
[0075] Optionally, the processor 1010 is specifically configured to determine a coordinate range of each virtual key in the first input interface according to the device information and the identification information; and determine the first input information according to the coordinate range to which the input position belongs.
[0076] In an embodiment of the present application, since the first input information can be determined based on the first characteristic information, the electronic device can record the historical input information of the user when using the input method application corresponding to the first input interface, thereby providing a basis for establishing an association relationship between the first input information and the first on-screen word.
[0077] Optionally, sensor 1005 is specifically used to obtain the first feature information and the running timestamp of the input method application corresponding to the first input interface in response to the first touch input; and obtain the first on-screen word displayed in the first input interface according to the running timestamp.
[0078] In an embodiment of the present application, since the running timestamp of the input method application corresponding to the first feature information and the first input interface can be obtained; and the first on-screen word displayed in the first input interface is obtained based on the running timestamp, the electronic device can determine the first on-screen word triggered by the first touch input when the user uses the input method application corresponding to the first input interface, thereby providing a basis for establishing an association relationship between the first input information and the first on-screen word.
[0079] Optionally, the processor 1010 is further configured to establish an association relationship between the first input information and the first on-screen word, and store the association relationship in a historical input record.
[0080] In an embodiment of the present application, since an association relationship can be established between the first input information and the first on-screen word, and the association relationship can be stored in the historical input record, when the user triggers the electronic device to switch the input method application, the electronic device can still determine the user's input habits based on the historical input record, thereby improving the user's input efficiency when using other input method applications.
[0081] Optionally, the processor 1010 is specifically used to determine the second input information corresponding to the second touch input; when the first input information includes the second input information, based on the association relationship between the first input information and the first upper screen word, the first upper screen word is determined as the second upper screen word corresponding to the second touch input.
[0082] In an embodiment of the present application, since the first upper-screen word can be determined as the second upper-screen word corresponding to the second touch input based on the association between the first input information and the first upper-screen word, even if the user changes the electronic device or changes the input method application, the input habits recorded in the input method application corresponding to the first input interface can still be retained, thereby avoiding the problem that the user can only passively select the original input method application.
[0083] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0084] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0085] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.
[0086] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the embodiment of the method for determining the above-mentioned words are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0087] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0088] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned word determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0089] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0090] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned word determination method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0091] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0093] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for determining a word, characterized in that: include: When the electronic device displays the first input interface, receiving a first touch input from the user; In response to the first touch input, obtaining a first on-screen word and first feature information; determining first input information corresponding to the first touch input according to the first feature information; When the electronic device displays a second input interface and receives a second touch input from the user, determining a second on-screen word corresponding to the second touch input based on an association between the first input information and the first on-screen word; The first feature information includes: the input position of the first touch input, identification information of the input method application corresponding to the first input interface, and device information of the electronic device, and the first input interface and the second input interface correspond to different input method applications respectively.
2. The method for determining a word according to claim 1, wherein: The determining, according to the first feature information, first input information corresponding to the first touch input includes: determining a coordinate range of each virtual key in the first input interface according to the device information and the identification information; The first input information is determined according to a coordinate range to which the input position belongs.
3. The method for determining a word according to claim 1, wherein: The acquiring, in response to the first touch input, a first on-screen word and first feature information, includes: In response to the first touch input, obtaining the first feature information and a running timestamp of an input method application corresponding to the first input interface; The first on-screen word displayed in the first input interface is acquired according to the running timestamp.
4. The method for determining a word according to claim 1, wherein: After determining the first input information corresponding to the first touch input according to the first feature information, the method further includes: An association relationship between the first input information and the first on-screen word is established, and the association relationship is stored in a historical input record.
5. The method for determining a word according to any one of claims 1 to 4, characterized in that: The determining, based on the association between the first input information and the first on-screen word, a second on-screen word corresponding to the second touch input includes: determining second input information corresponding to the second touch input; In the case where the first input information includes the second input information, based on the association between the first input information and the first upper-screen word, the first upper-screen word is determined as the second upper-screen word corresponding to the second touch input.
6. A device for determining a word, characterized in that: include: Receiving module, acquiring module and processing module; The receiving module is configured to receive a first touch input from a user when the electronic device displays a first input interface; The acquisition module is configured to acquire a first on-screen word and first feature information in response to the first touch input; The processing module is configured to determine first input information corresponding to the first touch input according to the first feature information; When the electronic device displays a second input interface and receives a second touch input from the user, determining a second on-screen word corresponding to the second touch input based on an association between the first input information and the first on-screen word; The first feature information includes: the input position of the first touch input, identification information of the input method application corresponding to the first input interface, and device information of the electronic device, and the first input interface and the second input interface correspond to different input method applications respectively.
7. The word determination device according to claim 6, characterized in that: The processing module is specifically configured to determine a coordinate range of each virtual key in the first input interface according to the device information and the identification information; and determine the first input information according to the coordinate range to which the input position belongs.
8. The word determination device according to claim 6, characterized in that: The acquisition module is specifically configured to acquire the first feature information and a running timestamp of the input method application corresponding to the first input interface in response to the first touch input; and acquire the first on-screen word displayed in the first input interface according to the running timestamp.
9. The word determination device according to claim 6, characterized in that: The processing module is further configured to establish an association relationship between the first input information and the first on-screen word, and store the association relationship in a historical input record.
10. The word determination device according to any one of claims 6 to 9, characterized in that: The processing module is specifically used to determine the second input information corresponding to the second touch input; when the first input information includes the second input information, based on the association relationship between the first input information and the first upper screen word, the first upper screen word is determined as the second upper screen word corresponding to the second touch input.
11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the method for determining a word according to any one of claims 1 to 5 is implemented.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the method for determining a word according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
User thesaurus management system and management method
CN101140585A
User lexicon management method and device, input method and device
CN111103986A