Information prompt method, device, electronic device and storage medium
By dividing the URL into multiple URL units and providing input prompts, the problem that users find it difficult to find the required URL when entering the URL, and improving the user input efficiency.
Patent Information
- Application Number
- CN202110437312.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-22
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-04-22
AI Technical Summary
When users enter a URL, it is difficult for users to remember the complete URL because the URL is long, which makes it difficult to find the required URL among the many URLs recommended by the system.
By dividing the URL into multiple URL units and displaying a character group corresponding to the destination URL unit based on the text information entered by the user to provide an input prompt.
Users can quickly enter the next step according to the prompted character group, gradually narrowing the range of URL recommendations, and reducing the difficulty of users selecting URLs.
Smart Images

Figure CN113157173B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information processing technology, and specifically relates to an information prompting method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of Internet technology, more and more users obtain the information they need by browsing web pages. Therefore, how to improve the efficiency of users inputting URLs has become a problem that needs to be solved urgently.
[0003] When users input URLs, since most URLs are very long, users may not be able to remember the complete URL, so in most cases users need to rely on system recommendations. In this way, since the number of URLs recommended by the system is large and they are basically recommended in the form of complete URLs, it is difficult for users to find the URL they need from the many URLs recommended by the system. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an information prompt method, device, electronic device and storage medium, which can solve the problem in the prior art that it is difficult for users to find the required website from the many websites recommended by the system.
[0005] In a first aspect, an embodiment of the present application provides an information prompting method, the method comprising:
[0006] Receive the user's first input in the URL input control;
[0007] In response to the first input, obtaining text information inputted in the URL input control, the text information including a first character corresponding to the first input;
[0008] Based on the text information, display at least one character group corresponding to the target URL unit;
[0009] The target URL unit is a URL unit associated with the position of the first character.
[0010] In a second aspect, an embodiment of the present application provides an information prompting device, the device comprising:
[0011] A first receiving module, used to receive a first input from a user in a URL input control;
[0012] An acquisition module, configured to acquire text information inputted into the URL input control in response to a first input, wherein the text information includes a first character corresponding to the first input;
[0013] A display module, used for displaying at least one character group corresponding to the target URL unit based on the text information;
[0014] The target URL unit is a URL unit associated with the position of the first character.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0018] In an embodiment of the present application, a URL is divided into a plurality of URL units, and URL input prompts are provided in units of URL units, that is, based on the text information already entered by the user in the URL input control, at least one character group recommended for input in the URL unit associated with the first character currently input is displayed, so as to provide a prompt before the user's next URL input. In this way, the user can quickly perform the next input according to the recommended character group, gradually narrowing the recommended URL range, thereby reducing the difficulty for the user to select a URL. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is one of the schematic diagrams of an application scenario of an information prompt method according to an exemplary embodiment;
[0020] Figure 2 is one of the flow charts of an information prompting method according to an exemplary embodiment;
[0021] Figure 3 is a second flowchart of an information prompting method according to an exemplary embodiment;
[0022] Figure 4 This is a second schematic diagram of an application scenario of an information prompt method according to an exemplary embodiment;
[0023] Figure 5 This is a third schematic diagram of an application scenario of an information prompt method according to an exemplary embodiment;
[0024] Figure 6 is a third flowchart of an information prompt method according to an exemplary embodiment;
[0025] Figure 7 is a structural block diagram of an information prompting device according to an exemplary embodiment;
[0026] Figure 8 is a structural block diagram of an electronic device according to an exemplary embodiment;
[0027] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0030] The information prompt method and electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0031] The information prompt method provided in this application can be applied to Figure 1 In the scenario shown, the specific Figure 1 Provide detailed explanation.
[0032] Figure 1 The figure is a schematic diagram of an application scenario of an information prompt method according to an exemplary embodiment.
[0033] The information prompt method provided in the embodiment of the present application can be applied to the application scenario of inputting a URL on a web page, such as Figure 1 As shown, when a user opens a browser, a URL search bar 11 may be displayed, and the user may enter a URL in the URL search bar 11. The browser may be a browser set in any electronic device, such as a computer, a mobile phone, a tablet, and the like.
[0034] Based on the above application scenarios, when users enter a URL on a web page, they often cannot remember the complete URL, so they need to use system recommendations to complete the URL input. The system recommendations come from the user's historical browsing history. When the user starts typing, all URLs in the browsing history are displayed as system recommendations.
[0035] Since there are a large number of URLs recommended by the system and most of them are recommended in the form of complete URLs, it is difficult for users to find the URLs they need from the many URLs recommended by the system.
[0036] In order to solve the above problems, an embodiment of the present application provides an information prompt method, that is, receiving a first input from a user in a URL input control; in response to the first input, obtaining text information input in the URL input control; based on the text information, displaying at least one character group corresponding to a target URL unit, wherein the target URL unit is a URL unit associated with the position of the first character.
[0037] In this way, the URL is divided into multiple URL units and URL input prompts are performed in units of URL units, that is, based on the text information that the user has already entered in the URL input control, at least one character group recommended for input in the URL unit associated with the first character currently input is displayed to provide a prompt before the user's next URL input. In this way, the user can quickly perform the next input based on the recommended character group, gradually narrowing the URL recommendation range, thereby reducing the difficulty for the user to select a URL.
[0038] It should be noted that the information prompting method provided in the embodiment of the present application can be executed by an information prompting device or a control module in the information prompting device for executing the information prompting method. In the embodiment of the present application, the information prompting method provided in the embodiment of the present application is described by taking the information prompting device executing the information prompting method as an example.
[0039] Figure 2 The figure is a flow chart of an information prompting method according to an exemplary embodiment.
[0040] like Figure 2 As shown, the information prompt method may include the following steps:
[0041] Step 210: Receive a first input from a user in a URL input control.
[0042] In the embodiment of the present application, the URL input control can be a search bar for the user to input the URL, and the URL input control can be used to display and receive the URL input by the user. The first input can be one or multiple characters input by the user at the same time. For example, the first input can be the user inputting a character "l" in the search bar, and of course, the user can also input four characters "mail" at the same time. In addition, the first input can also be the user selecting the input of the target character group recommended by the system.
[0043] Step 220: In response to the first input, obtain the text information input in the URL input control.
[0044] Here, when the first input is a character input by the user, the first character is the character input corresponding to the first input; when the first input is multiple characters input by the user at the same time, the first character may be the last character of the multiple characters; when the first input is an input in which the user selects a target character group recommended by the system, the first character may be the last character in the acquired text information.
[0045] In addition, the text information may include all characters that have been entered in the URL input control, including the first character corresponding to the first input. The text information may be used as a basis for displaying a character group for prompting the user to enter the next URL. For example, after the user enters "l" in the search bar, the system may obtain all text information "mail" that has been entered in the search bar, including "l".
[0046] Step 230: display at least one character group corresponding to the target website unit based on the text information.
[0047] In the embodiment of the present application, the target URL unit may be a URL unit associated with the position of the first character. For example, the target URL unit may be the next URL unit after the first character, that is, the first URL unit, the target URL unit may also be the URL unit where the first character is located, that is, the second URL unit, and the target URL unit may also be the previous URL unit before the first character, that is, the third URL unit.
[0048] In addition, the character group can be used to prompt the user before the next URL input. Each character group may include at least one character, and the types of characters include but are not limited to numbers, letters, symbols, etc.
[0049] It should be noted that the URL unit can be a unit separated by a URL unit separator in a URL, and each URL can include multiple URL units. Here, the URL unit separator can be an identifier of the end of the URL unit, such as the symbol "." and the symbol " / ". For example, the URL www.sjmd.com / more / includes four URL units, and these four URL units include four character groups "www", "sjmd", "com" and "more" respectively, and two adjacent URL units are separated by the symbol "." and the symbol " / ".
[0050] Exemplarily, the system may search for multiple matching URLs for the text information currently entered in the search bar, and then recommend character groups corresponding to target URL units in these URLs to the user.
[0051] Based on this, in an optional implementation, after step 230, the information prompt method may further include:
[0052] receiving a second input of a target character group in at least one character group by a user;
[0053] In response to the second input, characters in the target character group are input into the URL input control.
[0054] Here, the target character group can be a character group that meets the user's needs among at least one character group prompted by the system, and the target character group can be used as a part of the website to be input into the website input control after being selected by the user. The second input can be an input for selecting the target character group from at least one character group, and the second input can be used to control the input of characters in the target character group into the website input control.
[0055] In addition, when the text information meets the preset error correction condition, the target character group may also be a character group obtained after error correction in the target URL unit.
[0056] Specifically, inputting the characters in the target character group into the URL input control may be to replace all the character groups in the URL unit where the first character is located, or to complete the characters after the first character based on the existing text information, or to directly input the target character group after the first character, or to replace the characters in the corresponding URL unit that are different from the characters included in the target character group.
[0057] In a specific example, suppose the user enters "mail.", the screen displays the system-recommended prompts such as "123", "134", "15680", etc., and the user clicks "123" and enters "123" into the search bar.
[0058] In this way, by receiving the second input from the user and inputting the characters in the target character group into the URL input control, the characters required by the user can be selected to complete the URL, which is convenient and fast and improves the user input efficiency.
[0059] In addition, in an optional implementation, after the characters in the target character group are input into the URL input control in response to the second input, the information prompt method may further include:
[0060] Enter the URL unit separator after the target character group in the URL input control.
[0061] Here, since each URL unit uses a URL unit separator as a unit end mark, after the target character group selected by the user is input into the URL input control, the URL unit separator can be automatically added.
[0062] In a specific example, if the URL unit separator is ".", after the user clicks "123" and enters "123" into the search bar, "." may be automatically entered.
[0063] In this way, by entering a URL unit separator after the target character group in the URL input control, it can be indicated that the user has completed the input of a URL unit, making it easier for the system to recommend at least one character group for the next URL unit for subsequent prompts.
[0064] Therefore, by dividing the URL into multiple URL units and providing URL input prompts in units of URL units, that is, based on the text information already entered by the user in the URL input control, at least one character group recommended for input in the URL unit associated with the first character currently input is displayed to provide prompts before the user's next URL input. In this way, the user can quickly perform the next input based on the recommended character group, gradually narrowing the URL recommendation range, thereby reducing the difficulty for the user to select a URL.
[0065] Based on the above steps 210-230, in a possible embodiment, as Figure 3 As shown, the above step 230 may specifically include: steps 2301-2303, wherein:
[0066] Step 2301, obtaining N first target URLs from M candidate URLs according to the text information.
[0067] Here, the text information can be matched with the prefix of the first target website, that is, the text information can be prefix-matched with the M candidate websites respectively, and the N websites with prefix matching are determined as the first target website, where M and N are positive integers, and M≥N.
[0068] In addition, the candidate URLs may include at least one of: URLs browsed in the user's history, URLs with a total number of hits exceeding a third preset value, and registered URLs, wherein the popular URLs, i.e., URLs with a total number of hits exceeding a third preset value, may be obtained by counting the browsing habits of users across the entire network, and the registered URLs may be obtained through the yellow pages of the entire network, and the candidate URLs may be used as a source of the N first target URLs. The first target URL may be a URL with the same prefix as the text information among the candidate URLs, and the first target URL may be used as a basis for the system to prompt the character group.
[0069] In a specific example, assuming that there are 30 candidate URLs, if the text information is "www.sjmd", all URLs prefixed with "www.sjmd" are obtained from the 30 candidate URLs as the first target URL, such as obtaining the URL www.sjmd.com. For another example, if the text information is "www.", all URLs prefixed with "www." are obtained from the 30 candidate URLs as the first target URL, such as obtaining the URL www.qwer.com and the URL www.sjmd.com.
[0070] Based on this, in an optional implementation manner, before step 2301, the information prompt method may further include:
[0071] Get M alternative URLs;
[0072] Delete the characters corresponding to the URL header in the alternative URL;
[0073] The candidate URL after the deletion operation is divided into K URL units according to the URL unit separator, and K character groups corresponding to the K URL units in the candidate URL are obtained.
[0074] Here, K is a positive integer. Exemplarily, each candidate URL may be divided into a plurality of URL units according to a URL unit separator, and the URL units may be used to obtain a character group corresponding to the URL unit.
[0075] In a specific example, before dividing the units, the URL header of the alternative URL, such as "http: / / " or "https: / / ", etc., can be removed first. This is because users usually directly enter the content after http: / / or https: / / when entering the URL. For example, the URL is https: / / www.sancun.com / more / , but users usually directly enter www.sancun.com / more / . Then, the alternative URL with the URL header removed can be divided into 4 URL units according to "." and " / ", and 4 character groups are obtained, such as: "www", "sancun", "com" and "more".
[0076] Thus, by deleting the URL header of the candidate URL and dividing the candidate URL into K URL units according to the URL unit separator, K character groups are obtained, which can be conveniently recommended to prompt users in units of URL units, making it easier for users to browse and select.
[0077] Step 2302, determine whether the first character is a URL unit separator, if so, execute step 2303; if not, execute step 2304;
[0078] Step 2303, displaying N character groups corresponding to the first URL unit in the N first target URLs.
[0079] Here, when the first character is a URL unit separator, the target URL unit may be the next URL unit after the first character, that is, the first URL unit. The character group corresponding to the first URL unit in the first target URL may be the character group in the URL unit corresponding to the first URL unit in the first target URL.
[0080] In a specific example, Figure 4 As shown, when "mail" has been entered, the user enters "." in the URL input control 41, the system will automatically search for URLs with the prefix "mail." as the first target URL to be recommended. If three first target URLs are searched, such as "mail.sancun.com / ", "mail.huzi.com / " and "mail.basi.com / ", the three character groups "sancun", "huzi" and "basi" in the URL unit corresponding to the first URL unit after "mail." in the three first target URLs will be displayed.
[0081] In addition, in another optional implementation, the above step 3302 may include:
[0082] Based on the text information, obtaining the number of user history inputs of the character group corresponding to the first URL unit in each first target URL;
[0083] According to the number of historical inputs by the user, N character groups corresponding to the first website unit in the N first target website are arranged and displayed.
[0084] Here, the number of historical user input times may be the number of times the user has previously input the character group corresponding to the first URL unit in the first target URL based on the text information, and the number of historical user input times may be used as a basis for arranging and displaying the N character groups.
[0085] In a specific example, 5 first target URLs have been obtained. At this time, the 5 character groups need to be arranged and displayed according to the number of times the user has previously entered the 5 character groups corresponding to the first URL unit in the first target URL in the search bar. For example, if a user enters "www.", the most frequently entered character group for the next first URL unit is "ccty", followed by "mmty", then "ccty" is arranged before "mmty" for display. Of course, a more complex sorting model can also be used here, which is not limited here.
[0086] In this way, by arranging and displaying the N character groups corresponding to the first URL unit in the N first target URLs according to the user's historical input times, the system can make the character groups recommended by the system more in line with the user's usage habits and more convenient for the user to complete the input of the next URL unit.
[0087] Step 2304, displaying N character groups corresponding to the second URL units in the N first target URLs.
[0088] Here, when the first character is a character other than the URL unit separator, the target URL unit may be the URL unit where the first character is located, that is, the second URL unit. The character group corresponding to the second URL unit in the first target URL may be the character group in the URL unit corresponding to the second URL unit in the first target URL.
[0089] In a specific example, Figure 5 As shown, when "mail" has been entered, the user enters "2" in the URL input control 41, the system will automatically search for URLs with the prefix "mail.2" as the first target URL to be recommended. If three first target URLs are searched, such as "mail.223.com / ", "mail.234.com / " and "mail.25680.com / ", the three character groups "223", "234" and "25680" in the URL unit corresponding to the second URL unit where "2" is located in the three first target URLs will be displayed.
[0090] In addition, in an optional implementation, the above step 2303 may include:
[0091] In the case where there is at least one URL unit separator before the first character, based on the character group input in the URL unit before the URL unit separator in the text information, obtaining the user's historical input times of the character group corresponding to the second URL unit in each first target URL;
[0092] According to the number of historical inputs by the user, N character groups corresponding to the second website unit in the N first target website are arranged and displayed.
[0093] Here, the number of historical user inputs may be the number of times the user has previously input the character group corresponding to the second URL unit in the first target URL based on the text information, and the number of historical user inputs may be used as a basis for arranging and displaying the N character groups.
[0094] In a specific example, 5 first target URLs have been obtained. At this time, the 5 character groups need to be arranged and displayed according to the number of times the user has previously entered the 5 character groups corresponding to the second URL unit in the first target URL in the search bar. For example, if the user who entered "www.c" has the second URL unit character group entered most often "ccty", then "ccty" will be displayed, followed by "cmty", and "ccty" will be arranged before "cmty" for display. Of course, a more complex sorting model can also be used here, which is not limited here.
[0095] In this way, by arranging and displaying the N character groups corresponding to the second URL units in the N first target URLs according to the user's historical input times, the system can make the character groups recommended by the system more in line with the user's usage habits and more convenient for the user to complete the input of the current URL unit.
[0096] In this way, by obtaining the first target URL from the candidate URLs and displaying the corresponding character groups, character groups that meet the conditions can be recommended to the user, helping the user to quickly and accurately complete the URL input.
[0097] In addition, in an optional implementation manner, the above step 230 may also include:
[0098] When the text information meets the preset error correction condition, T second target URLs are obtained from the M candidate URLs;
[0099] In the case where the first character is a URL unit separator, T character groups corresponding to the third URL unit in the T second target URLs are displayed, and the third URL unit is the previous URL unit before the first character;
[0100] When the first character is a character other than the URL unit separator, T character groups corresponding to the second URL unit among the T second target URLs are displayed.
[0101] Here, when the first character is a URL unit separator, the target URL unit can also be the previous URL unit before the first character, that is, the third URL unit. The character group corresponding to the third URL unit in the second target URL can be the character group in the URL unit corresponding to the third URL unit in the second target URL.
[0102] Since errors may occur when users input a URL, correction can be performed by means of edit distance correction, noise channel model correction, etc. Among them, the preset error correction condition may include that the edit distance between the text information and the first S characters of the second target URL is less than a first preset value, or the input error probability corresponding to the text information is greater than a second preset value, and the input error probability is the probability that the user inputs the first S characters of the second target URL as text information, wherein T is a positive integer, M≥T, and the number of characters included in the text information is S. The preset error correction condition can be used to determine whether the text information input by the user needs to be corrected. The second target URL can be a possible standard URL obtained after correcting the text information. The prefix of the second target URL is similar to the text information. The second target URL can be used as the basis for the system to prompt the character group.
[0103] The calculation method of the edit distance error correction is as follows: assuming that the text information is a string A including S characters, the first S characters of the second target URL are string B, and only three operations, namely insertion, deletion and replacement, are used, and at least X steps are required to transform string A into string B, then X is the edit distance from string A to string B. Since users usually only enter one character incorrectly, the first preset value can be set to 2, that is, when the edit distance between the S characters included in the text information and the first S characters of the candidate URL is 1, the candidate URL can be determined as the second target URL.
[0104] In addition, the calculation method of the error correction of the noise channel model is as follows: a probability value is assigned to the editing operation between common characters, such as a high probability of inputting errors between adjacent characters on the keyboard and a high probability of inputting errors between vowel characters. Based on the probability value, the probability that each input is a standard input is calculated as the input error probability.
[0105] In a specific example, the character currently input by the user is ".", and the text information already entered in the search bar is "maip.", and there is no URL with the prefix "maip." in the alternative URLs or the URL with the prefix "maip." is less popular, but there is an alternative URL with the prefix "mail." which is more popular, and the editing distance between "maip." and "mail." is 1, which is less than the first preset value 2. Therefore, the alternative URL with the prefix "mail." can be obtained as the second target URL, and the character group "mail" in the URL unit corresponding to the third URL unit in the second target URL is displayed as the standard character group recommended for error correction.
[0106] In another specific example, the character currently input by the user is "l", and the text information already entered in the search bar is "mau", there is no URL with the prefix "mau" in the alternative URLs, but there is an alternative URL with the prefix "mai", assuming that the probability of "i" being mistakenly input as "u" is 0.4, and the second preset value is 0.3, then the probability of incorrect input is greater than the preset value at this time. Therefore, the alternative URL with the prefix "mai" can be obtained as the second target URL, and the character group "mail" in the URL unit corresponding to the second URL unit in the second target URL is displayed as the standard character group recommended for error correction.
[0107] In this way, by obtaining the second target URL and displaying the corresponding character group when the text information meets the preset error correction conditions, the corresponding character group can still be recommended to the user when the user makes an input error, helping the user to correct the error and complete the URL input.
[0108] In order to better describe the entire solution, based on the above embodiments, a specific example is given. Figure 7 As shown, the information prompt method may include steps 601-608, which are explained in detail below.
[0109] Step 601, segment the user's historical browsing URLs by URL units.
[0110] In a specific example, the URL header of the user's historical browsing URLs, such as "http: / / " or "https: / / ", is deleted, and the user's historical browsing URLs are divided into multiple modules, i.e., URL units, according to URL unit separators, such as "." or " / ". For example, www.sancun.com / more / can be divided into four modules "www", "sancun", "com" and "more".
[0111] Step 602, segmenting the URLs or registered URLs whose total web-wide click volume exceeds a third preset value according to URL units.
[0112] In a specific example, the URL headers of the URLs or registered URLs whose total network click volume exceeds the third preset value are deleted, such as "http: / / " or "https: / / ", and the URLs or registered URLs whose total network click volume exceeds the third preset value are divided into multiple modules, i.e., URL units, according to URL unit separators, such as "." or " / ". For example, www.sancun.com / more / can be divided into four modules "www", "sancun", "com" and "more".
[0113] Step 603, obtaining the input text information.
[0114] In a specific example, the text information input by the user in the URL input control is obtained, and the alternative URL with a prefix consistent with the text information can be used as the first target URL based on the text information. In addition, if there is an error in the text information input by the user, that is, the text information meets the preset error correction condition, the alternative URL with a prefix consistent with the text information after the error correction is used as the second target URL. Among them, the alternative URL can include at least one of the URLs with a total network click volume exceeding the third preset value in step 601 and the registered URLs in step 602.
[0115] Step 604: Check whether the URL unit has been input.
[0116] In a specific example, to determine whether the last URL unit in the input text information has been inputted, it can be determined by whether the last character, that is, the first character, is a URL unit separator. If the last character is a URL unit separator, the URL unit has been inputted; if the last character is a character other than a URL unit separator, the URL unit has not been inputted. If the URL unit has been inputted, step 605 is executed; if the URL unit has not been inputted, step 606 is executed.
[0117] Step 605: Display the character group corresponding to the first URL unit.
[0118] In a specific example, the current URL unit has been input, and the next URL unit, that is, the first URL unit, and the corresponding character group are displayed. If the input content is a prefix of a stored text, the stored text is recalled. For example: www. is the prefix of www.sancun.com, and www.ccty is the prefix of www.ccty.com. In addition, the text information can be sorted according to the number of times the user has entered it. For example, for a user who has entered www., the next module that is most often entered is ccty, and ccty is displayed.
[0119] Step 606, displaying the character group corresponding to the second URL unit.
[0120] In a specific example, the input of this URL unit has not been completed, and the character group corresponding to the current URL unit, that is, the second URL unit, is displayed. If the input content is a prefix of the stored text, the stored text is recalled. For example: ww is the prefix of www, and cc is the prefix of ccty. At the same time, the URL unit before the URL unit must also be completely matched. For example: if the user input is www.cc, in addition to recalling ccty, a complete URL starting with www.ccty is required. On the contrary, if there is only the URL wap.ccv.xyz in the alternative URLs, since it does not start with www.cc, although cc is also a prefix of ccv, the result of ccv will not be recalled. In addition, the text information can be sorted according to the number of times the user has entered it in history. For example, for users who have entered www., the next module entered at most is ccty, then ccty will be displayed.
[0121] Step 607: input the target character group selected by the user.
[0122] In a specific example, the user clicks on a character group that meets his / her requirements in the prompt, the system receives the second input of the selection, and displays the character group selected by the user in the URL input control.
[0123] Step 608, input the URL unit separator.
[0124] In a specific example, after the character group selected by the user is displayed in the URL input control, the URL unit separator is automatically completed.
[0125] Based on the same inventive concept, the present application also provides an information prompting device. Figure 8 The information prompting device provided in the embodiment of the present application is described in detail.
[0126] Figure 7 The figure is a structural block diagram of an information prompting device according to an exemplary embodiment.
[0127] like Figure 7 As shown, the information prompting device 700 may include:
[0128] The first receiving module 701 is used to receive a first input from a user in a URL input control;
[0129] An acquisition module 702 is used to acquire text information input in the URL input control in response to the first input, where the text information includes a first character corresponding to the first input;
[0130] A display module 703, used to display at least one character group corresponding to the target URL unit based on the text information;
[0131] The target URL unit is a URL unit associated with the position of the first character.
[0132] The information prompting device 7 is described in detail below, as shown below:
[0133] In one embodiment, the display module 703 may specifically include:
[0134] A first acquisition submodule is used to acquire N first target URLs from M candidate URLs according to the text information; wherein the text information matches the prefix of the first target URL;
[0135] A first display submodule, for displaying N character groups corresponding to the first URL unit in the N first target URLs when the first character is a URL unit separator, the first URL unit being the next URL unit after the first character;
[0136] A second display submodule, for displaying N character groups corresponding to a second URL unit in the N first target URLs when the first character is other than a URL unit separator, the second URL unit being the URL unit where the first character is located;
[0137] Among them, M and N are positive integers, and M≥N.
[0138] In one embodiment, the display module 703 may further include:
[0139] The second acquisition submodule is used to acquire M candidate URLs;
[0140] The deletion submodule is used to delete the characters corresponding to the URL header in the alternative URL;
[0141] The division submodule is used to divide the candidate URL after the deletion operation into K URL units according to the URL unit separator, and obtain K character groups corresponding to the K URL units in the candidate URL; wherein K is a positive integer.
[0142] In one embodiment, the display module 703 may further include:
[0143] A third acquisition submodule is used to acquire T second target URLs from the M candidate URLs when the text information satisfies a preset error correction condition; wherein the preset error correction condition includes that the edit distance between the text information and the first S characters of the second target URL is less than a first preset value, or the input error probability corresponding to the text information is greater than a second preset value, and the input error probability is the probability that the user inputs the first S characters of the second target URL incorrectly as text information;
[0144] A third display submodule, configured to display T character groups corresponding to a third URL unit in the T second target URLs when the first character is a URL unit separator, the third URL unit being the previous URL unit before the first character;
[0145] A fourth display submodule, configured to display T character groups corresponding to the second URL unit in the T second target URLs when the first character is other characters than the URL unit separator;
[0146] Wherein, T is a positive integer, M≥T, and the number of characters included in the text information is S.
[0147] In one embodiment, the first display submodule may specifically include:
[0148] A first acquisition unit, configured to acquire, based on the text information, the number of user history inputs of the character group corresponding to the first URL unit in each first target URL;
[0149] The first display unit is used to arrange and display N character groups corresponding to the first website unit in the N first target website addresses according to the number of historical inputs by the user.
[0150] In one embodiment, the second display submodule may specifically include:
[0151] A second acquisition unit is used to acquire a user history input count of a character group corresponding to a second URL unit in each first target URL based on a character group input in a URL unit located before the URL unit separator in the text information when there is at least one URL unit separator before the first character;
[0152] The second display unit is used to arrange and display N character groups corresponding to the second website unit in the N first target website addresses according to the number of historical inputs by the user.
[0153] In one embodiment, the information prompting device may further include:
[0154] The second receiving module 704 is used to receive a second input of a target character group in at least one character group by a user;
[0155] The first input module 705 is used to input characters in the target character group into the URL input control in response to the second input.
[0156] In one embodiment, the information prompting device may further include:
[0157] The second input module 706 is used to input a URL unit separator after the target character group in the URL input control.
[0158] Therefore, by dividing the URL into multiple URL units and providing URL input prompts in units of URL units, that is, based on the text information already entered by the user in the URL input control, at least one character group recommended for input in the URL unit associated with the first character currently input is displayed to provide prompts before the user's next URL input. In this way, the user can quickly perform the next input based on the recommended character group, gradually narrowing the URL recommendation range, thereby reducing the difficulty for the user to select a URL.
[0159] The information prompting device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the embodiment of the present application does not specifically limit it.
[0160] The information prompting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0161] The information prompting device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0162] Optional, such as Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned information prompt method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0163] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0164] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0165] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.
[0166] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0167] The user input unit 907 is used to receive the first input of the user in the URL input control;
[0168] An input unit 904, configured to obtain text information inputted into a URL input control in response to a first input;
[0169] The display unit 906 is used to display at least one character group corresponding to the target website unit based on the text information.
[0170] Therefore, by dividing the URL into multiple URL units and providing URL input prompts in units of URL units, that is, based on the text information already entered by the user in the URL input control, at least one character group recommended for input in the URL unit associated with the first character currently input is displayed to provide prompts before the user's next URL input. In this way, the user can quickly perform the next input based on the recommended character group, gradually narrowing the URL recommendation range, thereby reducing the difficulty for the user to select a URL.
[0171] Optionally, the processor 910 is configured to obtain N first target URLs from the M candidate URLs according to the text information;
[0172] Display unit 906 is specifically used to display N character groups corresponding to the first URL unit in N first target URLs when the first character is a URL unit separator; and to display N character groups corresponding to the second URL unit in N first target URLs when the first character is a character other than a URL unit separator.
[0173] Optionally, processor 910 is specifically used to obtain M alternative URLs; delete the characters corresponding to the URL header in the alternative URL; divide the alternative URL after the deletion operation into K URL units according to the URL unit separator, and obtain K character groups corresponding to the K URL units in the alternative URL.
[0174] Optionally, the processor 910 is further configured to obtain T second target URLs from the M candidate URLs when the text information meets a preset error correction condition;
[0175] Display unit 906 is also specifically used to display T character groups corresponding to the third URL unit in T second target URLs when the first character is a URL unit separator, and the third URL unit is the previous URL unit before the first character; when the first character is a character other than a URL unit separator, display T character groups corresponding to the second URL unit in T second target URLs.
[0176] Optionally, the processor 910 is further configured to obtain, based on the text information, a user history input count of a character group corresponding to the first URL unit in each first target URL;
[0177] The display unit 906 is further configured to arrange and display N character groups corresponding to the first URL units in the N first target URLs according to the number of historical inputs by the user.
[0178] Optionally, the processor 910 is further configured to obtain a user history input count of a character group corresponding to a second URL unit in each first target URL based on a character group input in a URL unit before the URL unit separator in the text information when at least one URL unit separator exists before the first character;
[0179] The display unit 906 is further configured to arrange and display N character groups corresponding to the second website unit in the N first target website addresses according to the number of historical inputs by the user.
[0180] Optionally, the user input unit 907 is specifically configured to receive a second input of a target character group in at least one character group from a user;
[0181] The processor 910 is further configured to input characters in the target character group into the URL input control in response to the second input.
[0182] Optionally, the user input unit 907 is further used to input a URL unit separator after the target character group in the URL input control.
[0183] Therefore, by obtaining the number of times users have entered the target URL in history, the corresponding character groups are arranged and displayed so that the character groups that meet the user's needs in the recommended character groups can be displayed in a more forward position, making it easier for users to quickly find and select and complete the URL input as soon as possible.
[0184] It should be understood that in the embodiment of the present application, the input unit 907 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.
[0185] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information prompt method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0186] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0187] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information prompt method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0188] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0189] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0190] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0191] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information prompting method, characterized in that: include: Receive the user's first input in the URL input control; In response to the first input, obtaining text information inputted in the URL input control, the text information including a first character corresponding to the first input; According to the text information, N first target URLs are obtained from the M candidate URLs; wherein the text information matches the prefix of the first target URL; In the case where the first character is a URL unit separator, N character groups corresponding to the first URL unit in the N first target URLs are displayed, and the first URL unit is the next URL unit after the first character; In the case where the first character is a character other than the URL unit separator, N character groups corresponding to the second URL unit in the N first target URLs are displayed, and the second URL unit is the URL unit where the first character is located; Among them, M and N are positive integers, and M≥N.
2. The method according to claim 1, characterized in that Before obtaining N first target URLs from M candidate URLs according to the text information, the method further includes: Get M alternative URLs; Delete the characters corresponding to the URL header in the alternative URL; The candidate URL after the deletion operation is divided into K URL units according to the URL unit separator, and K character groups corresponding to the K URL units in the candidate URL are obtained; wherein K is a positive integer.
3. The method according to claim 1, characterized in that The method further comprises: In the case where the text information satisfies a preset error correction condition, T second target URLs are obtained from the M candidate URLs; wherein the preset error correction condition includes that the edit distance between the text information and the first S characters of the second target URL is less than a first preset value, or the input error probability corresponding to the text information is greater than a second preset value, and the input error probability is the probability that the user inputs the first S characters of the second target URL incorrectly as the text information; In the case where the first character is the URL unit separator, displaying T character groups corresponding to the third URL unit in the T second target URLs, the third URL unit being the previous URL unit before the first character; In the case where the first character is a character other than the URL unit separator, displaying T character groups corresponding to the second URL unit in the T second target URLs; Wherein, T is a positive integer, M≥T, and the number of characters included in the text information is S.
4. The method according to claim 1, characterized in that The displaying of N character groups corresponding to the first URL unit in the N first target URLs includes: Based on the text information, obtaining the number of user history inputs of the character group corresponding to the first URL unit in each of the first target URLs; According to the historical input times of the user, the N character groups corresponding to the first website unit in the N first target website are arranged and displayed.
5. The method according to claim 1, characterized in that The displaying of N character groups corresponding to the second URL units in the N first target URLs includes: In the case where there is at least one URL unit separator before the first character, obtaining the number of user history inputs of the character group corresponding to the second URL unit in each of the first target URLs based on the character group input in the URL unit before the URL unit separator in the text information; According to the historical input times of the user, the N character groups corresponding to the second website unit in the N first target website are arranged and displayed.
6. The method according to claim 1, characterized in that After displaying the N character groups corresponding to the second URL units in the N first target URLs, the method further includes: receiving a second input of a target character group among the N character groups by a user; In response to the second input, characters in the target character group are input into the URL input control.
7. The method according to claim 1 or 2, characterized in that: The candidate URLs include: URLs browsed in the user's history, URLs with a total web-wide click volume exceeding a third preset value, and at least one of registered URLs.
8. An information prompting device, characterized in that: include: A first receiving module, used to receive a first input from a user in a URL input control; an acquisition module, configured to acquire text information input into the URL input control in response to the first input, wherein the text information includes a first character corresponding to the first input; A first acquisition submodule, configured to acquire N first target URLs from M candidate URLs according to the text information; wherein the text information matches a prefix of the first target URL; a first display submodule, configured to display N character groups corresponding to a first URL unit in the N first target URLs when the first character is a URL unit separator, the first URL unit being the next URL unit after the first character; A second display submodule is used for displaying N character groups corresponding to a second URL unit in the N first target URLs when the first character is other characters except the URL unit separator, the second URL unit being the URL unit where the first character is located; Among them, M and N are positive integers, and M≥N.
9. The device according to claim 8, characterized in that The information prompting device also includes: A second acquisition submodule is used to acquire M candidate URLs before acquiring N first target URLs from the M candidate URLs according to the text information; A deletion submodule, used to delete characters corresponding to the URL header in the alternative URL; The division submodule is used to divide the candidate URL after the deletion operation into K URL units according to the URL unit separator, and obtain K character groups corresponding to the K URL units in the candidate URL; wherein K is a positive integer.
10. The device according to claim 8, characterized in that The device also includes: A third acquisition submodule is used to acquire T second target URLs from the M candidate URLs when the text information satisfies a preset error correction condition; wherein the preset error correction condition includes that the edit distance between the text information and the first S characters of the second target URL is less than a first preset value, or the input error probability corresponding to the text information is greater than a second preset value, and the input error probability is the probability that the user inputs the first S characters of the second target URL incorrectly as the text information; A third display submodule is used for displaying T character groups corresponding to a third URL unit in the T second target URLs when the first character is the URL unit separator, the third URL unit being the previous URL unit before the first character; a fourth display submodule, configured to display T character groups corresponding to the second URL unit in the T second target URLs when the first character is other characters than the URL unit separator; Wherein, T is a positive integer, M≥T, and the number of characters included in the text information is S.
11. The device according to claim 8, characterized in that The first display submodule comprises: A first acquisition unit, configured to acquire, based on the text information, a user's historical input times of a character group corresponding to the first URL unit in each of the first target URLs; The first display unit is used to arrange and display N character groups corresponding to the first website unit in the N first target website addresses according to the number of historical inputs by the user.
12. The device according to claim 8, characterized in that The second display submodule includes: a second acquisition unit, configured to acquire a user history input count of a character group corresponding to the second URL unit in each first target URL based on a character group input in a URL unit before the URL unit separator in the text information, when at least one URL unit separator exists before the first character; The second display unit is used to arrange and display the N character groups corresponding to the second website unit in the N first target website addresses according to the number of historical inputs by the user.
13. The device according to claim 8, characterized in that The device also includes: A second receiving module is used to receive a second input of a target character group among the N character groups by a user; The first input module is used for inputting characters in the target character group into the URL input control in response to the second input.
14. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information prompt method according to any one of claims 1 to 7.
15. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the information prompt method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Device and method for inputting mobile terminal web address
CN101207860A
Method and system for positioning website
CN105159980A