CN109426356A - Data inputting method and device - Google Patents
Data inputting method and device Download PDFInfo
- Publication number
- CN109426356A CN109426356A CN201710781007.5A CN201710781007A CN109426356A CN 109426356 A CN109426356 A CN 109426356A CN 201710781007 A CN201710781007 A CN 201710781007A CN 109426356 A CN109426356 A CN 109426356A
- Authority
- CN
- China
- Prior art keywords
- input
- character string
- user
- terminal
- inputted
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/306—User profiles
Abstract
This application discloses data inputting methods and device.One specific embodiment of this method includes: the input request sent by receiving terminal;Judge the character string in default dictionary with the presence or absence of user's input;When presetting in dictionary there are when the character string of user's input, the corresponding input results of character string of user's input in default dictionary are sent to terminal as candidate result.Realize the corresponding input results of the character string inputted with the multiple users repeatedly inputted by the character string that multiple users inputted using default dictionaries store, to, when the character string of user's input is the character string in default dictionary, the terminal of user is directly sent to using the corresponding input results of character string inputted by multiple users repeatedly inputted as candidate result.On the one hand, the case where candidate result wrong obtained from whole sentence transformation returns to the terminal of user can be carried out to avoid to the new sentence occurred in such as network, on the other hand, improves the speed for returning to candidate result.
Description
Technical field
This application involves computer fields, and in particular to input method field more particularly to data inputting method and device.
Background technique
Currently, providing the corresponding sentence of character string that user's input can be generated as candidate knot in some input methods
The function of fruit.It generallys use to obtain the mode of candidate result are as follows: the corresponding multiple words of each substring are successively inquired,
According to the syntagmatic between each word pre-established, the syntagmatic between word is found out, obtains whole sentence transformation knot
Fruit, and then obtain candidate result.
However, for the new sentence occurred in such as network, due in the syntagmatic and generic statements between word
Word between syntagmatic otherness, can not pre-establish and possibly be present in the new sentence occurred in such as network
Word between syntagmatic, and then lead to not to obtain correct whole sentence transformation results, provide a user correct candidate
As a result.
Summary of the invention
This application provides data inputting methods and device, ask for solving technology existing for above-mentioned background technology part
Topic.
In a first aspect, this application provides data inputting method, this method comprises: the input request that terminal is sent is received,
Input request includes: the character string of user's input of terminal;Judge the character string in default dictionary with the presence or absence of user's input, in advance
If dictionary includes: to be greater than the character string that amount threshold user inputted, the word inputted greater than amount threshold user
The input number for being input into input area in the corresponding input results of symbol string is greater than the input results of frequency threshold value;When default
There are when the character string of user's input in dictionary, the character string of user's input in default dictionary corresponding is input into input
The corresponding candidate result of character string that the input results that the input number in region is greater than frequency threshold value are inputted as user is sent to
Terminal.
Second aspect, this application provides message input device, which includes: receiving unit, is configured to receive eventually
The input request that end is sent, input request include: the character string of user's input of terminal;It is pre- to be configured to judgement for judging unit
If default dictionary includes: the word inputted greater than amount threshold user with the presence or absence of the character string of user's input in dictionary
Symbol string is greater than in the corresponding input results of character string that inputted of amount threshold user and is input into the defeated of input area
Indegree is greater than the input results of frequency threshold value;Transmission unit is configured to when there are the characters of user's input in default dictionary
When string, the corresponding input number for being input into input area of character string of user's input in default dictionary is greater than number threshold
The input results of value are sent to terminal as the corresponding candidate result of character string that user inputs.
Data inputting method and device provided by the present application are requested by receiving the input that terminal is sent, input request packet
It includes: the character string of user's input of terminal;Judge the character string in default dictionary with the presence or absence of user's input, presets dictionary packet
It includes: corresponding by the character string inputted greater than amount threshold user, the character string inputted greater than amount threshold user
Input results in be input into input area input number be greater than frequency threshold value input results;It is deposited when in default dictionary
In the character string of user's input, the character string of user's input in default dictionary corresponding is input into the defeated of input area
The corresponding candidate result of character string that the input results that indegree is greater than frequency threshold value are inputted as user is sent to terminal.It realizes
Using default dictionaries store by character string that multiple users inputted and the word inputted by multiple users that is repeatedly inputted
The corresponding input results of symbol string, thus, it is to be inputted in default dictionary by multiple users in the character string of the user's input received
When the character string crossed, directly using the corresponding input results of character string inputted by multiple users repeatedly inputted as candidate
As a result it is sent to the terminal of user.On the one hand, can to avoid carrying out whole sentence transformation to the new sentence occurred in such as network and
On the other hand the case where candidate result of obtained mistake returns to the terminal of user improves the speed for returning to candidate result.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is shown can be using the exemplary system architecture of the embodiment of the data inputting method or device of the application;
Fig. 2 shows the flow charts according to one embodiment of the data inputting method of the application;
Fig. 3 shows the structural schematic diagram of one embodiment of the message input device according to the application;
Fig. 4 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system architecture of the embodiment of the data inputting method or device of the application.
As shown in Figure 1, system architecture may include terminal 101,102,103, network 104 and server 105.Network 104
To provide the medium of transmission link between terminal 101,102,103 and server 105.Network 104 may include various companies
Connect type, such as wired, wireless transmission link or fiber optic cables etc..
User can be used terminal 101,102,103 and be interacted by network 104 with server 105, be disappeared with receiving or sending
Breath etc..Input method application, browser application can be installed in terminal 101,102,103.
Terminal 101,102,103 can be with display screen and support the various electronic equipments of network communication, including but
It is not limited to smart phone, tablet computer, E-book reader, pocket computer on knee and desktop computer etc..
Server 105, which can be, provides the server supported to the input method application in terminal 101,102,103.Server
105 inputs that can receive the character string of user's input comprising terminal 101,102,103 of the transmission of terminal 101,102,103 are asked
It asks, inquires the corresponding sentence of character string of user's input of terminal 101,102,103, the character that the user inquired is inputted
Corresponding sentence of going here and there is sent to terminal 101,102,103.
It should be understood that the number of terminal, network and server in Fig. 1 is only schematical.It, can according to needs are realized
With any number of terminal, network and server.
Referring to FIG. 2, it illustrates the processes according to one embodiment of the data inputting method of the application.It needs to illustrate
, data inputting method provided by the embodiment of the present application can execute by server (server 105 of example as shown in figure 1).
Method includes the following steps:
Step 201, the input request that terminal is sent is received.
In the present embodiment, the input that can be sent by server receiving terminal is requested, comprising terminal in input request
The character string of user's input.The input operation that user can be detected at the terminal obtains the character string of user's input of terminal,
Terminal generates the input request for the character string that the user comprising terminal inputs, and sends input request by terminal to server.Eventually
The input each time of the user at end operates, and can generate an input request in terminal.
Step 202, judge the character string in default dictionary with the presence or absence of user's input.
It in the present embodiment, can be by server after receiving the input request of terminal transmission, it can be determined that default
The character string inputted in dictionary with the presence or absence of the user of terminal.When there are the character strings of the user of terminal input in default dictionary
When, can by server by default dictionary terminal user input the corresponding input results of character string in be input into it is defeated
The input number for entering region is greater than the corresponding candidate knot of character string that the input results of frequency threshold value are inputted as the user of terminal
Fruit is sent to terminal.
In the present embodiment, default dictionary includes: the character string inputted greater than amount threshold user, is greater than number
The input number for being input into input area in the corresponding input results of character string that amount threshold value user inputted is greater than secondary
The input results of number threshold value, amount threshold can be greater than frequency threshold value.Input area is can finally entering with presentation user
The region of word or sentence.For example, input area be browser, instant messaging apply input frame, user when inputting,
Can position a cursor over first browser, instant messaging application input frame in.
In some optional implementations of the present embodiment, user input the corresponding candidate result of character string include with
It is one of lower: the corresponding sentence of character string that the corresponding word of character string of user's input, user input.
In the present embodiment, it is final later defeated can to input the character string for user for the corresponding input results of a character string
Enter word or sentence into input area.The corresponding input results of one character string can be to be multiple, for example, in two users
Respectively input a character string after, finally respectively by two different words or input by sentence into input area, then this two
The corresponding input results of a character string that a user inputs respectively are two, i.e., two different words or sentence.
In the present embodiment, presetting in dictionary may include multiple items, each may include one and is greater than quantity
The character string that threshold value user inputted and the input number that input area is input in the corresponding input results of the character string
Greater than the input results of frequency threshold value.In other words, greater than amount threshold user when inputting the character string of the input, finally
The input results such as word or sentence inputted in input area may be multiple and different input results, store in default dictionary
Input results be the input the corresponding all input results of character string in be input into input area input number it is big
In the input results of frequency threshold value.
For example, be greater than amount threshold user inputted the same character string respectively, also, it is greater than amount threshold user
When inputting the same character string respectively, finally entering word or sentence in input area is an identical word or language
Sentence, then the same character string can be used as the character string inputted by amount threshold user is greater than in default dictionary, should
An identical word or sentence can be used as the corresponding input results of the same character string.Since amount threshold can be with
Greater than frequency threshold value, therefore, the input number of an identical word or input by sentence to input area is also greater than number threshold
Value, an identical word or sentence can be used as quilt in the corresponding input results of the same character string in default dictionary
The input number for being input to input area is greater than the input results of frequency threshold value, i.e. an identical word or sentence can be made
To be greater than the i.e. corresponding input of the same character string of character string that amount threshold user inputted in default dictionary
As a result the input number that input area is input in is greater than the input results of frequency threshold value.
In the present embodiment, when the character of user's input of the terminal in the input request that default dictionary is sent there are terminal
When string, then it can determine that the character string of user's input of terminal was inputted by amount threshold user is greater than, then it is available pre-
If inputting the input that number is greater than frequency threshold value in the corresponding input results of character string that the user of the terminal in dictionary inputs
As a result, input number is greater than secondary in the corresponding input results of character string that the user of the terminal in default dictionary can be inputted
The input results of number threshold value are sent to terminal as the corresponding candidate result of character string that the user of the terminal inputs.To eventually
End, can be to be presented to the user of the terminal candidate result, when the candidate result quilt after receiving the candidate result in terminal
When selection, which can be input in input area.
In some optional implementations of the present embodiment, it can be remembered by server according to the input that multiple terminals are sent
Record is determined to be greater than the character string that amount threshold user inputted and the character inputted greater than amount threshold user
It goes here and there and is input to the input number of input area in corresponding input results and is greater than the input results of frequency threshold value.Each terminal exists
It, can after the corresponding candidate result of character string of user's input for receiving the terminal generated in server sent by server
With judge receive the terminal user input the corresponding candidate result of character string whether with finally enter input area
The corresponding input results of character string are consistent.When terminal judges the terminal generated in server sent by server received
User input the corresponding candidate result of character string with finally enter input area terminal user input character string
When corresponding input results are inconsistent, input record can be generated in terminal, input record include: the user of terminal mark and
The generation that the corresponding input results of character string and terminal for finally entering user's input of the terminal in input area receive
Terminal user input the corresponding candidate result of character string it is inconsistent when terminal user input character string and terminal
User the character string corresponding input results in input area are finally entered when inputting the character string.
For example, being greater than quantity when occurring i.e. a kind of new corresponding sentence of expression way of a new sentence in network
Threshold value with that can input the corresponding character string of new sentence occurred in the network per family, greater than the terminal of amount threshold user
It can be sent respectively to server corresponding comprising being greater than the new sentence occurred in the network that amount threshold user inputs
Character string.Server receive that the terminal greater than amount threshold user sends respectively comprising occur in the network newly
After the input request of the corresponding character string of sentence, it is corresponding that the corresponding character string of the new sentence occurred in the network can be generated
Sentence, the corresponding sentence of the corresponding character string of new sentence occurred in the network of generation is inputted into the network as user
The corresponding candidate result of the corresponding character string of new sentence of middle appearance is sent respectively to the terminal greater than amount threshold user
Each of terminal.
Due to the otherness of the expression way of the expression way of new sentence and generic statements that occur in network, lead to nothing
Method accurately determines the syntagmatic of each word in the new sentence occurred in network, and then leads to the user generated input
The network in the new sentence that occurs in the corresponding sentence of the corresponding character string of new sentence and the network that occur it is inconsistent.
In other words, the corresponding sentence of the corresponding character string of new sentence occurred in the network that server generates is the sentence of mistake,
The sentence of the mistake of generation is sent to the terminal greater than amount threshold user by server.Greater than the end of amount threshold user
The user at end will not select to shield on the wrong sentence for generating server, i.e., will not select the language for the mistake for generating server
Sentence is input in input area, and the user greater than the terminal of amount threshold user can will be on the new sentence occurred in the network
Screen, i.e., by the new input by sentence occurred in the network into input area.
The terminal of each of terminal greater than amount threshold user user may determine that user should in input
Finally enter after the corresponding character string of new sentence occurred in network occur in the network in input area it is new
What the new sentence occurred in the corresponding input results of the corresponding character string of the sentence i.e. network was sent with the server received
The corresponding candidate result of the corresponding character string of new sentence occurred in the network that server generates is inconsistent, each end
Input record can be generated on end.Input record includes: the mark of the user of terminal, corresponding input results and received candidate
As a result the corresponding character string of new sentence that occurs in the inconsistent character string i.e. network when corresponding input results and receives
Candidate result it is inconsistent when user's input the character string corresponding input results networks in the new sentence that occurs.
Each of terminal greater than amount threshold user terminal can send input note respectively to server respectively
Record, server can determine the corresponding character string quilt of the new sentence occurred in the network according to the input record received
It was inputted in the corresponding input results of corresponding with the new sentence occurred in the network character string greater than amount threshold user
The input number for being input into input area be greater than the new sentence that occurs in input results i.e. network of frequency threshold value, clothes
The new sentence occurred in the corresponding character string of new sentence occurred in the network and the network can be added to pre- by business device
If in dictionary.
Step 203, the corresponding input results of character string of user's input in default dictionary are sent as candidate result
To terminal.
In the present embodiment, can by server when in default dictionary there are when the character string of the user of terminal input,
The input number for being input into input area in the corresponding input results of the user string of terminal in default dictionary is big
Terminal is sent to as candidate result in the input results of frequency threshold value.
For example, before receiving the input request of terminal transmission by server, greater than amount threshold with inputting per family
The corresponding character string of new sentence occurred in a network is crossed, also, finally that the new sentence occurred in the network is defeated
Enter into input area.Then it is default can to determine that the corresponding character string of new sentence occurred in the network can be used as server
Character string was inputted by multiple users in dictionary, also, the new sentence occurred in the network can be used as in default dictionary
The input number for being input to input area in the corresponding input results of the corresponding character string of new sentence occurred in the network
Greater than the input results of frequency threshold value.Correspondingly, one preset in dictionary may include the new sentence occurred in the network
The new sentence occurred in corresponding character string and the network.
To when the character string for the user's input for receiving the terminal in the input request that terminal is sent by server is to be somebody's turn to do
When the corresponding character string of the new sentence occurred in network, then it can determine new there are what is occurred in the network in default dictionary
The corresponding character string of sentence ties the corresponding input of the corresponding character string of new sentence occurred in the network in default dictionary
The input number for being input into input area in fruit is greater than the new language occurred in input results i.e. network of frequency threshold value
Sentence is sent to terminal as the corresponding candidate result of character string that the user of terminal inputs, when the user of the terminal selects the candidate
It, can be by the new input by sentence occurred in network into input area when as a result being inputted.
To, receive terminal transmission input request after, without server generate occur in the network it is new
The corresponding candidate result of the corresponding character string of sentence, directly to terminal send correct terminal user input character string pair
The new sentence occurred in the candidate result the answered i.e. network.
In some optional implementations of the present embodiment, when there is no the input requests that terminal is sent in default dictionary
In the terminal user's input character string when, it can be determined that asked in history input table with the presence or absence of the input that is sent with terminal
The character string of user's input of terminal in asking.Include the character string being entered and the character being entered in history input table
Go here and there corresponding candidate result.History input table may include multiple list items, each list item includes a character being entered
The character string being entered of string candidate result such as generation corresponding with the character string being entered generated is corresponding
Word or sentence.When the character string of user's input of the terminal in the input request sent in history input table there are terminal,
Then the corresponding candidate result of character string that the user of the terminal in history input table inputs can be sent to terminal.
For example, server before receiving the input request that terminal is sent, receives the input request of other terminals transmission,
The character string of the user's input for the terminal that the other users comprising other terminals input in input request, server can be right
The character string of user's input of the terminal carries out whole sentence transformation, generates the corresponding sentence of character string of user's input of the terminal,
The corresponding sentence of character string that the user of the terminal of generation inputs is sent to other terminals as candidate result.It can be by it
The character string of user's input of the terminal of his user's input language corresponding with the character string of the user of the terminal generated input
Sentence is added in history input table.To the end in input request sent in judging history input table with the presence or absence of terminal
When the character string of user's input at end, the character string and generation of user's input of terminal can be found out in history input table
The corresponding sentence of character string of user's input of the terminal can determine that there are the words of the user of terminal input in history input table
History can be inputted the word that the corresponding sentence of character string of user's input of terminal in table is inputted as the user of terminal by symbol string
The corresponding candidate result of symbol string is sent to terminal.Terminal can be presented to use after receiving the candidate result at the terminal
The candidate result can be input in input area by the family candidate result when the candidate result is selected.
In some optional implementations of the present embodiment, asked when the input that terminal is sent is not present in history input table
When the character string of user's input of the terminal in asking, the corresponding candidate result of character string of user's input of terminal can be generated.
For example, when terminal user input character string length be greater than length threshold when, then terminal user input character string pair
The candidate result answered may be sentence, can carry out whole sentence transformation to the character string that the user of terminal inputs, obtain the use of terminal
The corresponding sentence of character string of family input.The character string that the user of terminal inputs can be divided into multiple substrings, more
It is inquired in a dictionary, inquires the multiple substrings for being divided the character string of user's input of terminal respectively
In the corresponding word of each substring.It is then possible to based on the adjacent corresponding word of each substring inquired
The binary crelation of the corresponding word of adjacent substring in language determines the character eventually for the user's input for generating terminal
It goes here and there the corresponding word of each substring of corresponding sentence, generates the corresponding sentence of character string of user's input of terminal.
The corresponding sentence of character string that the user of the terminal of generation can be inputted is corresponding as the character string of the user of terminal input
Candidate result is sent to terminal.Meanwhile the character string language corresponding with the character string generated that the user of terminal can be inputted
Sentence is added in history input table.
Referring to FIG. 3, this application provides a kind of message input devices as the realization to method shown in above-mentioned each figure
One embodiment, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to various electricity
In sub- equipment.
As shown in figure 3, the message input device of the present embodiment includes: receiving unit 301, judging unit 302, transmission unit
303.Wherein, for receiving unit 301 in the input request for receiving terminal transmission, input request includes: the word of user's input of terminal
Symbol string;For judging unit 302 in judging the character string in default dictionary with the presence or absence of user's input, default dictionary includes: to be greater than
Character string that amount threshold user inputted, the corresponding input results of character string for being greater than amount threshold user and being inputted
In be input into input area input number be greater than frequency threshold value input results;Transmission unit 303 is configured to when pre-
If in dictionary there are user input character string when, by default dictionary user input character string it is corresponding be input into it is defeated
The input number for entering region is greater than the corresponding candidate result transmission of character string that the input results of frequency threshold value are inputted as user
To terminal.
In some optional implementations of the present embodiment, message input device further include: adding unit is configured to
The input record that multiple terminals are sent is received, input record is based on terminal and detects that character string is input to input area after being entered
The corresponding input results of character string candidate result corresponding with the character string that terminal receives in domain is inconsistent and generates, input
Record includes: the mark of the user of terminal, corresponding the input results character string inconsistent with the candidate result that receives, character
Go here and there corresponding input results;Based on input record, determines and be greater than the character string and be greater than that amount threshold user inputted
The input number for being input into input area in the corresponding input results of the character string that amount threshold user inputted is greater than
The input results of frequency threshold value;It is greater than the character string and be input into input that amount threshold user inputted for what is determined
The input results that the input number in region is greater than frequency threshold value are added in default dictionary.
In some optional implementations of the present embodiment, message input device further include: the first query unit, configuration
For when there is no when the character string of user's input, judge to whether there is the word that user inputs in history input table in default dictionary
Symbol string, history input table includes: the character string being entered candidate result corresponding with the character string being entered;When history is defeated
Enter in table there are when the character string of user's input, the corresponding candidate result of character string for user's input that history inputs in table is sent out
It send to terminal;Second query unit is configured to when the character string of user's input is not present in history input table, based on multiple
Dictionary generates the corresponding candidate result of character string of user's input;The corresponding candidate knot of the character string that the user of generation is inputted
Fruit is sent to terminal, and the corresponding candidate result of character string of the character string of user's input and user's input of generation is added
Into history input table.
Fig. 4 shows the structural schematic diagram for being suitable for the computer system for the server for being used to realize the embodiment of the present application.Fig. 4
The server shown is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
It, can be according to being stored in read-only storage as shown in figure 4, computer system includes central processing unit (CPU) 401
Program in device (ROM) 402 is executed from the program that storage section 408 is loaded into random access storage device (RAM) 403
Various movements appropriate and processing.In RAM403, it is also stored with various programs and data needed for computer system operation.
CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always
Line 404.
I/O interface 405: importation 406 is connected to lower component;Output par, c 407;Storage section including hard disk etc.
408;And the communications portion 409 of the network interface card including LAN card, modem etc..Communications portion 409 is via all
As the network of internet executes communication process.Driver 410 is also connected to I/O interface 405 as needed.Detachable media 411,
Such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 410, in order to from thereon
The computer program of reading is mounted into storage section 408 as needed.
Particularly, process described in embodiments herein may be implemented as computer program.For example, the application
Embodiment includes a kind of computer program product comprising carries computer program on a computer-readable medium, the calculating
Machine program includes the instruction for method shown in execution flow chart.The computer program can be by communications portion 409 from net
It is downloaded and installed on network, and/or is mounted from detachable media 411.In the computer program by central processing unit (CPU)
When 401 execution, the above-mentioned function of limiting in the present processes is executed.
Present invention also provides a kind of server, which can be configured with one or more processors;Memory is used
In storing one or more programs, may include in one or more programs to execute the step 201- in above-described embodiment
The instruction of operation described in 203.When one or more programs are executed by one or more processors, so that one or more
Processor executes operation described in the step 201-203 in above-described embodiment.
Present invention also provides a kind of computer-readable medium, which can be included in server
's;It is also possible to individualism, without in supplying server.Above-mentioned computer-readable medium carries one or more journey
Sequence, when one or more program is executed by server, so that server: receiving the input request that terminal is sent, input is asked
Ask include: terminal user input character string;Judge the character string in default dictionary with the presence or absence of user's input, presets dictionary
It include: to be greater than the character string that amount threshold user inputted, the character string pair inputted greater than amount threshold user
The input number for being input into input area in the input results answered is greater than the input results of frequency threshold value;When in default dictionary
There are when the character string of user's input, by the corresponding input area that is input into of character string of user's input in default dictionary
The corresponding candidate result of character string that the input results that input number is greater than frequency threshold value are inputted as user is sent to terminal.
It should be noted that computer-readable medium described herein can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example may include but unlimited
In the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or device, or any above combination.Computer can
The more specific example for reading storage medium can include but is not limited to: electrical connection, portable meter with one or more conducting wires
Calculation machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory
(EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or
The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program
Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen
Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable
Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by
Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium
Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (10)
1. a kind of data inputting method, which is characterized in that the described method includes:
The input request that terminal is sent is received, the input request includes: the character string of user's input of the terminal;
Judge the character string in default dictionary with the presence or absence of user input, default dictionary includes: to be greater than amount threshold
Character string that user inputted, the quilt being greater than in the corresponding input results of character string that amount threshold user was inputted
The input number for being input to input area is greater than the input results of frequency threshold value;
When there are the character strings that when character string of user input, the user in default dictionary is inputted in default dictionary
The corresponding input number for being input into input area is greater than the character that the input results of frequency threshold value are inputted as the user
Corresponding candidate result of going here and there is sent to the terminal.
2. the method according to claim 1, wherein the method also includes:
The input record that multiple terminals are sent is received, the input record is based on terminal and detects that character string is entered input later
The corresponding input results of character string candidate result corresponding with the character string that terminal receives into input area
It is inconsistent and generate, input record include: the mark of the user of terminal, corresponding input results and the candidate result received not
Consistent character string, the corresponding input results of the character string;
Based on the input record, determines and be greater than character string that amount threshold user was inputted and described by greater than quantity threshold
The input number for being input into input area in the corresponding input results of the character string that value user inputted is greater than number threshold
The input results of value;
Described it is greater than the amount threshold user character string that inputted and the input area that is input into for what is determined
The input results that input number is greater than frequency threshold value are added in default dictionary.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When the character string of user input is not present in default dictionary, judge in history input table with the presence or absence of the user
The character string of input, history input table include: the character string being entered candidate result corresponding with the character string being entered;
When there are the words that when character string of user input, the user that history inputs in table is inputted in history input table
The corresponding candidate result of symbol string is sent to terminal.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the character string of user input is not present in history input table, multiple dictionaries are based on, generate user's input
The corresponding candidate result of character string;
The corresponding candidate result of character string that the user of generation inputs is sent to terminal, and the user is inputted
The corresponding candidate result of character string of the user of character string and generation input is added in history input table.
5. method described in one of -4 according to claim 1, which is characterized in that the corresponding candidate result of character string of user's input
Including following one: the corresponding sentence of character string that the corresponding word of character string of user's input, user input.
6. a kind of message input device, which is characterized in that described device includes:
Receiving unit is configured to receive the input request that terminal is sent, and the input request includes: that the user of the terminal is defeated
The character string entered;
Judging unit is configured to judge the character string in default dictionary with the presence or absence of user input, and default dictionary includes:
By being greater than, character string, the character string inputted greater than amount threshold user that amount threshold user inputted are corresponding
Input results in be input into input area input number be greater than frequency threshold value input results;
Transmission unit, be configured to when in default dictionary there are when the character string of user input, by the institute in default dictionary
The corresponding input number for being input into input area of character string for stating user's input is greater than the input results conduct of frequency threshold value
The corresponding candidate result of character string of user's input is sent to the terminal.
7. device according to claim 6, which is characterized in that described device further include:
Adding unit is configured to receive the input record that multiple terminals are sent, and the input record is based on terminal and detects word
The word that the corresponding input results of the character string and terminal that symbol string is input in input area after being entered receive
It is inconsistent and generates that symbol goes here and there corresponding candidate result, input record include: the mark of the user of terminal, corresponding input results and
The inconsistent character string of the candidate result received, the corresponding input results of the character string;Based on the input record, determine
It is greater than the character string and the character string pair inputted greater than amount threshold user that amount threshold user inputted
The input number for being input into input area in the input results answered is greater than the input results of frequency threshold value;The institute that will be determined
It states the character string inputted greater than amount threshold user and the input number for being input into input area is greater than number
The input results of threshold value are added in default dictionary.
8. device according to claim 7, which is characterized in that described device further include:
First query unit is configured to judge that history is defeated when the character string of user input is not present in default dictionary
Enter with the presence or absence of the character string of user input in table, history input table includes: the character string being entered and was entered
The corresponding candidate result of character string;When in history input table there are the user input character string when, history is inputted into table
In the user input the corresponding candidate result of character string be sent to terminal;
Second query unit is configured to when the character string of user input is not present in history input table, based on multiple
Dictionary generates the corresponding candidate result of character string of user's input;The character string that the user of generation is inputted is corresponding
Candidate result be sent to terminal, and the character string and generation that the user is inputted the user input character string pair
The candidate result answered is added in history input table.
9. a kind of server characterized by comprising
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors
Realize such as method as claimed in any one of claims 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Such as method as claimed in any one of claims 1 to 5 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710781007.5A CN109426356B (en) | 2017-09-01 | 2017-09-01 | Information input method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710781007.5A CN109426356B (en) | 2017-09-01 | 2017-09-01 | Information input method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109426356A true CN109426356A (en) | 2019-03-05 |
CN109426356B CN109426356B (en) | 2022-07-15 |
Family
ID=65513064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710781007.5A Active CN109426356B (en) | 2017-09-01 | 2017-09-01 | Information input method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109426356B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1924858A (en) * | 2006-08-09 | 2007-03-07 | 北京搜狗科技发展有限公司 | Method and device for fetching new words and input method system |
WO2008028421A1 (en) * | 2006-08-23 | 2008-03-13 | Beijing Sogou Technology Development Co., Ltd. | Method for obtaining new encode character string, inputting method system and word base generation device |
CN102063450A (en) * | 2010-04-16 | 2011-05-18 | 百度在线网络技术(北京)有限公司 | Method and equipment for user to input words on basis of network |
CN102163198A (en) * | 2010-02-24 | 2011-08-24 | 北京搜狗科技发展有限公司 | A method and a system for providing new or popular terms |
CN103092826A (en) * | 2012-12-31 | 2013-05-08 | 百度在线网络技术(北京)有限公司 | Method and device for structuring input entry according to input information of user |
CN103647843A (en) * | 2013-12-20 | 2014-03-19 | 百度在线网络技术(北京)有限公司 | Method and device for triggering and responding to cloud input requests |
CN106371624A (en) * | 2016-09-23 | 2017-02-01 | 百度在线网络技术(北京)有限公司 | Method and device for providing input candidate item |
CN106909232A (en) * | 2017-02-28 | 2017-06-30 | 百度在线网络技术(北京)有限公司 | Method and apparatus for showing candidate entry |
-
2017
- 2017-09-01 CN CN201710781007.5A patent/CN109426356B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1924858A (en) * | 2006-08-09 | 2007-03-07 | 北京搜狗科技发展有限公司 | Method and device for fetching new words and input method system |
WO2008028421A1 (en) * | 2006-08-23 | 2008-03-13 | Beijing Sogou Technology Development Co., Ltd. | Method for obtaining new encode character string, inputting method system and word base generation device |
CN102163198A (en) * | 2010-02-24 | 2011-08-24 | 北京搜狗科技发展有限公司 | A method and a system for providing new or popular terms |
CN102063450A (en) * | 2010-04-16 | 2011-05-18 | 百度在线网络技术(北京)有限公司 | Method and equipment for user to input words on basis of network |
CN103092826A (en) * | 2012-12-31 | 2013-05-08 | 百度在线网络技术(北京)有限公司 | Method and device for structuring input entry according to input information of user |
CN103647843A (en) * | 2013-12-20 | 2014-03-19 | 百度在线网络技术(北京)有限公司 | Method and device for triggering and responding to cloud input requests |
CN106371624A (en) * | 2016-09-23 | 2017-02-01 | 百度在线网络技术(北京)有限公司 | Method and device for providing input candidate item |
CN106909232A (en) * | 2017-02-28 | 2017-06-30 | 百度在线网络技术(北京)有限公司 | Method and apparatus for showing candidate entry |
Also Published As
Publication number | Publication date |
---|---|
CN109426356B (en) | 2022-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109460513A (en) | Method and apparatus for generating clicking rate prediction model | |
CN107256195B (en) | Webpage front-end test method and device | |
CN107844324B (en) | Client page jump processing method and device | |
CN107622135A (en) | Method and apparatus for display information | |
CN110120917A (en) | Method for routing and device based on content | |
CN106874471A (en) | Information-pushing method and device | |
CN107295095A (en) | The method and apparatus for pushing and showing advertisement | |
CN109347720A (en) | It determines group member, send the method and apparatus that the request of group is added | |
CN109684578A (en) | Method and apparatus for showing information | |
US11706172B2 (en) | Method and device for sending information | |
CN106896937A (en) | Method and apparatus for being input into information | |
CN109684188A (en) | Test method and device | |
CN109241722A (en) | For obtaining method, electronic equipment and the computer-readable medium of information | |
CN108011949A (en) | Method and apparatus for obtaining data | |
CN110502699A (en) | Method and apparatus for obtaining information | |
CN108804433A (en) | Information-pushing method and device | |
CN109408748A (en) | Method and apparatus for handling information | |
CN109582317A (en) | Method and apparatus for debugging boarding application | |
CN109240802A (en) | request processing method and device | |
CN109688086A (en) | Authority control method and device for terminal device | |
CN109491721A (en) | Method and apparatus for load information | |
CN108763881A (en) | Method and apparatus for controlling user right | |
CN108011936A (en) | Method and apparatus for pushed information | |
CN108664510A (en) | Information acquisition method and device | |
CN109614603A (en) | Method and apparatus for generating information |
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 |