CN113157173A - Information prompting method and device, electronic equipment and storage medium - Google Patents

Information prompting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113157173A
CN113157173A CN202110437312.9A CN202110437312A CN113157173A CN 113157173 A CN113157173 A CN 113157173A CN 202110437312 A CN202110437312 A CN 202110437312A CN 113157173 A CN113157173 A CN 113157173A
Authority
CN
China
Prior art keywords
website
character
unit
input
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110437312.9A
Other languages
Chinese (zh)
Inventor
邝秋鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ioco Communication Software Co ltd
Original Assignee
Shenzhen Ioco Communication Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ioco Communication Software Co ltd filed Critical Shenzhen Ioco Communication Software Co ltd
Priority to CN202110437312.9A priority Critical patent/CN113157173A/en
Publication of CN113157173A publication Critical patent/CN113157173A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses an information prompting method and device, electronic equipment and a storage medium, and belongs to the technical field of information processing. The information prompting method comprises the steps of receiving a first input of a user in a website input control; responding to the first input, acquiring text information input in the website input control, wherein the text information comprises a first character corresponding to the first input; displaying at least one character group corresponding to the target website unit based on the text information; wherein the target website unit is a website unit associated with the location of the first character. By adopting the information prompting method, the information prompting device, the electronic equipment and the storage medium, the user can quickly input the next step according to the recommended character set, and the website recommendation range is gradually reduced, so that the difficulty of selecting the website by the user is reduced.

Description

Information prompting method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of information processing, and particularly relates to an information prompting method and device, electronic equipment and a storage medium.
Background
With the continuous development of internet technology, more and more users obtain required information by browsing web pages. Therefore, how to improve the efficiency of inputting the website by the user becomes a problem to be solved urgently.
In the process of inputting the website by the user, the user may not remember the complete website because most of the website is very long in length, so that the user needs to rely on system recommendation in most cases. Therefore, as the number of the websites recommended by the system is large and the websites are basically recommended in a complete display mode, the user can not find the needed website from the websites recommended by the system.
Disclosure of Invention
The embodiment of the application aims to provide an information prompting method, an information prompting device, electronic equipment and a storage medium, and can solve the problem that a user is difficult to find a required website from numerous websites recommended by a system in the prior art.
In a first aspect, an embodiment of the present application provides an information prompting method, where the method includes:
receiving a first input of a user in the website input control;
responding to the first input, acquiring text information input in the website input control, wherein the text information comprises a first character corresponding to the first input;
displaying at least one character group corresponding to the target website unit based on the text information;
wherein the target website unit is a website unit associated with the location of the first character.
In a second aspect, an embodiment of the present application provides an information prompting apparatus, including:
the first receiving module is used for receiving a first input of a user in the website input control;
the acquisition module is used for responding to the first input and acquiring the text information input in the website input control, wherein the text information comprises a first character corresponding to the first input;
the display module is used for displaying at least one character group corresponding to the target website unit based on the text information;
wherein the target website unit is a website unit associated with the location of the first character.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the website is divided into a plurality of website units, and the website input prompt is performed by taking the website units as units, that is, at least one character set recommended to be input in the website unit associated with the currently input first character is displayed based on the text information already input by the user in the website input control, so that prompt is performed before the next website input of the user, and thus, the user can quickly perform the next input according to the recommended character set, the website recommendation range is gradually reduced, and the difficulty of selecting the website by the user is reduced.
Drawings
FIG. 1 is one of application scenarios illustrating a method of information prompting according to an exemplary embodiment;
FIG. 2 is one of the flow diagrams illustrating a method of information prompting according to an exemplary embodiment;
FIG. 3 is a second flowchart illustrating a method of prompting for information according to an exemplary embodiment;
FIG. 4 is a second illustration of an application scenario of a method of prompting for information according to an exemplary embodiment;
FIG. 5 is a third illustration of an application scenario of a method of prompting for information, according to an exemplary embodiment;
FIG. 6 is a third flowchart illustrating a method of prompting for information according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating the structure of an information prompting device according to an exemplary embodiment;
FIG. 8 is a block diagram illustrating the structure of an electronic device in accordance with an exemplary embodiment;
fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The information prompting method and the 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 application scenarios thereof.
The information prompting method provided by the application can be applied to the scene shown in fig. 1, and is specifically described in detail with reference to fig. 1.
Fig. 1 is a schematic view of an application scenario of an information prompting method according to an exemplary embodiment.
The information prompting method provided by the embodiment of the application can be applied to an application scene of inputting a website at a webpage end, as shown in fig. 1, a user opens a browser, can display a website search bar 11, and can input the website in the website search bar 11. The browser may be a browser installed in any electronic device, such as a computer, a mobile phone, a tablet, and the like.
Based on the application scenario, when a user inputs a website at a webpage end, the user often cannot remember a complete website, so that the input of the website needs to be completed through system recommendation during input, the system recommendation comes from a user historical browsing record, and all websites in the browsing record are displayed as the system recommendation when the user starts to input.
Because the number of websites recommended by the system is large and the websites are basically recommended in a complete display mode, the user is difficult to find the needed website from the websites recommended by the system.
In order to solve the above problem, an embodiment of the present application provides an information prompting method, that is, receiving a first input of a user in a website input control; responding to the first input, and acquiring the text information input in the website input control; and displaying at least one character group corresponding to a target website unit based on the text information, wherein the target website unit is a website unit associated with the position of the first character.
In this way, the website is divided into a plurality of website units, and the website input prompt is performed by taking the website units as units, that is, at least one character set recommended to be input in the website unit associated with the currently input first character is displayed based on the text information already input by the user in the website input control, so as to prompt before the next website input of the user, so that the user can quickly perform the next input according to the recommended character set, the website recommendation range is gradually reduced, and the difficulty of selecting the website by the user is reduced.
It should be noted that, in the information presentation method provided in the embodiment of the present application, the execution main body may be an information presentation device, or a control module in the information presentation device for executing the information presentation method. In the embodiment of the present application, an information prompting device is taken as an example to execute an information prompting method, and the information prompting method provided in the embodiment of the present application is described.
FIG. 2 is a flow diagram illustrating an information prompting method according to an example embodiment.
As shown in fig. 2, the information prompting method may include the following steps:
step 210, receiving a first input of the user in the website address input control.
The website input control in the embodiment of the application can be a search bar for inputting a website by a user, and the website input control can be used for displaying and receiving the website input by the user. The first input may be one or more characters input by the user at the same time. For example, the first input may be the user entering one character "l" in the search bar, but of course the user may enter four characters "mail" simultaneously. In addition, the first input may also be an input by the user to select a target character set recommended by the system.
Step 220, in response to the first input, obtaining the text information input in the website input control.
Here, in the case that the first input is a character input by the user, the first character is a character corresponding to the input of the first input; in the case where the first input is a plurality of characters simultaneously input by the user, the first character may be a last character of the plurality of characters; in the case where the first input is an input of a target character set recommended by the user selection system, the first character may be a last character in the acquired text information.
In addition, the text information may include all characters that have been entered in the website input control, including a first character corresponding to the first input. The text information can be used as a basis for displaying a character set for prompting the user to perform next website input. For example, after the user enters "l" in the search bar, the system may retrieve all text information "mail" that has been entered, including "l" in the search bar.
And 230, displaying at least one character group corresponding to the target website unit based on the text information.
In this embodiment, the target website unit may be a website unit associated with the location of the first character. For example, the target website unit may be a next website unit after the first character, that is, a first website unit, the target website unit may also be a website unit where the first character is located, that is, a second website unit, and the target website unit may also be a previous website unit before the first character, that is, a third website unit.
In addition, the character set may be used to prompt the user prior to the user's next web site entry. Wherein each character group may include at least one character, the kind of character including but not limited to a number, a letter, a symbol, etc.
It should be noted that the website unit may be a unit divided by website unit separators in the website, and each website may include a plurality of website units. Here, the site cell separator may be an identifier of the end of the site cell, such as a symbol "." and a symbol "/". Illustratively, the website www.sjmd.com/more/includes four website units, which respectively include four character groups of "www", "sjmd", "com", and "more", and adjacent two website units are divided by the symbol "." and the symbol "/".
For example, the system may search for a plurality of matching websites for the currently entered text information in the search bar, and may recommend the character set corresponding to the target website unit in the websites to the user.
Based on this, in an optional implementation, after step 230, the information prompting method may further include:
receiving a second input of a target character set in the at least one character set from a user;
and responding to the second input, and inputting the characters in the target character group into the website input control.
Here, the target character set may be a character set meeting the user requirement in at least one character set prompted by the system, and the target character set may be used as a part of the website input control for inputting into the website input control after being selected by the user. Wherein the second input may be an input for selecting a target character group from the at least one character group, and the second input may be used to control the input of characters in the target character group into the website input control.
In addition, under the condition that the text information meets the preset error correction condition, the target character group can also be a character group obtained after error correction in the target website unit.
Specifically, inputting the characters in the target character group into the website input control may replace all character groups of the website unit where the first character is located, may also be a character after completing the first character on the basis of the existing text information, may also be directly inputting the target character group into the first character, and may also be replacing a character different from the character contained in the target character group in the corresponding website unit.
In one specific example, assume that the user enters "mail", the screen displays prompts such as "123", "134", "15680" recommended by the system, and the user clicks "123" and enters "123" into the search bar.
Therefore, the second input of the user is received, the characters in the target character group are input into the website input control, the characters required by the user can be selected to perfect the website, the method and the device are convenient and quick, and the input efficiency of the user is improved.
In addition, in an optional implementation manner, after the characters in the target character group are input into the website input control in response to the second input, the information prompting method may further include:
the website cell delimiter is entered after the target character set in the website entry control.
Here, since each website unit takes the website unit separator as the unit end flag, the website unit separator can be automatically complemented after the target character set selected by the user is input to the website input control.
In one specific example, if the website unit delimiter is ".", then ".", may be automatically entered after the user clicks "123" and enters "123" into the search field.
Therefore, the website unit separator is input after the target character group in the website input control, so that the user can indicate that the user has finished inputting one website unit, and the system can conveniently recommend at least one character group of the next website unit for subsequent prompt.
Therefore, the website is divided into a plurality of website units, and website input prompting is carried out by taking the website units as units, namely, at least one character set recommended to be input in the website unit associated with the currently input first character is displayed based on the text information already input by the user in the website input control so as to prompt before the next website input of the user, so that the user can quickly carry out the next input according to the recommended character set, the website recommendation range is gradually reduced, and the difficulty of selecting the website by the user is reduced.
Based on the step 210 and 230, in a possible embodiment, as shown in fig. 3, the step 230 may specifically include: step 2301-2303, wherein:
step 2301, according to the text information, acquiring N first target websites from M alternative websites.
Here, the text information may be matched with a prefix of the first target website, that is, the text information may be respectively prefix-matched with M candidate websites, and N websites with prefixes being matched may be determined as the first target website. Wherein M, N is a positive integer, and M is more than or equal to N.
Additionally, alternative web sites may include: at least one of historically browsed websites, websites with the click rate of the whole network exceeding a third preset value and registered websites of the users, wherein popular websites, namely websites with the click rate of the whole network exceeding the third preset value, can be obtained by counting browsing habits of the users of the whole network, the registered websites can be obtained through a yellow page of the whole network, and the alternative websites can be used as sources of the N first target websites. The first target website may be a website with the same prefix as the text information in the alternative websites, and the first target website may be a basis for the system prompt character set.
In a specific example, assuming that there are 30 candidate websites, if the text message is "www.sjmd", all websites prefixed with "www.sjmd" are acquired from the 30 candidate websites as the first target website, for example, the acquired website www.sjmd.com. For another example, if the text information is "www." then all websites prefixed with "www." are obtained from 30 candidate websites as the first target website, such as the obtaining website www.qwer.com and the website www.sjmd.com.
Based on this, in an optional implementation manner, before step 2301, the information prompting method may further include:
acquiring M alternative websites;
deleting characters corresponding to the website head in the alternative website;
and dividing the deleted alternative website into K website units according to the website unit separators to obtain K character groups corresponding to the K website units in the alternative website.
Here, K is a positive integer. For example, each alternative website may be divided into a plurality of website units according to the website unit separators, and the website units may be used to obtain the character groups corresponding to the website units.
In a specific example, before the unit division is performed, the website headers of the alternative websites may be removed, such as: "http://" or "https://" etc., since the user typically enters http:// or https:// something behind directly when entering a web address. For example, the web address is https:// www.sancun.com/more/, but the user typically enters www.sancun.com/more/, directly. Then, the above-mentioned alternative web address without web address header can be divided into 4 web address units according to "." and "/", so as to obtain 4 character groups, such as: "www", "sannu", "com" and "more".
Therefore, the method and the device can obtain K character groups by deleting the website head of the alternative website and dividing the alternative website into K website units according to the website unit separators, can conveniently recommend the character groups by taking the website units as units to prompt a user, and are convenient for the user to browse and select.
2302, determining whether the first character is a website unit delimiter, if yes, executing 2303; if not, go to step 2304;
step 2303, displaying N character groups corresponding to the first website unit in the N first target websites.
Here, where the first character is a web site cell separator, the target web site cell may be the next web site cell after the first character, i.e., the first web site cell. The character set corresponding to the first website unit in the first target website may be a character set in a website unit corresponding to the first website unit in the first target website.
In a specific example, as shown in fig. 4, in a case where "mail" has been input, the user inputs ". j" in the website input control 41, the system automatically searches the websites prefixed with "mail." as the first target websites to be recommended, and if 3 first target websites are searched, such as "mail.
In addition, in another alternative embodiment, the step 3302 may include:
acquiring the historical input times of the user of the character group corresponding to the first website unit in each first target website based on the text information;
and arranging and displaying N character groups corresponding to the first website unit in the N first target websites according to the historical input times of the user.
Here, the number of times of the user's history input may be the number of times that the user has previously input the character group corresponding to the first site unit in the first target site based on the text information, and the number of times of the user's history input may be a basis for arranging and displaying the N character groups.
In a specific example, 5 first target websites have been acquired, and at this time, the 5 character groups need to be arranged and displayed according to the number of times that the user inputs the 5 character groups corresponding to the first website unit in the first target website in the search bar. For example, if the user inputs "www." and the character group of the first website unit that is input at most is "duty" and "mmty" next, the "duty" is arranged before the "mmty" for display.
Therefore, the N character groups corresponding to the first website unit in the N first target websites are arranged and displayed according to the historical input times of the user, so that the character groups recommended by the system can better fit the use habits of the user, and the user can complete the input of the next website unit more conveniently.
Step 2304, displaying N character groups corresponding to the second website unit in the N first target websites.
Here, in the case where the first character is a character other than the website unit delimiter, the target website unit may be the website unit in which the first character is located, that is, the second website unit. The character set corresponding to the second website unit in the first target website may be a character set in a website unit corresponding to the second website unit in the first target website.
In a specific example, as shown in fig. 5, in the case that "mail" has been input, the user inputs "2" in the website input control 41, the system automatically searches the website prefixed by "mail.2" as the first target website to be recommended, and if 3 first target websites, such as "mail.223.com/", "mail.234.com/" and "mail.25680.com/", are searched, 3 character groups "223", "234" and "25680" in the website unit corresponding to the second website unit located at "2" in the 3 first target websites are displayed.
In addition, in an alternative embodiment, the step 2303 may include:
under the condition that at least one website unit separator exists before the first character, acquiring the user historical input times of the character group corresponding to the second website unit in each first target website based on the character group input in the website unit before the website unit separator in the text information;
and arranging and displaying N character groups corresponding to the second website unit in the N first target websites according to the historical input times of the user.
Here, the number of times of the user's history input may be the number of times that the user has previously input the character group corresponding to the second site unit in the first target site based on the text information, and the number of times of the user's history input may be a basis for arranging and displaying the N character groups.
In a specific example, 5 first target websites have been acquired, and at this time, the 5 character groups need to be arranged and displayed according to the number of times that the user inputs the 5 character groups corresponding to the second website unit in the first target website in the search bar. For example, if the user inputs "www.c", and the most input character group of the second website unit is "duty", then "duty" is displayed, and then "cmty" is displayed, and then "duty" is arranged before "cmty" for display.
Therefore, the N character groups corresponding to the second website unit in the N first target websites are arranged and displayed according to the historical input times of the user, so that the character groups recommended by the system can better fit the use habits of the user, and the user can more conveniently complete the input of the current website unit.
Therefore, by acquiring the first target website from the alternative websites and displaying the corresponding character set, the character set meeting the conditions can be recommended for the user, and the user is helped to quickly and accurately complete website input.
In addition, in an optional implementation, the step 230 may further include:
under the condition that the text information meets the preset error correction condition, acquiring T second target websites from the M alternative websites;
under the condition that the first character is the website unit separator, displaying T character groups corresponding to a third website unit in the T second target websites, wherein the third website unit is a previous website unit before the first character;
and in the case that the first character is other characters except the website unit separator, displaying T character groups corresponding to the second website unit in the T second target websites.
Here, in the case that the first character is a website unit separator, the target website unit may also be the last website unit before the first character, that is, a third website unit. The character set corresponding to the third website unit in the second target website may be a character set in a website unit corresponding to the third website unit in the second target website.
Because errors may occur in the process of inputting the website by the user, the errors can be corrected by editing distance error correction, noise channel model error correction and other modes. The preset error correction condition may include that an edit distance between the text information and the first S characters of the second target website is smaller than a first preset value, or an error input probability corresponding to the text information is larger than a second preset value, where the error input probability is a probability that a user mistakenly inputs the first S characters of the second target website into the text information, where T is a positive integer, M is greater than or equal to T, and the number of characters included in the text information is S. The preset error correction condition may be used to determine whether error correction is required for the text information input by the user. The second target website may be a possible standard website obtained after error correction of the text information, a prefix of the second target website is similar to the text information, and the second target website may be a basis for a system prompt character set.
The calculation method of the edit distance error correction comprises the following steps: assuming that the text information is a character string a including S characters, the first S characters of the second target website are a character string B, the character string a can be changed into the character string B only by three operations of inserting, deleting and replacing, and at least X steps are required, and then X is an edit distance from the character string a to the character string B. Since usually the user only misses one character, the first preset value may be set to 2, that is, when the edit distance between the S characters included in the text message and the first S characters of the candidate website is 1, the candidate website may be determined as the second target website.
In addition, the calculation method of the noise channel model error correction is that probability values are given to editing operations among general characters, for example, the probability of error input of characters near a keyboard is high, the probability of error input among vowel characters is high, and based on the probability values, the probability that each input is standard input is calculated as the probability of error input.
In a specific example, the currently input character of the user is ". and the text information already input in the search bar is" mail ", and the alternative websites do not have a website prefixed by" mail ", or a website prefixed by" mail ", which is cooler, but have a candidate website prefixed by" mail ", which is hotter, and the edit distance between" mail ", and" mail "is 1 and smaller than the first preset value 2, so that the alternative website prefixed by" mail "can be acquired as the second target website, and the character group" mail "in the website unit corresponding to the third website unit in the second target website is displayed as the standard character group recommended for error correction.
In another specific example, the character currently input by the user is "l", the text information already input in the search bar is "mau", the website with the prefix of "mau" does not exist in the candidate websites, but the candidate website with the prefix of "mai" exists, and if the probability of "i" mistaking for "u" is 0.4 and the second preset value is 0.3, the mistaking probability is greater than the preset value, so that the candidate website with the prefix of "mai" can be acquired as the second target website, and the character group "mail" in the website unit corresponding to the second website unit in the second target website is displayed as the standard character group recommended for error correction.
Therefore, by acquiring the second target website and displaying the corresponding character set under the condition that the text information meets the preset error correction condition, the corresponding character set can still be recommended to the user under the condition that the user inputs the error, and the user is helped to correct the error and complete website input.
To better describe the whole scheme, based on the above embodiments, as a specific example, as shown in fig. 7, the information prompting method may include steps 601-608, which are explained in detail below.
Step 601, segmenting the historical browsing websites of the user according to the website units.
In a specific example, the website header of the user's historical browsing website, such as "http:// web or" https:// site, is deleted, and the user's historical browsing website is divided into a plurality of modules, i.e., website units, according to the website unit separators, such as ". multidot.or"/". Such as www.sancun.com/more/can be split into four modules "www", "sancun", "com", and "more".
Step 602, segmenting the web address with the whole network clicking amount exceeding a third preset value or the registered web address according to the web address units.
In a specific example, the website with the total network click rate exceeding the third preset value or the website header of the registered website is deleted, such as "http:// or" https:// second, and the website with the total network click rate exceeding the third preset value or the registered website is divided into a plurality of modules, that is, website units, according to website unit separators, such as ". or"/". Such as www.sancun.com/more/can be split into four modules "www", "sancun", "com", and "more".
Step 603, acquiring the inputted text information.
In a specific example, the text information input by the user in the website input control is obtained, and the alternative website with the prefix consistent with the text information may be used as the first target website based on the text information. In addition, if the text information input by the user has errors, that is, the text information meets the preset error correction condition, the alternative website with the prefix consistent with the error-corrected text information is taken as a second target website based on the error-corrected text information. The alternative websites may include at least one of websites with the total click rate exceeding a third preset value and registered websites in step 602, where the user historically browses websites in step 601.
Step 604, whether the input of the local address unit is completed.
In a specific example, whether the last website unit in the inputted text message is inputted is judged, and the judgment can be made through whether the last character, i.e. the first character, is the website unit separator, and if the last character is the website unit separator, the website unit is inputted; if the last character is other than the separator of the address unit, the address unit is not completed. If the local address unit has been input, go to step 605; if the input of the local address unit is not completed, go to step 606.
Step 605, displaying the character set corresponding to the first website unit.
In one embodiment, the input of the address unit is completed, and the character set corresponding to the next address unit, i.e. the first address unit, is displayed. If the input content is a prefix of the stored text, the stored text is recalled. For example: www. is a prefix of www.sancun.com and www.ccty is a prefix of www.ccty.com. Further, the ranking may be based on the number of user historical entries of entered text information. For example, a user who enters www, the most next module entered is the ccty, and the ccty is presented.
Step 606, displaying the character set corresponding to the second website unit.
In a specific example, the input of the local website unit is not completed, and at this time, the character group corresponding to the current website unit, that is, the second website 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. Meanwhile, the website unit before the website unit is required to be completely matched. For example: the user input is www.cc, then recall the balance of the city, requesting that there be a complete web address beginning with www.ccty. On the contrary, if only the website of wap, ccv, xyz exists in the alternative websites, since the beginning is not www.cc, although cc is also the prefix of ccv, the result of ccv will not be recalled. Further, the ranking may be based on the number of user historical entries of entered text information. For example, a user who enters www, the most next module entered is the ccty, and the ccty is presented.
Step 607, inputting the target character set selected by the user.
In a specific example, the user clicks a character group meeting the requirement of the user in the prompt, the system receives a second input of the click, and the character group clicked by the user is displayed in the website address input control.
Step 608, the website unit delimiter is entered.
In one embodiment, the website cell separator is automatically completed after the character set clicked by the user is displayed in the website input control.
Based on the same inventive concept, the application also provides an information prompting device. The information presentation device according to the embodiment of the present application will be described in detail below with reference to fig. 8.
Fig. 7 is a block diagram illustrating a configuration of an information presentation apparatus according to an exemplary embodiment.
As shown in fig. 7, the information presentation apparatus 700 may include:
a first receiving module 701, configured to receive a first input of a user in a website input control;
an obtaining module 702, configured to, in response to a first input, obtain text information that has been input in a website input control, where the text information includes a first character corresponding to the first input;
a display module 703, configured to display at least one character group corresponding to the target website unit based on the text information;
wherein the target website unit is a website unit associated with the location of the first character.
The information presentation device 7 will be described in detail below, specifically as follows:
in one embodiment, the display module 703 may specifically include:
the first obtaining sub-module is used for obtaining N first target websites from the M alternative websites according to the text information; the text information is matched with the prefix of the first target website;
the first display sub-module is used for displaying N character groups corresponding to a first website unit in N first target websites under the condition that the first character is a website unit separator, wherein the first website unit is the next website unit after the first character;
the second display sub-module is used for displaying N character groups corresponding to a second website unit in the N first target websites under the condition that the first characters are other characters except the website unit separators, wherein the second website unit is the website unit where the first characters are located;
wherein M, N is a positive integer, and M is more than or equal to N.
In one embodiment, the display module 703 may further include:
the second acquisition sub-module is used for acquiring M alternative websites;
the deleting submodule is used for deleting the characters corresponding to the website head in the alternative website;
the division submodule is used for dividing the alternative website after the deletion operation into K website units according to the website unit separators to obtain K character groups corresponding to the K website units in the alternative website; wherein K is a positive integer.
In one embodiment, the display module 703 may further include:
the third obtaining sub-module is used for obtaining T second target websites from the M alternative websites under the condition that the text information meets the preset error correction condition; the preset error correction condition comprises that the edit distance between the text information and the first S characters of the second target website is smaller than a first preset value, or the error input probability corresponding to the text information is larger than a second preset value, and the error input probability is the probability that the user inputs the first S characters of the second target website as the text information in an error mode;
a third display sub-module, configured to display T character groups corresponding to a third website unit in T second target websites when the first character is a website unit delimiter, where the third website unit is a previous website unit before the first character;
the fourth display sub-module is used for displaying T character groups corresponding to the second website unit in the T second target websites under the condition that the first characters are other characters except the website unit separators;
wherein T is a positive integer, M is more than or equal to T, and the number of characters included in the text information is S.
In one embodiment, the first display sub-module may specifically include:
the first acquisition unit is used for acquiring the user history input times of the character group corresponding to the first website unit in each first target website based on the text information;
and the first display unit is used for arranging and displaying the N character groups corresponding to the first website unit in the N first target websites according to the historical input times of the user.
In one embodiment, the second display sub-module may specifically include:
a second obtaining unit, configured to, when at least one website unit separator exists before the first character, obtain, based on a character group input in a website unit located before the website unit separator in the text information, a user history input number of the character group corresponding to the second website unit in each first target website;
and the second display unit is used for arranging and displaying the N character groups corresponding to the second website unit in the N first target websites according to the historical input times of the user.
In one embodiment, the information prompting device may further include:
a second receiving module 704, configured to receive a second input of a target character set of the at least one character set from the user;
the first input module 705 is configured to input the characters in the target character group into the website address input control in response to the second input.
In one embodiment, the information prompting device may further include:
a second input module 706, configured to input the website unit delimiter after the target character group in the website input control.
Therefore, the website is divided into a plurality of website units, and website input prompting is carried out by taking the website units as units, namely, at least one character set recommended to be input in the website unit associated with the currently input first character is displayed based on the text information already input by the user in the website input control so as to prompt before the next website input of the user, so that the user can quickly carry out the next input according to the recommended character set, the website recommendation range is gradually reduced, and the difficulty of selecting the website by the user is reduced.
The information prompting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The information prompting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction that is stored in the memory 802 and is executable on the processor 801, and when the program or the instruction is executed by the processor 801, the process of the above-mentioned embodiment of the information prompting method is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 907 is configured to receive a first input of a user in the website input control;
an input unit 904, configured to, in response to the first input, obtain text information that has been input in the website input control;
a display unit 906 for displaying at least one character set corresponding to the target website unit based on the text information.
Therefore, the website is divided into a plurality of website units, and website input prompting is carried out by taking the website units as units, namely, at least one character set recommended to be input in the website unit associated with the currently input first character is displayed based on the text information already input by the user in the website input control so as to prompt before the next website input of the user, so that the user can quickly carry out the next input according to the recommended character set, the website recommendation range is gradually reduced, and the difficulty of selecting the website by the user is reduced.
Optionally, the processor 910 is configured to obtain N first target websites from M candidate websites according to the text information;
a display unit 906, configured to display N character groups corresponding to the first website unit in the N first target websites specifically when the first character is a website unit separator; and in the case that the first character is other characters except the website element separator, displaying N character groups corresponding to the second website element in the N first target websites.
Optionally, the processor 910 is specifically configured to obtain M alternative websites; deleting characters corresponding to the website head in the alternative website; and dividing the deleted alternative website into K website units according to the website unit separators to obtain K character groups corresponding to the K website units in the alternative website.
Optionally, the processor 910 is further specifically configured to, when the text information meets a preset error correction condition, obtain T second target websites from the M candidate websites;
a display unit 906, specifically configured to display T character groups corresponding to a third website unit in the T second target websites when the first character is the website unit delimiter, where the third website unit is a previous website unit before the first character; and in the case that the first character is other characters except the website unit separator, displaying T character groups corresponding to the second website unit in the T second target websites.
Optionally, the processor 910 is further specifically configured to obtain, based on the text information, a user history input number of a character group corresponding to the first website unit in each first target website;
the display unit 906 is further specifically configured to arrange and display N character groups corresponding to the first website unit in the N first target websites according to the historical input times of the user.
Optionally, the processor 910 is further specifically configured to, in a case that at least one website unit separator exists before the first character, obtain, based on a character group input in a website unit located before the website unit separator in the text information, a user history input number of the character group corresponding to the second website unit in each first target website;
the display unit 906 is further specifically configured to arrange and display N character groups corresponding to the second website unit in the N first target websites according to the historical input times of the user.
Optionally, the user input unit 907 is specifically configured to receive a second input of the user to a target character set in the at least one character set;
the processor 910 is further specifically configured to input the characters in the target character group into the website address input control in response to the second input.
Optionally, the user input unit 907 is further used for inputting a website unit separator after the target character set in the website input control.
Therefore, the corresponding character groups are arranged and displayed by acquiring the historical input times of the user of the target website, so that the character groups meeting the requirements of the user in the recommended character groups can be displayed at a more front position, the user can conveniently and quickly search and select the character groups, and the website input can be completed as soon as possible.
It should be understood that in the embodiment of the present application, the input Unit 907 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in the video capturing mode or the image capturing 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, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as 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, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned information prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned information prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (17)

