CN109426356B - Information input method and device - Google Patents
Information input method and device Download PDFInfo
- Publication number
- CN109426356B CN109426356B CN201710781007.5A CN201710781007A CN109426356B CN 109426356 B CN109426356 B CN 109426356B CN 201710781007 A CN201710781007 A CN 201710781007A CN 109426356 B CN109426356 B CN 109426356B
- Authority
- CN
- China
- Prior art keywords
- input
- character string
- user
- terminal
- result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The application discloses an information input method and device. One embodiment of the method comprises: receiving an input request sent by a terminal; judging whether a character string input by a user exists in a preset dictionary or not; and when the character string input by the user exists in the preset dictionary, taking an input result corresponding to the character string input by the user in the preset dictionary as a candidate result and sending the candidate result to the terminal. The method and the device realize the storage of the character strings input by a plurality of users and the input results corresponding to the character strings input by a plurality of users and input by a plurality of times by using the preset dictionary, thereby directly sending the input results corresponding to the character strings input by a plurality of times by a plurality of users as candidate results to the terminal of the user when the character strings input by the user are the character strings in the preset dictionary. On one hand, the situation that wrong candidate results obtained by sentence transformation of new sentences appearing in the network are returned to the terminal of the user can be avoided, and on the other hand, the speed of returning the candidate results is improved.
Description
Technical Field
The application relates to the field of computers, in particular to the field of input methods, and especially relates to an information input method and device.
Background
Currently, in some input methods, a function is provided that can generate a sentence corresponding to a character string input by a user as a candidate result. The way to obtain candidate results is usually: and sequentially inquiring a plurality of words corresponding to each substring, and according to the pre-established combination relationship among the words, finding out the combination relationship among the words to obtain a whole sentence transformation result so as to obtain a candidate result.
However, for a new sentence appearing in the network, due to the difference between the combination relationship between words and the combination relationship between words in the normal sentence, the combination relationship between words that may appear in the new sentence appearing in the network cannot be established in advance, and thus a correct whole sentence transformation result cannot be obtained, and a correct candidate result is provided to the user.
Disclosure of Invention
The application provides an information input method and an information input device, which are used for solving the technical problems existing in the background technology part.
In a first aspect, the present application provides an information input method, comprising: receiving an input request sent by a terminal, wherein the input request comprises: a character string input by a user of the terminal; judging whether a character string input by a user exists in a preset dictionary, wherein the preset dictionary comprises the following steps: the input result of which the input times of the input result input to the input area in the input results corresponding to the character strings input by the users with the number larger than the threshold number is larger than the threshold number; and when the character string input by the user exists in the preset dictionary, sending an input result, corresponding to the character string input by the user in the preset dictionary, of which the input times input to the input area is greater than the time threshold value, as a candidate result corresponding to the character string input by the user to the terminal.
In a second aspect, the present application provides an information input device comprising: a receiving unit configured to receive an input request sent by a terminal, the input request including: a character string input by a user of the terminal; a judging unit configured to judge whether a character string input by a user exists in a preset dictionary, the preset dictionary including: the input result of which the input times of the input result input to the input area in the input results corresponding to the character strings input by the users with the number greater than the number threshold value and the character strings input by the users with the number greater than the number threshold value is greater than the number threshold value; and the sending unit is configured to send an input result, corresponding to the character string input by the user in the preset dictionary, of which the input times input to the input area are larger than the time threshold value, to the terminal as a candidate result corresponding to the character string input by the user when the character string input by the user exists in the preset dictionary.
According to the information input method and the information input device, the input request sent by the terminal is received, and the input request comprises the following steps: a character string input by a user of the terminal; judging whether a character string input by a user exists in a preset dictionary, wherein the preset dictionary comprises: the input result of which the input times of the input result input to the input area in the input results corresponding to the character strings input by the users with the number larger than the threshold number is larger than the threshold number; and when the character string input by the user exists in the preset dictionary, sending an input result, corresponding to the character string input by the user in the preset dictionary, of which the input times input to the input area is greater than the time threshold value, as a candidate result corresponding to the character string input by the user to the terminal. The method and the device realize the storage of the character strings input by a plurality of users and the input results corresponding to the character strings input by a plurality of users and input by a plurality of times by utilizing the preset dictionary, thereby directly sending the input results corresponding to the character strings input by a plurality of times and input by a plurality of users to the terminal of the user as candidate results when the received character strings input by the users are the character strings input by a plurality of users in the preset dictionary. On one hand, the situation that wrong candidate results obtained by sentence transformation of new sentences appearing in the network are returned to the terminal of the user can be avoided, and on the other hand, the speed of returning the candidate results is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates an exemplary system architecture to which embodiments of the information input methods or apparatus of the present application may be applied;
FIG. 2 shows a flow diagram of one embodiment of an information input method according to the present application;
FIG. 3 shows a schematic structural diagram of an embodiment of an information input device according to the present application;
FIG. 4 is a schematic block diagram of a computer system suitable for use to implement a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture to which embodiments of the information input method or apparatus of the present application may be applied.
As shown in fig. 1, the system architecture may include terminals 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide the medium of transmission links between the terminals 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless transmission links, or fiber optic cables, among others.
The user may use the terminals 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminals 101, 102, 103 may have an input method application and a browser application installed thereon.
The terminals 101, 102, 103 may be various electronic devices having display screens and supporting network communications, including but not limited to smartphones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides support for input method applications on the terminals 101, 102, 103. The server 105 may receive an input request including a character string input by the user of the terminal 101, 102, 103 transmitted from the terminal 101, 102, 103, query a sentence corresponding to the character string input by the user of the terminal 101, 102, 103, and transmit the query sentence corresponding to the character string input by the user to the terminal 101, 102, 103.
It should be understood that the number of terminals, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminals, networks, and servers, as desired for an implementation.
Referring to fig. 2, a flow of an embodiment of an information input method according to the present application is shown. It should be noted that the information input method provided in the embodiment of the present application may be executed by a server (e.g., the server 105 in fig. 1). The method comprises the following steps:
In this embodiment, the server may receive an input request sent by the terminal, where the input request includes a character string input by a user of the terminal. The input operation of the user can be detected on the terminal, the character string input by the user of the terminal is obtained, the input request containing the character string input by the user of the terminal is generated on the terminal, and the input request is sent to the server by the terminal. Each input operation by the user of the terminal may generate an input request at the terminal.
In this embodiment, after receiving an input request sent by the terminal, the server may determine whether a character string input by the user of the terminal exists in the preset dictionary. When a character string input by a user of the terminal exists in the preset dictionary, an input result of which the input times input to the input area are greater than a time threshold value in input results corresponding to the character string input by the user of the terminal in the preset dictionary may be transmitted to the terminal by the server as a candidate result corresponding to the character string input by the user of the terminal.
In this embodiment, the preset dictionary includes: the number of inputs input to the input area in the input results corresponding to the character strings input by more than the number threshold number of users and the character strings input by more than the number threshold number of users is larger than the number threshold, and the number threshold may be larger than the number threshold. The input area is an area in which a word or sentence finally input by the user can be presented. For example, the input area is an input box of a browser or an instant messaging application, and when the user performs input, the cursor may be first positioned in the input box of the browser or the instant messaging application.
In some optional implementations of this embodiment, the candidate result corresponding to the character string input by the user includes one of: words corresponding to the character string input by the user and sentences corresponding to the character string input by the user.
In this embodiment, the input result corresponding to one character string may be a word or a sentence finally input into the input area after the user inputs the character string. For example, after two users input a character string respectively, and finally input two different words or sentences into the input area respectively, the input results corresponding to one character string input by the two users are two, that is, two different words or sentences.
In this embodiment, the preset dictionary may include a plurality of items, and each item may include a character string that has been input by more than a number threshold by a user and an input result that has been input to the input area by more than a number threshold among the input results corresponding to the character string. In other words, when the number of users is greater than the number threshold value, the input result, such as a word or a sentence, finally input into the input area may be a plurality of different input results, and the input result stored in the preset dictionary is the input result in which the number of inputs input into the input area is greater than the number threshold value among all the input results corresponding to the input character string.
For example, users greater than the number threshold respectively input the same character string, and when users greater than the number threshold respectively input the same character string, the words or sentences finally input into the input area are all the same word or sentence, the same character string may be used as a character string in a preset dictionary that is input by users greater than the number threshold, and the same word or sentence may be used as an input result corresponding to the same character string. Because the number threshold may be greater than the number threshold, the number of times of inputting the same word or sentence into the input area is also greater than the number threshold, and the same word or sentence may be used as an input result in which the number of times of inputting the same word or sentence into the input area is greater than the number threshold in the input result corresponding to the same character string in the preset dictionary, that is, the same word or sentence may be used as an input result in which the number of times of inputting the same word or sentence into the input area is greater than the number threshold in the character string input by more than the number threshold in the preset dictionary, that is, the input result corresponding to the same character string.
In this embodiment, when the preset dictionary has character strings input by the user of the terminal in the input request sent by the terminal, it may be determined that the character strings input by the user of the terminal have been input by more than a number threshold, an input result with an input frequency greater than a frequency threshold in the input results corresponding to the character strings input by the user of the terminal in the preset dictionary may be obtained, and the input result with an input frequency greater than a frequency threshold in the input results corresponding to the character strings input by the user of the terminal in the preset dictionary may be sent to the terminal as a candidate result corresponding to the character strings input by the user of the terminal. Thus, the terminal, after receiving the candidate result, may present the candidate result to a user of the terminal on the terminal, and when the candidate result is selected, may enter the candidate result into the input area.
In some optional implementation manners of this embodiment, the server may determine, according to the input records sent by the multiple terminals, an input result of which the number of inputs to the input area is greater than the number threshold, from among the input results corresponding to the character strings input by the users greater than the number threshold and the character strings input by the users greater than the number threshold. Each terminal, after receiving the candidate result corresponding to the character string input by the user of the terminal generated at the server and transmitted by the server, may determine whether the candidate result corresponding to the character string input by the user of the terminal received coincides with the input result corresponding to the character string finally input to the input area. When the terminal determines that the received candidate result corresponding to the character string input by the user of the terminal generated by the server and transmitted by the server is inconsistent with the input result corresponding to the character string input by the user of the terminal finally input to the input area, an input record may be generated at the terminal, the input record including: the character string input by the user of the terminal when the identification of the user of the terminal and the input result corresponding to the character string input by the user of the terminal finally input into the input area are inconsistent with the candidate result corresponding to the character string input by the user of the terminal received by the terminal and generated by the terminal, and the input result corresponding to the character string finally input into the input area when the character string is input by the user of the terminal.
For example, when a new sentence, i.e., a sentence corresponding to a new expression manner, appears in the network, more than a threshold number of users may input a character string corresponding to the new sentence appearing in the network, and a terminal of more than the threshold number of users may respectively send, to the server, a character string corresponding to the new sentence appearing in the network and including more than the threshold number of users. After receiving an input request which is sent by terminals of more than a threshold number of users and contains a character string corresponding to a new sentence appearing in the network, the server may generate a sentence corresponding to the character string corresponding to the new sentence appearing in the network, and send the generated sentence corresponding to the character string corresponding to the new sentence appearing in the network to each of the terminals of more than the threshold number of users as a candidate result for the user to input the character string corresponding to the new sentence appearing in the network.
Due to the difference between the expression modes of the new sentences and the common sentences in the network, the combination relationship of each word in the new sentences in the network cannot be accurately determined, and further, the generated sentences corresponding to the character strings corresponding to the new sentences in the network input by the user are inconsistent with the new sentences in the network. In other words, the sentence corresponding to the character string corresponding to the new sentence appearing in the network, which is generated by the server, is an erroneous sentence, and the server transmits the generated erroneous sentence to the terminals of more than the threshold number of users. The users of the terminals with the number greater than the threshold number of users will not select to screen the incorrect sentences generated by the server, that is, will not select to input the incorrect sentences generated by the server into the input area, and the users of the terminals with the number greater than the threshold number of users will screen the new sentences appearing in the network, that is, will input the new sentences appearing in the network into the input area.
The terminal of each of the terminals of the users with the number greater than the threshold may determine that the input result corresponding to the character string corresponding to the new sentence appearing in the network, which is finally input into the input area after the character string corresponding to the new sentence appearing in the network is input by the user, that is, the new sentence appearing in the network is inconsistent with the received candidate result corresponding to the character string corresponding to the new sentence appearing in the network, which is generated by the server and sent by the server, and an input record may be generated on each terminal. The input record includes: the identification of the user of the terminal, the character string corresponding to the input result inconsistent with the received candidate result, namely, the character string corresponding to the new sentence appearing in the network, and the input result corresponding to the character string input by the user when the corresponding input result is inconsistent with the received candidate result, namely, the new sentence appearing in the network.
Each of the terminals of the users with the number greater than the number threshold may send an input record to the server, the server may determine, according to the received input records, that an input result, in which the number of times of input to an input area is greater than a number threshold, of input results, in which a character string corresponding to a new sentence appearing in the network is input by the users with the number greater than the number threshold, and the character string corresponding to the new sentence appearing in the network is input by the users with the number greater than the number threshold, is the new sentence appearing in the network, and the server may add the character string corresponding to the new sentence appearing in the network and the new sentence appearing in the network to the preset dictionary.
And step 203, sending an input result corresponding to the character string input by the user in the preset dictionary as a candidate result to the terminal.
In this embodiment, when there is a character string input by the user of the terminal in the preset dictionary, the server may transmit, as the candidate result, an input result, of the input results corresponding to the character string of the user of the terminal in the preset dictionary, the number of inputs to the input area of which is greater than the number threshold.
For example, before an input request sent by the terminal is received by the server, more than a threshold number of users each input a character string corresponding to a new sentence appearing in one network, and each finally inputs the new sentence appearing in the network into the input area. The server may determine that a character string corresponding to a new sentence appearing in the network may be used as a character string in the preset dictionary that has been input by a plurality of users, and the new sentence appearing in the network may be used as an input result that, of the input results in the preset dictionary that correspond to the character string corresponding to the new sentence appearing in the network, the number of inputs to the input area is greater than the number threshold. Accordingly, one of the predetermined dictionaries may contain a character string corresponding to a new sentence appearing in the network and a new sentence appearing in the network.
Therefore, when the character string input by the user of the terminal in the input request sent by the terminal is received by the server and is the character string corresponding to the new sentence appearing in the network, the character string corresponding to the new sentence appearing in the network can be determined to exist in the preset dictionary, the input result of which the input frequency input to the input area is larger than the frequency threshold value in the input result corresponding to the character string corresponding to the new sentence appearing in the network in the preset dictionary, namely the new sentence appearing in the network is sent to the terminal as the candidate result corresponding to the character string input by the user of the terminal, and when the candidate result is selected by the user of the terminal for input, the new sentence appearing in the network can be input into the input area.
Therefore, after receiving the input request sent by the terminal, the server does not need to generate a candidate result corresponding to the character string corresponding to the new sentence appearing in the network, and the candidate result corresponding to the character string input by the user of the correct terminal, namely the new sentence appearing in the network, is directly sent to the terminal.
In some optional implementations of this embodiment, when the character string input by the user of the terminal in the input request sent by the terminal does not exist in the preset dictionary, it may be determined whether the character string input by the user of the terminal in the input request sent by the terminal exists in the history input table. The history input table includes the input character string and the candidate result corresponding to the input character string. The history input table may comprise a plurality of entries, each entry comprising an input string and a candidate result generated corresponding to the input string, such as a word or a sentence generated corresponding to the input string. When the character string input by the user of the terminal in the input request sent by the terminal exists in the history input table, the candidate result corresponding to the character string input by the user of the terminal in the history input table can be sent to the terminal.
For example, the server may receive an input request transmitted from another terminal before receiving an input request transmitted from the terminal, the input request including a character string input by a user of the terminal and input by another user of the terminal, perform sentence conversion on the character string input by the user of the terminal, generate a sentence corresponding to the character string input by the user of the terminal, and transmit the generated sentence corresponding to the character string input by the user of the terminal to the other terminal as a candidate result. The sentence corresponding to the character string input by the user of the terminal input by the other user and the generated character string input by the user of the terminal may be added to the history input table. Therefore, when judging whether the character string input by the user of the terminal in the input request sent by the terminal exists in the history input table, the character string input by the user of the terminal and the generated sentence corresponding to the character string input by the user of the terminal can be searched in the history input table, the character string input by the user of the terminal can be determined to exist in the history input table, and the sentence corresponding to the character string input by the user of the terminal in the history input table can be sent to the terminal as the candidate result corresponding to the character string input by the user of the terminal. The terminal, after receiving the candidate, may present the candidate to the user on the terminal, and when the candidate is selected, may enter the candidate into the input area.
In some optional implementations of this embodiment, when the character string input by the user of the terminal in the input request sent by the terminal does not exist in the history input table, a candidate result corresponding to the character string input by the user of the terminal may be generated. For example, when the length of the character string input by the user of the terminal is greater than the length threshold, the candidate result corresponding to the character string input by the user of the terminal may be a sentence, and the character string input by the user of the terminal may be subjected to sentence transformation to obtain the sentence corresponding to the character string input by the user of the terminal. The character string input by the user of the terminal can be divided into a plurality of sub-character strings, the inquiry is carried out in a plurality of dictionaries, and the words corresponding to each sub-character string in the plurality of sub-character strings obtained by dividing the character string input by the user of the terminal are respectively inquired. Then, the term corresponding to each substring of the sentence corresponding to the character string input by the user of the terminal is determined based on the binary relationship between the terms corresponding to the adjacent substrings in the terms corresponding to each substring queried adjacently, and the sentence corresponding to the character string input by the user of the terminal is generated. The generated sentence corresponding to the character string input by the user of the terminal may be transmitted to the terminal as a candidate result corresponding to the character string input by the user of the terminal. Meanwhile, the character string input by the user of the terminal and the generated sentence corresponding to the character string can be added into the history input table.
Referring to fig. 3, as an implementation of the method shown in the above figures, the present application provides an embodiment of an information input device, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 3, the information input device of the present embodiment includes: a receiving unit 301, a judging unit 302, and a transmitting unit 303. The receiving unit 301 receives an input request sent by a terminal, where the input request includes: a character string input by a user of the terminal; the determining unit 302 is configured to determine whether a character string input by a user exists in a preset dictionary, where the preset dictionary includes: the input result of which the input times of the input result input to the input area in the input results corresponding to the character strings input by the users with the number larger than the threshold number is larger than the threshold number; the sending unit 303 is configured to send, when a character string input by the user exists in the preset dictionary, an input result, which is input to the input area for a number of times that the input number of times is greater than the number threshold value and corresponds to the character string input by the user in the preset dictionary, to the terminal as a candidate result corresponding to the character string input by the user.
In some optional implementations of this embodiment, the information input device further includes: an adding unit configured to receive input records transmitted by a plurality of terminals, the input records being generated based on that input results corresponding to character strings input into an input area after the terminals detect that the character strings are input do not coincide with candidate results corresponding to the character strings received by the terminals, the input records including: the identification of the user of the terminal, the character string of which the corresponding input result is inconsistent with the received candidate result, and the input result corresponding to the character string; determining input results of which the input times of the input strings input by more than the number threshold number of users and the input results corresponding to the character strings input by more than the number threshold number of users are larger than a time threshold value based on the input records; and adding the determined character strings input by more than a threshold number of users and the input results of which the input times input into the input area are more than a time threshold value into a preset dictionary.
In some optional implementations of this embodiment, the information input device further includes: the first query unit is configured to judge whether the character string input by the user exists in a history input table when the character string input by the user does not exist in the preset dictionary, and the history input table comprises: the input character string and the candidate result corresponding to the input character string; when the character string input by the user exists in the history input table, sending the candidate result corresponding to the character string input by the user in the history input table to the terminal; the second query unit is used for generating candidate results corresponding to the character strings input by the user based on the plurality of dictionaries when the character strings input by the user do not exist in the history input table; and sending the generated candidate result corresponding to the character string input by the user to the terminal, and adding the character string input by the user and the generated candidate result corresponding to the character string input by the user into the history input table.
FIG. 4 illustrates a schematic block diagram of a computer system suitable for use to implement a server according to embodiments of the present application. The server shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, the computer system includes a Central Processing Unit (CPU)401 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the computer system are also stored. The CPU 401, ROM 402, and RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406; an output section 407; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, the processes described in the embodiments of the present application may be implemented as computer programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising instructions for carrying out the method illustrated by the flow chart. The computer program can be downloaded and installed from a network through the communication section 409 and/or installed from the removable medium 411. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 401.
A server is also provided, which may be configured with one or more processors; a memory for storing one or more programs, wherein the one or more programs may include instructions for performing the operations described in step 201 and step 203 in the above embodiments. The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the operations described in step 201-203 in the above embodiments.
The present application also provides a computer readable medium, which may be included in a server; or the device can exist independently and is not assembled into the server. The computer readable medium carries one or more programs which, when executed by a server, cause the server to: receiving an input request sent by a terminal, wherein the input request comprises: a character string input by a user of the terminal; judging whether a character string input by a user exists in a preset dictionary, wherein the preset dictionary comprises the following steps: the input result of which the input times of the input result input to the input area in the input results corresponding to the character strings input by the users with the number larger than the threshold number is larger than the threshold number; and when the character string input by the user exists in the preset dictionary, taking the input result of which the input times input into the input area corresponding to the character string input by the user in the preset dictionary is larger than the time threshold value as a candidate result corresponding to the character string input by the user, and sending the candidate result to the terminal.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description is only exemplary of the preferred embodiments of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (8)
1. An information input method, characterized in that the method comprises:
receiving an input request sent by a terminal, wherein the input request comprises: a character string input by a user of the terminal;
judging whether the character string input by the user exists in a preset dictionary, wherein the preset dictionary comprises the following steps: the input result of which the input times of the input result input to the input area in the input result corresponding to the character strings input by the users with the number greater than the threshold number is greater than the threshold number;
when the character string input by the user exists in a preset dictionary, an input result of which the input frequency input to an input area corresponding to the character string input by the user in the preset dictionary is larger than a frequency threshold value is taken as a candidate result corresponding to the character string input by the user and sent to the terminal;
further comprising:
receiving input records sent by a plurality of terminals, wherein the input records are generated based on that input results corresponding to character strings input into an input area after the terminals detect that the character strings are input are inconsistent with candidate results corresponding to the character strings received by the terminals, and the input records comprise: the identification of the user of the terminal, the character string of which the corresponding input result is inconsistent with the received candidate result, and the input result corresponding to the character string;
Determining input results of which the input times of the input strings input by more than a threshold number of users and the input results corresponding to the character strings input by more than the threshold number of users are larger than a time threshold value based on the input records;
and adding the determined character strings which are input by more than a number threshold value of users and the input results of which the input times of the character strings which are input into the input area are more than a time threshold value into a preset dictionary.
2. The method of claim 1, further comprising:
when the character string input by the user does not exist in the preset dictionary, judging whether the character string input by the user exists in a history input table or not, wherein the history input table comprises: the input character string and the candidate result corresponding to the input character string;
and when the character string input by the user exists in the history input table, sending the candidate result corresponding to the character string input by the user in the history input table to the terminal.
3. The method of claim 2, further comprising:
when the character string input by the user does not exist in the history input table, generating candidate results corresponding to the character string input by the user based on a plurality of dictionaries;
And sending the generated candidate result corresponding to the character string input by the user to a terminal, and adding the character string input by the user and the generated candidate result corresponding to the character string input by the user into a history input table.
4. The method of any one of claims 1-3, wherein the candidate result for the string of characters entered by the user comprises one of: words corresponding to the character string input by the user and sentences corresponding to the character string input by the user.
5. An information input apparatus, characterized in that the apparatus comprises:
a receiving unit, configured to receive an input request sent by a terminal, where the input request includes: a character string input by a user of the terminal;
a judging unit configured to judge whether a preset dictionary contains the character string input by the user, the preset dictionary including: the input result of which the input times of the input result input to the input area in the input result corresponding to the character strings input by the users with the number larger than the threshold number is larger than the threshold number;
a sending unit, configured to send, when a character string input by the user exists in a preset dictionary, an input result, which is input to an input area and corresponds to the character string input by the user in the preset dictionary, to the terminal as a candidate result corresponding to the character string input by the user, where the input number of times of input to the input area is greater than a number threshold;
Further comprising:
an adding unit configured to receive input records transmitted by a plurality of terminals, the input records being generated based on that input results corresponding to character strings input into an input area after the terminals detect that the character strings are input are inconsistent with candidate results corresponding to the character strings received by the terminals, the input records including: the identification of the user of the terminal, the character string of which the corresponding input result is inconsistent with the received candidate result, and the input result corresponding to the character string; determining input results of which the input times of the input strings input by more than a threshold number of users and the input results corresponding to the character strings input by more than the threshold number of users are larger than a time threshold value based on the input records; and adding the determined character strings input by the users with the number larger than the threshold number and the input results of which the input times input into the input area are larger than the threshold number into a preset dictionary.
6. The apparatus of claim 5, further comprising:
a first query unit, configured to determine whether the character string input by the user exists in a history input table when the character string input by the user does not exist in a preset dictionary, where the history input table includes: the input character string and the candidate result corresponding to the input character string; when the character string input by the user exists in the history input table, sending a candidate result corresponding to the character string input by the user in the history input table to the terminal;
A second query unit configured to generate candidate results corresponding to the character string input by the user based on a plurality of dictionaries when the character string input by the user does not exist in a history input table; and sending the generated candidate result corresponding to the character string input by the user to a terminal, and adding the character string input by the user and the generated candidate result corresponding to the character string input by the user into a history input table.
7. A server, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-4.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
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 CN109426356A (en) | 2019-03-05 |
CN109426356B true 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 |
---|---|
CN109426356A (en) | 2019-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107590214B (en) | Recommendation method and device for search keywords and electronic equipment | |
CN107241260B (en) | News pushing method and device based on artificial intelligence | |
CN108229704B (en) | Method and device for pushing information | |
CN108520470B (en) | Method and apparatus for generating user attribute information | |
CN107506495B (en) | Information pushing method and device | |
CN108256070B (en) | Method and apparatus for generating information | |
CN111898643B (en) | Semantic matching method and device | |
CN106528835B (en) | Information acquisition method and device | |
CN109858045B (en) | Machine translation method and device | |
CN113204621B (en) | Document warehouse-in and document retrieval method, device, equipment and storage medium | |
KR20190000776A (en) | Information inputting method | |
CN110059172B (en) | Method and device for recommending answers based on natural language understanding | |
CN110738056B (en) | Method and device for generating information | |
CN110245357B (en) | Main entity identification method and device | |
CN114048315A (en) | Method and device for determining document tag, electronic equipment and storage medium | |
CN113590756A (en) | Information sequence generation method and device, terminal equipment and computer readable medium | |
CN111026849B (en) | Data processing method and device | |
CN109710634B (en) | Method and device for generating information | |
CN107656627B (en) | Information input method and device | |
CN109376220B (en) | Method and device for acquiring information | |
CN111353039B (en) | File category detection method and device | |
CN109426356B (en) | Information input method and device | |
CN110598068A (en) | Global identification generation method and device | |
RU2731122C1 (en) | Method, system and device for displaying text | |
CN109426358B (en) | Information input method and device |
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 |