Method and device for processing association candidates and device for processing association candidates

By using user location information to sort association candidates in the input method, the problem in the prior art that the candidate sorting does not match the user's intention is solved, and the input efficiency is improved.

CN112000233BActive Publication Date: 2024-09-03BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010747576.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-29
Publication Date
2024-09-03
Estimated Expiration
2040-07-29

AI Technical Summary

Technical Problem

The associative candidate sorting of existing input methods relies on the frequency of occurrence of language units in the corpus. As a result, candidates with higher conditional probabilities may not necessarily meet the user's input intention. Users need to frequently turn pages to find matching candidates, which affects input efficiency.

Method used

When the context meets the preset address conditions, the user's location information is used to sort the first association candidates, and multiple relationship data are used to improve the matching between the candidates and the input intention, and reduce the cost of page turning operations.

Benefits of technology

This improves the matching between the sorting result of the first association candidate and the input intention, reduces the number of page turning operations by the user, and improves input efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000233B
    Figure CN112000233B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for processing association candidates and a device for processing association candidates. The method specifically includes: when the context meets the preset address condition, the first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates are obtained according to multivariate relationship data; and the sorted first association candidates are output. The embodiment of the present invention can improve the matching degree between the sorting result of the first association candidate and the input intention, and can improve the input efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of input technology, and in particular to a method and device for processing association candidates and a device for processing association candidates. Background Art

[0002] With the continuous development of communication technology, mobile terminals have been rapidly developed and popularized, and human-computer interaction has become more and more frequent. Human-computer interaction can be input through physical keyboards, virtual keyboards, handwriting boards, and sound collection devices, and then converted through input methods to provide candidate items on the screen.

[0003] The associative function of the input method can reduce the number of times the user actively inputs and the number of keystrokes, and can increase the intelligence of the input method. The implementation process of the associative function is specifically as follows: first, the context of the user input is obtained, and the associative word library such as the system binary word library is queried according to the context to obtain the associative candidate. For example, if the context is "Hunan Province", the associative candidates can be "Changsha City", "Zhuzhou City", "Xiangtan City", "Hengyang City", "Shaoyang City", "Yueyang City", "Changde City", "Zhangjiajie City", "Yiyang City", "Chenzhou City", "Yongzhou City", "Huaihua City", "Loudi City", etc., for the user to choose.

[0004] A binary relationship, also known as a 2-gram, is used to represent the probability of two elements appearing in succession. In the field of input methods, the elements here may include: words, phrases, or short sentences. At present, the probability of occurrence of an association candidate under the condition of the context (referred to as conditional probability) can be determined based on the binary relationship, and the association candidates can be sorted according to the conditional probability. Since the number of candidates displayed on a candidate page is limited, usually 3-5, the association candidates with a larger conditional probability are usually placed on the first candidate page, and the association candidates with a smaller conditional probability are placed on subsequent candidate pages, etc.

[0005] However, in practical applications, the conditional probability of association candidates is usually obtained based on the frequency of occurrence of the corresponding language units in the corpus. Association candidates with higher conditional probabilities do not necessarily meet the user's input intentions. In this case, users usually need to turn pages to view subsequent candidate pages, which will affect the user's input efficiency. Summary of the invention

[0006] The embodiments of the present invention provide a method and device for processing association candidates and a device for processing association candidates, which can improve the matching degree between the sorting result of the first association candidate and the input intention, and can improve the input efficiency.

[0007] In order to solve the above problem, an embodiment of the present invention discloses a method for processing association candidates, including:

[0008] When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates are obtained according to the multi-relation data;

[0009] Output the sorted first association candidates.

[0010] On the other hand, an embodiment of the present invention discloses a device for processing association candidates, including:

[0011] A first sorting module is used to sort the first association candidates corresponding to the context according to the user's location information when the context meets the preset address condition; the first association candidates are obtained according to the multivariate relationship data;

[0012] The first output module is used to output the sorted first association candidates.

[0013] In another aspect, an embodiment of the present invention discloses a device for processing association candidates, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

[0014] When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates are obtained according to the multi-relation data;

[0015] Output the sorted first association candidates.

[0016] On the other hand, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute one or more of the aforementioned methods for processing association candidates.

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

[0018] In the embodiment of the present invention, the context meeting the preset address condition can represent the input intention that the context carries address information. In this case, the first association candidates corresponding to the context can be sorted according to the user's location information. Since the personalized location information is used in the sorting process of the first association candidates, the matching degree between the sorting result of the first association candidates and the input intention can be improved, so the cost of the user's page turning operation can be reduced, and the input efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0020] Figure 1 It is a schematic diagram of an application environment of a method for processing association candidates according to an embodiment of the present invention;

[0021] Figure 2 is a flow chart of steps in Embodiment 1 of a method for processing association candidates of the present invention;

[0022] Figure 3 is a flow chart of steps in Embodiment 2 of a method for processing association candidates of the present invention;

[0023] Figure 4 is a flowchart of the steps of Embodiment 3 of a method for processing association candidates of the present invention;

[0024] Figure 5 is a flowchart of the steps of Embodiment 4 of a method for processing association candidates of the present invention;

[0025] Figure 6 is a structural block diagram of an embodiment of an associative candidate processing device of the present invention;

[0026] Figure 7 is a block diagram of a device 800 for processing association candidates of the present invention; and

[0027] Figure 8 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] The inventors discovered during the implementation of the embodiments of the present invention that the conditional probability of the association candidate is usually obtained based on the frequency of occurrence of the corresponding language unit in the corpus. The above corpus includes, but is not limited to: Internet corpus, user's chat corpus, user's input corpus, etc. The above corpus is usually contributed by a large number of users, so the above conditional probability reflects the input habits of a large number of users; thus, the association candidate with a larger conditional probability does not necessarily meet the input intention of the current user; in this case, the current user usually needs to perform a page turning operation to view the subsequent candidate page, which will affect the user's input efficiency.

[0030] In order to solve the technical problem that sorting association candidates according to conditional probability leads to low user input efficiency, an embodiment of the present invention provides a solution for processing association candidates, which may include: when the context meets a preset address condition, sorting the first association candidates corresponding to the context according to the user's location information; the first association candidate may be obtained according to multivariate relationship data; and outputting the sorted first association candidate.

[0031] In the embodiment of the present invention, the context meeting the preset address condition can represent the input intention that the context carries address information. In this case, the first association candidates corresponding to the context can be sorted according to the user's location information. Since the personalized location information is used in the sorting process of the first association candidates, the matching degree between the sorting result of the first association candidates and the input intention can be improved, so the cost of the user's page turning operation can be reduced, and the input efficiency can be improved.

[0032] For example, a user A located at "Pingjiang County Electric Power Bureau, Yueyang City, Hunan Province" inputs context A "Hunan Province". The embodiment of the present invention may deem that context A meets the preset address condition, and may sort the first association candidates corresponding to context A according to the location information A of user A. Assuming that the first association candidates may include: "Changsha City", "Zhuzhou City", "Xiangtan City", "Hengyang City", "Shaoyang City", "Yueyang City", "Changde City", "Zhangjiajie City", "Yiyang City", "Chenzhou City", "Yongzhou City", "Huaihua City", "Loudi City", etc., the embodiment of the present invention may increase the corresponding sorting score for the first association candidate "Yueyang City" matching the location information A according to the location information A "Pingjiang County Electric Power Bureau, Yueyang City, Hunan Province" of user A, so that the first association candidate "Yueyang City" matching the location information A may be ranked in a relatively front position, such as displaying the first association candidate "Yueyang City" matching the location information A on the first candidate page, thereby reducing the cost of the user's page turning operation, and further improving the input efficiency.

[0033] The embodiment of the present invention can further determine corresponding second association candidates based on the first association candidate selected by the user, and sort the second association candidates according to the user's location information.

[0034] For example, if user A selects the first association candidate "Yueyang City", the embodiment of the present invention can determine the second association candidate corresponding to the first association candidate "Yueyang City", and the second association candidates may include: "Yueyang County", "Yueyang Tower District", "Yueyang Tower District", "Junshan District", "Huarong County", "Pingjiang County", "Xiangyin County", "Linxiang City", "Miluo City", etc.

[0035] The embodiment of the present invention can increase the corresponding ranking score of the second association candidate "Pingjiang County" matching the location information A of user A "Pingjiang County Electric Power Bureau, Yueyang City, Hunan Province". In this way, the second association candidate "Pingjiang County" matching the location information A can be ranked in a relatively front position, such as displaying the second association candidate "Pingjiang County" matching the location information A on the first candidate page. Therefore, the cost of the user's page turning operation can be reduced, thereby improving the input efficiency.

[0036] The embodiment of the present invention can further determine corresponding third association candidates according to the second association candidates selected by the user, and sort the third association candidates according to the user's location information.

[0037] For example, if user A selects the second association candidate "Pingjiang County", the embodiment of the present invention can determine the third association candidate corresponding to the second association candidate "Pingjiang County". The third association candidate can represent the place name under "Pingjiang County", such as the third association candidate can include: "Sanshi Town", "Changshou Town", "Longmen Town", "Anding Town", "First Middle School", "Second Middle School", "Power Bureau", "Post Office", "Bank", etc.

[0038] The embodiment of the present invention can increase the corresponding ranking score of the third association candidate "Power Bureau" matching the location information A of user A "Pingjiang County Power Bureau, Yueyang City, Hunan Province". In this way, the third association candidate "Power Bureau" matching the location information A can be ranked in a relatively forward position, such as displaying the third association candidate "Power Bureau" matching the location information A on the first candidate page. Therefore, the cost of the user's page turning operation can be reduced, thereby improving the input efficiency.

[0039] The method for processing association candidates provided by the embodiment of the present invention can be applied to Figure 1 In the application environment shown, Figure 1 As shown, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data exchange through the wired or wireless network.

[0040] Optionally, the client 100 can be run on a terminal, which specifically includes but is not limited to: a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a car computer, a desktop computer, a set-top box, a smart TV, a wearable device, etc. The client 100 can correspond to a website or an APP (Application). The client 100 can correspond to an application such as an input method APP.

[0041] The embodiments of the present invention can be applied to input method programs of various input methods such as keyboard symbols, handwriting, and voice. Taking the keyboard symbol input method as an example, the user can input text through a coded string, and the input string can refer to the coded string input by the user. In the field of input methods, for input method programs such as Chinese, Japanese, Korean, or other languages, the input string input by the user can usually be converted into a candidate of the corresponding language. The following is mainly explained by taking Chinese as an example, and other languages ​​such as Japanese and Korean can be referenced to each other. It can be understood that the above-mentioned Chinese input method can include but is not limited to full spelling, simplified spelling, strokes, Wubi, etc., and the embodiments of the present invention do not limit the specific input method program corresponding to a certain language.

[0042] Taking Chinese input as an example, the types of encoded character strings may include: Pinyin string, character string (such as Wubi string, etc.) Taking English input as an example, the types of encoded character strings may include: letter string, etc.

[0043] In actual applications, for the input method of keyboard symbols, the user can input the above input string through a physical keyboard or a virtual keyboard. For example, for a terminal with a touch screen, a virtual keyboard can be set 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 may include: a 9-key keyboard and a 26-key keyboard. In addition, it can be understood that in addition to the virtual keys corresponding to letters, the above input interface can also be provided with symbol keys, number keys, such as function keys for switching between Chinese and English, or toolbar keys, etc. It can be understood that the embodiment of the present invention does not limit the specific keys included in the input interface.

[0044] According to some embodiments, the input string may include, but is not limited to, a key symbol or a combination of multiple key symbols input by the user through keys. The key symbol may specifically include pinyin, strokes, kana, and the like.

[0045] In the embodiment of the present invention, the association candidate can be used to represent one or more characters provided by the input method program to be selected by the user. The association candidate can be characters in languages ​​such as Chinese characters, English characters, and Japanese characters. The association candidate 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.

[0046] Method Example 1

[0047] Reference Figure 2 , shows a flowchart of a first embodiment of a method for processing association candidates of the present invention, which may specifically include the following steps:

[0048] Step 201: When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates may be obtained according to multivariate relationship data;

[0049] Step 202: Output the sorted first association candidates.

[0050] Figure 2 The illustrated method embodiment 1 may be executed by a client and / or a server. It is to be understood that the embodiment of the present invention does not limit the specific execution subject of the method embodiment.

[0051] In step 201, the context may include: preceding context and / or following context. Optionally, the preceding context is usually the part before the input cursor, and the following context is usually the part after the input cursor.

[0052] According to one embodiment, the above context may include: the most recent or most recent on-screen content. According to another embodiment, the above context may include: the communication content sent by the communication peer in a communication scenario. According to yet another embodiment, the above context may include: the communication content sent to the communication peer in a communication scenario. It is understood that the embodiments of the present invention are not limited to the specific context.

[0053] In the embodiment of the present invention, optionally, the association candidates may be determined based on the multi-relation data and the context.

[0054] Multivariate relational data may include binary and more than binary relational data. A binary relation, also known as a 2-gram, is used to represent the probability of two elements appearing one after another. In the field of input methods, the elements here may include at least one of: vocabulary, phrases, short sentences, letters, numbers, and symbols. In an embodiment of the present invention, the above-mentioned binary may mainly include binary relations of vocabulary, and other types of binary relations may refer to each other. Relations of more than two elements are used to represent the probability of more than two elements appearing one after another.

[0055] The embodiment of the present invention can search in the multivariate relational data according to the context to obtain the hit element corresponding to the above context, and determine the association candidate according to the above hit element. For example, the context is "Hunan Province", and the hit element can include: "Changsha City", "Zhuzhou City", "Xiangtan City", "Hengyang City", "Shaoyang City", "Yueyang City", "Changde City", "Zhangjiajie City", "Yiyang City", "Chenzhou City", "Yongzhou City", "Huaihua City", "Loudi City", etc. For another example, the context is "eat in the evening", and the hit element can include: "hot pot", "grilled fish", "restaurant name 1", "restaurant name 2", "restaurant name 3", etc. For another example, the context is "I want to go", and the hit element can include: "cinema name", "bookstore name", "shopping mall name 1", "shopping mall name 2", "tourist city name 1", "tourist city name 2", etc.

[0056] In an optional embodiment of the present invention, multivariate relational data can be represented by a data model. The types of data models may include, but are not limited to, language models, neural network models, etc. The above data model can provide P (any element | context, ...), that is, the probability of any element under certain context and other conditions. Based on this probability, the hit element corresponding to the context can be determined. Among them, the corpus used by the data model may include: corpus under context and other conditions, and the above corpus includes, but is not limited to: Internet corpus, user's chat corpus, user's input corpus, etc.

[0057] Mathematical model is a scientific or engineering model constructed by mathematical logic methods and mathematical language. Mathematical model is a mathematical structure that is expressed in general or approximate terms using mathematical language with reference to the characteristics or quantitative dependencies of a certain system of things. This mathematical structure is a relational structure depicted with the help of mathematical symbols. Mathematical model can be one or a group of algebraic equations, differential equations, difference equations, integral equations or statistical equations and their combinations, which quantitatively or qualitatively describe the mutual relationship or causal relationship between the variables of the system. In addition to mathematical models described by equations, there are also models described by other mathematical tools, such as algebra, geometry, topology, mathematical logic, etc. Among them, mathematical models describe the behavior and characteristics of the system rather than the actual structure of the system. Among them, machine learning, deep learning methods and other methods can be used to train mathematical models. Machine learning methods may include: linear regression, decision tree, random forest, etc. Deep learning methods may include: convolutional neural networks (CNN), long short-term memory networks (LSTM), gated recurrent units (GRU), etc.

[0058] In the embodiment of the present invention, the fact that the context meets the preset address condition may represent an input intention that the context carries address information.

[0059] Those skilled in the art can determine the preset address condition according to actual application requirements.

[0060] The embodiment of the present invention may provide the following examples of preset address conditions:

[0061] Example 1:

[0062] The preset address condition may include: the context includes: an address word and / or an address indicator word.

[0063] An address word may represent an address, that is, an address word may refer to a word representing an address.

[0064] The address words in the embodiment of the present invention may correspond to certain levels. Referring to Table 1, an example of the level of an address word in the embodiment of the present invention is shown.

[0065] Table 1

[0066]

[0067] Address indicators can be used to point to address words. In language expression, address indicators are usually located in front of address words. Address indicators may include: "I am here", "I want to go", "I am here", etc. It is understood that those skilled in the art can determine address indicators according to actual application requirements, and the embodiments of the present invention do not limit specific address indicators.

[0068] Example 2:

[0069] The preset address condition may include: the intention corresponding to the context is a preset address intention. The preset address intention may represent the input intention of the address information.

[0070] The embodiment of the present invention can perform intent recognition on the context to obtain the intent corresponding to the context.

[0071] In an optional embodiment of the present invention, the determination method used to determine the intention corresponding to the context may include:

[0072] Determination method 1: Match the context with the sentence pattern corresponding to the preset address intention to determine whether the intention corresponding to the context is the preset address intention; and / or

[0073] Determination method 2: Determine the probability that the context belongs to the preset address intention to determine whether the intention corresponding to the context is the preset address intention.

[0074] In practical applications, those skilled in the art may pre-set a preset address intent, examples of which may include: real-time address intent, meal intent, destination intent, etc.

[0075] The sentence pattern corresponding to the preset address intent can be used to constrain the sentence corresponding to the preset address intent. For example, the sentence pattern corresponding to the "real-time address intent" can be "I am in XXX", "I have arrived at XXX". The sentence pattern corresponding to the "dining intent" is: "Let's go to eat XXX", "I want to eat XXX", "Eat XXX in the evening". For another example, the sentence pattern corresponding to the "destination intent" is: "I want to go to XXX", etc. Among them, "XXX" represents the collocation vocabulary in the sentence pattern.

[0076] Optionally, the sentence pattern corresponding to the preset address intent can be obtained based on the historical input behavior data of multiple users or the current user. Specifically, the sentence pattern corresponding to users talking about a certain preset address intent can be mined from the historical input behavior data of a large number of users. It can be understood that those skilled in the art can determine the sentence pattern corresponding to the preset address intent according to actual application requirements, and the embodiment of the present invention does not limit the specific determination process of the sentence pattern corresponding to the preset address intent.

[0077] Determination method 1 can match the context with the sentence pattern corresponding to the preset address intention. If the match is successful, the intention corresponding to the context is considered to be the preset address intention. For example, the context is "Let's go eat", which matches the sentence pattern "Let's go eat XXX" corresponding to the "dining intention", so its corresponding target preset address intention can include: dining intention. It should be noted that the preset address intention corresponding to the context can be one or more.

[0078] Determination method 2 can determine whether the intent corresponding to the context is the preset address intent based on the probability that the context belongs to the preset address intent.

[0079] According to an embodiment, the probability that the context belongs to each preset address intent may be determined, and then a preset address intent with the greatest probability is used as the preset address intent corresponding to the context.

[0080] According to another embodiment, the probability that the context belongs to each preset address intent can be determined, and then the multiple preset address intents with the greatest probability are used as the preset address intents corresponding to the context. Different preset address intents can correspond to different weights, and multiple corresponding association candidates can be obtained according to the multiple preset address intents, and the multiple association candidates can be sorted according to the above weights.

[0081] In an optional embodiment of the present invention, the process of determining the probability that the context belongs to the preset address intent may include: using a preset address intent classifier to determine the probability that the context belongs to the preset address intent. Among them, the training data corresponding to the preset address intent classifier may include: text content corresponding to at least two preset address intents, and then a machine learning method may be used to learn the above training data to obtain a preset address intent classifier, so that the preset address intent classifier has the ability to describe the probability that the text content belongs to the preset address intent. Optionally, the above machine learning method may include: Bayesian method, SVM (Support Vector Machine), etc.

[0082] In the embodiment of the present invention, optionally, the multi-relationship data may include: a mapping relationship between at least two levels of address words.

[0083] Those skilled in the art may determine the mapping relationship between address words of different levels according to actual application requirements.

[0084] For example, the mapping relationship between the first-level address words and the second-level address words, such as the first-level address word is "Hunan Province", the second-level address word is "Yueyang City", etc.

[0085] For example, the mapping relationship between the second-level address words and the third-level address words, or the mapping relationship between the third-level address words and the fourth-level address words.

[0086] In the embodiment of the present invention, the first level, the second level, the third level and the fourth level may generally refer to different levels, and the embodiment of the present invention does not limit the specific levels in the multivariate relational data.

[0087] Alternatively, the multivariate relational data may include: a mapping relationship between non-address words and address words. Non-address words may refer to words other than address words. Non-address words may include: address indicators, verbs, etc. For example, the address indicator is "I am", and the address words are "Thailand", "Shandong", etc.

[0088] In the embodiment of the present invention, the context meeting the preset address condition can represent the input intention that the context carries address information. In this case, the first association candidates corresponding to the context can be sorted according to the user's location information. Since the personalized location information is used in the sorting process of the first association candidates, the matching degree between the sorting result of the first association candidates and the input intention can be improved, so the cost of the user's page turning operation can be reduced, and the input efficiency can be improved.

[0089] In the embodiment of the present invention, optionally, the user's location information may be determined based on the IP (Internet Protocol) address of the terminal, the GPS (Global Positioning System) of the terminal, or location information obtained from a mobile communication network.

[0090] In an embodiment of the present invention, optionally, the above-mentioned sorting of the first association candidates corresponding to the context may specifically include: determining the degree of match between the position information and the first association candidate; determining the sorting score of the first association candidate based on the above-mentioned degree of match; and sorting the first association candidates based on the sorting score of the first association candidate.

[0091] In the process of determining the ranking score of the first association candidate according to the above-mentioned matching degree, the embodiment of the present invention can directly determine the ranking score according to the above-mentioned matching degree. Optionally, the higher the matching degree, the higher the ranking score. For example, if the first matching degree is greater than the second matching degree, the ranking score corresponding to the first matching degree is greater than the ranking score corresponding to the second matching degree.

[0092] In the process of determining the ranking score of the first association candidate according to the above-mentioned matching degree, the embodiment of the present invention can adjust the initial ranking score according to the above-mentioned matching degree on the basis of the initial ranking score. Optionally, the higher the matching degree, the greater the adjustment value. For example, if the first matching degree is greater than the second matching degree, the adjustment value corresponding to the first matching degree is greater than the adjustment value corresponding to the second matching degree.

[0093] In an embodiment of the present invention, the initial ranking score may be preset, or the initial ranking score may be obtained based on a conditional probability. The conditional probability may characterize the probability of occurrence of the first association candidate under the condition of the context. The conditional probability of the association candidate is usually obtained based on the frequency of occurrence of the corresponding language unit (such as a word group, a phrase, etc.) in the corpus. The above corpus is usually contributed by a large number of users, so the above conditional probability reflects the input habits of a large number of users; thus, an association candidate with a larger conditional probability does not necessarily conform to the input intention of the current user.

[0094] The embodiment of the present invention can adjust the initial ranking score obtained based on the conditional probability according to the location information of the current user to improve the matching degree between the ranking result of the first association candidate and the input intention. For example, the first association candidate matching the location information can be ranked in a relatively forward position.

[0095] Optionally, the initial ranking score may be obtained according to the input frequency of the user for the first association candidate. For example, the higher the input frequency of the user for the first association candidate, the higher the initial ranking.

[0096] In step 202, the client may display the sorted first association candidates, for example, through one or more candidate pages, for the user to select. Optionally, if a trigger operation for the first association candidate is received, the first association candidate selected by the user may be displayed on the screen.

[0097] In summary, in the method for processing association candidates of the embodiment of the present invention, the context meeting the preset address condition can represent the input intention that the context carries address information. In this case, the first association candidates corresponding to the context can be sorted according to the user's location information. Since the personalized location information is used in the sorting process of the first association candidates, the matching degree between the sorting result of the first association candidates and the input intention can be improved, so the cost of the user's page turning operation can be reduced, and the input efficiency can be improved.

[0098] Method Example 2

[0099] Reference Figure 3 , shows a flowchart of a second embodiment of a method for processing association candidates of the present invention, which may specifically include the following steps:

[0100] Step 301: When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates may be obtained according to multivariate relationship data;

[0101] Step 302: output the sorted first association candidates;

[0102] Relative to Figure 2 In the first embodiment of the method shown, the first association candidate specifically includes: a first-level address word;

[0103] The above method may further include:

[0104] Step 303: according to the user's selection operation on the first association candidate, determine the second association candidate corresponding to the first association candidate selected by the user; the second association candidate may include: a second-level address word; the first level may be higher than the second level;

[0105] Step 304: sort the second association candidates according to the user's location information;

[0106] Step 305: output the sorted second association candidates.

[0107] The embodiment of the present invention can further determine the corresponding second association candidate based on the first association candidate selected by the user, and sort the second association candidates according to the user's location information, so that the user can be continuously provided with second association candidates that match the input intention.

[0108] In the embodiment of the present invention, optionally, the second association candidate corresponding to the first association candidate selected by the user may be determined according to the mapping relationship between the address words of the first level and the address words of the second level.

[0109] The embodiment of the present invention sorts the second association candidates according to the user's location information, and can place the second association candidates that better match the location information at a front position, thereby reducing the cost of the user's page turning operation and further improving input efficiency.

[0110] Method Example 3

[0111] Reference Figure 4 , shows a flowchart of a third embodiment of a method for processing association candidates of the present invention, which may specifically include the following steps:

[0112] Step 401: When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates may be obtained according to multivariate relationship data; the first association candidates specifically include: first-level address words;

[0113] Step 402: output the sorted first association candidates;

[0114] Step 403: according to the user's selection operation on the first association candidate, determine the second association candidate corresponding to the first association candidate selected by the user; the second association candidate may include: a second-level address word; the first level may be higher than the second level;

[0115] Step 404: sort the second association candidates according to the user's location information;

[0116] Step 405: output the sorted second association candidates;

[0117] Relative to Figure 3 In the second embodiment of the method shown, the above method may further include:

[0118] Step 406: according to the user's selection operation on the second association candidate, determine the third association candidate corresponding to the second association candidate selected by the user; the third association candidate specifically includes: a third-level address word; the second level is higher than the third level;

[0119] Step 407: sort the third association candidates according to the user's location information;

[0120] Step 408: Output the sorted third association candidates.

