Input methods, devices and media
By triggering the word composition function when there is a target entry directly hit by the input string in the vocabulary in the input method, the word composition result is determined and presented, solving the problem of low input efficiency and improving the richness and accuracy of the input method candidates. degree, improving user input efficiency.
Patent Information
- Application Number
- CN202110205916.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-02-24
AI Technical Summary
Existing input method programs will not trigger the word grouping function when there are entries in the dictionary that are directly hit by the input string, resulting in low input efficiency. Users need to select candidates through segmented screens, which affects the richness and accuracy of the input results.
When there is a target word entry directly hit by the input string in the lexicon, the word combination result corresponding to the input string is determined, and the target word combination result is obtained based on the first score of the word combination result, and is presented as a candidate item to enhance the input method. Word grouping function.
It improves the richness and accuracy of input method candidates, improves user input efficiency, and increases the possibility of meeting user input needs.
Smart Images

Figure CN114967939B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer information input, and in particular to an input method, device and medium. Background Art
[0002] For users of languages such as Chinese, Japanese, and Korean, they generally need to interact with the computer through an input method program. For example, the user can enter an input string, and the input method program will query the vocabulary and convert the input string into candidate items in the corresponding language according to preset standard mapping rules and display them, and then display the candidate item selected by the user on the screen.
[0003] When there is no entry directly hit by the input string in the word library, the input method program can trigger the word grouping function. Existing word grouping technologies usually obtain the optimal word grouping path based on multi-relationships, and then obtain the word grouping result according to the optimal word grouping path.
[0004] During the process of implementing the embodiments of the present invention, the inventors discovered that when there are entries in the vocabulary that are directly hit by the input string, the existing input method program will not trigger the word grouping function; thus, the entries that are directly hit by the input string and the word grouping results will not be provided at the same time, which will affect the richness and accuracy of the candidate results provided to the user, and further affect the user's input efficiency. Summary of the invention
[0005] In view of the above problems, the embodiments of the present invention propose an input method, an input device and a device for input that overcome the above problems or at least partially solve the above problems. The embodiments of the present invention can increase the possibility that the candidate items meet the user's input needs, thereby improving the user's input efficiency.
[0006] In order to solve the above problem, the present invention discloses an input method, comprising:
[0007] If there is a target word entry directly hit by the input string in the word library, determining a word combination result corresponding to the input string;
[0008] Obtaining a target word grouping result from the word grouping result according to the first score corresponding to the word grouping result;
[0009] The target word group result is presented as a candidate item corresponding to the input string.
[0010] In another aspect, the present invention discloses an input device, comprising:
[0011] A word combination result determination module, used to determine the word combination result corresponding to the input string when there is a target word entry directly hit by the input string in the word library;
[0012] a target word grouping result acquisition module, configured to acquire a target word grouping result from the word grouping result according to a first score corresponding to the word grouping result; and
[0013] The candidate item presentation module is used to present the target word group result as a candidate item corresponding to the input string.
[0014] In another aspect, the present invention discloses a device for input, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:
[0015] If there is a target word entry directly hit by the input string in the word library, determining a word combination result corresponding to the input string;
[0016] Obtaining a target word grouping result from the word grouping result according to the first score corresponding to the word grouping result;
[0017] The target word group result is presented as a candidate item corresponding to the input string.
[0018] The embodiments of the present invention include the following advantages:
[0019] In the embodiment of the present invention, when there is a target entry in the vocabulary that is directly hit by the input string, the target word group result corresponding to the input string is still provided to the user, thereby increasing the richness and accuracy of the candidate results, and increasing the possibility that the candidate items meet the user's input needs, thereby improving the user's input efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of steps of an input method embodiment 1 of the present invention;
[0021] Figure 2 is a flow chart of steps of Embodiment 2 of an input method of the present invention;
[0022] Figure 3 is a structural block diagram of an input device embodiment of the present invention;
[0023] Figure 4 is a block diagram of a device 900 for inputting according to the present invention; and
[0024] Figure 5 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION
[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0026] The inventors found in the process of implementing the embodiments of the present invention that, when there are entries in the vocabulary that are directly hit by the input string, the existing input method program will not trigger the word grouping function. In other words, the entries that are directly hit by the input string and the word grouping results are not provided at the same time. In the case of only providing the entries that are directly hit by the input string, if the entries that are directly hit by the input string do not meet the user's input requirements, the user often needs to select multiple candidate items corresponding to the partial input string in sequence through the segmented screen display method to form the input result corresponding to the complete input string, resulting in low input efficiency.
[0027] For example, input string A is "jiaotayiqiguolaiba", and assuming that there is an entry A "Ask him to come together" in the vocabulary that is directly hit by input string A, the existing input method program will not trigger the word formation function; in this case, the candidates provided by the input method program may include: entry A directly hit by input string A, and candidate items corresponding to part of input string A; wherein, the candidate items corresponding to part of input string A may include candidate items corresponding to "jiaota", such as "call him", "call her", "teach him", "step on", etc. If entry A does not meet the user's input requirements, the user needs to select the candidate items by means of segmented screen display, for example, the user selects the candidate items corresponding to "jiaota", "yiqi", "guolai", and "ba" in turn. The above segmented screen display method results in low input efficiency.
[0028] In response to the technical problem of low input efficiency in related technologies, an embodiment of the present invention provides an input solution, which may specifically include: when there is a target entry directly hit by the input string in the vocabulary, determining the word combination result corresponding to the above input string; obtaining the target word combination result from the above word combination result based on the first score corresponding to the above word combination result; and presenting the above target word combination result as a candidate item corresponding to the above input string.
[0029] In the embodiment of the present invention, when there is a target word entry directly hit by the input string in the vocabulary, word combination is still triggered to obtain a word combination result corresponding to the input string, and the target word combination result is obtained as a candidate item based on the first score corresponding to the word combination result.
[0030] Since the embodiment of the present invention still provides the user with the target word group result corresponding to the input string when there is a target entry directly hit by the input string in the vocabulary, it can increase the possibility that the candidate items meet the user's input needs, thereby improving the user's input efficiency.
[0031] The data processing method provided by the embodiment of the present invention can be applied to an application environment corresponding to a client and a server. The client and the server are located in a wired or wireless network, and the client and the server interact with each other through the wired or wireless network.
[0032] Optionally, the client can be run on a terminal, which specifically includes but is not limited to: a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a car computer, a desktop computer, a set-top box, a smart TV, a wearable device, etc. The operating system installed in the above terminal may include: IOS, Android, Windows, Linux, etc. It can be understood that the embodiment of the present invention does not limit the specific operating system installed in the terminal.
[0033] The above client may correspond to an input method program, wherein the input method program has a hosting feature and can be hosted in a host program environment such as a social program to provide services to the host program.
[0034] The server of the embodiment of the present invention may be a cloud server. The cloud server can provide simple, efficient, safe, reliable, and elastically scalable computing services. The resource information of the cloud server is dynamic, so that its processing capacity can be elastically scalable.
[0035] Input method refers to the encoding method used to input text into computers or other devices (such as mobile phones and tablets). The input interface is a UI (User Interface), which is the medium for interaction and information exchange between the system and the user.
[0036] The embodiment of the present invention can be applied to input method programs of input methods such as keyboard symbol input, handwriting input, and voice input. For the convenience of description, the embodiment of the present invention refers to the encoded string input by the user in the above input methods as an input string. In the field of input methods, for input method programs such as Chinese, Japanese, Korean, or other languages, the input string input by the user can usually be converted into candidate items of the corresponding language. The following mainly uses Chinese as an example to illustrate the input process of the embodiment of the present invention, and the corresponding input processes of other languages can be referenced to each other. It can be understood that the above-mentioned Chinese input method may include but is not limited to full spelling, simplified spelling, strokes, Wubi, etc., and the embodiment of the present invention does not limit the specific input method program corresponding to a certain language.
[0037] According to some embodiments, the input string may include, but is not limited to, a key symbol or a combination of multiple key symbols input by the user through keys. The key symbol may specifically include pinyin, strokes, kana, and the like.
[0038] The embodiment of the present invention can call up the input method program in any application scenario in response to the calling operation. Optionally, the calling operation can be a trigger operation on the input window, etc. The input window can include: an input box, etc. For example, if a click operation on the input box is received, the input method program is called up.
[0039] Optionally, after the input method program is called up, an input interface may be displayed for the user to input the input content through the input interface. The input interface may include an input keyboard, which generally includes a plurality of keys. The keys may include character keys and function keys. Function keys may include a setting key, a search key, an enter key, etc. Character keys may further include letter keys, number keys, symbol keys, etc.
[0040] Method Example 1
[0041] Reference Figure 1 , shows a flow chart of the steps of an input method embodiment 1 of the present invention, which may specifically include the following steps:
[0042] Step 101: if there is a target word entry directly hit by the input string in the word library, determine the word group result corresponding to the input string;
[0043] Step 102: obtaining a target word grouping result from the word grouping result according to the first score corresponding to the word grouping result;
[0044] Step 103: present the target word group result as a candidate item corresponding to the input string.
[0045] In step 101, a search may be performed in the word library according to the input string, and if the search is successful, the entry obtained may be used as the target entry. For example, a target entry such as "let him come together" corresponding to the input string A "jiaotayiqiguolaiba" may be obtained in the word library. Optionally, the word library of the embodiment of the present invention may specifically include: a system word library, a user word library, a cell word library, a cloud word library, etc., and the embodiment of the present invention does not limit the specific word library.
[0046] In the embodiment of the present invention, when there is a target word in the word library that is directly hit by the input string, word grouping can still be triggered, and the word grouping technology is used to determine the word grouping result corresponding to the input string. The current word grouping technology usually obtains the optimal word grouping path based on multi-dimensional relationships, and then obtains the word grouping result according to the optimal word grouping path.
[0047] Here is an example of a word formation process, which may specifically include the following steps:
[0048] Step S1, segmenting the input string, and obtaining segmentation results including: a plurality of segmentation character strings.
[0049] In a specific implementation, the input string can be segmented according to the encoding units corresponding to the characters. Taking the pinyin input method as an example, the encoding units corresponding to the characters may include: syllables.
[0050] For example, by segmenting according to the full pinyin syllables, the input string A "jiaotayiqiguolaiba" can be segmented into "jiao", "ta", "yi", "qi", "guo", "lai", "ba". For another example, by segmenting according to the simplified pinyin syllables, "jtyqglb" can be segmented into "j", "t", "y", "q", "g", "l", "b".
[0051] Step S2: searching the word library for words corresponding to the multiple segmented character strings in the segmentation result, and grouping the words to obtain at least one grouping result corresponding to the segmentation result.
[0052] For example, the segmentation results corresponding to the input string A "jiaotayiqiguolaiba" include the following segmentation character strings: "jiao", "ta", "yi", "qi", "guo", "lai", "ba", and the words corresponding to multiple segmentation character strings can be searched in the vocabulary, such as the words "jiao", "jiao", "call", etc. corresponding to "jiao", the words "she", "he", "it", etc. corresponding to "ta", the words "together", "instrument", "first period", etc. corresponding to "yi" and "qi", the words "come here", etc. corresponding to "guo" and "lai", etc., and the words "bar", "dad", etc. corresponding to "ba".
[0053] The embodiment of the present invention can combine the words corresponding to the multiple segmented character strings respectively according to the order of segmenting the character strings to obtain at least one word combination result. For example, according to the order of segmenting the character strings, "call", "she", "together", "come here" and "bar" are combined to obtain the word combination result "call her to come together". For another example, according to the order of segmenting the character strings, "teach", "she", "a period", "come here" and "dad" are combined to obtain the word combination result "teach her a period come here dad".
[0054] Step S3: determine the first score corresponding to the word combination result.
[0055] The first score is used to characterize the quality of the word combination result. The quality can characterize the probability of occurrence of the word combination result in the corresponding language. The first score can be used to screen the word combination results, which can not only improve the quality of the target word combination result as a candidate, but also increase the possibility that the target word combination result meets the user's input requirements.
[0056] The determining factors of the first score may include: any one or a combination of the word frequency of the words in the word group result and the probability of adjacent appearance of the words in the word group result.
[0057] The frequency of a word in the word group result can represent the frequency of the user's input of the word in the word group result, which can reflect the frequency of use of the word. In practical applications, the frequency of the word in the word library can be determined based on the number of times the user puts the word corresponding to the candidate item on the screen, which will not be elaborated here.
[0058] The probability of adjacent words in the word grouping result can characterize the connection or collocation of adjacent words in the word grouping result. In a specific implementation, the probability of adjacent words in the word grouping result can be determined based on multi-element relationship data. Multi-element relationship data can include binary and multi-element relationship data. A binary relationship, also known as a 2-gram, is used to represent the probability of two words appearing one after another. A relationship with more than two elements is used to represent the probability of more than two words appearing one after another.
[0059] In an embodiment of the present invention, the first score corresponding to the word grouping result may be determined based on the word frequency of the words in the word grouping result and the probability of adjacent appearance of the words in the word grouping result.
[0060] The above-mentioned determining the first score corresponding to the word grouping result may specifically include:
[0061] The word frequencies of all words in the word grouping result are first fused to obtain a first fusion result. The corresponding first fusion method may include: a product method, a summation method, a weighted average method, etc.
[0062] The probabilities of adjacent word pairs in the word grouping result appearing adjacently are subjected to a second fusion to obtain a second fusion result. The corresponding second fusion method may include: a product method, a summation method, a weighted average method, etc.
[0063] The first fusion result and the second fusion result are subjected to a third fusion, and the obtained third fusion result can be used as the first score. The corresponding third fusion method can include: a product method, a summation method, a weighted average method, etc.
[0064] It is understood that the first fusion, the second fusion, and the third fusion are merely examples of determining the first score corresponding to the word grouping result, and are not to be construed as limitations on determining the first score corresponding to the word grouping result. It is understood that those skilled in the art may adopt other methods of determining the first score corresponding to the word grouping result according to actual application requirements.
[0065] For example, in one determination method, the score corresponding to a single adjacent word pair can be determined, and the scores corresponding to all adjacent word pairs can be fused to obtain a first score. Determining the score corresponding to a single adjacent word pair can include: performing a fourth fusion on the word frequencies of the words included in the single adjacent word pair, and determining the score based on the fourth fusion result and the probability of adjacent appearance of the single adjacent word pair. For example, the word grouping result includes: word A, word B, word C, word D... in sequence, then the adjacent word pairs can include: word A and word B, word B and word C, word C and word D, etc. In this way, the score of word A and word B can include: the product of the word frequency fusion result of word A and word B and the probability of adjacent appearance of word A and word B.
[0066] In step 102, the first score can be used to screen the word combination results, which can not only improve the quality of the target word combination results as candidates, but also increase the possibility that the target word combination results meet the user's input requirements.
[0067] The embodiment of the present invention may provide the following method for obtaining a target word group result from the word group result:
[0068] Acquisition method 1: acquiring, from the word grouping results, a word grouping result having a first score greater than a first threshold value as a target word grouping result; and / or
[0069] Acquisition method 2: acquiring a target word combination result from the word combination result according to score difference information between a first score corresponding to the word combination result and a second score corresponding to the target term.
[0070] Acquisition method 1 can obtain a target word group result with higher quality based on the comparison result of the first score and the first threshold. The first threshold can be determined by those skilled in the art according to actual application requirements. It can be understood that the embodiment of the present invention does not limit the specific first threshold.
[0071] Acquisition method 2 can acquire target word group results whose first scores are close to the second scores based on the score difference information, so that target word group results similar to the target term can be acquired.
[0072] For example, the target terms corresponding to the input string A "jiaotayiqiguolaiba" include: "Ask him to come together", and then target word group results similar to the target term can be obtained, such as "Ask her to come together", thereby achieving the expansion of similar expressions of the target term.
[0073] In an embodiment of the present invention, the second score may be obtained based on the word frequency of the target term. Assuming that the target term is stored in a cloud word library, the word frequency of the target term may be recorded in the cloud word library based on the number of times the target term is displayed on the screen by the user, and the second score may be obtained based on the word frequency of the target term. For example, the word frequency may be used as the second score, or the word frequency may be adjusted, and the second score may be obtained based on the adjustment result.
[0074] Those skilled in the art may adopt any one or a combination of acquisition method 1 and acquisition method 2 according to actual application requirements. For example, in the case of adopting acquisition method 1 and acquisition method 2, a word grouping result having a first score greater than a first threshold and an absolute value of the difference of the score difference information less than a second threshold may be obtained from the word grouping result as the target word grouping result.
[0075] In step 103, the target word group result is presented as a candidate item corresponding to the input string, which can increase the possibility that the candidate item meets the user's input requirements.
[0076] In a specific implementation, the target word group result can be presented at a preset candidate position for user selection. The preset candidate position can be a non-preferred position on the first screen, such as the second candidate position, or the third candidate position. Among them, the preferred position (first candidate position) on the first screen can be used to present the target word.
[0077] In summary, the input method of the embodiment of the present invention still provides the user with the target word group result corresponding to the input string when there is a target entry directly hit by the input string in the vocabulary, thereby increasing the possibility that the candidate items meet the user's input needs, thereby improving the user's input efficiency.
[0078] Method Example 2
[0079] Reference Figure 2 , shows a flow chart of the steps of Embodiment 2 of an input method of the present invention, which may specifically include the following steps:
[0080] Step 201: if there is a target word entry directly hit by the input string in the word library, determine the word group result corresponding to the input string;
[0081] Step 202: obtaining a target word grouping result from the word grouping result according to the score difference information between the first score corresponding to the word grouping result and the second score corresponding to the target term;
[0082] Step 203: present the target word group result as a candidate item corresponding to the input string.
[0083] The embodiment of the present invention can obtain the target word group result whose first score is close to the second score according to the score difference information, so that the target word group result similar to the target term can be obtained.
[0084] For example, the target terms corresponding to the input string A "jiaotayiqiguolaiba" include: "Ask him to come together", and then target word group results similar to the target term can be obtained, such as "Ask her to come together", thereby achieving the expansion of similar expressions of the target term.
[0085] For another example, the target terms corresponding to the input string B "xianzaishiyizhounian" include: "Now is the first anniversary", then target word group results similar to the target terms can be obtained, such as "Now is the eleventh anniversary", thereby achieving the expansion of similar expressions of the target terms.
[0086] The embodiment of the present invention can provide the following technical solution for obtaining the target word group result from the above word group result:
[0087] Technical solution 1,
[0088] In technical solution 1, the above-mentioned score difference information may include: the absolute value of the difference, then the target word grouping result is obtained from the above-mentioned word grouping results based on the score difference information between the first score corresponding to the above-mentioned word grouping result and the second score corresponding to the above-mentioned target term, specifically including: obtaining the word grouping result whose absolute value of the difference is less than the second threshold value from the above-mentioned word grouping results as the target word grouping result.
[0089] In a specific implementation, the absolute value of the difference between the first score and the second score of the word grouping result can be determined as the absolute value of the difference corresponding to the word grouping result; and the absolute value of the difference corresponding to the word grouping result can be compared with the second threshold. If the comparison result is less than, the word grouping result can be used as the target word grouping result.
[0090] Technical solution 2,
[0091] In Technical Solution 2, the above-mentioned score difference information may include: the absolute value of the difference, then the target word grouping result is obtained from the above-mentioned word grouping results based on the score difference information between the first score corresponding to the above-mentioned word grouping result and the second score corresponding to the above-mentioned target term, specifically including: selecting the current word grouping result from the above-mentioned word grouping results in descending order of the first score; if the absolute value of the difference corresponding to the current word grouping result is less than the second threshold, then taking the current word grouping result as the target word grouping result.
[0092] In a specific implementation, the first word group result with the highest first score may be selected first. If the absolute value of the difference corresponding to the first word group result is less than the second threshold, the first word group result is used as the target word group result.
[0093] The above-mentioned step of obtaining the target word group result from the above-mentioned word group results based on the score difference information between the above-mentioned first score and the second score corresponding to the above-mentioned target term may further include: if the absolute value of the difference corresponding to the current word group result is not less than the second threshold value, re-executing the above-mentioned step of selecting the current word group result from the above-mentioned word group results in the order from high to low according to the first score; or, if the absolute value of the difference corresponding to the current word group result is not less than the second threshold value, ending the process.
[0094] In actual applications, if the absolute value of the difference corresponding to the first word group result is not less than the second threshold, the second word group result with the second highest first score can be selected, and if the absolute value of the difference corresponding to the second word group result is less than the second threshold, the second word group result is used as the target word group result. Alternatively, if the absolute value of the difference corresponding to the first word group result is not less than the second threshold, the process can be terminated.
[0095] In summary, the input method of the embodiment of the present invention obtains the target word group result whose first score is close to the second score based on the score difference information. In this way, the target word group result similar to the target term can be obtained, thereby achieving the expansion of similar expressions of the target term, and further increasing the possibility that the candidate items meet the user's input needs.
[0096] It should be noted that, for the method embodiments, for the sake of simplicity of description, they are all described as a series of motion action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the described motion actions, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the motion actions involved are not necessarily required by the embodiments of the present invention.
[0097] Device Embodiment
[0098] Reference Figure 3 , shows a structural block diagram of an input device embodiment of the present invention, which may specifically include: a word group result determination module 301, a target word group result acquisition module 302 and a candidate item presentation module 303.
[0099] Among them, the word group result determination module 301 is used to determine the word group result corresponding to the input string when there is a target entry directly hit by the input string in the word library.
[0100] The target word grouping result acquisition module 302 is used to acquire the target word grouping result from the above word grouping results according to the first score corresponding to the above word grouping result.
[0101] The candidate item presenting module 303 is used to present the target word grouping result as a candidate item corresponding to the input string.
[0102] Optionally, the above device may further include:
[0103] The first score determination module is used to determine a first score corresponding to the word grouping result according to the word frequency of the words in the word grouping result and the probability of adjacent appearance of the words in the word grouping result.
[0104] Optionally, the target word group result acquisition module 302 may include:
[0105] A first score screening module is used to obtain the word grouping results with a first score greater than a first threshold from the above word grouping results as target word grouping results; and / or
[0106] The score difference screening module is used to obtain the target word grouping result from the above word grouping results according to the score difference information between the first score corresponding to the above word grouping result and the second score corresponding to the above target term.
[0107] Optionally, the score difference information may include: an absolute value of the difference, and the score difference screening module may include:
[0108] The first difference absolute value screening module is used to obtain the word grouping results whose difference absolute values are less than a second threshold from the above word grouping results as target word grouping results.
[0109] Optionally, the score difference information may include: an absolute value of the difference, and the score difference screening module may include:
[0110] A sequential selection module, used for selecting the current word group result from the above word group results in descending order of the first scores;
[0111] The second difference absolute value screening module is used to use the current word grouping result as the target word grouping result if the difference absolute value corresponding to the current word grouping result is less than a second threshold.
[0112] Optionally, the score difference screening module may further include:
[0113] a triggering module, configured to trigger the order selection module to select the current word group result from the above word group results in descending order of the first scores if the absolute value of the difference corresponding to the current word group result is not less than the second threshold; or
[0114] The ending module is used to end the process if the absolute value of the difference corresponding to the current word group result is not less than the second threshold.
[0115] Optionally, the second score may be obtained based on the word frequency of the target term.
[0116] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0117] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0118] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0119] Figure 4 1 is a block diagram of a device 900 for input according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0120] Reference Figure 4 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0121] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
[0122] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0123] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0124] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide motion action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0125] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0126] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0127] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0128] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0129] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0130] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0131] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute an input method, the method comprising: determining a word combination result corresponding to the input string when there is a target word entry directly hit by an input string in a vocabulary; obtaining a target word combination result from the word combination result based on a first score corresponding to the word combination result; and presenting the target word combination result as a candidate item corresponding to the input string.
[0132] Figure 5 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0133] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0134] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0135] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0136] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0137] The above is a detailed introduction to an input method, an input device, a device for input, and a machine-readable medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An input method, characterized in that: include: If there is a target word entry directly hit by the input string in the word library, determining a word combination result corresponding to the input string; Performing a first fusion on the word frequencies of the words in the word grouping result to obtain a first fusion result; Performing a second fusion on the probabilities of adjacent word pairs in the word grouping results to obtain a second fusion result; performing a third fusion on the first fusion result and the second fusion result, and using the obtained third fusion result as a first score; Obtaining a word group result whose first score is greater than a first threshold from the word group results as a target word group result; and / or According to the score difference information between the first score corresponding to the word group result and the second score corresponding to the target term, a word group result whose absolute value of the difference is less than a second threshold is obtained from the word group result as the target word group result, wherein the score difference information includes the absolute value of the difference; The target word group result is presented as a candidate item corresponding to the input string.
2. The method according to claim 1, characterized in that The method further comprises: A first score corresponding to the word grouping result is determined based on the word frequencies of the words in the word grouping result and the probabilities of adjacent appearances of the words in the word grouping result.
3. The method according to claim 1, characterized in that: The score difference information includes: a difference absolute value, and obtaining a target word grouping result from the word grouping result based on the score difference information between the first score corresponding to the word grouping result and the second score corresponding to the target term includes: Selecting a current word group result from the word group results in descending order of the first scores; If the absolute value of the difference corresponding to the current word combination result is less than the second threshold, the current word combination result is used as the target word combination result.
4. The method according to claim 3, characterized in that The step of obtaining a target word grouping result from the word grouping result according to the score difference information between the first score and the second score corresponding to the target term further includes: If the absolute value of the difference corresponding to the current word grouping result is not less than the second threshold, re-execute the step of selecting the current word grouping result from the word grouping results in descending order of the first scores; or If the absolute value of the difference corresponding to the current word group result is not less than the second threshold, the process ends.
5. The method according to claim 1, characterized in that The second score is obtained according to the word frequency of the target term.
6. An input device, characterized in that: include: A word combination result determination module, used to determine the word combination result corresponding to the input string when there is a target word entry directly hit by the input string in the word library; Performing a first fusion on the word frequencies of the words in the word grouping result to obtain a first fusion result; Performing a second fusion on the probabilities of adjacent word pairs in the word grouping results to obtain a second fusion result; performing a third fusion on the first fusion result and the second fusion result, and using the obtained third fusion result as a first score; Obtaining a word group result whose first score is greater than a first threshold from the word group results as a target word group result; and / or According to the score difference information between the first score corresponding to the word group result and the second score corresponding to the target term, a word group result whose absolute value of the difference is less than a second threshold is obtained from the word group result as the target word group result, wherein the score difference information includes the absolute value of the difference; The candidate item presentation module is used to present the target word group result as a candidate item corresponding to the input string.
7. A device for input, characterized in that The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: If there is a target word entry directly hit by the input string in the word library, determining a word combination result corresponding to the input string; Performing a first fusion on the word frequencies of the words in the word grouping result to obtain a first fusion result; Performing a second fusion on the probabilities of adjacent word pairs in the word grouping results to obtain a second fusion result; performing a third fusion on the first fusion result and the second fusion result, and using the obtained third fusion result as a first score; Obtaining a word group result whose first score is greater than a first threshold from the word group results as a target word group result; and / or According to the score difference information between the first score corresponding to the word group result and the second score corresponding to the target term, a word group result whose absolute value of the difference is less than a second threshold is obtained from the word group result as the target word group result, wherein the score difference information includes the absolute value of the difference; The target word group result is presented as a candidate item corresponding to the input string.
8. One or more machine-readable media, characterized in that Instructions are stored thereon, which, when executed by one or more processors, cause the apparatus to perform the method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Candidate sorting method and apparatus
CN105446495A
Input error correction method and apparatus, and apparatus used for input error correction
CN107918496A
Intelligent word grouping method and apparatus, and apparatus for intelligent word grouping
CN108073292A
Word formation method and device, and apparatus for word formation
CN109542243A
Method, device and equipment for presenting input candidate items
CN111198620A
