CN107957789B - Text input method and mobile terminal - Google Patents

Text input method and mobile terminal Download PDF

Info

Publication number
CN107957789B
CN107957789B CN201711225645.5A CN201711225645A CN107957789B CN 107957789 B CN107957789 B CN 107957789B CN 201711225645 A CN201711225645 A CN 201711225645A CN 107957789 B CN107957789 B CN 107957789B
Authority
CN
China
Prior art keywords
input
target
input method
text
text information
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
CN201711225645.5A
Other languages
Chinese (zh)
Other versions
CN107957789A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711225645.5A priority Critical patent/CN107957789B/en
Publication of CN107957789A publication Critical patent/CN107957789A/en
Application granted granted Critical
Publication of CN107957789B publication Critical patent/CN107957789B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • G06F16/337Profile generation, learning or modification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a text input method and a mobile terminal, and relates to the technical field of communication. The text input method comprises the following steps: when text input is carried out, detecting whether a preset key word exists in first text information of a current input interface; if the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and according to the target switching strategy, switching the corresponding input method types when the current text is input. The scheme of the invention is used for solving the problems that the existing text input method is complicated in operation and easy to generate input errors because the keyboard needs to be manually switched.

Description

Text input method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a text input method and a mobile terminal.
Background
With the rapid development of communication technology, the functions of the mobile terminal are more and more diversified, and great convenience is brought to the life of people. Particularly, the social communication function of the mobile terminal enables communication to be no longer limited by space distance, and the relationship between people is drawn. Nowadays, mobile social applications represented by WeChat, QQ, occupy most of people's daily life, and online chat has become a part of people's daily life.
However, in the current social application program, when a user chats with a text, the user needs to manually switch among a numeric keypad, a chinese keypad and other keypads to input the corresponding text, which is cumbersome to operate and prone to input errors.
Disclosure of Invention
The embodiment of the invention provides a text input method and a mobile terminal, and aims to solve the problems that the existing text input method is complicated in operation and prone to input errors due to the fact that a keyboard needs to be manually switched.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a text input method, including:
when text input is carried out, detecting whether a preset key word exists in first text information of a current input interface;
if the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information;
and according to the target switching strategy, switching the corresponding input method types when the current text is input.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the detection module is used for detecting whether a preset key word exists in first text information of a current input interface when text is input;
the query module is used for determining a target switching strategy corresponding to a preset key vocabulary according to prestored database information if the preset key vocabulary exists;
and the processing module is used for switching the corresponding input method types when the current text is input according to the target switching strategy.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the text input method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the text input method as described above.
In this way, in the embodiment of the present invention, first, when a text is input, whether a preset key word exists in a first text message of a current input interface is detected; then when the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and then, switching the corresponding input method types when the current text is input according to the target switching strategy. Therefore, when a user inputs a text, the mobile terminal can automatically switch to the input method type required by the user in the input text by combining the semantics, so that the redundant operation of switching the keyboard input method type back and forth by the user is reduced, the input error is avoided, and the efficiency and the intelligence of text input are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart illustrating a text input method according to an embodiment of the present invention;
FIG. 2 is a second flowchart illustrating a text input method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating input method type switching of a chat interface of a mobile terminal;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a second schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a third schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the text input method according to the embodiment of the present invention includes:
step 101, detecting whether a preset key word exists in first text information of a current input interface when text is input.
In this step, first, when a text is input, whether a preset key word exists in a first text message of a current input interface is detected, so as to provide a basis for the next processing. Here, the current input interface may be an input interface of an application installed on the mobile terminal to which the text input method is applied, and the first text information is text content before a text input position on the interface. Assuming that the current input interface is a chat interface between WeChat and the first contact, the corresponding first text information may be the text information recently sent by the first contact, or may be all the historical chat text information on the chat interface.
And 102, if the preset key words exist, determining a target switching strategy corresponding to the preset key words according to prestored database information.
In this embodiment, a plurality of preset key words and target switching strategies corresponding to the preset key words are stored in the pre-stored database information of the mobile terminal, so that after detecting that the preset key words exist in the first text information in step 101, the target switching strategy corresponding to the preset key words can be determined according to the content stored in the pre-stored database information, and the target switching strategy can be used for guiding the switching of the input method types in the text input process.
And 103, switching the corresponding input method types when the current text is input according to the target switching strategy.
In this step, after the target switching strategy corresponding to the preset key vocabulary is determined in step 102, the corresponding input method type switching is performed when the current text is input according to the target switching strategy.
Through steps 101 to 103, the text input method of the embodiment of the invention firstly detects whether a preset key vocabulary exists in first text information of a current input interface when text is input; then when the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and then, switching the corresponding input method types when the current text is input according to the target switching strategy. Therefore, when a user inputs a text, the mobile terminal can automatically switch to the input method type required by the user in the input text by combining the semantics, so that the redundant operation of switching the keyboard input method type back and forth by the user is reduced, the input error is avoided, and the efficiency and the intelligence of text input are improved.
The input method type refers to input corresponding to different types of texts, and common input method types include numbers, English, common special symbols and the like.
It should be understood that the pre-stored database information may be predefined by the system, but different users may have different preferences, for example, different answers may be provided for the same question, and the pre-stored database information predefined by the system may not be suitable for different users. Therefore, on the basis of the above embodiment, as shown in fig. 2, before step 101, the method further includes:
step 201, acquiring an input use record of a user in a preset period; wherein the input usage record includes second previous text information prior to input and corresponding input text information.
In this step, the input usage record within one month before the current time is acquired according to a preset period, for example, one month. The input use record includes the second text information before each input and the input text information before each input, and of course, includes the corresponding relationship between the input text information input this time and the second text information before this time. Similar to the first text message, the second text message is the text content before the text input position on the input interface before the text input in the history.
Step 202, constructing the pre-stored database information according to the type of the input method, the second text information and the corresponding input text information.
In this step, the pre-stored database information may be constructed from the input usage record obtained in step 201 in combination with the input method type that can be supported by the keyboard used by the user.
Thus, the pre-stored database information constructed in step 201 and step 202 is more suitable for the use habit of the user due to the combination of the historical input condition of the user, and the input efficiency and the intelligence are further improved.
Specifically, step 202 includes:
counting target input text information with the same type of input method switched in the input process;
extracting target upper text information with similarity larger than a preset threshold value from second upper text information corresponding to the target input text information;
and extracting key words in the target text information as preset key words, and determining the input method type of the corresponding input text information which is switched as the target input method type corresponding to the preset key words.
As is known in the above, the pre-stored database information stores a plurality of preset key words and target switching strategies corresponding to the preset key words, so that, according to the above steps, target input text information in which the same type of input method type is switched in the input process is counted first, and then target text information in which the similarity is greater than a preset threshold in second text information corresponding to the target input text information is extracted. In this case, the text information in which the input method type of the same type is switched can be classified based on the input method type supported by the keyboard. If the input method types supported by the keyboard comprise numbers and English, respectively counting first type input text information with number switching and second type input text information with English switching in the input process; given the first type of input text information and the second type of input text information, the target text information with the similarity greater than the preset threshold can be obtained from the second text information corresponding to the first type of input text information, and similarly, the target text information with the similarity greater than the preset threshold can be obtained from the second text information corresponding to the second type of input text information.
Because the target text information has certain similarity, next step, the key words in the target text information can be extracted as the preset key words for constructing the pre-stored database information. And corresponding to the extracted preset key vocabulary, determining the target input method type corresponding to the preset key vocabulary finally according to the input method type of the attribution of the input text information corresponding to the text information above the target. The determined target input method type corresponding to the preset key vocabulary corresponds to the content including the preset key vocabulary, and switching is frequently performed in the following input, so that the method has higher applicability for the user.
For example, in a text input scenario application of chat information in a mobile terminal, when answering questions such as time, money and the like, a user can switch to a numeric keyboard; when answering an English question, switching to an English keyboard; when asking some mailbox questions, the "@" character needs to be arranged in front of the special character. Therefore, the collected questions are classified by collecting the above questions and user answer modes of the frequently switched keyboard of the user (1, switching to a digital keyboard, 2, switching to an English keyboard, 3, switching to a common special symbol keyboard and the like), highly similar question keywords are extracted from the similar questions, and pre-stored database information is constructed. For example, the user asks the age class: the answers of the questions such as 'the age', 'the size', 'the noble character' and the like are often switched to a numeric keyboard to input numbers, so that preset key words can be set as 'the age' in prestored database information, and the target input method type corresponding to the 'the age' is a number. At this time, it can be seen that the detection of the preset key words in the above text information or the extraction of the preset key words from the historical above text information is not limited to the determination of the completely consistent words, but may be processed based on synonyms or related vocabulary.
Of course, after the preset key words and the target input method types corresponding to the preset key words are obtained, the target switching strategy corresponding to the preset key words more suitable for the user can be obtained based on the input habits of the user by combining the historical input text information of the user. For example, user a's answers to questions asked for age will enter numbers directly, while user B's answers to such questions will be preceded by qualifiers.
Therefore, in the embodiment of the present invention, the target switching policy includes a target input method type;
the switching of the corresponding input method type during the current text input according to the target switching strategy comprises the following steps:
and when the input operation of the user is detected, switching the current input method type into the target input method type.
Here, by the target switching policy only including the target input method type, it is known that the mobile terminal user directly switches to the target input method type when performing the following content input corresponding to the preceding content including the preset key vocabulary, so further, when the user input operation is detected, the current input method type can be directly switched to the target input method type.
For example, a preset keyword "age" is detected in the first text message of the chat interface, and the obtained target switching policy only includes input method type numbers, it can be known that the answer of the user to the question asked by the age is customary to directly input numbers, so when the user input operation is detected, the user directly switches to the numeric keyboard, as shown in fig. 3.
In addition, in the embodiment of the present invention, the target switching policy includes a target input method type and a prediction input vocabulary;
the switching of the corresponding input method type during the current text input according to the target switching strategy comprises the following steps:
and when one of the predicted input vocabularies finishes inputting, switching the current input method type into the target input method type.
Here, by the target switching policy including the target input method type and the predicted input words, it is known that the mobile terminal user switches to the target input method type for inputting the following words after inputting a habitual word when inputting the following contents corresponding to the preceding contents including the preset key words, so further, when detecting that one of the predicted input words completes inputting, the current input method type is switched to the target input method type.
For example, a preset keyword "age" is detected in the first text message of the chat interface, and the obtained target switching policy includes an input method type number and a predicted input word "approximate", it is known that the answer of the user to the question of the age query is a qualifier + number, and therefore, only when the word "approximate" is detected to complete the input is switched to the numeric keypad.
It should also be appreciated that, in the embodiment of the present invention, based on the preset key vocabulary in the constructed pre-stored database information, the length of the following vocabulary corresponding to the preset key vocabulary can also be predicted and recorded in the target switching strategy, so that after the input of the following vocabulary is finished, the type of the input method before the input of the following vocabulary is switched back. Specifically, the target switching strategy further includes a predicted length of a following vocabulary;
the switching of the corresponding input method type during the current text input according to the target switching strategy comprises the following steps:
after switching the current input method type to the target input method type, switching the target input method type to the input method type before the input of the following vocabulary when the completion of the input of the following vocabulary is detected based on the predicted length of the following vocabulary.
In this way, based on the predicted length of the following word, when it is detected that the following word is completely input, the input method type is switched back to the input method type before the input of the following word, so that the user can continue the text input.
In summary, in the text input method according to the embodiment of the present invention, first, when a text is input, whether a preset keyword exists in a first text message of a current input interface is detected; then when the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and then, switching the corresponding input method types when the current text is input according to the target switching strategy. Therefore, when a user inputs a text, the mobile terminal can automatically switch to the input method type required by the user in the input text by combining the semantics, so that the redundant operation of switching the keyboard input method type back and forth by the user is reduced, the input error is avoided, and the efficiency and the intelligence of text input are improved.
Fig. 4 is a block diagram of a mobile terminal of one embodiment of the present invention. The mobile terminal 400 shown in fig. 4 comprises a detection module 401, a query module 402 and a processing module 403.
The detection module 401 is configured to detect whether a preset key word exists in first text information of a current input interface when a text is input;
the query module 402 is configured to determine, if a preset key word exists, a target switching policy corresponding to the preset key word according to pre-stored database information;
and the processing module 403 is configured to perform corresponding input method type switching when the current text is input according to the target switching policy.
On the basis of fig. 4, optionally, as shown in fig. 5, the target switching policy includes a target input method type;
the processing module 403 includes:
the first processing sub-module 4031 is configured to switch the current input method type to the target input method type when a user input operation is detected.
Optionally, the target switching policy includes a target input method type and a predicted input vocabulary;
the processing module 403 includes:
and the second processing sub-module 4032 is configured to switch the current input method type to the target input method type when it is detected that one of the predicted input vocabularies has been input.
Optionally, the target switching policy further comprises a predicted length of the following vocabulary;
the processing module 403 includes:
a third processing sub-module 4033, configured to, after switching the current input method type to the target input method type, switch the target input method type to the input method type before the input of the following vocabulary based on the predicted length of the following vocabulary when it is detected that the following vocabulary completes the input.
On the basis of fig. 4, optionally, as shown in fig. 6, the mobile terminal 400 further includes:
an obtaining module 404, configured to obtain an input usage record of a user in a preset period; wherein the input usage record comprises second previous text information before input and corresponding input text information;
a constructing module 405, configured to construct the pre-stored database information according to the type of the input method, the second previous text information, and the corresponding input text information.
Optionally, the building module 405 includes:
the statistical submodule 4051 is used for counting target input text information with the same type of input method switched in the input process;
the first extraction submodule 4052 is configured to extract target text information of which the similarity is greater than a preset threshold value from second text information corresponding to the target input text information;
the second extraction sub-module 4053 is configured to extract a key word in the text information above the target as a preset key word, and determine an input method type in which the corresponding input text information is switched as the target input method type corresponding to the preset key word.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition. The mobile terminal of the embodiment of the invention firstly detects whether a first text message of a current input interface has a preset key word or not when text is input; then when the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and then, switching the corresponding input method types when the current text is input according to the target switching strategy. Therefore, when a user inputs a text, the mobile terminal can automatically switch to the input method type required by the user in the input text by combining the semantics, so that the redundant operation of switching the keyboard input method type back and forth by the user is reduced, the input error is avoided, and the efficiency and the intelligence of text input are improved.
Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to detect whether a preset keyword exists in first text information of a current input interface when text input is performed; if the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and according to the target switching strategy, switching the corresponding input method types when the current text is input.
The mobile terminal detects whether a preset key word exists in first text information of a current input interface or not when text is input; then when the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information; and then, switching the corresponding input method types when the current text is input according to the target switching strategy. Therefore, when a user inputs a text, the mobile terminal can automatically switch to the input method type required by the user in the input text by combining the semantics, so that the redundant operation of switching the keyboard input method type back and forth by the user is reduced, the input error is avoided, and the efficiency and the intelligence of text input are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 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 a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 70 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the processes of the text input method embodiment, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the text input method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A text entry method, comprising:
when text input is carried out, detecting whether a preset key word exists in first text information of a current input interface;
if the preset key vocabulary exists, determining a target switching strategy corresponding to the preset key vocabulary according to prestored database information;
according to the target switching strategy, switching the types of the corresponding input methods when the current text is input;
the target switching strategy also comprises the length of a predicted following word;
the switching of the corresponding input method type during the current text input according to the target switching strategy comprises the following steps:
after switching the current input method type to a target input method type, switching the target input method type to an input method type before the input of the following vocabulary when the completion of the input of the following vocabulary is detected based on the predicted length of the following vocabulary;
the target switching strategy comprises a target input method type and a prediction input vocabulary;
the switching of the corresponding input method type during the current text input according to the target switching strategy comprises the following steps:
when one of the predicted input vocabularies is detected to finish inputting, switching the current input method type into the target input method type;
before detecting whether a preset key word exists in the first text information of the current input interface during text input, the method further comprises the following steps:
acquiring an input use record of a user in a preset period; wherein the input usage record comprises second previous text information before input and corresponding input text information;
constructing the pre-stored database information according to the type of the input method, the second text information and the corresponding input text information;
the constructing the pre-stored database information according to the input method type, the second text information and the corresponding input text information comprises:
counting target input text information with the same type of input method switched in the input process;
extracting target upper text information with similarity larger than a preset threshold value from second upper text information corresponding to the target input text information;
and extracting key words in the target text information as preset key words, and determining the input method type of the corresponding input text information which is switched as the target input method type corresponding to the preset key words.
2. The text input method of claim 1, wherein the target switching policy comprises a target input method type;
the switching of the corresponding input method type during the current text input according to the target switching strategy comprises the following steps:
and when the input operation of the user is detected, switching the current input method type into the target input method type.
3. A mobile terminal, comprising:
the detection module is used for detecting whether a preset key word exists in first text information of a current input interface when text is input;
the query module is used for determining a target switching strategy corresponding to a preset key vocabulary according to prestored database information if the preset key vocabulary exists;
the processing module is used for switching the corresponding input method types when the current text is input according to the target switching strategy;
the target switching strategy also comprises the length of a predicted following word;
the processing module comprises:
a third processing submodule, configured to switch the target input method type to an input method type before the following vocabulary is input, when it is detected that the following vocabulary completes input based on the predicted length of the following vocabulary after the current input method type is switched to the target input method type;
the target switching strategy comprises a target input method type and a prediction input vocabulary;
the processing module comprises:
the second processing submodule is used for switching the current input method type into the target input method type when one of the predicted input vocabularies finishes inputting;
the mobile terminal further includes:
the acquisition module is used for acquiring the input use record of the user in a preset period; wherein the input usage record comprises second previous text information before input and corresponding input text information;
the construction module is used for constructing the pre-stored database information according to the type of the input method, the second text information and the corresponding input text information;
the building module comprises:
the statistical submodule is used for counting target input text information with the same type of input method switched in the input process;
the first extraction submodule is used for extracting target upper text information of which the similarity is greater than a preset threshold value from second upper text information corresponding to the target input text information;
and the second extraction submodule is used for extracting key words in the text information above the target as preset key words and determining the input method type of the corresponding input text information which is switched as the target input method type corresponding to the preset key words.
4. The mobile terminal of claim 3, wherein the target handover policy includes a target input method type;
the processing module comprises:
and the first processing submodule is used for switching the current input method type into the target input method type when the input operation of the user is detected.
5. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of a text input method according to any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of a text input method according to any one of claims 1 to 2.
CN201711225645.5A 2017-11-29 2017-11-29 Text input method and mobile terminal Active CN107957789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711225645.5A CN107957789B (en) 2017-11-29 2017-11-29 Text input method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711225645.5A CN107957789B (en) 2017-11-29 2017-11-29 Text input method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107957789A CN107957789A (en) 2018-04-24
CN107957789B true CN107957789B (en) 2020-04-28

Family

ID=61963016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711225645.5A Active CN107957789B (en) 2017-11-29 2017-11-29 Text input method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107957789B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427459B (en) * 2019-01-08 2024-04-02 北京搜狗科技发展有限公司 Method and related device for optimizing input during user communication
CN112764552A (en) * 2021-01-26 2021-05-07 北京小米移动软件有限公司 Input method switching method and device, intelligent equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727199A (en) * 2009-12-21 2010-06-09 中兴通讯股份有限公司 Input method and input equipment
CN102436454A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Input method switching method and system for browser
CN102830924A (en) * 2012-08-08 2012-12-19 北京小米科技有限责任公司 Method and device for adjusting input method keyboards

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8018441B2 (en) * 2007-06-11 2011-09-13 Samsung Electronics Co., Ltd. Character input apparatus and method for automatically switching input mode in terminal having touch screen
CN103488796B (en) * 2013-10-12 2018-12-07 惠州Tcl移动通信有限公司 Based on context the method and mobile terminal inputted

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727199A (en) * 2009-12-21 2010-06-09 中兴通讯股份有限公司 Input method and input equipment
CN102436454A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Input method switching method and system for browser
CN102830924A (en) * 2012-08-08 2012-12-19 北京小米科技有限责任公司 Method and device for adjusting input method keyboards

Also Published As

Publication number Publication date
CN107957789A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN107908382B (en) Split screen display method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN108376096B (en) Message display method and mobile terminal
CN110971510A (en) Message processing method and electronic equipment
CN108958593B (en) Method for determining communication object and mobile terminal
CN107783747B (en) Interface display processing method and mobile terminal
CN108874906B (en) Information recommendation method and terminal
CN109634438B (en) Input method control method and terminal equipment
CN108196781B (en) Interface display method and mobile terminal
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN110780751B (en) Information processing method and electronic equipment
CN109982273B (en) Information reply method and mobile terminal
CN110784394A (en) Prompting method and electronic equipment
CN111061446A (en) Display method and electronic equipment
CN107957789B (en) Text input method and mobile terminal
CN107967086B (en) Icon arrangement method and device for mobile terminal and mobile terminal
CN110069774B (en) Text processing method, device and terminal
CN110213439B (en) Message processing method and terminal
CN110166621B (en) Word processing method and terminal equipment
CN110032320B (en) Page rolling control method and device and terminal
CN110175063B (en) Operation assisting method, device, mobile terminal and storage medium
CN112217713A (en) Method and device for displaying message
CN108897467B (en) Display control method and terminal equipment
CN108287644B (en) Information display method of application program and mobile terminal

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