1. An information prompting method, comprising:
receiving a first input of a user in the website input control;
responding to the first input, and acquiring text information input in the website input control, wherein the text information comprises a first character corresponding to the first input;
displaying at least one character group corresponding to the target website unit based on the text information;
wherein the target website unit is a website unit associated with the location of the first character.
2. The method of claim 1, wherein displaying at least one character set corresponding to a target website unit based on the text information comprises:
acquiring N first target websites from M alternative websites according to the text information; wherein the text information is matched with the prefix of the first target website;
under the condition that the first character is a website unit separator, displaying N character groups corresponding to a first website unit in the N first target websites, wherein the first website unit is a next website unit after the first character;
under the condition that the first character is other characters except the website unit separator, displaying N character groups corresponding to a second website unit in the N first target websites, wherein the second website unit is the website unit where the first character is located;
wherein M, N is a positive integer, and M is more than or equal to N.
3. The method of claim 2, wherein before obtaining N first target websites from M candidate websites according to the text message, the method further comprises:
acquiring M alternative websites;
deleting characters corresponding to the website head in the alternative website;
dividing the deleted alternative website into K website units according to the website unit separators to obtain K character groups corresponding to the K website units in the alternative website; wherein K is a positive integer.
4. The method of claim 2, wherein displaying at least one character set corresponding to a target website unit based on the text information further comprises:
under the condition that the text information meets a preset error correction condition, acquiring T second target websites from M alternative websites; the preset error correction condition comprises that the edit distance between the text information and the first S characters of the second target website is smaller than a first preset value, or the error input probability corresponding to the text information is larger than a second preset value, wherein the error input probability is the probability that the user mistakenly inputs the first S characters of the second target website into the text information;
under the condition that the first character is the website unit separator, displaying T character groups corresponding to a third website unit in the T second target websites, wherein the third website unit is a previous website unit before the first character;
in the case that the first character is other than the website unit separator, displaying T character groups corresponding to a second website unit in the T second target websites;
wherein T is a positive integer, M is more than or equal to T, and the number of characters included in the text information is S.
5. The method of claim 2, wherein said displaying N character groups corresponding to a first web site element from said N first target web sites comprises:
acquiring the historical input times of the user of the character group corresponding to the first website unit in each first target website based on the text information;
and arranging and displaying N character groups corresponding to the first website unit in the N first target websites according to the historical input times of the user.
6. The method of claim 2, wherein said displaying N character groups corresponding to a second web site element from said N first target web sites comprises:
under the condition that at least one website unit separator exists before the first character, acquiring the user historical input times of the character group corresponding to the second website unit in each first target website based on the character group input in the website unit before the website unit separator in the text information;
and arranging and displaying N character groups corresponding to the second website unit in the N first target websites according to the historical input times of the user.
7. The method of claim 1, wherein after displaying at least one character set corresponding to a target web site element based on the textual information, the method further comprises:
receiving a second input of a target character set in the at least one character set from a user;
and responding to the second input, and inputting the characters in the target character group into the website input control.
8. The method of claim 2 or 3, wherein the alternative web address comprises: at least one of the historically browsed websites, websites with the click rate exceeding a third preset value and registered websites of the user.
9. An information presentation device, comprising:
the first receiving module is used for receiving a first input of a user in the website input control;
an obtaining module, configured to obtain, in response to the first input, text information that has been input in the website input control, where the text information includes a first character corresponding to the first input;
the display module is used for displaying at least one character group corresponding to the target website unit based on the text information;
wherein the target website unit is a website unit associated with the location of the first character.
10. The apparatus of claim 9, wherein the display module comprises:
the first obtaining sub-module is used for obtaining N first target websites from M alternative websites according to the text information; wherein the text information is matched with the prefix of the first target website;
a first display sub-module, configured to display, when the first character is a website unit separator, N character groups corresponding to a first website unit in the N first target websites, where the first website unit is a next website unit after the first character;
a second display sub-module, configured to display N character groups corresponding to a second website unit in the N first target websites when the first character is a character other than the website unit delimiter, where the second website unit is a website unit in which the first character is located;
wherein M, N is a positive integer, and M is more than or equal to N.
11. The apparatus of claim 10, wherein the display module further comprises:
the second acquisition sub-module is used for acquiring M alternative websites;
the deleting submodule is used for deleting the characters corresponding to the website head in the alternative website;
the division submodule is used for dividing the alternative website after the deletion operation into K website units according to the website unit separators to obtain K character groups corresponding to the K website units in the alternative website; wherein K is a positive integer.
12. The apparatus of claim 9, wherein the display module further comprises:
the third obtaining submodule is used for obtaining T second target websites from the M alternative websites under the condition that the text information meets the preset error correction condition; the preset error correction condition comprises that the edit distance between the text information and the first S characters of the second target website is smaller than a first preset value, or the error input probability corresponding to the text information is larger than a second preset value, wherein the error input probability is the probability that the user mistakenly inputs the first S characters of the second target website into the text information;
a third display sub-module, configured to display T character groups corresponding to a third website unit in the T second target websites when the first character is the website unit delimiter, where the third website unit is a previous website unit before the first character;
a fourth display sub-module, configured to display, when the first character is a character other than the website unit separator, a T character group corresponding to a second website unit in the T second target websites;
wherein T is a positive integer, M is more than or equal to T, and the number of characters included in the text information is S.
13. The apparatus of claim 10, wherein the first display sub-module comprises:
a first obtaining unit, configured to obtain, based on the text information, a user history input number of a character group corresponding to the first website unit in each first target website;
and the first display unit is used for arranging and displaying the N character groups corresponding to the first website unit in the N first target websites according to the historical input times of the user.
14. The apparatus of claim 10, wherein the second display sub-module comprises:
a second obtaining unit, configured to, in a case where at least one website unit separator exists before the first character, obtain, based on a character group input in a website unit located before the website unit separator in the text information, a user history input number of a character group corresponding to the second website unit in each first target website;
and the second display unit is used for arranging and displaying the N character groups corresponding to the second website unit in the N first target websites according to the historical input times of the user.
15. The apparatus of claim 9, further comprising:
the second receiving module is used for receiving second input of a user to a target character set in the at least one character set;
and the first input module is used for responding to the second input and inputting the characters in the target character group into the website input control.
16. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the information presentation method as claimed in any one of claims 1 to 8.
17. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the information prompting method according to any one of claims 1-8.
CN202110437312.9A 2021-04-22 2021-04-22 Information prompting method and device, electronic equipment and storage medium Pending CN113157173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110437312.9A CN113157173A (en) 2021-04-22 2021-04-22 Information prompting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110437312.9A CN113157173A (en) 2021-04-22 2021-04-22 Information prompting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113157173A true CN113157173A (en) 2021-07-23

Family

ID=76869520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110437312.9A Pending CN113157173A (en) 2021-04-22 2021-04-22 Information prompting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113157173A (en)

Similar Documents

Publication Publication Date Title
CN109800352B (en) Method, system and terminal device for pushing information based on clipboard
TWI582619B (en) Method and apparatus for providing referral words
CN109086394B (en) Search ranking method and device, computer equipment and storage medium
US10402479B2 (en) Method, server, browser, and system for recommending text information
CN102541853B (en) Method and device which are capable of obtaining application information by utilizing browser address bar
WO2014194689A1 (en) Method, server, browser, and system for recommending text information
JP2013545189A (en) Determining category information using multistage
CN105677815B (en) A kind of Web page bookmark adding method and terminal
CN108228657B (en) Method and device for realizing keyword retrieval
CN106682049B (en) Topic display system and topic display method
EP3782048A1 (en) Action indicators for search operation output elements
CN108874827B (en) Searching method and related device
CN109582155B (en) Recommendation method and device for inputting association words, storage medium and electronic equipment
US9471669B2 (en) Presenting previously selected search results
CN112307365A (en) Information display method and device, electronic equipment and storage medium
CN114241501B (en) Image document processing method and device and electronic equipment
WO2022135339A1 (en) Message content input method and apparatus, and electronic device
CN106919593B (en) Searching method and device
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN113157173A (en) Information prompting method and device, electronic equipment and storage medium
CN107193390A (en) Information processing method and device
CN110674386B (en) Resource recommendation method, device and storage medium
CN112286613A (en) Interface display method and interface display device
CN111831938A (en) Information display method, information display device, electronic equipment and medium
CN112084151A (en) File processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination