CN108241438B - Input method, input device and input device - Google Patents

Input method, input device and input device Download PDF

Info

Publication number
CN108241438B
CN108241438B CN201611207928.2A CN201611207928A CN108241438B CN 108241438 B CN108241438 B CN 108241438B CN 201611207928 A CN201611207928 A CN 201611207928A CN 108241438 B CN108241438 B CN 108241438B
Authority
CN
China
Prior art keywords
words
input
word
candidate
network search
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
CN201611207928.2A
Other languages
Chinese (zh)
Other versions
CN108241438A (en
Inventor
刘辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201611207928.2A priority Critical patent/CN108241438B/en
Publication of CN108241438A publication Critical patent/CN108241438A/en
Application granted granted Critical
Publication of CN108241438B publication Critical patent/CN108241438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Abstract

The embodiment of the application provides an input method, which comprises the following steps: searching historical input words matched with the coded character strings in historical input data; searching a network search word matched with the coding character string from a server; determining candidate long words in the historical input words and the network search words; and displaying the candidate long words. According to the method and the device, the internet big data and the historical input data of the user are used as the source of the user word bank, and the input method can search long words with the length longer than the code character strings from the server and the historical input data to serve as candidate words, so that the long words can be obtained by inputting few code character strings by the user, the input operation of the user is reduced, and the input efficiency is improved.

Description

Input method, input device and input device
Technical Field
The present application relates to the field of input methods, and in particular, to an input method, an input device, and an input device.
Background
The input method refers to software that provides candidate words based on a code string submitted by a user. In the current input method, the input method searches and displays matched candidate words from local word banks such as a system word bank, a user word bank, a cell word bank and the like according to a coded character string submitted by a user.
When a user inputs a pinyin string, the input method provides a candidate word which is completely matched with the pinyin string or a candidate word which is shorter than the current pinyin string. For example, when the user inputs the pinyin string "mancheng", the completely-matched candidate words fed back by the input method may include: "mancheng", "slow city", "full city", and "free city", the candidate words fed back by the input method with a length shorter than the current pinyin string may include: "slow".
Because the existing input method only provides the candidate word with the length less than or equal to the pinyin string length, the length of the candidate word is limited by the pinyin string length, and when a user wants to obtain a longer candidate word, the user needs to input more characters, so that the input efficiency of the user is limited.
Disclosure of Invention
In view of the above, embodiments of the present application are proposed in order to provide an input method, an input device and a device for input that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses an input method, including:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
and displaying the candidate long words.
Preferably, the method further comprises:
searching short words matched with the coded character strings from a local word stock;
the step of determining candidate long words in the historical input words and the network search words comprises the following steps:
respectively determining repeated words among the historical input words, the network search words and the short words;
removing corresponding repeated words from the historical input words and the network search words;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed.
Preferably, the step of searching the historical input data for the historical input word matched with the code character string comprises the following steps:
segmenting the coded character string;
and searching the historical input words mapped by the segmented code character strings from the historical input data.
Preferably, the step of searching the network search word matched with the code character string from the server comprises:
generating a search request by adopting the code character string;
sending the search request to the server;
and receiving the network search words returned by the server aiming at the search request.
Preferably, the step of determining candidate long words from the history input words and the network search words after the repeated words are removed includes:
acquiring user personalized data;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
Preferably, the step of determining candidate long words from the history input words and the network search words after the repeated words are removed includes:
identifying a current input environment;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the current input environment.
Preferably, the step of presenting the candidate long word comprises:
generating a long word candidate box;
and displaying the candidate long words in the long word candidate box.
Preferably, the method further comprises:
searching multimedia information matched with the candidate long words;
and displaying the multimedia information.
The embodiment of the application also discloses an input device, which comprises:
the history searching module is used for searching the history input words matched with the coded character strings in the history input data;
the network searching module is used for searching the network searching words matched with the coding character strings from the server;
the candidate long word determining module is used for determining candidate long words in the historical input words and the network search words;
and the candidate long word display module is used for displaying the candidate long words.
Preferably, the device further comprises:
the short word searching module is used for searching the short words matched with the coded character strings from a local word stock;
the candidate long word determination module comprises:
the repeated word determining submodule is used for respectively determining repeated words among the historical input words, the network search words and the short words;
the repeated word removing sub-module is used for removing corresponding repeated words from the historical input words and the network search words;
and the candidate long word determining sub-module is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed.
Preferably, the history searching module comprises:
the segmentation submodule is used for segmenting the coded character string;
and the historical input word searching submodule is used for searching the historical input words mapped by the segmented code character strings from the historical input data.
Preferably, the network searching module includes:
the search request generation submodule is used for generating a search request by adopting the coding character string;
the search request sending submodule is used for sending the search request to the server;
and the network search word receiving submodule is used for receiving the network search words returned by the server aiming at the search request.
Preferably, the candidate long word determination sub-module includes:
the personalized data acquisition unit is used for acquiring personalized data of a user;
and the personalized long word determining unit is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
Preferably, the candidate long word determination sub-module includes:
an input environment recognition unit for recognizing a current input environment;
and the environment long word determining unit is used for determining candidate long words from the history input words and the network search words after the repeated words are removed according to the current input environment.
Preferably, the candidate long word presenting module includes:
the long word candidate box generation submodule is used for generating a long word candidate box;
and the candidate frame long word display sub-module is used for displaying the candidate long words in the long word candidate frame.
Preferably, the device further comprises:
the multimedia information searching module is used for searching the multimedia information matched with the candidate long words;
and the multimedia information display module is used for displaying the multimedia information.
The embodiment of the application also discloses a device for inputting, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by one or more processors and comprise instructions for:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
and displaying the candidate long words.
The embodiment of the application has the following advantages:
according to the method and the device, the internet big data and the historical input data of the user are used as the source of the user word bank, and the input method can search long words with the length longer than the code character strings from the server and the historical input data to serve as candidate words, so that the long words can be obtained by inputting few code character strings by the user, the input operation of the user is reduced, and the input efficiency is improved.
Drawings
FIG. 1 is a schematic diagram showing candidate short words in a conventional input method;
FIG. 2 is a flow chart of the steps of an input method embodiment 1 of the present application;
FIG. 3 is a flow chart of the steps of an input method embodiment 2 of the present application;
FIG. 4 is a schematic diagram showing candidate long words and candidate short words for the input method in the embodiment of the present application;
FIG. 5 is a block diagram of an embodiment of an input device according to the present application;
FIG. 6 is a block diagram illustrating an apparatus for input in accordance with an exemplary embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In the existing input method, a mapping table for recording the mapping relation between the coding character strings and the words is provided in a system word bank, a user word bank, a cell word bank and other common user word banks. In the mapping table, a word is mapped with a code string, and the length of a word is considered to be the length of the code string mapped by the word in the mapping table.
After the user submits the coding character string, the input method can search a word matched with the submitted coding character string from mapping tables of common user word banks such as a system word bank, a user word bank, a cell word bank and the like, wherein the matched word comprises the following words: the length is shorter than or equal to the candidate short words of the coding character string submitted by the user. Referring to fig. 1, which is a schematic diagram showing candidate short words in a conventional input method, a user submits a pinyin string "mancheng", and then words having the same length as the pinyin string may include: "mancheng", "slow cheng" and "full cheng", words shorter in length than the pinyin string may include: "slow" and "full".
One of the core ideas of the embodiment of the application is that with the development of big data technology, the sources of the linguistic data of the input method are more and more extensive, and are not limited to the lexicon of the input method, that is, the whole internet data is used as the lexicon source of the user in an internet big data mode, and the lexicon collection of the current user is finally formed by combining the local system lexicon, the user lexicon, the cell lexicon and the like of the user. In the embodiment of the application, the input method searches data in the server, so that network search words matched with the code character strings submitted by the user are searched, and candidate long words are determined from the network search words. The input method can also search the historical input words matched with the coded character strings according to the historical input data of the user, and determine the candidate long words in the historical input words.
By long word candidate is meant a word candidate that is longer than the encoded string submitted by the user. For example, if the user submits the pinyin string "mancheng," the candidate long words may include: "city full with golden armor", "city full with wind and rain", "city full county", "city full with flower blossoming".
Referring to fig. 2, a flowchart of steps of an input method embodiment 1 of the present application is shown, which may specifically include the following steps:
step 101, searching a historical input word matched with a code character string in historical input data;
in the embodiment of the application, after the user screens the candidate words, the input method can record the input data of the user. For example, if the user enters the pinyin string "jinianfangjia" and then selects the candidate word "today vacation" to screen, the input method records that the user has entered the input data "today vacation".
The input method searches for a matched historical input word from historical input data according to a code character string submitted by a user, for example: when the user inputs "jintianan", the input method can find the matched historical input word "leave today" from the historical input data.
Step 102, searching a network search word matched with the code character string from a server;
the input method can search internet data through the server, so that the matched network search words can be found. The number of the matched network search words searched by the server may be more, and only a few candidate words actually required to be displayed may be required, so that the number of the network search words obtained from the server may be set. For example, it is set that only 10 network search terms are acquired from the server.
Step 103, determining candidate long words in the historical input words and the network search words;
among the history input words and the network search words, a candidate long word having a length longer than the code character string is selected.
And 104, displaying the candidate long words.
And the input method displays the candidate long words for the user to select.
In the embodiment of the application, the input method can select and display the candidate long words from the network search words and the historical input words. And candidate short words can be searched from word banks such as a local system word bank, a user word bank, a cell word bank and the like of the user and displayed.
According to the method and the device, the internet big data and the historical input data of the user are used as the source of the user word bank, and the input method can search long words with the length longer than the code character strings from the server and the historical input data to serve as candidate words, so that the long words can be obtained by inputting few code character strings by the user, the input operation of the user is reduced, and the input efficiency is improved.
Referring to fig. 3, a flowchart of steps of an input method embodiment 2 of the present application is shown, which may specifically include the following steps:
step 201, searching a historical input word matched with the code character string in historical input data;
in the embodiment of the present application, the specific steps of searching the historical input words adapted to the code character string in the historical input data by the input method are as follows: firstly, the coding character string submitted by a user is segmented, and then the historical input word mapped by the segmented coding character string is searched from the historical input data. For example, if the user enters the pinyin string "xiancheng," which may be divided into "xi ' an ' cheng" and "xian ' cheng," finding a history entry word that matches "xi ' an ' cheng" may include: "xi an city" and "second room of xi an city", the history input words adapted to "xian' cheng" may include: "county city" and "county city employment chance are many".
It should be noted that the history input word matched with the code string and found from the history input data may include: long words and short words.
Step 202, searching a network search word matched with the code character string from a server;
the specific way of searching the network search term by the input method through the server can be as follows: generating a search request by adopting the coded character string; the input method sends a search request to the server. And after receiving the search request, the server searches for the matched network search word according to the segmented code character string in the search request.
Preferably, the input method may segment the code string, and then generate the search request using the segmented code string.
For example, the user inputs the pinyin string "xianshi", which may be divided into "xi ' an ' shi" and "xian ' shi". The input method may generate different search requests for "xi ' an ' shi" and "xian ' shi", respectively. It is also possible to generate a search request to which both "xi ' an ' shi" and "xian ' shi" are added. And after receiving the search request, the server extracts the split pinyin string in the search request. The server searches for the network search terms adapted to "xi ' an ' shi" and "xian ' shi", respectively. The "xi 'an' shi" adapted network search term may include: "xi an city", "xi an city spot", etc., the network search word adapted to "xian' shi" may include: "time limited", "open time limited", and the like. And the server returns the searched network search words to the input method.
It should be noted that the network search term matched with the encoded character string found from the server may include: long words and short words.
Step 203, searching short words matched with the code character string from a local word stock;
the local thesaurus may include a system thesaurus, a user thesaurus, a cell thesaurus, etc. The input method searches the mapping table of the local word stock for the short words matched with the submitted coding character strings.
Step 204, determining repeated words among the historical input words, the network search words and the short words respectively;
both the historical input words and the network search words can include long words and short words. The input method respectively determines repeated words between the historical input words and the network search words and the short words searched by the local word bank.
Step 205, removing corresponding repeated words from the historical input words and the network search words;
the input method eliminates repeated words between the historical input words and the short words found by the local word bank in the historical input words. At this time, the history input words can be considered as long words and no longer include short words.
For example, the historical input words include: "xi an city" and "second hand room in xi an city", the short words searched from the local thesaurus include: the repeated words are ' xi ' an city '. The 'xi' an city 'in the history input words is removed, and the history input words are only the word' second-hand room in xi 'an city'.
Similarly, the input method eliminates repeated words between the network search words and the short words found by the local word bank in the network search words. At this time, the network search words can be considered as long words and no longer include short words.
Step 206, determining candidate long words from the history input words and the network search words after the repeated words are removed;
after the repeated words are removed, the words in the history input words and the network search words are long words. The input method selects candidate long words from the long words.
It should be noted that, when the terminal cannot use the network data, the input method cannot find the network search word through the server, and the input method can only determine the candidate long word from the historical input words.
In an example in the embodiment of the present application, the step 206 may specifically include the following sub-steps:
substep S11, obtaining user personalized data;
and a substep S12, determining candidate long words from the history input words and the network search words after the repeated words are removed according to the user personalized data.
The personalization data of the user may include: frequency of use of words, commonly used fields (fields of words frequently used by the user), user hobbies, and the like.
According to the use frequency of long words, the input method preferentially selects the long words with high use frequency as candidate long words in the history input words and the network search words without repeated words. For example, when the user enters the pinyin string "qlz," the long term found by the input method includes: "which money lovers are good" and which go to play in the first two weeks. If the number of usage times of 'which lovers are good' is higher than 'which go and play in the first two weeks', the 'which lovers are good' is preferably selected as the preferred long word.
In the input method, in the history input words and the network search words with the repeated words removed, if long words belonging to the user common field exist, the long words belonging to the user common field are preferably used as candidate long words.
In the input method, in the history input words and the network search words without the repeated words, if long words belonging to the interests of the user exist, the long words belonging to the interests of the user are preferably used as candidate long words.
In another example in this embodiment of the present application, the step 206 may specifically include the following sub-steps:
a sub-step S21 of identifying a current input environment;
and a substep S22, determining candidate long words from the history input words and the network search words after the repeated words are removed according to the current input environment.
The current input environment refers to the application that is performing the input process. For example, when a user makes an input at a Taobao application, the input environment is the Taobao application. When the user makes an input at the QQ application, the input context is the QQ application.
The input method determines candidate long words from historical input words and network search words after repeated words are removed according to the current input environment. For example, if the current input environment is a pan application, the pinyin string input by the user is "qlz", and the long words found by the input method in the history input words and the network search words after the duplicate words are removed include: "which money lovers are good" and which go to play in the first two weeks. The input method preferably takes the long word 'which lovers are good' related to shopping as the preferred long word.
Step 207, the candidate long words are displayed.
In the embodiment of the application, the input method can simultaneously display the long words and the short words which are matched with the submitted code character strings. For short words, the input method may present the short words in a conventional candidate box. For long words, the input method may generate a long word candidate box for presenting the long word.
Fig. 4 is a schematic diagram illustrating candidate long words and candidate short words displayed by the input method in the embodiment of the application. The short words "great wall", "slow wall", "full wall", "free wall" and "slow" are displayed in the conventional candidate box, and the long words "full wall with golden armor", "full wall with wind and rain", "full wall county", "full wall with blossom" are displayed in the long word candidate box below the conventional candidate box.
It should be noted that the long-term candidate box is not necessarily connected to the lower side of the conventional candidate box, and the long-term candidate box may be disposed on any side of the conventional candidate box to be connected to the conventional candidate box. The long term candidate frame may be disposed on any side of the conventional candidate frame without being connected to the conventional candidate frame, and the present application is not limited thereto.
In the embodiment of the present application, the input method may present, in addition to the candidate long word, multimedia information adapted to the candidate long word, where the multimedia information may include: pictures, expressions, videos, etc. The input method can search the multimedia information matched with the candidate words from a terminal local database, and can also search the multimedia information matched with the candidate words from a server.
For example, when the user inputs in the chat box, the input method presents pictures adapted to the candidate long words, and when the user selects one of the pictures, the input method can input the picture into the chat box.
In the embodiment of the application, the input method may display the multimedia information in the long word candidate box, or may additionally generate a multimedia information candidate box to display the multimedia information.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 5, a block diagram of an embodiment of an input device of the present application is shown, which may specifically include the following modules:
a history searching module 301, configured to search a history input word adapted to the submitted encoded character string in history input data;
a network searching module 302, configured to search a network search term adapted to the encoded character string from a server;
a candidate long term determining module 303, configured to determine a candidate long term from the historical input terms and the network search terms;
and a candidate long word display module 304, configured to display the candidate long word.
In this embodiment, the apparatus may further include:
the short word searching module is used for searching the short words matched with the coded character strings from a local word stock;
the candidate long term determination module 303 may include:
the repeated word determining submodule is used for respectively determining repeated words among the historical input words, the network search words and the short words;
the repeated word removing sub-module is used for removing corresponding repeated words from the historical input words and the network search words;
and the candidate long word determining sub-module is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed.
In this embodiment of the present application, the history lookup module 301 may include:
the segmentation submodule is used for segmenting the coded character string;
and the historical input word searching submodule is used for searching the historical input words mapped by the segmented code character strings from the historical input data.
In this embodiment, the network searching module 302 may include:
the search request generation submodule is used for generating a search request by adopting the coding character string;
the search request sending submodule is used for sending the search request to the server;
and the network search word receiving submodule is used for receiving the network search words returned by the server aiming at the search request.
In an example of the embodiment of the present application, the candidate long-word determining sub-module includes:
the personalized data acquisition unit is used for acquiring personalized data of a user;
and the personalized long word determining unit is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
In another example of the embodiment of the present application, the candidate long-word determining sub-module includes:
an input environment recognition unit for recognizing a current input environment;
and the environment long word determining unit is used for determining candidate long words from the history input words and the network search words after the repeated words are removed according to the current input environment.
In this embodiment of the present application, the candidate long word presenting module 304 may include:
the long word candidate box generation submodule is used for generating a long word candidate box;
and the candidate frame long word display sub-module is used for displaying the candidate long words in the long word candidate frame.
In this embodiment, the apparatus may further include:
the multimedia information searching module is used for searching the multimedia information matched with the candidate long words;
and the multimedia information display module is used for displaying the multimedia information.
According to the method and the device, the internet big data and the historical input data of the user are used as the source of the user word bank, and the input method can search long words with the length longer than the code character strings from the server and the historical input data to serve as candidate words, so that the long words can be obtained by inputting few code character strings by the user, the input operation of the user is reduced, and the input efficiency is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
FIG. 6 is a block diagram illustrating an apparatus 400 for input according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform an input method, the method comprising:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
and displaying the candidate long words.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The above detailed description is provided for an input method, an input device and a device for inputting provided by the present application, and the principle and the implementation of the present application are explained by applying specific examples, and the above descriptions of the embodiments are only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
The application discloses a1, an input method, comprising:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
and displaying the candidate long words.
A2, the method of a1, further comprising:
searching short words matched with the coded character strings from a local word stock;
the step of determining candidate long words in the historical input words and the network search words comprises the following steps:
respectively determining repeated words among the historical input words, the network search words and the short words;
removing corresponding repeated words from the historical input words and the network search words;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed.
A3, the method as in a1, wherein the step of searching the historical input data for the historical input word matching the code string comprises:
segmenting the coded character string;
and searching the historical input words mapped by the segmented code character strings from the historical input data.
A4, the method as in a1, wherein the step of searching the server for the network search term matching the code string comprises:
generating a search request by adopting the code character string;
sending the search request to the server;
and receiving the network search words returned by the server aiming at the search request.
A5, the method according to A1, wherein the step of determining candidate long words from the history input words and the network search words after the repeated words are removed comprises the following steps:
acquiring user personalized data;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
A6, the method according to A1, wherein the step of determining candidate long words from the history input words and the network search words after the repeated words are removed comprises the following steps:
identifying a current input environment;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the current input environment.
A7, the method as described in a1, the step of presenting the candidate long word comprising:
generating a long word candidate box;
and displaying the candidate long words in the long word candidate box.
A8, the method of a1, further comprising:
searching multimedia information matched with the candidate long words;
and displaying the multimedia information.
The application also discloses B9, an input device, comprising:
the history searching module is used for searching the history input words matched with the coded character strings in the history input data;
the network searching module is used for searching the network searching words matched with the coding character strings from the server;
the candidate long word determining module is used for determining candidate long words in the historical input words and the network search words;
and the candidate long word display module is used for displaying the candidate long words.
B10, the apparatus of B9, further comprising:
the short word searching module is used for searching the short words matched with the coded character strings from a local word stock;
the candidate long word determination module comprises:
the repeated word determining submodule is used for respectively determining repeated words among the historical input words, the network search words and the short words;
the repeated word removing sub-module is used for removing corresponding repeated words from the historical input words and the network search words;
and the candidate long word determining sub-module is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed.
B11, the apparatus as described in B9, the history lookup module comprising:
the segmentation submodule is used for segmenting the coded character string;
and the historical input word searching submodule is used for searching the historical input words mapped by the segmented code character strings from the historical input data.
B12, the apparatus as in B9, the network lookup module comprising:
the search request generation submodule is used for generating a search request by adopting the coding character string;
the search request sending submodule is used for sending the search request to the server;
and the network search word receiving submodule is used for receiving the network search words returned by the server aiming at the search request.
B13, the apparatus as described in B9, the candidate long term determination sub-module comprising:
the personalized data acquisition unit is used for acquiring personalized data of a user;
and the personalized long word determining unit is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
B14, the apparatus as described in B9, the candidate long term determination sub-module comprising:
an input environment recognition unit for recognizing a current input environment;
and the environment long word determining unit is used for determining candidate long words from the history input words and the network search words after the repeated words are removed according to the current input environment.
B15, the device as B9, the candidate long word presenting module comprising:
the long word candidate box generation submodule is used for generating a long word candidate box;
and the candidate frame long word display sub-module is used for displaying the candidate long words in the long word candidate frame.
B16 the apparatus of B9, further comprising:
the multimedia information searching module is used for searching the multimedia information matched with the candidate long words;
and the multimedia information display module is used for displaying the multimedia information.
The application also discloses C17, an apparatus for input comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
and displaying the candidate long words.

Claims (21)

1. An input method, comprising:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
displaying the candidate long words;
the candidate long words are candidate words with the length longer than the code character strings submitted by the user;
the step of presenting the candidate long word comprises:
generating a long word candidate box;
displaying the candidate long words in the long word candidate box;
the step of determining candidate long words in the historical input words and the network search words comprises the following steps:
respectively determining repeated words among the historical input words, the network search words and the short words; the short words are short words matched with the coded character strings;
removing corresponding repeated words from the historical input words and the network search words;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed.
2. The method of claim 1, further comprising:
and searching short words matched with the coded character string from a local word stock.
3. The method of claim 1, wherein the step of searching the historical input data for the historical input word that fits the encoding string comprises:
segmenting the coded character string;
and searching the historical input words mapped by the segmented code character strings from the historical input data.
4. The method of claim 1, wherein the step of searching the server for the network search term matching the encoded string comprises:
generating a search request by adopting the code character string;
sending the search request to the server;
and receiving the network search words returned by the server aiming at the search request.
5. The method according to claim 1, wherein the step of determining candidate long words from the history input words and the network search words after the repeated words are removed comprises:
acquiring user personalized data;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
6. The method according to claim 1, wherein the step of determining candidate long words from the history input words and the network search words after the repeated words are removed comprises:
identifying a current input environment;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the current input environment.
7. The method of claim 1, further comprising:
searching multimedia information matched with the candidate long words;
and displaying the multimedia information.
8. An input device, comprising:
the history searching module is used for searching the history input words matched with the coded character strings in the history input data;
the network searching module is used for searching the network searching words matched with the coding character strings from the server;
the candidate long word determining module is used for determining candidate long words in the historical input words and the network search words;
the candidate long word display module is used for displaying the candidate long words;
the candidate long words are candidate words with the length longer than the code character strings submitted by the user;
the device further comprises:
the long word candidate box generation submodule is used for generating a long word candidate box;
the candidate frame long word display sub-module is used for displaying the candidate long words in the long word candidate frame;
the repeated word determining submodule is used for respectively determining repeated words among the historical input words, the network search words and the short words; the short words are short words matched with the coded character strings;
the repeated word removing sub-module is used for removing corresponding repeated words from the historical input words and the network search words;
and the candidate long word determining sub-module is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed.
9. The apparatus of claim 8, further comprising:
and the short word searching module is used for searching the short words matched with the coding character strings from a local word stock.
10. The apparatus of claim 8, further comprising:
the segmentation submodule is used for segmenting the coded character string;
and the historical input word searching submodule is used for searching the historical input words mapped by the segmented code character strings from the historical input data.
11. The apparatus of claim 8, further comprising:
the search request generation submodule is used for generating a search request by adopting the coding character string; the search request sending submodule is used for sending the search request to the server;
and the network search word receiving submodule is used for receiving the network search words returned by the server aiming at the search request.
12. The apparatus of claim 8, further comprising:
the personalized data acquisition unit is used for acquiring personalized data of a user;
and the personalized long word determining unit is used for determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
13. The apparatus of claim 8, further comprising:
an input environment recognition unit for recognizing a current input environment;
and the environment long word determining unit is used for determining candidate long words from the history input words and the network search words after the repeated words are removed according to the current input environment.
14. The apparatus of claim 8, further comprising:
the multimedia information searching module is used for searching the multimedia information matched with the candidate long words;
and the multimedia information display module is used for displaying the multimedia information.
15. An apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:
searching historical input words matched with the coded character strings in historical input data;
searching a network search word matched with the coding character string from a server;
determining candidate long words in the historical input words and the network search words;
displaying the candidate long words;
the candidate long words are candidate words with the length longer than the code character strings submitted by the user;
the step of presenting the candidate long word comprises:
generating a long word candidate box;
displaying the candidate long words in the long word candidate box;
in the history input words and the network search words, determining candidate long words by adopting the following modes:
respectively determining repeated words among the historical input words, the network search words and the short words; the short words are short words matched with the coded character strings;
removing corresponding repeated words from the historical input words and the network search words;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed.
16. The apparatus of claim 15, further comprising instructions for: and searching short words matched with the coded character string from a local word stock.
17. The apparatus of claim 15, wherein the step of searching the historical input data for the historical input word that fits the encoding string comprises:
segmenting the coded character string;
and searching the historical input words mapped by the segmented code character strings from the historical input data.
18. The apparatus of claim 15, wherein the step of searching the server for the network search term matching the encoded string comprises:
generating a search request by adopting the code character string;
sending the search request to the server;
and receiving the network search words returned by the server aiming at the search request.
19. The apparatus according to claim 15, wherein the step of determining candidate long words from the history input words and the network search words after the repeated words are removed comprises:
acquiring user personalized data;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the user personalized data.
20. The apparatus according to claim 15, wherein the step of determining candidate long words from the history input words and the network search words after the repeated words are removed comprises:
identifying a current input environment;
and determining candidate long words from the historical input words and the network search words after the repeated words are removed according to the current input environment.
21. The apparatus of claim 15, further comprising instructions for:
searching multimedia information matched with the candidate long words;
and displaying the multimedia information.
CN201611207928.2A 2016-12-23 2016-12-23 Input method, input device and input device Active CN108241438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611207928.2A CN108241438B (en) 2016-12-23 2016-12-23 Input method, input device and input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611207928.2A CN108241438B (en) 2016-12-23 2016-12-23 Input method, input device and input device

Publications (2)

Publication Number Publication Date
CN108241438A CN108241438A (en) 2018-07-03
CN108241438B true CN108241438B (en) 2022-02-25

Family

ID=62703432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611207928.2A Active CN108241438B (en) 2016-12-23 2016-12-23 Input method, input device and input device

Country Status (1)

Country Link
CN (1) CN108241438B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109799917A (en) * 2019-02-19 2019-05-24 天津字节跳动科技有限公司 Character input method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013443A (en) * 2007-02-13 2007-08-08 北京搜狗科技发展有限公司 Intelligent word input method and input method system and updating method thereof
CN101441524A (en) * 2008-11-26 2009-05-27 腾讯科技(深圳)有限公司 Method and apparatus for generating alternating content in input method
CN102567433A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Processing method, device and mobile terminal based on input method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076893B (en) * 2012-12-31 2016-08-17 百度在线网络技术(北京)有限公司 A kind of method and apparatus for realizing phonetic entry

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013443A (en) * 2007-02-13 2007-08-08 北京搜狗科技发展有限公司 Intelligent word input method and input method system and updating method thereof
CN101441524A (en) * 2008-11-26 2009-05-27 腾讯科技(深圳)有限公司 Method and apparatus for generating alternating content in input method
CN102567433A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Processing method, device and mobile terminal based on input method

Also Published As

Publication number Publication date
CN108241438A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN105489220B (en) Voice recognition method and device
CN108038102B (en) Method and device for recommending expression image, terminal and storage medium
US10783459B2 (en) Method and device for providing ticket information
CN109144285B (en) Input method and device
CN107315487B (en) Input processing method and device and electronic equipment
CN110391966B (en) Message processing method and device and message processing device
CN105447109A (en) Key word searching method and apparatus
CN106453528A (en) Method and device for pushing message
CN111046210A (en) Information recommendation method and device and electronic equipment
CN106331328B (en) Information prompting method and device
CN108984628B (en) Loss value obtaining method and device of content description generation model
CN104951522B (en) Method and device for searching
CN113987128A (en) Related article searching method and device, electronic equipment and storage medium
CN106960026B (en) Search method, search engine and electronic equipment
CN111629270A (en) Candidate item determination method and device and machine-readable medium
CN110213062B (en) Method and device for processing message
CN107436896B (en) Input recommendation method and device and electronic equipment
CN109842688B (en) Content recommendation method and device, electronic equipment and storage medium
CN108241438B (en) Input method, input device and input device
CN111831132A (en) Information recommendation method and device and electronic equipment
CN105512231A (en) Contact person search method, device and terminal device
CN104991779A (en) Presentation method and device
CN114462410A (en) Entity identification method, device, terminal and storage medium
CN109145151B (en) Video emotion classification acquisition method and device
CN108345590B (en) Translation method, translation device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant