Method, device and medium for screening candidate items

By receiving and identifying trajectory stroke information on the input interface, and combining stroke filtering with keyboard handwriting, the problem of too many candidates is solved and the efficiency and user experience of text input are improved.

CN113641253BActive Publication Date: 2024-08-23BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110780726.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2024-08-23
Estimated Expiration
2041-07-09

AI Technical Summary

Technical Problem

During the text input process, due to the characteristics of Chinese, Japanese, Korean and other languages, the mapping relationship between key sequences and text is usually not unique, resulting in too many candidates and low user efficiency in filtering target candidates, especially in 9-key virtual systems. In the case of a keyboard, the number of key sequence corresponding candidates is huge, which affects user input efficiency.

Method used

By receiving and identifying the user's trajectory stroke information on the input interface, combined with stroke filtering and keyboard handwriting, trajectories are directly input on the input interface to filter candidates, saving click operations and display areas, and improving screening efficiency.

Benefits of technology

It realizes rapid screening of candidates without switching the input interface, saving user operation costs, improving input efficiency, and reducing the number of page turns and display area occupation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113641253B
    Figure CN113641253B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device and medium for screening candidate items, wherein the method specifically comprises: receiving a user's track on an input interface when displaying candidate items; recognizing the track, and obtaining a recognition result including: track stroke information; and screening the candidate items according to the track stroke information. The embodiment of the present invention improves the screening efficiency of candidate items.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer information input, and in particular to a method, device and medium for screening candidate items. Background Art

[0002] During the text input process, due to the characteristics of Chinese, Japanese, Korean and other languages, the mapping relationship between key sequences and text is usually not unique, and most encoding methods cannot achieve a one-to-one mapping of key sequences to text. The words corresponding to a certain key sequence can be called candidates, and a key sequence often corresponds to many candidates. In particular, in the case of a 9-key virtual keyboard, the number of candidates corresponding to the key sequence is even larger, because first of all, the key sequence corresponds to more pinyin combinations, and the corresponding text derived from each pinyin combination will increase exponentially.

[0003] A related technology is to filter the candidate items corresponding to the key sequence by syllables. For example, when the key sequence "6364" is inputted using a 9-key virtual keyboard, the key sequence corresponds to five syllables, namely "meng", "neng", "men", "nen", and "me". Then the candidate items corresponding to the key sequence will include: candidate items corresponding to the five syllables. Figure 6 , multiple syllable options can be listed on the left side of the input interface. When the syllable option "meng" is selected, the candidate options corresponding to the syllable option "meng" are filtered out from the numerous candidate options.

[0004] In actual applications, one syllable still corresponds to a large number of candidates. Therefore, it is rather tedious to find the target candidate that meets the input intention among a large number of candidates. It may require high concentration to find the target candidate, which greatly affects the user's input efficiency. Summary of the invention

[0005] In view of the above problems, the embodiments of the present invention propose a method, device and medium for screening candidate items. How to improve the screening efficiency of candidate items is a technical problem that those skilled in the art need to solve.

[0006] In order to solve the above problem, an embodiment of the present invention discloses a method for screening candidate items, comprising:

[0007] In the case of presenting candidate items, receiving the user's trajectory on the input interface;

[0008] Recognize the trajectory, and obtain the recognition result including: trajectory stroke information;

[0009] The candidate items are screened according to the trajectory stroke information.

[0010] On the other hand, an embodiment of the present invention discloses a device for screening candidate items, including:

[0011] A trajectory receiving module, used to receive the user's trajectory on the input interface when displaying candidate items;

[0012] A trajectory recognition module is used to recognize the trajectory, and the obtained recognition result includes: trajectory stroke information; and

[0013] The candidate item screening module is used to screen the candidate items according to the trajectory stroke information.

[0014] On the other hand, an embodiment of the present invention discloses a device for screening candidate items, including a memory and one or more programs, wherein the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of the aforementioned method are implemented.

[0015] On the other hand, an embodiment of the present invention discloses one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, cause the device to perform one or more of the methods described above.

[0016] The embodiments of the present invention include the following advantages:

[0017] The embodiment of the present invention combines stroke filtering with keyboard handwriting. When displaying candidate items, if the user has a stroke filtering requirement, the user can input a trajectory on the input interface; and the embodiment of the present invention can identify the trajectory as corresponding trajectory stroke information, and filter the candidate items according to the trajectory stroke information.

[0018] First, in the embodiment of the present invention, when candidate items are displayed, a stroke screening mode can be triggered by inputting a trajectory on a virtual keyboard, which can save the operation of clicking a trigger button, thereby improving the efficiency of screening candidate items.

[0019] Furthermore, the embodiment of the present invention identifies the trajectory as corresponding trajectory stroke information, and screens candidate items according to the trajectory stroke information, thereby saving the user's operating cost of selecting required strokes from numerous strokes, and further improving the efficiency of screening candidate items.

[0020] In addition, the trajectory stroke information of the embodiment of the present invention is located on the input interface, and the trajectory can be directly input on the input interface without switching the input interface to implement the screening of candidate items. Moreover, the display area of ​​the input interface can be reused, so the embodiment of the present invention can save the display area occupied by listing the strokes. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1is a schematic diagram of displaying candidate items in an embodiment of the present invention;

[0022] Figure 2 is a flowchart of a method for screening candidate items according to an embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of inputting a trajectory when displaying candidate items according to an embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of a candidate item after screening in an embodiment of the present invention;

[0025] Figure 5 This is an illustration of deleting a track according to an embodiment of the present invention;

[0026] Figure 6 It is an illustration of selecting candidate items corresponding to a key sequence by syllables in the related art;

[0027] Figure 7 It is a structural block diagram of an embodiment of a device for screening candidate items of the present invention;

[0028] Figure 8 is a block diagram of an apparatus 900 for screening candidate items of the present invention; and

[0029] Fig. 9 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION

[0030] 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.

[0031] The inventor of the embodiment of the present invention has found through research that the candidate items corresponding to a key sequence can be regarded as a candidate item set, and the elements in the candidate item set are the candidate items, and the number of elements is large; if the elements in the candidate item set can be screened, a corresponding candidate item subset is obtained. Since the number of elements in the candidate item subset is less than the number of elements in the candidate item set in most cases, providing the candidate item subset to the user and allowing the user to select the desired candidate item from it can improve the efficiency of selecting the candidate items, thereby improving the input efficiency of the user.

[0032] The inventor first thought of a technical solution to filter candidate items corresponding to a key sequence by strokes. The processing flow of this solution specifically includes: displaying candidate items corresponding to a key sequence -> triggering a stroke filtering mode according to the user's operation of clicking a trigger button -> listing strokes for user selection in the stroke filtering mode -> receiving the strokes selected by the user -> filtering candidate items according to the strokes selected by the user.

[0033] However, this technical solution will bring a series of technical problems in its implementation, which can be specifically manifested in:

[0034] 1) A trigger button needs to be set on the virtual keyboard to trigger the stroke filtering mode. The trigger button needs to occupy the area of ​​the virtual keyboard, and clicking the trigger button also requires corresponding operation costs.

[0035] 2) Due to the large number of strokes, whether all or part of them are listed, the operational cost of selecting strokes will increase, which undoubtedly increases the time cost of screening candidates; and, if all are listed, a large amount of display area on the screen will be occupied, which is likely to affect the user experience.

[0036] In response to the technical problem of how to improve the efficiency of screening candidate items, an embodiment of the present invention provides a solution for screening candidate items, which may specifically include: when displaying candidate items, receiving the trajectory of the user on the input interface; identifying the trajectory, and the obtained recognition result may include: trajectory stroke information; and screening the above-mentioned candidate items based on the trajectory stroke information.

[0037] The embodiment of the present invention combines stroke filtering with keyboard handwriting. When displaying candidate items, if the user has a stroke filtering requirement, the user can input a trajectory on the input interface; and the embodiment of the present invention can identify the trajectory as corresponding trajectory stroke information, and filter the candidate items according to the trajectory stroke information.

[0038] The processing flow of the embodiment of the present invention specifically includes: displaying candidate items corresponding to the key sequence->receiving the trajectory input by the user on the virtual keyboard->filtering the candidate items according to the trajectory input by the user.

[0039] In the embodiment of the present invention, when candidate items are displayed, a stroke screening mode can be triggered by inputting a trajectory on the input interface, which can save the operation of clicking a trigger button, thereby improving the efficiency of screening candidate items.

[0040] Furthermore, the embodiment of the present invention identifies the trajectory as the corresponding trajectory stroke information, and screens the candidate items according to the trajectory stroke information. This can save the user's operating cost of selecting the required strokes from a large number of strokes, and further improve the efficiency of screening the candidate items; and, the trajectory stroke information of the embodiment of the present invention is located on the virtual keyboard, and the display area of ​​the virtual keyboard can be reused, so the embodiment of the present invention can save the display area occupied by the listed strokes.

[0041] The method for screening candidate items 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 exchange data through the wired or wireless network.

[0042] Optionally, the client can be run on a terminal. The terminal can be provided with a touch screen, and the touch screen is used for the user to perform track input on the virtual keyboard. The user can use a stylus or a finger on the virtual keyboard to perform track input without lifting the finger.

[0043] The above-mentioned terminals specifically include but are not limited to: smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc. The operating systems installed in the above-mentioned terminals may include: IOS, Android, Windows, Linux, etc. It can be understood that the embodiments of the present invention do not limit the specific operating system installed in the terminal.

[0044] 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.

[0045] Input method refers to the encoding method used to input various texts 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.

[0046] 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.

[0047] Optionally, after the input method program is called up, an input interface may be displayed so that the user can input input content through the input interface.

[0048] Embodiments of the present application can be applied to an input method program for keyboard symbol input. Users can input text through an encoded string, and the input string can refer to the encoded string input by the user. In the field of input methods, for input method programs for languages such as Chinese, Japanese, Korean, or other languages, the input string input by the user can usually be converted into candidate items in the corresponding language. The following mainly takes Chinese as an example for illustration, and other languages such as Japanese and Korean can be referred to each other. It can be understood that the above Chinese input method can include but is not limited to full pinyin, simplified pinyin, Wubi, etc., and embodiments of the present application do not limit the specific input method program corresponding to a certain language.

[0049] Taking Chinese input as an example, the types of encoded strings can include: pinyin strings, glyph strings (such as Wubi strings, etc.). Taking English input as an example, the types of encoded strings can include: alphabetic strings, etc.

[0050] In practical applications, for the input method of keyboard symbols, users can input the above input string through a virtual keyboard. For example, for a terminal with a touch screen, it can set a virtual keyboard in the input interface to input the input string by triggering the virtual keys included in the above virtual keyboard. Optionally, examples of the above virtual keyboard can include: 9-key keyboards and 26-key keyboards, etc. And it can be understood that in addition to setting virtual keys corresponding to letters in the above input interface, symbol keys, numeric keys, function keys such as Chinese-English switching keys, or toolbar keys can also be set. It can be understood that embodiments of the present application do not limit the specific keys included in the input interface.

[0051] According to some embodiments, the above input string can include but is not limited to: a combination of one key symbol or multiple key symbols input by the user through a key. The above key symbols can specifically include: pinyin, strokes, kana, etc.

[0052] In practical applications, candidate items corresponding to the input string can be obtained according to the key sequence. For example, candidate items can be obtained by searching in a thesaurus according to the input string.

[0053] Refer to Figure 1 , which shows a schematic diagram of presenting candidate items according to an embodiment of the present invention. Among them, candidate items can be presented according to the input string "meng". Specifically, the candidate items on the first candidate page include: "梦", "萌", "蒙", "猛", "孟", "懵", etc. If there are no candidate items that meet the input intention on the first candidate page, paging can also be performed.

[0054] In the embodiment of the present invention, the candidate item can be used to represent one or more characters provided by the input method program to be selected by the user. The candidate item can be characters in languages ​​such as Chinese characters, English characters, and Japanese characters, and the candidate item can also be a combination of symbols in the form of emoticons, pictures, etc. Among them, the above-mentioned emoticons include but are not limited to pictures composed of lines, symbols, and words. For example, examples of the above-mentioned emoticons may include: ":P", ":-o", ":-)", etc.

[0055] The embodiments of the present invention can be applied to the screening of uncommon characters, uncommon words, uncommon sentences, or self-made words to improve the efficiency of screening candidate items, thereby improving input efficiency.

[0056] Method Embodiment

[0057] Reference Figure 2 , shows a flowchart of a method for screening candidate items according to an embodiment of the present invention, which may specifically include the following steps:

[0058] Step 201: When displaying candidate items, receiving the user's track on the input interface;

[0059] Step 202, identifying the trajectory, and the obtained recognition result may include: trajectory stroke information;

[0060] Step 203: Screen the candidate items according to the trajectory stroke information.

[0061] In step 201, the situation of displaying candidate items may refer to that the candidate items are in the display state but not in the on-screen state. In other words, the displayed candidate items have not been on-screen. On-screen refers to the operation of outputting and displaying the content in the preview window to the application window. Specifically in the embodiment of the present invention, on-screen may refer to the operation of outputting and displaying the selected candidate items to the input window hosted by the input method program.

[0062] When displaying candidate items, if the user has a need for stroke screening, the user can input a trajectory on the input interface. The input trajectory can be located on at least a portion of the input interface, such as the input trajectory can be located on at least a portion of the virtual keyboard.

[0063] In practical applications, the track generated by the finger or stylus can be sensed by a built-in or external sensing device of the terminal. Optionally, the track may include: position coordinates of the track point, and operation parameters of the sliding operation corresponding to the track point.

[0064] In a specific implementation, the displacement and lifting action of the finger or stylus can be sensed by a sensing device, and when the displacement of the finger or stylus is detected, the trajectory of the finger or stylus during the displacement is recorded until the lifting action of the finger or stylus is detected. One lifting action can correspond to one trajectory. Of course, the above trajectory detection method is only used as an example. In fact, the embodiment of the present invention does not limit the specific trajectory detection method.

[0065] In step 202, handwriting recognition technology may be used to recognize the trajectory. The handwriting recognition technology may include: offline handwriting recognition technology and online handwriting recognition technology, wherein the offline handwriting recognition technology may be implemented by the client, and the online handwriting recognition technology may be implemented by the client and the server. The handwriting recognition technology may involve knowledge of digital image processing, pattern recognition, neural networks, and artificial intelligence. It can be understood that the embodiments of the present invention do not limit the specific handwriting recognition technology.

[0066] The recognition of the embodiment of the present invention may include stroke recognition. In this case, the recognition result may include trajectory stroke information. The trajectory stroke information may include horizontal, vertical, left-falling, and right-falling trajectory strokes.

[0067] The recognition in the embodiment of the present invention may include: character recognition, in which case the obtained recognition result may include: single word identification. The single word identification may be used to represent the order of the single word in the candidate items.

[0068] In a specific implementation, Arabic numerals such as "1", "2", "3", and "4" may be used to represent the above-mentioned single-word identifiers, or characters such as "one", "two", "three", and "four" may be used to represent the above-mentioned single-word identifiers.

[0069] It can be understood that any identifier that can represent the order of words in the candidate items is within the protection scope of the single-word identifier of the embodiment of the present invention, and the embodiment of the present invention does not limit the specific form of the single-word identifier.

[0070] In an application example of the present invention, the recognition result includes: trajectory stroke information and single word identification, wherein the trajectory stroke information may include: multiple trajectory strokes. The order of the trajectory stroke information and the single word identification in the recognition result can be determined according to the input time of the corresponding trajectory. The single word identification can be located between two adjacent trajectory strokes.

[0071] Usually, the word corresponding to a trajectory stroke can be determined based on the word mark before the trajectory stroke. If there is no word mark before the first trajectory stroke, the first trajectory stroke corresponds to the first word. If there is a word mark before the first trajectory stroke, the first trajectory stroke corresponds to the word corresponding to the word mark.

[0072] For example, if the recognition results successively include: trajectory stroke 1, "2", trajectory stroke 2, it can be characterized that trajectory stroke 1 corresponds to the first single character, and trajectory stroke 2 corresponds to the second single character.

[0073] For another example, if the recognition results successively include: trajectory stroke 1, "3", trajectory stroke 2, trajectory stroke 3, it can be characterized that trajectory stroke 1 corresponds to the first single character, and trajectory stroke 2 and trajectory stroke 3 correspond to the third single character.

[0074] For yet another example, if the recognition results successively include: "2", trajectory stroke 1, "3", trajectory stroke 2, trajectory stroke 3, it can be characterized that trajectory stroke 1 corresponds to the second single character, and trajectory stroke 2 and trajectory stroke 3 correspond to the third single character.