[0121] The embodiment of the present invention can further determine the corresponding third association candidate based on the second association candidate selected by the user, and sort the third association candidates according to the user's location information, so that the user can be continuously provided with third association candidates that match the input intention.

[0122] In the embodiment of the present invention, optionally, the third association candidate corresponding to the second association candidate selected by the user may be determined according to the mapping relationship between the second-level address words and the third-level address words.

[0123] The embodiment of the present invention sorts the third association candidates according to the user's location information, and can rank the third association candidates that better match the location information at a front position, thereby reducing the cost of the user's page turning operation and further improving input efficiency.

[0124] Method Example 4

[0125] Reference Figure 5 , shows a flowchart of a fourth embodiment of a method for processing association candidates of the present invention, which may specifically include the following steps:

[0126] Step 501: When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates may be obtained according to multivariate relationship data; the first association candidates specifically include: first-level address words;

[0127] Step 502: output the sorted first association candidates;

[0128] Step 503: according to the user's selection operation on the first association candidate, determine the second association candidate corresponding to the first association candidate selected by the user; the second association candidate may include: a second-level address word; the first level may be higher than the second level;

[0129] Step 504: sort the second association candidates according to the user's location information;

[0130] Step 505: output the sorted second association candidates;

[0131] Step 506: according to the user's selection operation on the second association candidate, determine the third association candidate corresponding to the second association candidate selected by the user; the third association candidate specifically includes: a third-level address word; the second level is higher than the third level;

[0132] Step 507: sort the third association candidates according to the user's location information;

[0133] Step 508: Output the sorted third association candidates.

[0134] Relative to Figure 4 In the third embodiment of the method shown, the above method may further include:

[0135] Step 509: according to the user's selection operation on the third association candidate, determine the fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate specifically includes: an address word of the fourth level; the third level is higher than the fourth level;

[0136] Step 510: sorting the fourth association candidates according to the user's location information;

[0137] Step 511: output the sorted fourth association candidates.

[0138] The embodiment of the present invention can further determine the corresponding fourth association candidate based on the third association candidate selected by the user, and sort the fourth association candidates according to the user's location information, so that the user can be continuously provided with fourth association candidates that match the input intention.

[0139] In the embodiment of the present invention, optionally, the fourth association candidate corresponding to the third association candidate selected by the user may be determined according to a mapping relationship between the address words of the third level and the address words of the fourth level.

[0140] The embodiment of the present invention sorts the fourth association candidates according to the user's location information, and can place the fourth association candidates that better match the location information at a relatively front position, thereby reducing the cost of the user's page turning operation and further improving input efficiency.

[0141] It is understandable that if the fourth association candidate selected by the user hits the multivariate relationship data, a fifth association candidate can also be determined and sorted according to the location information. The fifth association candidate can include: a fifth-level address word, and the fifth-level address word can be obtained according to the mapping relationship between the fourth-level address word and the fifth-level address word.

[0142] It is understandable that if the fifth association candidate selected by the user hits the multivariate relationship data, a sixth association candidate can also be determined and sorted according to the location information. The sixth association candidate can include: a sixth-level address word, and the sixth-level address word can be obtained according to the mapping relationship between the fifth-level address word and the sixth-level address word.

[0143] Therefore, if the association candidate selected by the user hits the multi-dimensional relational data, the association candidate can be continuously provided until the association candidate selected by the user fails to hit the multi-dimensional relational data.

[0144] 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 combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described sequence of actions, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the motions involved are not necessarily required by the embodiments of the present invention.

[0145] Device Embodiment

[0146] Reference Figure 6 , shows a structural block diagram of an embodiment of an association candidate processing device of the present invention, which may specifically include:

[0147] A first sorting module 601 is used to sort first association candidates corresponding to the context according to the user's location information when the context meets the preset address condition; the first association candidates are obtained according to the multivariate relationship data;

[0148] The first output module 602 is used to output the sorted first association candidates.

[0149] Optionally, the multi-relationship data may include: a mapping relationship between at least two levels of address words; or a mapping relationship between non-address words and address words.

[0150] Optionally, the first association candidate may include: a first-level address word;

[0151] The above device may also include:

[0152] The second association candidate determination module is used to determine the second association candidate corresponding to the first association candidate selected by the user according to the user's selection operation on the first association candidate; the second association candidate may include: a second-level address word; the first level is higher than the second level;

[0153] A second sorting module, used to sort the second association candidates according to the user's location information;

[0154] The second output module is used to output the sorted second association candidates.

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

[0156] The third association candidate determination module is used to determine the third association candidate corresponding to the second association candidate selected by the user according to the user's selection operation on the second association candidate; the third association candidate may include: an address word of the third level; the second level is higher than the third level;

[0157] A third sorting module, used to sort the third association candidates according to the user's location information;

[0158] The third output module is used to output the sorted third association candidates.

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

[0160] A fourth association candidate determination module is used to determine, according to the user's selection operation on the third association candidate, a fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate may include: an address word of the fourth level; the third level is higher than the fourth level;

[0161] A fourth sorting module, used to sort the fourth association candidates according to the user's location information;

[0162] The fourth output module is used to output the sorted fourth association candidates.

[0163] Optionally, the above preset address condition may include:

[0164] The context may include: address words and / or address indicators; and / or

[0165] The contextual intent is a preset address intent; and / or

[0166] The sentence pattern corresponding to the context matches the preset sentence pattern.

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

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

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

[0170] An embodiment of the present invention provides a device for processing association candidates, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: when a context meets a preset address condition, sorting the first association candidates corresponding to the context according to the user's location information; the first association candidates are obtained based on multi-relation data; and the sorted first association candidates are output.

[0171] Figure 7 8 is a block diagram of an apparatus 800 for processing association candidates according to an exemplary embodiment. For example, the apparatus 800 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.

[0172] Reference Figure 7, the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0173] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0174] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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.

[0175] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0176] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 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.

[0177] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice input mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0178] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0179] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0180] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 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 816 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 816 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, Radio Frequency Identification) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0181] In an exemplary embodiment, the apparatus 800 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.

[0182] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 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.

[0183] Figure 8 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in 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.

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

[0185] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 2 or Figure 3 The method for processing the association candidates shown.

[0186] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a device (server or terminal), enables the device to execute a method for processing association candidates, the method comprising: when the context meets a preset address condition, sorting the first association candidates corresponding to the context according to the user's location information; the first association candidates are obtained based on multivariate relationship data; and outputting the sorted first association candidates.

[0187] The embodiment of the present invention discloses A1, a method for processing association candidates, the method comprising:

[0188] When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates are obtained according to the multi-relation data;

[0189] Output the sorted first association candidates.

[0190] A2. According to the method described in A1, the multivariate relationship data includes: a mapping relationship between at least two levels of address words; or a mapping relationship between non-address words and address words.

[0191] A3. According to the method of A1 or A2, the first association candidate includes: a first-level address word;

[0192] The method further comprises:

[0193] According to the user's selection operation on the first association candidate, determining a second association candidate corresponding to the first association candidate selected by the user; the second association candidate includes: an address word of a second level; the first level is higher than the second level;

[0194] sorting the second association candidates according to the user's location information;

[0195] Output the sorted second association candidates.

[0196] A4. The method according to A3, further comprising:

[0197] According to the user's selection operation on the second association candidate, determining a third association candidate corresponding to the second association candidate selected by the user; the third association candidate includes: an address word of a third level; the second level is higher than the third level;

[0198] sorting the third association candidates according to the user's location information;

[0199] Output the sorted third association candidates.

[0200] A5. The method according to A4, further comprising:

[0201] According to the user's selection operation on the third association candidate, determining a fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate includes: an address word of a fourth level; the third level is higher than the fourth level;

[0202] sorting the fourth association candidates according to the user's location information;

[0203] Output the sorted fourth association candidate.

[0204] A6. According to the method described in A1 or A2, the preset address condition includes:

[0205] The context includes: address words and / or address indicators; and / or

[0206] The contextual intent is a preset address intent; and / or

[0207] The sentence pattern corresponding to the context matches the preset sentence pattern.

[0208] The embodiment of the present invention discloses B7, a processing device for association candidates, comprising:

[0209] A first sorting module is used to sort the first association candidates corresponding to the context according to the user's location information when the context meets the preset address condition; the first association candidates are obtained according to the multivariate relationship data;

[0210] The first output module is used to output the sorted first association candidates.

[0211] B8. According to the device described in B7, the multi-relationship data includes: a mapping relationship between at least two levels of address words; or a mapping relationship between non-address words and address words.

[0212] B9. According to the apparatus described in B7 or B8, the first association candidate includes: a first-level address word;

[0213] The device also includes:

[0214] A second association candidate determination module is used to determine, according to the user's selection operation on the first association candidate, a second association candidate corresponding to the first association candidate selected by the user; the second association candidate includes: a second-level address word; the first level is higher than the second level;

[0215] A second sorting module, used for sorting the second association candidates according to the user's location information;

[0216] The second output module is used to output the sorted second association candidates.

[0217] B10. The device according to B9, further comprising:

[0218] A third association candidate determination module is used to determine, according to the user's selection operation on the second association candidate, a third association candidate corresponding to the second association candidate selected by the user; the third association candidate includes: an address word of a third level; the second level is higher than the third level;

[0219] A third sorting module, used to sort the third association candidates according to the user's location information;

[0220] The third output module is used to output the sorted third association candidates.

[0221] B11. The device according to B10, further comprising:

[0222] A fourth association candidate determination module is used to determine, according to the user's selection operation on the third association candidate, a fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate includes: an address word of a fourth level; the third level is higher than the fourth level;

[0223] A fourth sorting module, used for sorting the fourth association candidates according to the user's location information;

[0224] The fourth output module is used to output the sorted fourth association candidates.

[0225] B12. According to the device described in B7 or B8, the preset address condition includes:

[0226] The context includes: address words and / or address indicators; and / or

[0227] The contextual intent is a preset address intent; and / or

[0228] The sentence pattern corresponding to the context matches the preset sentence pattern.

[0229] The embodiment of the present invention discloses C13, a device for processing association candidates, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

[0230] When the context meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates are obtained according to the multi-relation data;

[0231] Output the sorted first association candidates.

[0232] C14. According to the device described in C13, the multi-relationship data includes: a mapping relationship between at least two levels of address words; or a mapping relationship between non-address words and address words.

[0233] C15. According to the apparatus described in C13 or C14, the first association candidate includes: a first-level address word;

[0234] The device is also configured to execute, by one or more processors, the one or more programs including instructions for:

[0235] According to the user's selection operation on the first association candidate, determining a second association candidate corresponding to the first association candidate selected by the user; the second association candidate includes: an address word of a second level; the first level is higher than the second level;

[0236] sorting the second association candidates according to the user's location information;

[0237] Output the sorted second association candidates.

[0238] C16. The device according to C15, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0239] According to the user's selection operation on the second association candidate, determining a third association candidate corresponding to the second association candidate selected by the user; the third association candidate includes: an address word of a third level; the second level is higher than the third level;

[0240] sorting the third association candidates according to the user's location information;

[0241] Output the sorted third association candidates.

[0242] C17. The device according to C16, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0243] According to the user's selection operation on the third association candidate, determining a fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate includes: an address word of a fourth level; the third level is higher than the fourth level;

[0244] sorting the fourth association candidates according to the user's location information;

[0245] Output the sorted fourth association candidate.

[0246] C18. According to the device described in C13 or C14, the preset address condition includes:

[0247] The context includes: address words and / or address indicators; and / or

[0248] The contextual intent is a preset address intent; and / or

[0249] The sentence pattern corresponding to the context matches the preset sentence pattern.

[0250] An embodiment of the present invention discloses D19, a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute a method for processing association candidates as described in one or more of A1 to A6.

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

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

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

[0254] The above describes in detail a method for processing association candidates, a device for processing association candidates, and a device for processing association candidates 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 those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for processing association candidates for an input method, characterized in that: The method comprises: When the context input by the user meets the preset address condition, first association candidates corresponding to the context are sorted according to the user's location information; the first association candidates are obtained according to the multi-relation data; Output the sorted first association candidate; The first association candidates include: first-level address words; The method further comprises: According to the user's selection operation on the first association candidate, determining a second association candidate corresponding to the first association candidate selected by the user; the second association candidate includes: an address word of a second level; the first level is higher than the second level; sorting the second association candidates according to the user's location information; Output the sorted second association candidates; The method further comprises: According to the user's selection operation on the second association candidate, determining a third association candidate corresponding to the second association candidate selected by the user; the third association candidate includes: an address word of a third level; the second level is higher than the third level; sorting the third association candidates according to the user's location information; Output the sorted third association candidates; The method further comprises: According to the user's selection operation on the third association candidate, determining a fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate includes: an address word of a fourth level; the third level is higher than the fourth level; sorting the fourth association candidates according to the user's location information; Outputting the sorted fourth association candidate; The first association candidate is obtained based on multivariate relationship data, including: Based on the context of the user input, a search is performed in the multivariate relational data to obtain a hit element corresponding to the context of the user input, and an association candidate is determined based on the hit element.

2. The method according to claim 1, characterized in that The multi-relation data includes: a mapping relationship between at least two levels of address words; or a mapping relationship between non-address words and address words.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: According to the user's selection operation on the fourth association candidate, determining a fifth association candidate corresponding to the fourth association candidate selected by the user; the fifth association candidate includes: an address word of the fifth level; the fourth level is higher than the fifth level; sorting the fifth association candidates according to the user's location information; Output the sorted fifth association candidate.

4. The method according to claim 3, characterized in that The method further comprises: According to the user's selection operation on the fifth association candidate, a sixth association candidate corresponding to the fifth association candidate selected by the user is determined; the sixth association candidate includes: an address word of the sixth level; the fifth level is higher than the sixth level; sorting the sixth association candidates according to the user's location information; Output the sorted sixth association candidate.

5. The method according to claim 1 or 2, characterized in that: The preset address conditions include: The context includes: address words and / or address indicators; and / or The contextual intent is a preset address intent; and / or The sentence pattern corresponding to the context matches the preset sentence pattern.

6. A device for processing association candidates for an input method, characterized in that: include: A first sorting module, configured to sort first association candidates corresponding to the context according to the user's location information when the context input by the user meets the preset address condition; The first association candidate is obtained based on multivariate relationship data; A first output module, used for outputting the sorted first association candidates; The first association candidates include: first-level address words; A second association candidate determination module is used to determine, according to the user's selection operation on the first association candidate, a second association candidate corresponding to the first association candidate selected by the user; the second association candidate includes: a second-level address word; the first level is higher than the second level; A second sorting module, used for sorting the second association candidates according to the user's location information; A second output module, used for outputting sorted second association candidates; A third association candidate determination module is used to determine, according to the user's selection operation on the second association candidate, a third association candidate corresponding to the second association candidate selected by the user; the third association candidate includes: an address word of a third level; the second level is higher than the third level; A third sorting module, used to sort the third association candidates according to the user's location information; A third output module, used to output the sorted third association candidates; A fourth association candidate determination module is used to determine, according to the user's selection operation on the third association candidate, a fourth association candidate corresponding to the third association candidate selected by the user; the fourth association candidate includes: an address word of a fourth level; the third level is higher than the fourth level; A fourth sorting module, used for sorting the fourth association candidates according to the user's location information; A fourth output module, used for outputting the sorted fourth association candidates; The first association candidate is obtained based on multivariate relationship data, including: Based on the context of the user input, a search is performed in the multivariate relational data to obtain a hit element corresponding to the context of the user input, and an association candidate is determined based on the hit element.

7. The device according to claim 6, characterized in that The multi-relation data includes: a mapping relationship between at least two levels of address words; or a mapping relationship between non-address words and address words.

8. A device for processing association candidates, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to execute the method for processing association candidates as claimed in one or more of claims 1 to 5.

9. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes the device to execute the method for processing association candidates as described in one or more of claims 1 to 5.