Method, device, equipment, medium and program product for determining input method candidate

By utilizing a candidate word library associated with user history and application type in input method applications, the problem of consistent recommendations for the same keyword across different applications was solved, enabling personalized candidate word recommendations and improving user input efficiency and experience.

CN122172979APending Publication Date: 2026-06-09PATEO CONNECT (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
PATEO CONNECT (NANJING) CO LTD
Filing Date
2024-12-06
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Existing input methods recommend the same candidate words for the same keyword across different applications, forcing users to repeatedly select precise words or rely on fuzzy search, which fails to meet users' true input intentions across different applications.

Method used

By acquiring a first candidate thesaurus associated with the user's historical content in the target application and/or a second candidate thesaurus associated with the application type, candidate words that match the keywords entered by the user are identified and displayed, and personalized recommendations are made based on the application type.

Benefits of technology

This feature enables the display of different candidate words that users expect when entering the same keyword in different applications, saving users' input time and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122172979A_ABST
    Figure CN122172979A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and device for determining input method candidate words, equipment, medium and program product, relating to the technical field of input method. The method comprises: obtaining a keyword input by a user in a target application; determining a first candidate word from at least one candidate word library based on the keyword, wherein the at least one candidate word library comprises a first candidate word library associated with historical content input by the user in the target application, and / or a second candidate word library associated with an application type of the target application; and displaying the first candidate word corresponding to the keyword. Thus, the embodiments of the present application can achieve the effect that the same keyword input in different target applications can obtain different candidate words expected by the user. Through more accurate and intelligent candidate word display, the input time of the user can be saved and the use experience of the user can be further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to, but is not limited to, the field of input method technology, and in particular to a method, apparatus, device, medium, and program product for determining input method candidate words. Background Technology

[0002] With the rapid development of technology, terminals have become an indispensable tool in people's daily lives. Input methods based on terminals, allowing information to be input and interact with the terminal, are one of the essential functions of a terminal.

[0003] To improve information input efficiency, most existing input method applications have intelligent recommendation functions, which recommend candidate words based on the keywords entered by the user. Summary of the Invention

[0004] One objective of this application is to provide at least one method for determining input method candidate words. Its advantages lie in: acquiring keywords entered by a user in a target application; determining a first candidate word from at least one candidate word library based on the keywords, wherein the at least one candidate word library includes a first candidate word library associated with the user's historical input content in the target application, and / or a second candidate word library associated with the application type of the target application; and displaying the first candidate word corresponding to the keyword. This method can recommend different candidate words based on different target applications to meet the user's candidate word recommendation needs in different target applications. Thus, it achieves the effect of displaying different candidate words as desired when the same keyword is entered in different target applications. Through more accurate and intelligent candidate word display, it can save users' input time and further improve the user experience.

[0005] Another objective of this application is to provide a method for determining input method candidate words. Its advantage lies in obtaining the identification information of the target application based on the input instructions of the input method application; and determining at least one candidate word library corresponding to the target application based on the identification information. In this way, at least one candidate word library corresponding to the target application can be quickly determined through the identification information, so as to subsequently determine the first candidate word from at least one candidate word library.

[0006] Another objective of this application is to provide a method for determining input method candidate words. Its advantage lies in that, before determining the first candidate word from at least one candidate word library based on keywords, it obtains multiple historical keywords entered by the user in the target application; segments these historical keywords to obtain segmentation results; based on the segmentation results, identifies one or more keywords from the multiple historical keywords as user-associated candidate words; and constructs a first candidate word library based on the user-associated candidate words. Thus, by constructing the first candidate word library through the above process, all candidate words included in the first word library are associated with the historical content entered by the user in the target application, facilitating the subsequent determination of the first candidate word from the first candidate word library.

[0007] Another objective of this application is to provide a method for determining input method candidate words. Its advantage lies in that, based on the word segmentation results, multiple historical keywords are sorted to obtain a first sorting result; based on the first sorting result, the top N historical keywords are selected from multiple historical keywords as candidate words associated with the user, where N is a positive integer. In this way, the selected candidate words associated with the user can meet the actual needs and redundancy of candidate words associated with the user can be avoided.

[0008] Another objective of this application is to provide a method for determining input method candidate words. Its advantage lies in that, before determining the first candidate word from at least one candidate word library based on keywords, the application type corresponding to the target application is obtained; based on the application type, at least one word associated with the application type is obtained; based on the at least one word, a second candidate word library associated with the application type of the target application is constructed. In this way, by constructing the second candidate word library through the above process, all candidate words included in the second word library are associated with the application type of the target application, which facilitates the subsequent determination of the first candidate word from the second candidate word library.

[0009] Another objective of this application is to provide a method for determining input method candidate words. Its advantage lies in that, after displaying the first candidate word corresponding to the keyword, if the first candidate word does not meet preset conditions, a second candidate word is determined from a third candidate word library based on the keyword. This third candidate word library includes a general candidate word library associated with multiple applications. Displaying the second candidate word corresponding to the keyword allows the user to choose a second candidate word if the first candidate word does not meet their needs, thereby improving the user experience and avoiding manual input.

[0010] Another objective of this application is to provide a method for determining input method candidate words. Its advantage is that at least one candidate word associated with a keyword in at least one candidate word library is sorted to obtain a second sorting result; based on the second sorting result, the first M candidate words are determined from at least one candidate word as the first candidate word corresponding to the keyword, where M is a positive integer. In this way, the selected first candidate word can meet the actual needs and the redundancy of the first candidate word can be avoided.

[0011] Another objective of this application is to provide a method for determining input method candidate words, the advantage of which is that, in response to the user's first operation on the target application, the input method application is invoked; through the input method application, the keyword entered by the user in the target application is obtained, thus enabling the rapid acquisition of the keyword entered by the user.

[0012] Another objective of this application is to provide an input method candidate word determination device, the advantage of which is that the device includes: a first acquisition module for acquiring keywords entered by a user in a target application; a first determination module for determining first candidate words from at least one candidate word library based on the keywords, wherein the at least one candidate word library includes a first candidate word library associated with the user's historical input content in the target application, and / or a second candidate word library associated with the application type of the target application; and a display module for displaying the first candidate words corresponding to the keywords. This allows for different candidate word recommendations based on different target applications, satisfying the user's candidate word recommendation needs in different target applications, achieving the effect of displaying different candidate words as expected when the same keyword is entered in different target applications. Through more accurate and intelligent candidate word display, user input time can be saved and the user experience can be further improved.

[0013] Another object of this application is to provide a computer device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor, when executing the program, implements some or all of the steps in the above-described method. In this way, different candidate word recommendations can be made according to different target applications to meet the user's candidate word recommendation needs in different target applications, achieving the effect that entering the same keyword in different target applications will yield different candidate word displays as desired by the user. Through more accurate and intelligent candidate word display, user input time can be saved and the user experience can be further improved.

[0014] Another objective of this application is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements some or all of the steps in the above-described method. This enables different candidate word recommendations based on different target applications, satisfying users' needs for candidate word recommendations in various applications. It achieves the effect of displaying different candidate words as expected when the same keyword is entered in different target applications. Through more accurate and intelligent candidate word display, it saves users' input time and further enhances the user experience.

[0015] Another objective of this application is to provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in the aforementioned method. This allows for different candidate word recommendations based on different target applications, satisfying users' candidate word recommendation needs in various applications. It achieves the effect of displaying different candidate words based on the user's desired outcome when the same keyword is entered in different target applications. Through more accurate and intelligent candidate word display, user input time can be saved and the user experience further improved.

[0016] To achieve the above objectives, the technical solution of this application is implemented as follows:

[0017] In a first aspect, this application provides a method for determining input method candidate words, the method comprising: acquiring keywords entered by a user in a target application; determining a first candidate word from at least one candidate word library based on the keywords, wherein the at least one candidate word library includes a first candidate word library associated with historical content entered by the user in the target application, and / or a second candidate word library associated with the application type of the target application; and displaying the first candidate word corresponding to the keywords.

[0018] Secondly, this application provides an input method candidate word determination device, the device comprising: a first acquisition module, configured to acquire keywords entered by a user in a target application; a first determination module, configured to determine a first candidate word from at least one candidate word library based on the keywords, wherein the at least one candidate word library includes a first candidate word library associated with historical content entered by the user in the target application, and / or a second candidate word library associated with the application type of the target application; and a display module, configured to display the first candidate word corresponding to the keywords.

[0019] Thirdly, this application provides a computer device including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the program to implement some or all of the steps in the above-described method.

[0020] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements some or all of the steps in the above-described method.

[0021] Fifthly, this application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement some or all of the steps in the above-described method.

[0022] Sixthly, this application provides a computer program including computer-readable code, which, when executed in a computer device, causes a processor in the computer device to perform some or all of the steps in the above-described method.

[0023] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0025] Figure 1 A flowchart illustrating a method for determining input method candidate words provided in an embodiment of this application;