[0075] In step 203, according to the trajectory stroke information, the above-mentioned candidate items are screened, and the screened candidate items can be used as a subset of candidate items to be preferentially displayed. For example, the subset of candidate items can be displayed on the first candidate page.

[0076] In a specific implementation, the above-mentioned screening of the candidate items according to the trajectory stroke information may specifically include: matching the trajectory stroke information with the stroke information corresponding to the characters in the candidate items to obtain corresponding matching information; screening the candidate items according to the matching information.

[0077] The matching information may include: matching successfully or matching failed. The characters in the candidate items may include: characters, or words, or phrases, or sentences.

[0078] In one implementation manner, matching at the single-character granularity may be performed. If the trajectory stroke information hits the stroke information corresponding to a single character, it can be considered that the matching information is a successful match. In other words, if the strokes corresponding to a single character include the corresponding trajectory stroke, the matching information of a successful match can be obtained.

[0079] In practical applications, the candidate items may be screened according to the number of single characters corresponding to the trajectory stroke information and the respective matching information corresponding to the single characters.

[0080] Specifically, if the trajectory stroke information corresponds to a single character, the candidate item including a single character that successfully matches the trajectory stroke information may be saved to the subset of candidate items.

[0081] In an application example of the present invention, assume that the user wants to input "尨" and inputs the pinyin string "meng", then the input method program may first provide, for example Figure 1The candidate items shown. Further, if the user has a need to filter candidate items, a trajectory can be input on the input interface. Assume that the user sequentially inputs the trajectories corresponding to "horizontal" and "left-falling stroke" on the virtual keyboard, as shown in Figure 3 shown. Then, the embodiment of the present invention can filter the candidate items according to the trajectory stroke information corresponding to the trajectory, and the filtered candidate items are shown in Figure 4 shown. Figure 4 Show a subset of candidate items that match the trajectory stroke information on the first candidate page. Since the subset of candidate items can include candidate items that meet the input intention, the number of page turns can be reduced, the filtering efficiency of candidate items can be improved, and thus the input efficiency can be improved.

[0082] Alternatively, if the trajectory stroke information corresponds to N (N is a natural number greater than 1) single characters, the candidate items including the N single characters that match the trajectory stroke information successfully can be saved to the subset of candidate items.

[0083] In an application example of the present invention, assume that the user wants to input "wan ku" and inputs the pinyin string "yuku". Then, the input method program can first provide corresponding candidate items, such as "want to cry", "fish cool", "rain pants", "and", etc. Further, if the user has a need to filter candidate items, a trajectory can be input on the input interface. Assume that the user sequentially inputs the trajectories corresponding to "horizontal fold hook", "vertical left-falling hook", "2", "horizontal", "left-falling stroke" on the virtual keyboard. Then, the embodiment of the present invention can filter the candidate items according to the trajectory stroke information corresponding to the trajectory, and show a subset of candidate items that match the trajectory stroke information on the first candidate page.

[0084] The embodiment of the present invention can provide the following technical solution for matching the trajectory stroke information with the stroke information corresponding to the Chinese characters in the candidate items:

[0085] Technical solution 1

[0086] In technical solution 1, the above matching of the trajectory stroke information with the stroke information corresponding to the Chinese characters in the candidate items can specifically include: matching the trajectory stroke information with the stroke information corresponding to the target single character in the candidate items.

[0087] Technical solution 1 can be applied to the scenario where the trajectory stroke information corresponds to one single character. In practical applications, the complete trajectory stroke information can be matched with the stroke information corresponding to the target single character in the candidate items.

[0088] The target single character can be the single character at the preset position in the candidate items. The determination method of the target single character can include:

[0089] If the recognition result does not include: single character identifier, then the target single character is the first single character; or

[0090] If the recognition result includes: a single-character identifier, then the target single character matches the single-character identifier.

[0091] Suppose the user wants to input "菀枯" (wan ku) and enters the pinyin string "yuku". Then, when the user inputs the trajectories corresponding to "horizontal fold hook" and "vertical hook with a bend", the target single character can be the first single character in the candidate list, and the trajectory stroke information can be matched with the stroke information corresponding to the first single character in the candidate list. For example, the candidate list including single characters with "horizontal fold hook" and "vertical hook with a bend" can be used as a subset of the candidate list.

[0092] Suppose the user wants to input "菀枯" (wan ku) and enters the pinyin string "yuku". Then, when the user inputs the trajectories corresponding to "2", "horizontal", and "left-falling stroke", the target single character can be the second single character in the candidate list, and the trajectory stroke information can be matched with the stroke information corresponding to the second single character in the candidate list. For example, the candidate list including single characters with "horizontal" and "left-falling stroke" can be used as a subset of the candidate list.

[0093] Technical solution 2

[0094] In technical solution 2, the matching of the trajectory stroke information with the stroke information corresponding to the characters in the candidate list specifically may include: dividing the trajectory stroke information into multiple trajectory stroke segments; the trajectory stroke segments corresponding to the target single characters in the candidate list; and matching the trajectory stroke segments with the stroke information corresponding to the target single characters in the candidate list.

[0095] Technical solution 2 can be applied to the scenario where the trajectory stroke information corresponds to N single characters. In practical applications, the complete trajectory stroke information can be divided into N trajectory stroke segments, and the N trajectory stroke segments can be respectively matched with the stroke information corresponding to the target single characters in the candidate list.

[0096] The specific division methods for dividing the trajectory stroke information into multiple trajectory stroke segments include:

[0097] Division method 1: Divide the trajectory stroke information into multiple trajectory stroke segments according to the single-character identifier in the recognition result; and / or

[0098] Division method 2: Divide the trajectory stroke information into multiple trajectory stroke segments according to the time interval information between the trajectories corresponding to two adjacent trajectory strokes.

[0099] Division method 1 divides the trajectory stroke information according to the single-character identifier. Specifically, the trajectory stroke information before and after the single-character identifier belongs to different trajectory stroke segments.

[0100] Furthermore, the target word corresponding to the trajectory stroke segment can also be determined according to the target word identifier before the trajectory stroke segment and adjacent to the trajectory stroke segment. Specifically, the preset position corresponding to the target word matches the target word identifier.

[0101] For example, the trajectory includes: trajectory stroke segment 1, "2", trajectory stroke segment 2, "3", trajectory stroke segment 3, then the target word corresponding to trajectory stroke segment 1 is the first word in the candidate items, the target word corresponding to trajectory stroke segment 2 is the second word in the candidate items, and the target word corresponding to trajectory stroke segment 3 is the third word in the candidate items.

[0102] For division method 2, there are usually pauses when the user inputs different strokes. In particular, in the process of inputting the strokes of different words, the length of the pause increases because the strokes of the new word need to be determined. Therefore, the embodiment of the present invention can divide the trajectory stroke information according to the time interval information between the corresponding trajectories of two adjacent trajectory strokes.

[0103] In a specific implementation, a time interval threshold may be determined, and when the time interval information between the trajectories corresponding to two adjacent trajectory strokes exceeds the time interval threshold, the two adjacent trajectory strokes are segmented so as to correspond to different trajectory stroke segments.

[0104] The time interval threshold can be obtained based on statistics of time interval information between adjacent strokes.

[0105] For example, a first time interval mean value may be determined based on the time interval information between adjacent strokes of a single word input by the user in the handwriting input mode, and a preset value may be added to the first time interval mean value to obtain a time interval threshold value.

[0106] For example, the second time interval mean can be determined based on the time interval information of adjacent strokes of adjacent words (the last stroke of the previous word and the first stroke of the next word) in the handwriting input mode, and the time interval threshold can be obtained based on the second time interval mean.

[0107] In a specific implementation, the N trajectory stroke segments can be matched with the stroke information corresponding to the target word in the candidate items. If the N target words included in the candidate items are successfully matched with the N trajectory stroke segments, the candidate items can meet the screening requirements, so the candidate items can be saved to the candidate item subset.

[0108] For example, the trajectory includes: trajectory stroke segment 1, "2", trajectory stroke segment 2, "3", trajectory stroke segment 3, then when the first single word included in candidate item A successfully matches trajectory stroke segment 1, and the second single word included in candidate item A successfully matches trajectory stroke segment 2, and the third single word included in candidate item A successfully matches trajectory stroke segment 3, candidate item A can be saved to the candidate item subset.

[0109] For another example, the trajectory includes: trajectory stroke segment 1, "2", trajectory stroke segment 2, "3", trajectory stroke segment 3, then if any target word included in candidate B fails to match the corresponding trajectory stroke segment, it can be considered that candidate B does not meet the screening requirements. For example, if the first word of candidate B fails to match trajectory stroke segment 1, and the second word included in candidate B successfully matches trajectory stroke segment 2, and the third word included in candidate B successfully matches trajectory stroke segment 3, it can be considered that candidate B does not meet the screening requirements.

[0110] In summary, the embodiment of the present invention screens the above-mentioned candidate items according to the trajectory stroke information, and the screened candidate items can be used as a subset of candidate items to be displayed preferentially, for example, the subset of candidate items can be displayed on the first candidate page. Since the subset of candidate items can include candidate items that meet the input intention, the number of page turns can be reduced, the efficiency of candidate item screening can be improved, and the input efficiency can be improved.

[0111] It should be noted that the candidate subset of the embodiment of the present invention can be updated according to the update of the trajectory stroke information. In other words, the displayed candidate subset can be updated according to the real-time trajectory stroke information.

[0112] For example, in a scenario where the trajectory stroke information corresponds to a single word, the trajectory stroke information at time T can be matched with the stroke information corresponding to the target single word in the candidate items, thereby obtaining a filtered candidate item subset A1. Furthermore, the trajectory stroke information at time (T+I) can be matched with the stroke information corresponding to the target single word in the candidate items, thereby obtaining a filtered candidate item subset A2. Usually, the trajectory stroke information at time (T+I) contains more trajectory strokes than the trajectory stroke information at time (T+I), so the number of candidates contained in candidate item subset A2 is less than the number of candidates contained in candidate item subset A1. T and I can be positive integers.

[0113] by Figure 3Taking the trajectory shown in the figure as an example, assuming that the trajectory of "horizontal" is received at time T, the candidate items are screened according to "horizontal" to obtain the candidate item subset A1. Further, if the trajectory of "stroke" is received at time (T+I), the candidate item subset A1 is screened according to "horizontal" to obtain the candidate item subset A2. Since the screening range can be gradually narrowed, the amount of calculation can be reduced and the efficiency of screening the candidate items can be improved.

[0114] For another example, in a scenario where the trajectory stroke information corresponds to N words, the trajectory stroke segments in the trajectory stroke information at time T can be matched with the stroke information corresponding to multiple target words in the candidate items, thereby obtaining a filtered candidate item subset B1. Furthermore, the trajectory stroke segments in the trajectory stroke information at time (T+I) can be matched with the stroke information corresponding to multiple target words in the candidate items, thereby obtaining a filtered candidate item subset B2. Usually, the trajectory stroke information at time (T+I) contains more trajectory strokes than the trajectory stroke information at time (T+I), so the number of candidates contained in candidate item subset B2 is less than the number of candidates contained in candidate item subset B1.

[0115] In summary, the embodiments of the present invention can gradually reduce the number of candidate items in the candidate item subset according to the gradually increasing trajectory strokes in the trajectory stroke information, so as to gradually increase the precision of screening the candidate items.

[0116] It should be noted that the trajectory strokes of the trajectory can be any strokes contained in the target word. In the case of using multiple trajectory strokes to screen a target word, the embodiment of the present invention does not limit the matching relationship between the input order of the multiple trajectory strokes and the stroke order of the target word. For example, the input order of the multiple trajectory strokes may not match or match the stroke order of the target word.

[0117] In an optional embodiment of the present invention, the track can be deleted according to the pressure with which the user presses the screen, thereby achieving correction of the track.

[0118] The deletion process of the track specifically includes: determining the pressing force corresponding to the track; deleting the track when the pressing force meets the first preset change condition; and screening the candidate items according to the track after the deletion process.

[0119] In the embodiment of the present invention, the track is deleted when the pressing force meets the first preset change condition. In the embodiment of the present invention, the track can be deleted according to the pressing force during the sliding input process to achieve track correction.

[0120] The pressing force can represent the pressing force of the finger or stylus on the screen during the selection of candidate items. In order to detect the above pressing force, the terminal can be provided with a touch screen with a pressure sensing function, such as a 3D-touch (3D touch, Three Dimensions Touch) touch screen; or, the terminal can be provided with a control for pressure sensing in an ordinary touch screen. It can be understood that the embodiment of the present invention does not limit the specific detection method of the pressing force.

[0121] The embodiment of the present invention can detect the pressing force corresponding to the track according to a preset period. The preset period can be a fixed value, or the preset period can be a dynamic value obtained according to the sliding speed of the user. It can be understood that the embodiment of the present invention does not limit the specific preset period.

[0122] In a specific implementation, during the input of the trajectory, the trajectory and its corresponding pressing force can be continuously determined, and the pressing force corresponding to the trajectory point in the trajectory can be recorded. During the input of the trajectory, the trajectory can also be displayed on the virtual keyboard. Optionally, the trajectory stroke information (such as the name of the stroke, etc.) corresponding to the trajectory can also be displayed on the input interface.

[0123] The first preset change condition may represent a change condition of the pressing force corresponding to the deletion process, which may trigger the deletion process of the track. Those skilled in the art may determine the first preset change condition according to actual application requirements.

[0124] For example, the first preset change condition may include: the pressing force increases from the first pressing force to the second pressing force. In this case, the pressing force may be increased based on the first pressing force to trigger the deletion of the track. The value of the second pressing force may be any value greater than the value corresponding to the first pressing force.

[0125] For another example, the first preset change condition may include: the pressing force is reduced from the first pressing force to a third pressing force. In this case, the pressing force may be reduced based on the first pressing force to trigger the deletion of the track. The value of the third pressing force may be any value less than the value corresponding to the first pressing force.

[0126] In an embodiment of the present invention, a pressing force that meets the first preset change condition can be used to trigger the deletion process of the track. After the deletion process of the track is triggered, the embodiment of the present invention has no specific requirements for the pressing force during the deletion process. The user can input the track for deletion according to the first pressing force before the change; or the user can input the track for deletion according to the second pressing force or the third pressing force after the change.

[0127] In a specific implementation, the above-mentioned process of deleting the trajectory specifically includes: when the pressing force meets the first preset change condition, determining a first target trajectory point from the trajectory; the first target trajectory point is used to characterize the trajectory point corresponding to the change in pressing force; based on the first target trajectory point, determining the first trajectory and the second trajectory from the trajectory; and deleting the first target trajectory that matches the second trajectory.

[0128] The first target trajectory point can represent the characteristic point corresponding to the change in the pressing force. The first target trajectory point can be the starting point of the change in the pressing force. For example, for the trajectory point before the first target trajectory point in the trajectory, the corresponding pressing force can be the first pressing force; for the first target trajectory point in the trajectory, the corresponding pressing force can be different from the first pressing force, for example, the second pressing force or the third pressing force; the embodiment of the present invention does not limit the pressing force corresponding to the trajectory point after the first target trajectory point in the trajectory, and the corresponding pressing force can be the first pressing force, the second pressing force, the third pressing force, etc.

[0129] In an embodiment of the present invention, the trajectory can be segmented according to the first target trajectory point to obtain a first trajectory and a second trajectory. The first trajectory may include: trajectory points before the first target trajectory point, and the second trajectory may include: the first target trajectory point and trajectory points after the first target trajectory point. The first target trajectory point may be the intersection of the first trajectory and the second trajectory.

[0130] In a specific implementation, the trajectory may be a directed trajectory, and the direction corresponding to the directed trajectory may correspond to the input time of the trajectory point. Accordingly, the sequence of the trajectory points in the directed trajectory may be determined according to the input time of the trajectory points.

[0131] In a specific implementation, the degree of match between the first track and the second track may be determined, and based on the degree of match, a first target track matching the second track may be determined. The first target track may represent the track that the user intends to delete. The first target track may correspond to part or all of the first track, in other words, the first target track may correspond to a segment of the first track.

[0132] In a specific implementation, assuming that the first trajectory corresponds to the first curve and the second trajectory corresponds to the second curve, the matching degree between the second curve and the segment of the first curve can be determined to determine a target segment whose matching degree exceeds a matching degree threshold from the first curve, and the target segment can correspond to the first target trajectory. The matching degree threshold can be determined according to actual application requirements, for example, the matching degree threshold can be 0.6 to 0.9. It can be understood that the embodiment of the present invention does not limit the specific matching degree threshold.

[0133] The embodiment of the present invention deletes the first target trajectory that matches the second trajectory, thereby deleting the trajectory that the user intends to delete.

[0134] The embodiment of the present invention deletes the first target trajectory that matches the second trajectory, which may specifically include: deleting the first target trajectory on the virtual keyboard.

[0135] It should be noted that, since the second track is used to delete the first target track based on matching, one implementation is: first display the second track on the virtual keyboard, then after determining the first target track that matches the second track, delete the first target track on the virtual keyboard, and delete the displayed second track. Another implementation is: do not display the second track on the virtual keyboard, and after determining the first target track that matches the second track, delete the first target track on the virtual keyboard.

[0136] Reference Figure 5 , showing a schematic diagram of deleting a trajectory according to an embodiment of the present invention. Assuming that the user needs to correct the trajectory corresponding to the "horizontal fold hook" to the trajectory corresponding to the "horizontal fold", it is necessary to delete the trajectory corresponding to the "hook" part of the "horizontal fold hook". Specifically, the user's first trajectory 501 on the virtual keyboard and the corresponding first pressing force can be captured first; assuming that at the position of the first target trajectory point 502, the pressing force increases from the first pressing force to the second pressing force, the user's second trajectory on the virtual keyboard can be captured, and after determining the first target trajectory 503 that matches the second trajectory, the first target trajectory 503 can be deleted.

[0137] In summary, the method for filtering candidate items in an embodiment of the present invention combines stroke filtering with keyboard handwriting. When displaying candidate items, if the user has a stroke filtering requirement, the user can enter a trajectory on the input interface; and the embodiment of the present invention can identify the trajectory as corresponding trajectory stroke information, and filter the candidate items according to the trajectory stroke information.

[0138] First, in the embodiment of the present invention, when candidate items are displayed, a stroke screening mode can be triggered by inputting a trajectory on the input interface, which can save the operation of clicking a trigger button, thereby improving the efficiency of screening candidate items.

[0139] Furthermore, the embodiment of the present invention identifies the trajectory as the corresponding trajectory stroke information, and screens the candidate items according to the trajectory stroke information. This can save the user's operating cost of selecting the required strokes from a large number of strokes, and further improve the efficiency of screening the candidate items; and, the trajectory stroke information of the embodiment of the present invention is located on the virtual keyboard, and the display area of ​​the virtual keyboard can be reused, so the embodiment of the present invention can save the display area occupied by the listed strokes.

[0140] 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.

[0141] Device Embodiment

[0142] Reference Figure 7 , shows a structural block diagram of an embodiment of a device for screening candidate items of the present invention, which may specifically include: a trajectory receiving module 701, a trajectory identification module 702 and a candidate item screening module 703.

[0143] The track receiving module 701 is used to receive the track of the user on the input interface when displaying the candidate items;

[0144] The trajectory recognition module 702 is used to recognize the trajectory, and the obtained recognition result includes: trajectory stroke information; and

[0145] The candidate item screening module 703 is used to screen the candidate items according to the trajectory stroke information.

[0146] Optionally, the candidate item screening module 703 may include:

[0147] A matching module, used for matching the trajectory stroke information with the stroke information corresponding to the characters in the candidate items to obtain corresponding matching information; and

[0148] A screening module is used to screen the candidate items according to the matching information.

[0149] Optionally, the matching module may include:

[0150] The first matching module is used to match the trajectory stroke information with the stroke information corresponding to the target word in the candidate items.

[0151] Optionally, if the recognition result does not include: a single word identifier, the target single word is the first single word; or

[0152] If the recognition result may include a single-word mark, the target single word is matched with the single-word mark.

[0153] Optionally, the matching module may include:

[0154] A division module, used for dividing the above trajectory stroke information into a plurality of trajectory stroke segments; the above trajectory stroke segments correspond to the target words in the above candidate items;

[0155] The second matching module is used to match the stroke information of the trajectory stroke segment with the stroke information corresponding to the target word in the candidate item.

[0156] Optionally, the above-mentioned division module may include:

[0157] A first division module is used to divide the trajectory stroke information into a plurality of trajectory stroke segments according to the single word identifier in the recognition result; and / or

[0158] The second division module is used to divide the trajectory stroke information into a plurality of trajectory stroke segments according to the time interval information between the trajectories corresponding to two adjacent trajectory strokes.

[0159] Optionally, the above device may further include:

[0160] A pressing force determination module, used to determine the pressing force corresponding to the above trajectory;

[0161] A deleting module, configured to delete the track when the pressing force meets a first preset change condition;

[0162] The post-deletion screening module is used to screen the above candidate items according to the trajectory after the deletion process.

[0163] 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.

[0164] 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.

[0165] 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.

[0166] Figure 8 1 is a block diagram of an apparatus 900 for screening candidate items according to an exemplary embodiment. For example, the apparatus 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.

[0167] Reference Figure 8, 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 .

[0168] 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-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0169] 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.

[0170] 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.

[0171] 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.

[0172] 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.

[0173] 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.

[0174] 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.

[0175] 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.

[0176] 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.

[0177] 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.

[0178] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a terminal, enables the terminal to execute a method for filtering candidate items, the method comprising: receiving a trajectory of a user on an input interface when displaying candidate items; identifying the trajectory, and obtaining a recognition result including: trajectory stroke information; and filtering the candidate items according to the trajectory stroke information.

[0179] Fig. 91 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.

[0180] 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.

[0181] 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.

[0182] 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.

[0183] 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.

[0184] The above is a detailed introduction to a method for screening candidate items, a device for screening candidate items, a device for screening candidate items, 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. A method for screening candidate items, It is characterized in that include: In the case of presenting candidate items, receiving the user's trajectory on the input interface; Recognize the trajectory, and obtain the recognition result including: trajectory stroke information, wherein the input interface includes a virtual keyboard, and the trajectory stroke information is covered in the display area of ​​the virtual keyboard; Screening the candidate items according to the trajectory stroke information; The method further comprises: Counting the time interval information of adjacent strokes of adjacent words of the user in the handwriting input mode, determining a second time interval mean, and obtaining a time interval threshold according to the second time interval mean; The screening of the candidate items according to the trajectory stroke information includes: When the trajectory stroke information corresponds to a plurality of words, the trajectory stroke information is divided into a plurality of trajectory stroke segments; the trajectory stroke segments correspond to the target words in the candidate items; and the stroke information corresponding to the trajectory stroke segments and the target words in the candidate items is matched; The dividing the trajectory stroke information into a plurality of trajectory stroke segments comprises: When the time interval information between the corresponding trajectories of two adjacent trajectory strokes exceeds the time interval threshold, segmenting the two adjacent trajectory strokes to obtain a plurality of trajectory stroke segments; The matching of the stroke information of the trajectory stroke segment with the stroke information corresponding to the target word in the candidate item includes: Matching the trajectory stroke segments in the trajectory stroke information at the first moment with the stroke information corresponding to the multiple target words in the candidate items to obtain a first candidate item subset after screening, and matching the trajectory stroke segments in the trajectory stroke information at the second moment with the stroke information corresponding to the multiple target words in the first candidate item subset to obtain a second candidate item subset after screening, wherein the first moment is before the second moment; The method further comprises: Determining a pressing force corresponding to the trajectory; In the case where the pressing force meets the first preset change condition, a first target trajectory point is determined from the trajectory, a first trajectory and a second trajectory are determined from the trajectory according to the first target trajectory point, and the first target trajectory matching the second trajectory is deleted; wherein the first target trajectory point is used to represent the trajectory point corresponding to the change in the pressing force; The candidate items are screened according to the deleted tracks.

2. The method according to claim 1, It is characterized in that The screening of the candidate items according to the trajectory stroke information includes: Matching the trajectory stroke information with the stroke information corresponding to the characters in the candidate items to obtain corresponding matching information; The candidate items are screened according to the matching information.

3. The method according to claim 2, It is characterized in that The matching of the trajectory stroke information with the stroke information corresponding to the character in the candidate item includes: The trajectory stroke information is matched with the stroke information corresponding to the target word in the candidate items.

4. The method according to claim 3, It is characterized in that If the recognition result does not include: a single word identifier, the target single word is the first single word; or If the recognition result includes: a single word identifier, the target single word matches the single word identifier.

5. The method according to claim 1, It is characterized in that The step of dividing the trajectory stroke information into a plurality of trajectory stroke segments comprises: According to the single-word identifier in the recognition result, the trajectory stroke information is divided into a plurality of trajectory stroke segments.

6. A device for screening candidate items, It is characterized in that include: A trajectory receiving module, used to receive the user's trajectory on the input interface when displaying candidate items; a trajectory recognition module, used to recognize the trajectory, and the obtained recognition result includes: trajectory stroke information, wherein the input interface includes a virtual keyboard, and the trajectory stroke information is covered in the display area of ​​the virtual keyboard; and A candidate item screening module, used for screening the candidate items according to the trajectory stroke information; A threshold determination module, used to count the time interval information of adjacent strokes of adjacent words of the user in the handwriting input mode, determine a second time interval mean, and obtain a time interval threshold according to the second time interval mean; The candidate item screening module comprises: A division submodule, for dividing the trajectory stroke information into a plurality of trajectory stroke segments when the trajectory stroke information corresponds to a plurality of single words; the trajectory stroke segments correspond to the target single words in the candidate items; A second matching submodule is used to match the stroke information of the trajectory stroke segment with the stroke information corresponding to the target word in the candidate item; The division submodule comprises: A first segmentation subunit is used to segment two adjacent trajectory strokes to obtain a plurality of trajectory stroke segments when the time interval information between the corresponding trajectories of the two adjacent trajectory strokes exceeds the time interval threshold; a second dividing subunit, for matching the trajectory stroke segments in the trajectory stroke information at the first moment with the stroke information corresponding to the plurality of target words in the candidate items to obtain a first candidate item subset after screening, and matching the trajectory stroke segments in the trajectory stroke information at the second moment with the stroke information corresponding to the plurality of target words in the first candidate item subset to obtain a second candidate item subset after screening, wherein the first moment is before the second moment; The device also includes: A pressing force determination module, used to determine the pressing force corresponding to the trajectory; a deletion module, configured to determine a first target trajectory point from the trajectory when the pressing force meets a first preset change condition, determine a first trajectory and a second trajectory from the trajectory based on the first target trajectory point, and delete the first target trajectory that matches the second trajectory; wherein the first target trajectory point is used to represent a trajectory point corresponding to a change in the pressing force; The post-deletion screening module is used to screen the candidate items according to the track after the deletion process.

7. The device according to claim 6, It is characterized in that The candidate item screening module comprises: A matching module, used for matching the trajectory stroke information with the stroke information corresponding to the characters in the candidate items to obtain corresponding matching information; and A screening module is used to screen the candidate items according to the matching information.

8. The device according to claim 7, It is characterized in that The matching module comprises: The first matching module is used to match the trajectory stroke information with the stroke information corresponding to the target word in the candidate item.

9. The device according to claim 8, It is characterized in that If the recognition result does not include: a single word identifier, the target single word is the first single word; or If the recognition result includes: a single word identifier, the target single word matches the single word identifier.

10. The device according to claim 6, It is characterized in that The division submodule comprises: The first segmentation module is used to segment the trajectory stroke information into a plurality of trajectory stroke segments according to the single-word identifier in the recognition result.

11. A device for screening candidate items, It is characterized in that The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of the method according to any one of claims 1 to 5 are implemented.

12. One or more machine-readable media, It is 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.