[0026] Figure 2 This is a schematic diagram of the structure of an input method application provided in an embodiment of this application;

[0027] Figure 3 This is an optional flowchart illustrating the method for determining input method candidate words provided in the embodiments of this application;

[0028] Figure 4 This is an optional flowchart illustrating the method for determining input method candidate words provided in the embodiments of this application;

[0029] Figure 5 A schematic flowchart of an optional method for determining input method candidate words provided in an embodiment of this application;

[0030] Figure 6 A flowchart illustrating a method for determining input method candidate words provided in an embodiment of this application;

[0031] Figure 7 A schematic diagram of the composition structure of an input method candidate word determination device provided in an embodiment of this application;

[0032] Figure 8 This is a schematic diagram of the hardware entity of a computer device provided in an embodiment of this application. Detailed implementation manners

[0033] In order to make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be further elaborated in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations of this application. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0034] In the following description, "some embodiments" are involved, which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. The terms "first / second / third" involved are only used to distinguish similar objects, and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when permitted, so that the embodiments of this application described here can be implemented in an order other than that illustrated or described here.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.

[0036] In the current era of rapid digital development, the use of terminals (such as smart phones, smart car machines, etc.) has been very popular. Although voice interaction methods have been developed, the way people issue instructions to the terminal through the input method application of the terminal for interaction still plays an irreplaceable role in many scenarios. And a user's terminal usually includes multiple applications. When the user calls the input method application for input in different applications, the candidate words recommended by the current input method application are the same.

[0037] However, when the user is using different applications, for the same keyword input, the text that the user finally wants to be displayed on the screen is very likely to be different. For example, when the user inputs "Qing X", in the case where the user is using a music application, the user's true intention may be to input the song "Qing X Ci"; when the user is using a navigation application, the user's true intention may be to input the location "Qing X Town"; when the user is using a settings application, the user's true intention may be to input the atmosphere light switch of "Qing X Color".

[0038] However, in related technologies, the recommended candidate words are the same for the same keyword input by the user in different applications, making the user input process cumbersome. Users need to repeatedly select precise words, input the entire keyword, or rely on the application's fuzzy search function to complete the input. Currently, there is no solution to this problem.

[0039] To address the aforementioned issues, this application provides a method, apparatus, device, medium, and program product for determining input method candidate words. By acquiring keywords entered by a user in a target application, and based on these keywords, determining first candidate words from a first candidate word library associated with the user's historical input in the target application, and / or a second candidate word library associated with the application type of the target application, the application determines and displays the first candidate words corresponding to the keywords. This allows for different candidate word recommendations based on different target applications, satisfying the user's candidate word recommendation needs across different applications. Thus, it achieves the effect of displaying different candidate words as desired when the same keyword is entered in different target applications. Through more accurate and intelligent candidate word display, it saves user input time and further enhances the user experience.

[0040] The method for determining input method candidate words provided in this application embodiment can be widely applied to computer devices with input screens, such as servers or terminals. Terminals may include, but are not limited to, smartphones, PDAs, tablets, wearable devices with displays, desktops, laptops, all-in-ones, smart home devices, and other electronic devices with input interfaces.

[0041] In some embodiments, the aforementioned computer device may be an in-vehicle terminal device with an input screen. This in-vehicle terminal device may be a terminal device deployed in a vehicle, communicating with the vehicle, and may be used independently of the vehicle or integrated into the vehicle control system; this application does not specifically limit this.

[0042] In some embodiments, the input method application can be the system input method application of a smartphone, the input method application of a smart car system, the system input method application of a smart tablet, etc., and this application embodiment does not specifically limit it.

[0043] Reference Figure 1 , Figure 1 The flowchart illustrates a method for determining input method candidate words according to an embodiment of this application. The method includes the following steps:

[0044] Step S101: Obtain the keywords entered by the user in the target application.

[0045] The target application can be understood as the application currently using the input method. It can be a built-in application on the terminal, a third-party application, etc., such as media, maps, settings, instant messaging, etc. This application embodiment does not specifically limit this. For example, when a user chats with a friend in a chat application, they need to use the input method in that chat application to input information; in this case, the chat application is the target application. Similarly, when a user searches for information through a browser, they need to enter search terms. Entering search terms requires calling the input method, i.e., entering search terms through the input method in the browser's search window; in this case, the browser is the target application. Keywords can be words entered by the user through the input method application in the target application, used to express the user's current input intention. The input method application can be an application that helps users input various language characters; it can be a built-in application on the terminal, a third-party application, etc. This application embodiment does not specifically limit this.

[0046] In some embodiments, the same keyword in different target applications can express different input intentions of the user. For example, if the target application is a navigation application and the user enters the keyword "south" in the navigation application, the user's current input intention may be to enter place names such as towns, villages, and streets associated with "south". As another example, if the target application is a music application and the user enters the keyword "south" in the music application, the user's current input intention may be to enter songs, singers, etc. associated with "south".

[0047] In some embodiments, when a user enters keywords in a target application, the user typically uses an input method application within the target application to input the keywords. After the user enters the keywords through the input method application, the terminal can obtain the keywords entered by the user through the input method application.

[0048] In some embodiments, there may be one or more keywords, and this application does not specifically limit them.

[0049] Step S102: Based on keywords, determine a first candidate word from at least one candidate thesaurus.

[0050] Among them, at least one candidate thesaurus includes a first candidate thesaurus associated with the user’s historical input in the target application, and / or a second candidate thesaurus associated with the application type of the target application.

[0051] Understandably, both the first and second candidate word libraries are related to the target application. The two candidate word libraries may include multiple candidate words. The candidate words included in the first candidate word library are associated with the user's historical input in the target application, and the candidate words included in the second candidate word library are associated with the application type of the target application.

[0052] In some embodiments, different target applications may correspond to different application types, and therefore, the second candidate thesaurus may also be different for different target applications. For example, when the target application is a chat application, its application type may be social, and the second candidate thesaurus associated with the application type of a chat application may contain words related to social interaction, etiquette, praise, etc.; as another example, when the target application is a learning application, its application type may be educational, and the second candidate thesaurus associated with the application type of a learning application may contain words related to different disciplines, such as literature, education, etc.

[0053] In some embodiments, in order to obtain and display the first candidate word corresponding to the keyword, it is necessary to filter out one or more candidate words that match the keyword from at least one candidate word library, namely the first candidate word library and / or the second candidate word library. These one or more candidate words are the first candidate words. In this way, the determined first candidate words are related to both the keyword and the target application.

[0054] In one example, if the keyword is "South" and the target application is a navigation application, then the first candidate terminology is associated with the user's historical input in the navigation application, and the second candidate terminology is associated with the application type of the navigation application, namely transportation. Therefore, based on "South," the first candidate term selected from the first and / or second candidate terminology can be associated with "South," the historical input in the navigation application, and also with transportation-related terms.

[0055] In one example, if the keyword is "South" and the target application is a music application, then the first candidate word library is associated with the user's historical input in the music application, and the second candidate word library is associated with the application type of the music application, namely, the arts category. Therefore, based on "South," the first candidate word selected from the first and / or second candidate word libraries can be associated with "South," the historical input in the music application, and also with arts-related terms.

[0056] Step S103: Display the first candidate word corresponding to the keyword.

[0057] Understandably, after determining the first candidate word, the input method application can display the first candidate word on the keyword input page. In this way, users can see the displayed first candidate words corresponding to their input keywords, allowing them to choose the appropriate word from the first candidate words for input, thus avoiding the need for users to manually input precise and complete words, saving users time.

[0058] In steps S101 to S103 above, by obtaining the keywords entered by the user in the target application, and based on the keywords, determining the first candidate word from a first candidate word library associated with the user's historical input in the target application, and / or a second candidate word library associated with the application type of the target application, and displaying the first candidate word corresponding to the keyword, different candidate word recommendations can be made according to different target applications to meet the user's candidate word recommendation needs in different target applications. In this way, the effect of obtaining different candidate word displays as expected by the user when entering the same keyword in different target applications can be achieved. Through more accurate and intelligent candidate word display, the user's input time can be saved and the user experience can be further improved.

[0059] In some embodiments, step S101 may include: in response to a user’s first operation on the target application, invoking an input method application; and obtaining the keywords entered by the user in the target application through the input method application.

[0060] Here, the first operation can be an operation that requires calling the input method application, such as triggering the search window of the target application, triggering the chat window of the target application, or logging into the target application. This application embodiment does not specifically limit this.

[0061] Understandably, when a user wants to invoke the input method application within a target application, it triggers a first operation on the target application. Upon detecting this first operation, the terminal responds by invoking the input method application. At this point, through the input method application, the terminal can obtain the keywords entered by the user within the target application. This allows for the rapid acquisition of the user's input keywords.

[0062] In some embodiments, after step S103, the above method for determining input method candidate words may further include: if the first candidate word does not meet the preset conditions, determining a second candidate word in a third candidate word library based on the keyword; and displaying the second candidate word corresponding to the keyword.

[0063] The third candidate thesaurus includes a general candidate thesaurus associated with multiple applications.

[0064] Here, the preset conditions can be that the user did not select a word that meets their requirements from the first candidate words. For example, the user browsed the first candidate words for more than a preset time, or the user browsed more than a preset number of candidate words in the first candidate words. This application embodiment does not specifically limit this. The general candidate word library can be understood as a word library related to multiple applications and applicable to the application scenarios of multiple applications. It can store words that users frequently use, collected in advance, but these words do not need to be classified. That is, the general candidate word library can include words of any category. It can usually collect words with high usage frequency, words with high popularity, etc. This application embodiment does not specifically limit this.

[0065] Understandably, if the first candidate word does not meet the preset conditions, it means the user has not found a word that matches their requirements from the first candidate word. In this case, it is necessary to display a second candidate word that differs from the first candidate word so that the user can choose from it. Therefore, based on the keyword, one or more candidate words matching the keyword are filtered from a third candidate word library, which is a general candidate word library associated with multiple applications. These one or more candidate words are the second candidate words. Then, the second candidate words corresponding to the keyword are displayed on the page where the keyword is entered. In this way, even if the first candidate word does not meet the user's needs, the second candidate word can be displayed for the user to choose from, thereby improving the user experience and avoiding the need for the user to manually enter complete words or sentences.

[0066] In one example, if the keyword is "South" and the target application is a navigation application, if the first candidate word does not meet the preset conditions, a second candidate word can be selected from a general candidate word library associated with multiple applications based on "South". At this time, the second candidate word can be associated with "South" and general words.

[0067] In one example, if the keyword is "mathematics" and the target application is a learning application, if the first candidate word does not meet the preset conditions, a second candidate word can be selected from a general candidate word library associated with multiple applications based on "mathematics". At this time, the second candidate word can be associated with "mathematics" and general words.

[0068] In some embodiments, the aforementioned general candidate word library can also be replaced by the Android native candidate word library or the third-party KIKA library, and this application embodiment does not specifically limit this.

[0069] In some embodiments, before step S102, the above method for determining input method candidate words may further include: step a, obtaining the identification information of the target application based on the input instructions of the input method application; step b, determining at least one candidate word library corresponding to the target application based on the identification information.

[0070] Here, the identification information of the target application can be used to identify the target application. For example, it can be the target application's identity document (ID), package name, or other identification information. This application embodiment does not specifically limit this.

[0071] Understandably, when a user needs to input keywords into a target application, they can trigger an input command through the input method application to perform the keyword input operation. At this time, based on the input command received by the input method application, the identification information of the target application can be obtained, thus determining which specific application it is. Then, based on the target application's identification information, at least one candidate word library corresponding to the target application can be determined. In this way, at least one candidate word library corresponding to the target application can be quickly determined using the identification information, allowing for the subsequent selection of the first candidate word from at least one candidate word library.

[0072] In some embodiments, for step b above, based on the identification information of the target application, the historical content input by the target application can be obtained, and then at least one candidate word library corresponding to the target application, namely the first candidate word library, can be determined based on the historical content.

[0073] In some embodiments, for step b above, based on the identification information of the target application, the application type corresponding to the target application can be determined, such as social, gaming, or educational applications. Then, based on the application type, at least one candidate word library corresponding to the target application is determined, i.e., a second candidate word library.

[0074] In some embodiments, for step b above, a candidate word library corresponding to each different application in the terminal can be pre-built, and the mapping relationship between the identification information of each application and the candidate word library matching that application can be stored. When it is necessary to determine input method candidate words, at least one candidate word library matching the identification information of the target application is determined from the pre-built candidate word library.

[0075] In some embodiments, before step S102, the above method for determining input method candidate words may further include: step b1, obtaining multiple historical keywords entered by the user in the target application; step b2, segmenting the multiple historical keywords to obtain segmentation results; step b3, determining one or more keywords among the multiple historical keywords as candidate words associated with the user based on the segmentation results; step b4, constructing a first candidate word library based on the candidate words associated with the user.

[0076] Understandably, the historical keywords a user inputs in the target application may be closely related to the keywords the user currently inputs, and may even be related to the user's actual input intent. Based on this, multiple historical keywords input by the user in the target application are obtained; that is, the user's historical input content in the target application. These historical keywords are then segmented to obtain segmentation results for each historical keyword. Next, based on the segmentation results, one or more keywords from the multiple historical keywords are identified as candidate words associated with the user. Finally, using these candidate words, a first candidate word library can be constructed. In this way, by constructing the first candidate word library through the above process, all candidate words included in the first word library are associated with the user's historical input content in the target application, facilitating the subsequent determination of the first candidate word from the first candidate word library.

[0077] In some embodiments, step b3 above may include: sorting multiple historical keywords according to the word segmentation results to obtain a first sorting result; and selecting the top N historical keywords from the multiple historical keywords as candidate words for user association according to the first sorting result. Here, N is a positive integer.

[0078] Understandably, given the potentially large number of historical keywords, using all historical keywords as candidate terms for user association could lead to redundancy. Therefore, based on the word segmentation results of multiple historical keywords, they are sorted according to a preset sorting rule to obtain a first sorting result. After obtaining the first sorting result, the top N historical keywords are selected as candidate terms for user association. This ensures that the selected candidate terms for user association meet actual needs and avoids redundancy.

[0079] In some embodiments, the aforementioned preset sorting rules may be rules such as the number of times historical keywords were entered, the time of entry, similarity, contextual information, user habits, and initial letters, etc., and this application embodiment does not specifically limit them.

[0080] In some embodiments, before step S102, the method for determining input method candidate words may further include: obtaining the application type corresponding to the target application; obtaining at least one word associated with the application type based on the application type; and constructing a second candidate word library associated with the application type of the target application based on the at least one word.

[0081] Here, the application type corresponding to the target application can be the category of the target application, such as social, game, or learning applications. This application embodiment does not specifically limit this.

[0082] Understandably, the keywords a user inputs in a target application may be closely related to the application type of that application. The true intent expressed by the user's keywords may differ across different target applications. Therefore, the application type corresponding to the target application is obtained. Then, based on the application type, at least one word associated with that application type is obtained through existing publicly available text, the internet, and other means. Based on this at least one word, a second candidate word library associated with the application type of the target application is constructed. In this way, the second candidate word library is constructed through the above process, ensuring that all candidate words included in the second library are associated with the application type of the target application, facilitating the subsequent determination of the first candidate word from the second candidate word library.

[0083] In some embodiments, step S102 may include: sorting at least one candidate word associated with the keyword in at least one candidate word library to obtain a second sorting result; and determining the first M candidate words from at least one candidate word library as the first candidate word corresponding to the keyword based on the second sorting result.

[0084] Where M is a positive integer. The values ​​of M and N can be the same or different, and this application does not impose specific limitations on this.

[0085] Understandably, since at least one candidate thesaurus may contain a large number of candidate words, using all candidate words from at least one thesaurus as first candidate words would result in redundancy, making it difficult for users to select suitable words. Therefore, at least one candidate word associated with the keyword is determined from at least one candidate thesaurus, and then these at least one candidate word are sorted according to a preset sorting rule to obtain a second sorting result. Based on the second sorting result, the top M candidate words are selected from the at least one candidate word as the first candidate words corresponding to the keyword. This ensures that the selected first candidate words meet the actual needs and avoids redundancy in the first candidate word selection.

[0086] The following describes the input method applications involved in the embodiments of this application.

[0087] Reference Figure 2 , Figure 2This is a schematic diagram of an input method application provided in an embodiment of this application. The input method application may include the following modules: a display interaction module 201, an input method function configuration module 202, an input method control module 203, an application candidate word management module 204, and a general candidate word management module 205. The display interaction module 201 is used to receive user input (such as keywords), display the input method interface, show the user's input, and display candidate words corresponding to the keywords. The display interaction module 201 can interact with the input method function configuration module 202, and it can also interact with the input method control module 203. Users can enable or disable the function of the input method function configuration module 202, especially when the terminal's hardware configuration is low; disabling the input method function configuration module 202 can prevent a reduction in terminal performance. The input method control module 203 can receive user input from the display interaction module 201 and determine candidate words corresponding to the user-input keywords through the application candidate word management module 204 and the general candidate word management module 205. The application candidate word management module 204 is used to store candidate word libraries (such as the first candidate word library and / or the second candidate word library) categorized by application identifier, and to manage, retrieve, and update candidate words. The general candidate word management module 205 is used to store, manage, and update a general candidate word library (such as the third candidate word library) associated with multiple applications.

[0088] In some embodiments, for Figure 2 The application candidate word management module 204 shown may include a screen content recognition submodule, a historical candidate word management submodule, a candidate word registration submodule, and a candidate word cloud update submodule. The system comprises the following modules: Screen Content Recognition Submodule: When a third-party application interface switches, it recognizes the current screen text information, uses the recognition result as input candidate words, and registers them with the Candidate Word Registration Submodule; Historical Candidate Word Management Submodule: It records and manages historical text (such as historical keywords) entered in different applications, sorts the historical text by popularity (i.e., number of times it was entered) and other sorting rules, and stores the sorted results with application identification information (such as application identifiers) to remove duplicates; Candidate Word Registration Submodule: It registers candidate words when the terminal system's built-in applications start up or when the interface switches; Candidate Word Cloud Update Submodule: It updates the first candidate word library associated with the historical content entered by the user in the target application, and / or the second candidate word library associated with the application type of the target application. The first and / or second candidate word libraries can be pre-made by the terminal's product personnel based on users, product analysis, the historical content entered by the user in the application, and the application type, etc. The terminal can update the first and second candidate word libraries through the Candidate Word Cloud Update Submodule.

[0089] The above method will be illustrated with specific examples below.

[0090] Reference Figure 3 , Figure 3 This is an optional flowchart illustrating a method for determining input method candidate words provided in an embodiment of this application. This method can be executed by the processor of a computer device. Based on Figure 1 , Figure 1 Step S101 can be replaced by steps S301 to S302. Here, we will combine... Figure 3 The steps shown are explained.

[0091] Step S301: In response to the user's first operation on the target application, the input method application is invoked.

[0092] Step S302: Obtain the keywords entered by the user in the target application through the input method application.

[0093] In steps S301 to S302 above, the above process enables the input method application to quickly obtain the keywords entered by the user.

[0094] Reference Figure 4 , Figure 4 This is an optional flowchart illustrating a method for determining input method candidate words provided in an embodiment of this application. This method can be executed by the processor of a computer device. Based on Figure 1 , Figure 1 Step S103 may be followed by steps S401 to S402, which will be discussed below. Figure 4 The steps shown are explained.

[0095] Step S401: If the first candidate word does not meet the preset conditions, a second candidate word is determined from the third candidate word library based on the keywords.

[0096] Step S402: Display the second candidate word corresponding to the keyword.

[0097] In steps S401 and S402 above, if the first candidate word does not meet the preset conditions, it means that the user has not selected a word that meets their requirements from the first candidate word pool. At this time, based on the keyword, one or more candidate words that match the keyword are filtered from the third candidate word pool. These one or more candidate words are the second candidate words. Then, the second candidate words corresponding to the keyword are displayed on the keyword input page. In this way, even if the first candidate words do not meet the user's needs, the second candidate words can be displayed for the user to choose from, thereby improving the user experience and avoiding manual input by the user.

[0098] Reference Figure 5 , Figure 5This is an optional flowchart illustrating a method for determining input method candidate words provided in an embodiment of this application. This method can be executed by the processor of a computer device. Based on Figure 1 , Figure 1 Step S102 may include steps S501 to S502, which will be discussed below. Figure 5 The steps shown are explained.

[0099] Step S501: Based on the input instructions of the input method application, obtain the identification information of the target application.

[0100] Step S502: Based on the identification information, determine at least one candidate word library corresponding to the target application.

[0101] In steps S501 to S502 above, when a user needs to input keywords in a target application, they can trigger an input command through the input method application to perform the keyword input operation. At this time, based on the input command received by the input method application, the identification information of the target application can be obtained, thereby determining which specific application the target application is. Then, based on the identification information of the target application, at least one candidate word library corresponding to the target application can be determined. Thus, at least one candidate word library corresponding to the target application can be quickly determined through the identification information, so that a first candidate word can be subsequently determined from at least one candidate word library.

[0102] Reference Figure 6 , Figure 6 This is a flowchart illustrating a method for determining input method candidate words provided in an embodiment of this application. This method can be executed by the processor of a computer device. The following will combine... Figure 6 The steps shown illustrate the process of determining candidate words for the input method.

[0103] Step S601: In response to the user's first operation on the target application, the input method application is invoked.

[0104] Step S602: Obtain the keywords entered by the user in the target application through the input method application.

[0105] Step S603: Based on the input instructions of the input method application, obtain the identification information of the target application.

[0106] Step S604: Based on the identification information, determine at least one candidate word library corresponding to the target application.

[0107] Step S605: Sort at least one candidate word associated with the keyword in at least one candidate thesaurus to obtain a second sorting result.

[0108] Step S606: Based on the second sorting result, determine the top M candidate words from at least one candidate word as the first candidate word corresponding to the keyword.

[0109] Step S607: Display the first candidate word corresponding to the keyword.

[0110] Step S608: If the first candidate word does not meet the preset conditions, a second candidate word is determined from the third candidate word library based on the keywords.

[0111] Step S609: Display the second candidate word corresponding to the keyword.

[0112] Based on the same inventive concept, embodiments of this application provide an input method candidate word determination apparatus to execute the above-described input method candidate word determination method. (Refer to...) Figure 7 , Figure 7 This is a schematic diagram of the composition structure of an input method candidate word determination device provided in an embodiment of this application. The input method candidate word determination device 700 includes: a first acquisition module 701, a first determination module 702, and a display module 703. The first acquisition module 701 is used to acquire keywords entered by the user in a target application. The first determination module 702 is used to determine a first candidate word from at least one candidate word library based on the keywords. The at least one candidate word library includes a first candidate word library associated with the user's historical input in the target application, and / or a second candidate word library associated with the application type of the target application. The display module 703 is used to display the first candidate word corresponding to the keywords.

[0113] In some embodiments, the apparatus further includes: a second acquisition module, configured to acquire identification information of a target application based on input instructions from an input method application before determining a first candidate word from at least one candidate word library based on keywords; and a second determination module, configured to determine at least one candidate word library corresponding to the target application based on the identification information.

[0114] In some embodiments, the apparatus further includes: a third acquisition module, configured to acquire multiple historical keywords entered by the user in the target application before determining a first candidate word from at least one candidate word library based on keywords; a word segmentation module, configured to segment the multiple historical keywords to obtain word segmentation results; a third determination module, configured to determine one or more keywords among the multiple historical keywords as candidate words associated with the user based on the word segmentation results; and a first construction module, configured to construct a first candidate word library based on the candidate words associated with the user.

[0115] In some embodiments, the third determining module is configured to perform the following steps: sorting multiple historical keywords according to the word segmentation results to obtain a first sorting result; and selecting the top N historical keywords from the multiple historical keywords as candidate words associated with the user, where N is a positive integer, according to the first sorting result.

[0116] In some embodiments, the apparatus further includes: a fourth acquisition module, configured to acquire the application type corresponding to the target application before determining the first candidate word from at least one candidate word library based on keywords; a fifth acquisition module, configured to acquire at least one word associated with the application type according to the application type; and a second construction module, configured to construct a second candidate word library associated with the application type of the target application based on at least one word.

[0117] In some embodiments, the above apparatus further includes: a fourth determining module, configured to, after displaying the first candidate word corresponding to the keyword, determine a second candidate word in a third candidate word library based on the keyword if the first candidate word does not meet preset conditions, wherein the third candidate word library includes a general candidate word library associated with multiple applications; and a display module 703, configured to display the second candidate word corresponding to the keyword.

[0118] In some embodiments, the first determining module 702 is configured to perform the following steps: sorting at least one candidate word associated with the keyword in at least one candidate word library to obtain a second sorting result; and determining the first M candidate words from at least one candidate word as the first candidate word corresponding to the keyword based on the second sorting result, where M is a positive integer.

[0119] In some embodiments, the first acquisition module 701 is configured to perform the following steps: in response to a user's first operation on a target application, invoke an input method application; and obtain the keywords entered by the user in the target application through the input method application.

[0120] The descriptions of the apparatus embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. In some embodiments, the functions or modules included in the apparatus provided in this application can be used to perform the methods described in the method embodiments above. For technical details not disclosed in the apparatus embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0121] It should be noted that, in the embodiments of this application, if the above-mentioned method for determining input method candidate words is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware, software, or firmware, or any combination of hardware, software, and firmware.

[0122] This application provides a computer device including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements some or all of the steps in the above-described method.

[0123] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described method. The computer-readable storage medium can be transient or non-transient.

[0124] This application provides a computer program including computer-readable code. When the computer-readable code is run in a computer device, the processor in the computer device performs some or all of the steps in the above-described method.

[0125] This application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.

[0126] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0127] Based on the same inventive concept, embodiments of this application provide a computer device that can be used to implement the above-described method for determining input method candidate words. Figure 8 This application provides a hardware entity diagram of a computer device as an embodiment of the present application, such as... Figure 8 As shown, the hardware entity of the computer device 800 includes a processor 801 and a memory 802, wherein the memory 802 stores a computer program that can run on the processor 801, and the processor 801 executes the program to implement the steps in the method of any of the above embodiments.

[0128] The memory 802 stores computer programs that can run on the processor. The memory 802 is configured to store instructions and applications that can be executed by the processor 801. It can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 801 and various modules in the computer device 800. It can be implemented by flash memory or random access memory (RAM).

[0129] The processor 801 executes the steps of the input method candidate word determination method described above when executing the program. The processor 801 typically controls the overall operation of the computer device 800.

[0130] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0131] The aforementioned processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that other electronic devices can also implement the functions of the aforementioned processor, and this application does not specifically limit the specific implementation.

[0132] The aforementioned computer storage media / memory can be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory, Optical Disc, or Compact Disc Read-Only Memory (CD-ROM), etc.; or it can be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0133] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above steps / processes do not imply a sequential order of execution; the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0134] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0135] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0136] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0137] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0138] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0139] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.

[0140] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A method for determining candidate words in an input method, characterized in that, The method includes: Obtain keywords entered by the user in the target application; Based on the keywords, a first candidate word is determined from at least one candidate word library, wherein the at least one candidate word library includes a first candidate word library associated with the user's historical input content in the target application, and / or a second candidate word library associated with the application type of the target application; Display the first candidate words corresponding to the stated keywords.

2. The method according to claim 1, characterized in that, Before determining the first candidate word from at least one candidate thesaurus based on the keyword, the method further includes: Based on the input commands of the input method application, obtain the identification information of the target application; Based on the identification information, at least one candidate word library corresponding to the target application is determined.

3. The method according to claim 1, characterized in that, Before determining the first candidate word from at least one candidate thesaurus based on the keyword, the method further includes: Obtain multiple historical keywords entered by the user in the target application; The aforementioned historical keywords are segmented to obtain the segmentation results; Based on the word segmentation results, one or more keywords from the plurality of historical keywords are identified as candidate words associated with the user; Based on the candidate words associated with the user, the first candidate word library is constructed.

4. The method according to claim 3, characterized in that, The step of determining one or more keywords from the plurality of historical keywords as candidate words associated with the user based on the word segmentation results includes: Based on the word segmentation results, the multiple historical keywords are sorted to obtain a first sorting result; Based on the first sorting result, the top N historical keywords are selected from the plurality of historical keywords as candidate words associated with the user, where N is a positive integer.

5. The method according to claim 1, characterized in that, Before determining the first candidate word from at least one candidate thesaurus based on the keyword, the method further includes: Obtain the application type corresponding to the target application; Based on the application type, obtain at least one word associated with the application type; Based on the at least one word, a second candidate word library is constructed that is associated with the application type of the target application.

6. The method according to claim 1, characterized in that, After displaying the first candidate words corresponding to the keyword, the method further includes: If the first candidate word does not meet the preset conditions, a second candidate word is determined from the third candidate word library based on the keyword. The third candidate word library includes a general candidate word library associated with multiple applications. Display the second candidate words corresponding to the stated keywords.

7. The method according to claim 1, characterized in that, The step of determining a first candidate word from at least one candidate thesaurus based on the keyword includes: The at least one candidate word associated with the keyword in the at least one candidate thesaurus is sorted to obtain a second sorting result; Based on the second sorting result, the first M candidate words are determined from the at least one candidate word as the first candidate word corresponding to the keyword, where M is a positive integer.

8. The method according to any one of claims 1 to 7, characterized in that, The acquisition of keywords entered by the user in the target application includes: In response to the user's first operation on the target application, the input method application is invoked; The input method application obtains the keywords entered by the user in the target application.

9. A device for determining candidate words in an input method, characterized in that, The device includes: The first acquisition module is used to acquire keywords entered by the user in the target application; The first determining module is configured to determine a first candidate word from at least one candidate word library based on the keyword, wherein the at least one candidate word library includes a first candidate word library associated with the user's historical input content in the target application, and / or a second candidate word library associated with the application type of the target application; The display module is used to display the first candidate words corresponding to the keyword.

10. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program performs the steps of the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 8.