WO2022135339A1 - Message content input method and apparatus, and electronic device - Google Patents

Message content input method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022135339A1
WO2022135339A1 PCT/CN2021/139657 CN2021139657W WO2022135339A1 WO 2022135339 A1 WO2022135339 A1 WO 2022135339A1 CN 2021139657 W CN2021139657 W CN 2021139657W WO 2022135339 A1 WO2022135339 A1 WO 2022135339A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
word
recommended
recommendation
recommended word
Prior art date
Application number
PCT/CN2021/139657
Other languages
French (fr)
Chinese (zh)
Inventor
赵苗苗
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022135339A1 publication Critical patent/WO2022135339A1/en

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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to an input method, an apparatus and an electronic device.
  • the input of message content will be involved, and users will input the same or similar message content through the same application in a fixed time period and in a fixed scenario, for example, often through lunchtime
  • the chat software inputs "go to dinner", and sends "go to the meeting room for a meeting, time xx, location xx" during the meeting time period. If the user manually enters these same or similar message content every day, the input process will be very cumbersome and the input efficiency will be Low.
  • the input engine in the related art adds shortcut phrases or common words.
  • the user can select the desired input content from the shortcut phrases or common words provided by the input engine, or the user can The actual requirement is to manually add common words, and select the appropriate common words as the message content to be input when inputting the message content.
  • the input method provided by the input engine in the related art either requires the user to manually set the recommendation information, or is fixed recommendation information provided by the system, and the method of the recommendation information is not flexible enough and the accuracy is poor.
  • the purpose of the embodiments of the present application is to provide an information recommendation method, which can solve the problems of inflexibility and poor accuracy of content recommended based on an input engine in the related art.
  • an information recommendation method which includes:
  • the display interface of the electronic device includes an input area
  • acquire first scene information corresponding to the display interface where the first scene information includes the application to which the display interface belongs and the time included in the display interface at least one of information, the geographic location of the electronic device;
  • M pieces of target recommendation information are displayed based on the first recommendation word and the second recommendation word.
  • an information recommendation device comprising:
  • a first scene information acquisition module configured to acquire first scene information corresponding to the display interface when the display interface of the electronic device includes an input area, where the first scene information includes the application to which the display interface belongs at least one of a program, time information contained in the display interface, and a geographic location of the electronic device;
  • a recommended word determination module configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word;
  • a target recommendation information output module configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the display interface of the electronic device when the display interface of the electronic device includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information.
  • Fig. 1a is a flowchart of the specific steps of an information recommendation method provided in Embodiment 1 of the present application;
  • FIG. 1b is a flowchart of the specific steps of another information recommendation method provided in Embodiment 1 of the present application;
  • FIG. 2 is a flowchart of the specific steps of an information recommendation method provided in Embodiment 2 of the present application;
  • Embodiment 3 is a display diagram of a second recommended word provided in Embodiment 2 of the present application.
  • FIG. 4 is a display diagram of a first recommended word provided in Embodiment 2 of the present application.
  • FIG. 5 is a structural diagram of an information recommendation apparatus provided in Embodiment 3 of the present application.
  • FIG. 6 is a structural diagram of an information recommendation apparatus provided in Embodiment 4 of the present application.
  • FIG. 7 is a structural diagram of an electronic device provided in Embodiment 5 of the present application.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device according to Embodiment 5 of the present application.
  • FIG. 1a shows the specific steps of an information recommendation method provided in Embodiment 1 of the present application.
  • Step 101 In the case that the display interface of the electronic device includes an input area, obtain first scene information corresponding to the display interface.
  • the information recommendation method in the embodiment of the present application can be applied to electronic equipment, and the electronic equipment can be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer) mobile personal computer (UMPC), netbook or personal digital assistant (Personal Digital Assistant, PDA), or the like, or the electronic device may also be a server, a network attached storage (NetworkAttached Storage, NAS), a personal computer (Personal Computer, PC), A non-mobile electronic device such as a television (Television, TV), a teller machine, or a self-service machine is not specifically limited in this embodiment of the present application, and a mobile terminal is used as an example for description in this embodiment of the present application.
  • a mobile terminal is used as an example for description in this embodiment of the present application.
  • the display interface of the mobile terminal is detected in real time. If it is detected that the display interface of the mobile terminal includes an input area, it means that the user needs to recommend information, such as word recommendation, sentence recommendation, etc. At this time, the display interface is obtained. information of the first scene. For example, when it is detected that the display interface is a WeChat chat interface and includes a chat input area, first scene information corresponding to the WeChat chat interface is acquired, so as to determine target recommendation information to be recommended according to the first scene information.
  • the first scene information includes at least one of an application to which the display interface belongs, time information included in the display interface, and a geographic location of the electronic device.
  • the electronic device can determine the application to which the display interface belongs, for example, determine whether the display interface belongs to the chat interface of chat software, the search interface of the input engine, or the search interface of shopping software Search interface, etc.
  • the content frequently input by the user is also different. Therefore, in this embodiment of the present application, different target recommendation information may be determined according to different application programs to which the display interface belongs. For different time periods, users often enter different content. For example, at around 12:00 noon, users often enter "where to eat", and on Monday morning, users often enter content about meeting notices.
  • the embodiment of the present application can be used in When the display interface of the electronic device includes an input area, the current location of the user is determined by determining the geographic location of the electronic device, and then different target recommendation information is determined for different locations.
  • Step 102 Determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word.
  • the user will input some same or similar content in certain fixed time periods, or fixed scenarios, or in a specific application, for example, send "Go to XXX meeting room for a meeting, time XXX; location every Monday morning. XXX; Participant XXX, topic XXX", at around 12 noon, enter information such as "Let's go to XXX for dinner” through chat software.
  • the embodiment of the present application acquires the user's historical up-screen information and the historical up-screen information under the condition that the user's authorization to obtain user information is received.
  • Corresponding second scene information according to the obtained historical screen information and second scene information, generate the user's recommended thesaurus, the recommended thesaurus includes the preset first recommended word and the second recommended word, and the preset first recommended word and second recommended word.
  • the first recommended word corresponds to the second scene information. Therefore, when it is detected that the display interface includes an input box, the first recommended word corresponding to the second scene information that matches the first scene information corresponding to the display interface and the first recommended word corresponding to the first recommended word can be searched in the recommended vocabulary. Second recommendation.
  • the first recommended word is determined according to high-frequency sentences that appear in the user's historical on-screen messages and the second scene information corresponding to the high-frequency sentences, and the high-frequency sentences that have the same or similar second scene information
  • the same or semantically similar keywords contained in this application are in the embodiments of the present application. For example, users often send messages such as "I want to eat hot pot”, “I want to eat barbecue”, “I want to eat crayfish” and so on through chat software on weekend afternoons.
  • high-frequency sentences generally include both the first recommendation word and the second recommendation word, and the second recommendation word is specific content or options corresponding to the first recommendation word.
  • “Crayfish” are the second recommendation words corresponding to the first recommendation word “I want to eat”.
  • Step 103 Display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
  • the first recommendation word and the second recommendation word are extracted from the high-frequency sentences of the user, and the first recommendation word and the second recommendation word alone do not constitute a complete Therefore, the first recommendation word and the second recommendation word that need to be determined are combined according to the corresponding relationship between the two to generate target recommendation information that includes both the first recommendation word and the second recommendation word.
  • the obtained first scene information corresponding to the user's calling operation to the input engine is "weekend afternoon, chat software”
  • a second scene matching the first scene information is found in the preset recommended vocabulary
  • the first recommendation word corresponding to the information is "want to eat”
  • the second recommendation word corresponding to the first recommendation word is "hot pot”, “barbecue”, “crayfish”
  • the first recommendation word “want to eat” Combine “eat” with these second recommendation words to generate target recommendation information "I want to eat hot pot”, “I want to eat barbecue”, “I want to eat crayfish”, and the generated target recommendation information is displayed in the recommendation display area for users to choose. .
  • the display interface when the display interface includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information.
  • the second recommendation word corresponding to the first recommendation word M pieces of target recommendation information are displayed based on the first recommendation word and the second recommendation word, and the target recommendation information can be determined according to the scene information, which improves the determined target recommendation information. real-time and accurate.
  • step 103 After the target recommendation information is displayed, input may be made based on the target recommendation information. Referring to FIG. 1b, after step 103, it may further include:
  • Step 104 in response to the triggering operation on the target recommendation information, generate target information according to the target recommendation information.
  • the target information can be generated according to the first recommendation word and the second recommendation word contained in the target recommendation information. For example, after receiving the user's trigger operation on the target recommendation information "I want to eat hot pot", the target information "I want to eat hot pot” can be directly generated, and the user's behavioral habits can be further analyzed. According to the user's behavioral habits, such as the commonly used tone Words, emoticons, etc., further optimize the target recommendation information to generate target information, such as "I really want to eat hot pot". It is also possible to obtain nearby businesses that meet the user's needs according to the user's current location, and include business information or business locations in the generated target information, for example, "I really want to eat the hot pot in Zhongmao Plaza".
  • Step 105 in the case of receiving the confirmation operation for the target information, input the target information.
  • the target information In generating the target information, it is further judged whether the generated target information meets the user's requirements, and if a user's confirmation operation on the target information is received, the target information is used for input.
  • the generated target information is "I really want to eat hot pot in China Trade Plaza", but the user wants to go to other places, then the user can modify the generated target information, for example, to "I really want to eat Wanda Plaza's hot pot" "Hotpot", the target information is input only when the user's confirmation operation on the target information is received, so as to prevent the input target information from not meeting the user's expectations.
  • the efficiency and accuracy of information input are improved.
  • the execution subject may be an information recommendation device, or a control module in the information recommendation device for executing the information recommendation method.
  • the method provided by the embodiment of the present application is described by taking the information recommending apparatus executing the information recommending method as an example.
  • FIG. 2 it shows the specific steps of an information recommendation method provided in Embodiment 2 of the present application.
  • Step 201 according to the user's historical on-screen information and the second scene information corresponding to the historical on-screen information, generate a recommended thesaurus corresponding to the user, and the recommended thesaurus includes a preset first recommended word and a second recommended word, where the preset first recommended word corresponds to the second scene information.
  • the user's historical screen information and the second scene information corresponding to the historical screen information are obtained, and according to the obtained historical screen information screen information and second scene information, and generate a recommended word bank for the user.
  • the recommended word bank includes preset first recommended words and second recommended words, and the preset first recommended words correspond to the second scene information . Therefore, when the user's calling operation to the input engine is received, the first recommended word corresponding to the second scene information that matches the first scene information corresponding to the calling operation, and the first recommended word corresponding to the first recommended word can be searched in the recommended word database. The corresponding second recommendation word.
  • a recommended vocabulary corresponding to the user is generated, including: :
  • Step S11 determining at least two high-frequency sentences of the user according to the screen-on-screen frequency of the user's historical screen-on-screen information;
  • Step S12 clustering the at least two high-frequency sentences according to the second scene information corresponding to the high-frequency sentences to obtain a high-frequency sentence group;
  • Step S13 determining the first recommended words corresponding to the at least two high-frequency sentences according to the high-frequency sentence group and the preset similarity condition;
  • Step S14 extracting the second inferred word corresponding to the first recommended word in the at least two high-frequency sentences
  • Step S15 Generate a recommended word database corresponding to the user according to the first recommended word and the second recommended word.
  • the embodiments of the present application are aimed at users who often need to input some same or similar content in certain fixed time periods, or in fixed scenarios, or in specific application programs, in order to improve the input
  • the real-time and accuracy of the content recommended by the engine provides an information recommendation method.
  • the recommended words in the embodiments of the present application are all frequently used by the user. Therefore, before determining the recommended word database of the user, it is necessary to determine the high-frequency sentences used by the user.
  • the frequency of the user's previous screen information find at least two historical screen information whose screen access frequency exceeds a preset frequency threshold from the user's historical screen information, and select the at least two previous screen information.
  • the historical on-screen information whose frequency exceeds the preset frequency threshold is taken as at least two high-frequency sentences of the user.
  • Each high-frequency sentence corresponds to a second scene information, and at least two high-frequency sentences are clustered according to the second scene information corresponding to the high-frequency sentence to obtain a high-frequency sentence group.
  • the user's high-frequency sentences are "go to the conference room for a meeting", “want to eat hot pot”, “want to eat barbecue”, “want to eat crayfish” .
  • the second scene information corresponding to "going to the conference room for a meeting” is Monday morning
  • the second scene information corresponding to "I want to eat hot pot", “I want to eat barbecue”, and “I want to eat crayfish” all include weekend afternoons.
  • Cluster these high-frequency sentences according to the second scene information corresponding to the high-frequency sentences and obtain two high-frequency sentence groups.
  • the first recommended word is determined according to the obtained high-frequency sentence group and the preset similarity condition, and the second keyword corresponding to the first keyword in at least two high-frequency sentences is extracted.
  • each high-frequency sentence included in the high-frequency sentence group may be split first to obtain multiple keywords, and these multiple keywords form a keyword set corresponding to the high-frequency sentence group, and the obtained keywords are calculated respectively.
  • the similarity between each keyword in the set that is, the similarity between each two keywords is calculated, and the keywords whose similarity exceeds the preset similarity threshold are combined, and the combined keyword is the high-frequency sentence.
  • the first recommended word corresponding to the group replace the keyword with the preset similarity threshold in the keyword set with the combined keyword, that is, the first recommended word, to obtain an updated keyword set, the updated keyword set , is either the keyword of the first recommended word, or the second recommended word corresponding to the high-frequency sentence group. According to the combination of the first keyword and the second keyword in the high-frequency sentence group in the high-frequency sentence group, the obtained corresponding relationship between each first keyword and each second keyword is determined.
  • the first keyword may be "go to the meeting room”
  • the second keyword may be "meeting”
  • the first keyword may be "meeting”
  • the second keyword is "going to the conference room”. Since this high-frequency sentence group contains only one high-frequency sentence, the first and second recommended words corresponding to the high-frequency sentence group are in one-to-one correspondence.
  • the keywords whose similarity exceeds the preset threshold are "I want to eat”.
  • a recommended word library corresponding to the user is generated according to the obtained first recommended word and second recommended word.
  • the first recommended word corresponds to the second scene information
  • the second recommended word corresponds to the first recommended word.
  • Step 202 in the case that the display interface of the electronic device includes an input area, obtain first scene information corresponding to the display interface.
  • the first scene information includes at least one of an application to which the display interface belongs, time information included in the display interface, and a geographic location of the electronic device where the display interface is located.
  • step 101 For this step, reference may be made to step 101, which is not further described in this embodiment of the present application.
  • Step 203 Search the recommended word database for a first recommended word corresponding to the second scene information that matches the first scene information, and a second recommended word corresponding to the first recommended word.
  • the recommended word database can be searched for the first recommended word corresponding to the second scene information that matches the first scene information corresponding to the display interface, and the first recommended word corresponding to the first recommended word Two recommendation words.
  • the acquired first scene information corresponding to the display interface is "weekend afternoon, chat software”
  • the second recommendation words corresponding to the first recommendation words are "hot pot”, “barbecue”, and "crayfish”.
  • Step 204 displaying M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
  • the first recommended word and the second recommended word are extracted from high-frequency sentences of the user, and the first recommended word and the second recommended word alone do not constitute a completed sentence. Therefore, The first recommended word and the second recommended word to be determined are combined according to the corresponding relationship between the two to generate target recommendation information including both the first recommended word and the second recommended word.
  • the generated target recommendation information is displayed in the recommendation display area for users to choose.
  • the number of the second recommended words corresponding to the first recommended word is greater than 1, and the first recommended word and the second recommended word are combined in step 204.
  • Generate target recommendation information including:
  • Step S21 in at least two second recommendation words corresponding to the first recommendation word, determine a default second recommendation word
  • Step S22 Combine the first recommended word and the default second recommended word to generate target recommendation information.
  • the number of second recommended words corresponding to the first recommended word is greater than 1, according to the user's historical on-screen messages within a preset period, the usage of the second recommended word, and the user's retrieval information on the search engine , browsing information, etc. to determine the weight of the second recommended word, and use the second recommended word with the largest weight value as the default second recommended word.
  • the second recommendation word "hot pot” corresponding to the first recommendation word "good to eat” Among “barbecue” and “crawfish”, "hot pot” has the largest weight value, and "hot pot” is used as the default second recommendation word, and the first recommendation word "good to eat” and the default second recommendation word “hot pot” are compared.
  • the combination generates the target recommendation information "I really want to eat hot pot”.
  • Step 205 in response to the triggering operation on the target recommendation information, generate target information according to the target recommendation information.
  • step 205 in response to the triggering operation on the target recommendation information, target information is generated according to the first recommendation word and the second recommendation word included in the target recommendation word, including :
  • target information is generated according to the first recommendation word and the default second recommendation word.
  • the target information can be generated according to the first recommendation word and the second recommendation word contained in the target recommendation information.
  • the target message "I want to eat” can be directly generated with the target information including the first recommendation word "I want to eat” and the default second recommendation word "Hotpot” "Hotpot” can also further analyze the user's behavioral habits, and further optimize the target recommendation information according to the user's behavioral habits, such as commonly used tone words, emoticons, etc., to generate target information, such as "I really want to eat hotpot". It is also possible to obtain nearby businesses that meet the user's needs according to the user's current location, and include business information or business locations in the generated target information, for example, "I really want to eat the hot pot in Zhongmao Plaza".
  • step 205 in response to the triggering operation on the target recommendation information, target information is generated according to the first recommendation word and the second recommendation word included in the target recommendation information, including :
  • Step S31 displaying at least two second recommendation words corresponding to the first recommendation word in the target recommendation information in response to the triggering operation on the default second recommendation word in the target recommendation information;
  • Step S32 determining the target second recommended word in response to the selection operation on the at least two second recommended words
  • Step S33 Generate target information according to the first recommended word and the target second recommended word.
  • the user can perform a trigger operation on the default second recommended word, for example, click the default second recommended word, and the input engine responds to the user's response to the default second recommended word.
  • the triggering operation of the second recommendation word is to display all the second recommendation words corresponding to the first recommendation word in the target recommendation information in the recommendation display area for the user to select.
  • the target second recommended word is determined, and the target information is generated according to the first recommended word and the target second recommended word.
  • FIG. 3 a presentation diagram of a second recommended word provided by an embodiment of the present application is shown.
  • the determined default second recommended word is "hot pot”, according to the first recommended word and
  • the default recommendation word generates target recommendation information and displays it in the recommendation display area. If the user is not satisfied with the provided default second recommended word "hot pot”, the user can perform a trigger operation on the default second recommended word, for example, click the default recommended word "hot pot”, the input engine will display the first recommended word in the recommendation display area
  • Other second recommendation words corresponding to "I want to eat such as “barbecue”, “crayfish”, “seafood”.
  • the display order of the second recommended words is determined according to the weight value corresponding to each second recommended word.
  • the weight of the second recommended word may be determined according to the user's historical on-screen messages within a preset period, the usage of the second recommended word, the user's retrieval information on the search engine, browsing information, and the like.
  • first recommended words there may also be multiple first recommended words determined according to the first scene information.
  • the default first recommended word is determined according to the weight value of the first recommended word.
  • a recommended word, and target recommendation information is generated and displayed according to the default first recommended word and the second recommended word.
  • the weight value of the first recommendation word may be determined according to the degree of matching between the second scene information corresponding to the first recommendation word and the first scene information, the user's historical screen information, and the like.
  • a trigger operation can be performed on the target recommendation information containing the default first recommendation word, and the input engine responds to the user's trigger operation and displays each first recommendation word and second recommendation word in the recommendation display area.
  • Target recommendation information generated by the combination of recommended words for users to choose.
  • FIG. 4 a presentation diagram of a first recommended word provided by an embodiment of the present application is shown.
  • the default first recommendation word is "together”
  • the target recommendation information "Let's go to eat together” containing the default first recommendation word "together” is displayed in the recommendation display area. If the user is not satisfied with the displayed target recommendation information, you can click More options corresponding to the target recommendation information "Let's go to eat together", so as to view the target recommendation information generated by the combination of each first recommendation word and second recommendation word matching the first scene information.
  • the first display order of the first recommended words is determined according to the weight value of each first recommended word , and then determine the second display order of the second recommendation word corresponding to the first recommendation word according to the weight value of each second recommendation word corresponding to the first recommendation word, and determine each first recommendation word according to the first display order and the second display order.
  • the display order of the target recommendation information generated by the combination of the recommended word and the second recommended word.
  • the user can also directly input the message content in the input box, and the input engine filters the target recommendation information according to the message content input by the user, The filtered target recommendation information is displayed in the display area, or the target information is directly generated according to the content of the message input by the user.
  • Step 206 in the case of receiving the confirmation operation for the target information, input the target information.
  • the target information In generating the target information, it is further judged whether the generated target information meets the user's requirements, and if the user's confirmation operation on the target information is received, the target information is used for input. For example, the generated target information is "I really want to eat hot pot in China Trade Plaza", but the user wants to go to other places, then the user can modify the generated target information, for example, to "I really want to eat Wanda Plaza's hot pot" "Hotpot", the target information is input only when the user's confirmation operation for the target information is received, so as to prevent the input target information from not meeting the user's expectations.
  • the method further includes: updating the recommended vocabulary corresponding to the user according to the input target information and the first scene information.
  • the user's recommended word database may also be updated according to the matching situation between the input target information and the target recommended words provided by the input engine, and the first scene information corresponding to the target information. Specifically, if the user generates the target information according to the target recommendation information, the second scene information corresponding to the first recommendation word included in the target recommendation information in the recommendation word database is updated according to the first scene information.
  • the display interface when the display interface includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information.
  • target information is generated according to the first recommendation word and the second recommendation word contained in the target recommendation information; after receiving the confirmation of the target information In the case of operation, the target information is used for input, thereby improving the efficiency and accuracy of information input.
  • the execution subject may be an information recommendation device, or a control module in the information recommendation device for executing the information recommendation method.
  • the method provided by the embodiment of the present application is described by taking the information recommending apparatus executing the information recommending method as an example.
  • FIG. 5 it shows a structural diagram of an information recommendation apparatus provided in Embodiment 3 of the present application, which specifically includes:
  • the first scene information obtaining module 301 is configured to obtain first scene information corresponding to the display interface when the display interface of the electronic device includes an input area.
  • the first scene information includes at least one item of time, location, and application program corresponding to the display interface.
  • the recommended word determination module 302 is configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word.
  • the target recommendation word output module 303 is configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
  • the information recommendation apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (Personal Digital Assistant).
  • the electronic device can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc. , the embodiments of the present application are not specifically limited.
  • Network Attached Storage NAS
  • PC Personal Computer
  • TV Television
  • teller machine teller machine
  • self-service machine etc.
  • the embodiments of the present application are not specifically limited.
  • the information recommendation device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the information recommendation apparatus provided in the embodiments of the present application can implement each process implemented by the apparatus in the method embodiments of FIG. 1 to FIG. 2 , and to avoid repetition, details are not repeated here.
  • the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information.
  • the second recommendation word corresponding to the first recommendation word display M pieces of target recommendation information based on the first recommendation word and the second recommendation word, and the target recommendation information can be determined according to the scene information, which improves the real-time performance of information recommendation and accuracy.
  • FIG. 6 shows a structural diagram of an information recommendation apparatus provided in Embodiment 4 of the present application, which specifically includes:
  • the recommended thesaurus generating module 401 is configured to generate a recommended thesaurus corresponding to the user according to the historical on-screen information of the user and the second scene information corresponding to the historical on-screen information, and the recommended thesaurus includes pre-recommended thesaurus.
  • the preset first recommended word and the second recommended word, the preset first recommended word corresponds to the second scene information.
  • the recommended thesaurus generating module 401 includes:
  • High-frequency sentence determination sub-module 4011 configured to determine at least two high-frequency sentences of the user according to the screen-on-screen frequency of the user's historical screen-on-screen information;
  • Clustering sub-module 4012 configured to cluster the at least two high-frequency sentences according to the second scene information corresponding to the high-frequency sentences to obtain a high-frequency sentence group;
  • the first recommended word determination sub-module 4013 is configured to determine the first recommended words corresponding to the at least two high-frequency sentences according to the high-frequency sentence group and the preset similarity condition;
  • the second recommended word determination sub-module 4014 is configured to extract the second inferred word corresponding to the first recommended word in the at least two high-frequency sentences;
  • a recommended thesaurus generating sub-module 4015 is configured to generate a recommended thesaurus corresponding to the user according to the first recommended word and the second recommended word.
  • the first scene information acquisition module 402 is configured to acquire first scene information corresponding to the display interface when the display interface includes an input area, where the first scene information includes the time, place, and belonging to the display interface. At least one of the applications.
  • the recommended word determination module 403 is configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word.
  • the recommended word determination module 403 includes:
  • the recommended word determination sub-module 4031 is used to search the recommended word database for the first recommended word corresponding to the second scene information that matches the first scene information, and the first recommended word corresponding to the first recommended word. Two recommendation words.
  • the target recommendation word output module 404 is configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
  • the target recommendation information output module 404 includes:
  • the default second recommended word determination sub-module 4041 is configured to determine a default second recommended word among at least two second recommended words corresponding to the first recommended word;
  • the recommended word module generation sub-module 4042 is used to combine the first recommended word and the default second recommended word to generate target recommendation information
  • the target message generating module 405 is configured to generate target information according to the target recommendation information in response to a triggering operation on the target recommendation information.
  • the target information generation module 405 includes:
  • the first target information generation sub-module 4051 is configured to generate target information according to the first recommended word and the default second recommended word in response to the confirmation operation for the target recommendation information.
  • the target information generation module 405 includes:
  • Second recommendation word display sub-module 4052 configured to display at least two second recommendation words corresponding to the first recommendation word in the target recommendation information in response to a triggering operation on the default second recommendation word in the target recommendation information word of recommendation;
  • the target second recommended word determination sub-module 4053 is configured to determine the target second recommended word in response to the selection operation on the at least two second recommended words;
  • the second target message generation sub-module 4054 is configured to generate target information according to the first recommendation word and the target second recommendation word;
  • the target information recommendation module 406 is configured to input the target information in the case of receiving the confirmation operation for the target information.
  • the device further includes:
  • the recommended thesaurus updating module 407 is configured to update the recommended thesaurus corresponding to the user according to the inputted target information and the first scene information.
  • the information recommendation 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 apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the information recommendation device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the information recommendation apparatus provided in the embodiments of the present application can implement each process implemented by the apparatus in the method embodiments of FIG. 1 to FIG. 2 , and to avoid repetition, details are not repeated here.
  • the display interface of the electronic device includes an input box
  • the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information.
  • an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • the program or instruction is executed by the processor 701
  • the operation of any one of the above-mentioned information recommendation methods is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
  • the electronic device 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the operation of any one of the foregoing information recommendation methods is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium include tangible (non-transitory) computer-readable storage media such as electronic circuits, semiconductor memory devices, computer read-only memory (ROM), erasable ROM (EROM), Random Access Memory (RAM), flash memory, floppy disk, CD-ROM, hard disk, magnetic disk or optical disk, etc.
  • An 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 run a program or an instruction to implement any one of the above information recommendation methods
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement any one of the above information recommendation methods
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed is an information recommendation method, which belongs to the technical field of communications. The method comprises: when a display interface of an electronic device comprises an input area, acquiring first scene information corresponding to the display interface, wherein the first scene information comprises at least one of an application program to which the display interface belongs, time information included in the display interface, and a geographical position of the electronic device; determining a first recommended word according to the first scene information, and determining a second recommended word corresponding to the first recommended word; and displaying M pieces of target recommendation information on the basis of the first recommended word and the second recommended word.

Description

消息内容的输入方法、装置和电子设备Input method, device and electronic device for message content
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求享有于2020年12月25日提交的中国专利申请202011569076.8的优先权,该申请的全部内容通过引用并入本文中。This application claims priority to Chinese patent application 202011569076.8 filed on December 25, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种输入方法、装置和电子设备。The present application belongs to the field of communication technologies, and in particular relates to an input method, an apparatus and an electronic device.
背景技术Background technique
在通信领域的许多应用中,都会涉及到消息内容的输入,而用户在固定的时间段、固定的场景下,会通过相同的应用程序输入相同或相似的消息内容,例如,经常在午餐时间通过聊天软件输入“去吃饭”,在开会时间段发送“去会议室开会,时间xx,地点xx”,如果用户每天都手动输入这些相同或相似的消息内容,输入过程就会很繁琐,而且输入效率低。In many applications in the field of communication, the input of message content will be involved, and users will input the same or similar message content through the same application in a fixed time period and in a fixed scenario, for example, often through lunchtime The chat software inputs "go to dinner", and sends "go to the meeting room for a meeting, time xx, location xx" during the meeting time period. If the user manually enters these same or similar message content every day, the input process will be very cumbersome and the input efficiency will be Low.
针对这一现象,相关技术中的输入引擎增加了快捷短语或者常用语,用户可以在输入消息内容时,在输入引擎提供的快捷短语或者常用语中选择想要输入的内容,或者,用户可以根据实际需求手动添加常用语,并在输入消息内容时选择合适的常用语作为待输入的消息内容。In response to this phenomenon, the input engine in the related art adds shortcut phrases or common words. When inputting the content of a message, the user can select the desired input content from the shortcut phrases or common words provided by the input engine, or the user can The actual requirement is to manually add common words, and select the appropriate common words as the message content to be input when inputting the message content.
然而,相关技术中的输入引擎提供的输入方法,要么需要用户手动设置推荐信息,要么是系统提供的固定推荐信息,推荐信息的方式不够灵活,准确性差。However, the input method provided by the input engine in the related art either requires the user to manually set the recommendation information, or is fixed recommendation information provided by the system, and the method of the recommendation information is not flexible enough and the accuracy is poor.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种信息推荐方法,能够解决相关技术中基于输入引擎推荐的内容不够灵活,准确性差的问题。The purpose of the embodiments of the present application is to provide an information recommendation method, which can solve the problems of inflexibility and poor accuracy of content recommended based on an input engine in the related art.
第一方面,本申请实施例提供了一种信息推荐方法,该方法包括:In a first aspect, an embodiment of the present application provides an information recommendation method, which includes:
在所述电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,所述第一场景信息包括所述显示界面所属的应用程序、所 述显示界面包含的时间信息、所述电子设备的地理位置中的至少一项;In the case where the display interface of the electronic device includes an input area, acquire first scene information corresponding to the display interface, where the first scene information includes the application to which the display interface belongs and the time included in the display interface at least one of information, the geographic location of the electronic device;
根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;Determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word;
基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。M pieces of target recommendation information are displayed based on the first recommendation word and the second recommendation word.
第二方面,本申请实施例提供了一种信息推荐装置,该装置包括:In a second aspect, an embodiment of the present application provides an information recommendation device, the device comprising:
第一场景信息获取模块,用于在所述电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,所述第一场景信息包括所述显示界面所属的应用程序、所述显示界面包含的时间信息、所述电子设备的地理位置中的至少一项;A first scene information acquisition module, configured to acquire first scene information corresponding to the display interface when the display interface of the electronic device includes an input area, where the first scene information includes the application to which the display interface belongs at least one of a program, time information contained in the display interface, and a geographic location of the electronic device;
推荐词确定模块,用于根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;A recommended word determination module, configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word;
目标推荐信息输出模块,用于基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。A target recommendation information output module, configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,通过在电子设备显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息,提高了信息推荐的准确率和灵活性。In the embodiment of the present application, when the display interface of the electronic device includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information. The second recommended word corresponding to the first recommended word; M pieces of target recommendation information are displayed based on the first recommended word and the second recommended word, which improves the accuracy and flexibility of information recommendation.
附图说明Description of drawings
图1a是本申请实施例一提供的一种信息推荐方法的具体步骤流程图;Fig. 1a is a flowchart of the specific steps of an information recommendation method provided in Embodiment 1 of the present application;
图1b是本申请实施例一提供的另一种信息推荐方法的具体步骤流程图;FIG. 1b is a flowchart of the specific steps of another information recommendation method provided in Embodiment 1 of the present application;
图2是本申请实施例二提供的一种信息推荐方法的具体步骤流程图;FIG. 2 is a flowchart of the specific steps of an information recommendation method provided in Embodiment 2 of the present application;
图3是本申请实施例二提供的一种第二推荐词的展示图;3 is a display diagram of a second recommended word provided in Embodiment 2 of the present application;
图4是本申请实施例二提供的一种第一推荐词的展示图;4 is a display diagram of a first recommended word provided in Embodiment 2 of the present application;
图5是本申请实施例三提供的一种信息推荐装置的结构图;5 is a structural diagram of an information recommendation apparatus provided in Embodiment 3 of the present application;
图6是本申请实施例四提供的一种信息推荐装置的结构图;6 is a structural diagram of an information recommendation apparatus provided in Embodiment 4 of the present application;
图7是本申请实施例五提供的一种电子设备的结构图;7 is a structural diagram of an electronic device provided in Embodiment 5 of the present application;
图8是本申请实施例五提供的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device according to Embodiment 5 of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings 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 those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的语音控制方法和语音控制装置进行详细地说明。The voice control method and voice control apparatus provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
实施例一Example 1
参照图1a,其示出了本申请实施例一提供的一种信息推荐方法的具体步骤。Referring to FIG. 1a, it shows the specific steps of an information recommendation method provided in Embodiment 1 of the present application.
步骤101,在电子设备显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息。Step 101: In the case that the display interface of the electronic device includes an input area, obtain first scene information corresponding to the display interface.
本申请实施例的信息推荐方法可应用于电子设备,所述电子设备可以为移 动终端,如手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(Personal DigitalAssistant,PDA)等,或者,所述电子设备也可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(Personal Computer,PC)、电视机(Television,TV)、柜员机或者自助机等非移动电子设备,本申请实施例不作具体限定,本申请实施例中以移动终端为例进行描述。The information recommendation method in the embodiment of the present application can be applied to electronic equipment, and the electronic equipment can be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer) mobile personal computer (UMPC), netbook or personal digital assistant (Personal Digital Assistant, PDA), or the like, or the electronic device may also be a server, a network attached storage (NetworkAttached Storage, NAS), a personal computer (Personal Computer, PC), A non-mobile electronic device such as a television (Television, TV), a teller machine, or a self-service machine is not specifically limited in this embodiment of the present application, and a mobile terminal is used as an example for description in this embodiment of the present application.
在本申请实施例中,对移动终端的显示界面进行实时检测,如果检测到移动终端的显示界面包括输入区域,说明用户需要进行信息推荐,比如词语推荐、句子推荐等,此时,获取显示界面的第一场景信息。例如,当检测到显示界面为微信聊天界面且包括聊天输入区域时,获取该微信聊天界面对应的第一场景信息,以便根据第一场景信息确定待推荐的目标推荐信息。In the embodiment of the present application, the display interface of the mobile terminal is detected in real time. If it is detected that the display interface of the mobile terminal includes an input area, it means that the user needs to recommend information, such as word recommendation, sentence recommendation, etc. At this time, the display interface is obtained. information of the first scene. For example, when it is detected that the display interface is a WeChat chat interface and includes a chat input area, first scene information corresponding to the WeChat chat interface is acquired, so as to determine target recommendation information to be recommended according to the first scene information.
其中,所述第一场景信息包括所述显示界面所属的应用程序、所述显示界面包含的时间信息、所述电子设备的地理位置中的至少一项。The first scene information includes at least one of an application to which the display interface belongs, time information included in the display interface, and a geographic location of the electronic device.
当检测到电子设备的显示界面包括输入区域时,电子设备可以确定该显示界面所属的应用程序,例如,确定该显示界面属于聊天软件的聊天界面,还是输入引擎的搜索界面,或者是购物软件的搜索界面,等等。对于不同的应用程序,用户经常输入的内容也不相同,因此,在本申请实施例中,可以根据显示界面所属的不同应用程序确定不同的目标推荐信息。对于不同的时间段,用户经常输入的内容也不相同,例如,在中午12点左右用户经常会输入“去哪儿吃饭”,而在周一上午用户经常会输入关于会议通知的内容,因此,在本申请实施例中,在确定显示界面包括输入区域的情况下,可以通过确定该显示界面包含的时间信息,针对不同的时间确定不同的目标推荐信息。此外,在不同的地点,用户的输入内容也会不同,例如,在公司,用户经常需要输入与工作相关的内容,在商场,用户经常输入与购物相关的内容,因此,本申请实施例可以在电子设备的显示界面包括输入区域的情况下,通过确定该电子设备的地理位置确定用户当前所处的地点,进而针对不同的地点确定不同的目标推荐信息。When detecting that the display interface of the electronic device includes an input area, the electronic device can determine the application to which the display interface belongs, for example, determine whether the display interface belongs to the chat interface of chat software, the search interface of the input engine, or the search interface of shopping software Search interface, etc. For different application programs, the content frequently input by the user is also different. Therefore, in this embodiment of the present application, different target recommendation information may be determined according to different application programs to which the display interface belongs. For different time periods, users often enter different content. For example, at around 12:00 noon, users often enter "where to eat", and on Monday morning, users often enter content about meeting notices. Therefore, in this In the application embodiment, when it is determined that the display interface includes an input area, different target recommendation information can be determined for different times by determining the time information included in the display interface. In addition, in different places, the input content of the user will also be different. For example, in a company, users often need to input content related to work, and in a shopping mall, users often input content related to shopping. Therefore, the embodiment of the present application can be used in When the display interface of the electronic device includes an input area, the current location of the user is determined by determining the geographic location of the electronic device, and then different target recommendation information is determined for different locations.
步骤102,根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词。Step 102: Determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word.
用户在某些固定的时间段,或者固定的场景下,或者在特定的应用程序中,会输入一些相同或相似的内容,例如,在每周一上午发送“去XXX会议室开会,时间XXX;地点XXX;参加人XXX,议题XXX”,在中午12点左右,通过聊天类软件输入“去XXX吃饭吧”等信息。The user will input some same or similar content in certain fixed time periods, or fixed scenarios, or in a specific application, for example, send "Go to XXX meeting room for a meeting, time XXX; location every Monday morning. XXX; Participant XXX, topic XXX", at around 12 noon, enter information such as "Let's go to XXX for dinner" through chat software.
为了避免用户经常输入大量重复内容,提高信息推荐的准确性,本申请实施例在接收到用户授权的允许获取用户信息的权限的情况下,获取用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,根据获取到的历史上屏信息和第二场景信息,生成该用户的推荐词库,推荐词库中包含预置的第一推荐词和第二推荐词,预置的第一推荐词与所述第二场景信息相对应。从而当检测到显示界面包括输入框时,可以在推荐词库中查找与显示界面对应的第一场景信息相匹配的第二场景信息对应的第一推荐词,以及与第一推荐词相对应的第二推荐词。In order to prevent the user from frequently inputting a large amount of repetitive content and improve the accuracy of information recommendation, the embodiment of the present application acquires the user's historical up-screen information and the historical up-screen information under the condition that the user's authorization to obtain user information is received. Corresponding second scene information, according to the obtained historical screen information and second scene information, generate the user's recommended thesaurus, the recommended thesaurus includes the preset first recommended word and the second recommended word, and the preset first recommended word and second recommended word. The first recommended word corresponds to the second scene information. Therefore, when it is detected that the display interface includes an input box, the first recommended word corresponding to the second scene information that matches the first scene information corresponding to the display interface and the first recommended word corresponding to the first recommended word can be searched in the recommended vocabulary. Second recommendation.
其中,所述第一推荐词是根据用户的历史上屏消息中出现的高频率语句以及所述高频率语句对应的第二场景信息确定的,具有相同或相似的第二场景信息的高频率语句中包含的相同或语义相近的关键词就是本申请实施例中,例如用户经常在周末下午通过聊天软件给用户发送“好想吃火锅”“好想吃烤肉”“好想吃小龙虾”等消息,那么“好想吃火锅”“好想吃烤肉”“好想吃小龙虾”就是本申请中的高频率语句,这些高频率语句具有相同的第二场景信息“周末下午、聊天软件”,提取这些高频率语句中相同或语义相近的关键词为”好想吃”,那么。“好想吃”就是该用户的一个与“周末下午、聊天软件”这一第二场景信息相对应的第一推荐词。The first recommended word is determined according to high-frequency sentences that appear in the user's historical on-screen messages and the second scene information corresponding to the high-frequency sentences, and the high-frequency sentences that have the same or similar second scene information The same or semantically similar keywords contained in this application are in the embodiments of the present application. For example, users often send messages such as "I want to eat hot pot", "I want to eat barbecue", "I want to eat crayfish" and so on through chat software on weekend afternoons. , then "want to eat hot pot", "want to eat barbecue", and "want to eat crayfish" are high-frequency sentences in this application, and these high-frequency sentences have the same second scene information "weekend afternoon, chat software", extract The same or semantically similar keywords in these high-frequency sentences are "want to eat", then. "I want to eat" is a first recommendation word of the user corresponding to the second scene information of "weekend afternoon, chat software".
本申请实施例中,高频率语句中一般同时包含第一推荐词和第二推荐词,第二推荐词为与第一推荐词相对应的具体内容或选项,如前述,“火锅”、“烤肉”、“小龙虾”就是与第一推荐词“好想吃”相对应的第二推荐词。In the embodiment of the present application, high-frequency sentences generally include both the first recommendation word and the second recommendation word, and the second recommendation word is specific content or options corresponding to the first recommendation word. ” and “Crayfish” are the second recommendation words corresponding to the first recommendation word “I want to eat”.
步骤103,基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。Step 103: Display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
结合前述可知,在本申请实施例中,第一推荐词和第二推荐词是从用户的高频率语句中提取出来的,单独的第一推荐词和单独的第二推荐词并不构成完成的语句,因此,需要确定的第一推荐词和第二推荐词,按照两者之间的对应关系进行组合,生成同时包含第一推荐词和第二推荐词的目标推荐信息。It can be seen from the foregoing that, in the embodiment of the present application, the first recommendation word and the second recommendation word are extracted from the high-frequency sentences of the user, and the first recommendation word and the second recommendation word alone do not constitute a complete Therefore, the first recommendation word and the second recommendation word that need to be determined are combined according to the corresponding relationship between the two to generate target recommendation information that includes both the first recommendation word and the second recommendation word.
例如,当获取到用户对输入引擎的调用操作对应的第一场景信息为“周末下午,聊天软件”时,在预置的推荐词库中查找到与该第一场景信息相匹配的第二场景信息对应的第一推荐词为“好想吃”,以及该第一推荐词对应的第二推荐词有“火锅”、“烤肉”、“小龙虾”,那么,将第一推荐词“好想吃”和这些第二推荐词进行组合,生成目标推荐信息“好想吃火锅”“好想吃烤肉”“好想吃小龙虾”,在推荐展示区域显示生成的目标推荐信息,以供用户选择。For example, when the obtained first scene information corresponding to the user's calling operation to the input engine is "weekend afternoon, chat software", a second scene matching the first scene information is found in the preset recommended vocabulary The first recommendation word corresponding to the information is "want to eat", and the second recommendation word corresponding to the first recommendation word is "hot pot", "barbecue", "crayfish", then, the first recommendation word "want to eat" Combine "eat" with these second recommendation words to generate target recommendation information "I want to eat hot pot", "I want to eat barbecue", "I want to eat crayfish", and the generated target recommendation information is displayed in the recommendation display area for users to choose. .
综上,在本申请实施例中,通过在显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息,能够根据场景信息确定目标推荐信息,提高了确定的目标推荐信息的实时性和准确性。To sum up, in this embodiment of the present application, when the display interface includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information. Describe the second recommendation word corresponding to the first recommendation word; M pieces of target recommendation information are displayed based on the first recommendation word and the second recommendation word, and the target recommendation information can be determined according to the scene information, which improves the determined target recommendation information. real-time and accurate.
在显示目标推荐信息之后,可基于目标推荐信息进行输入。参照图1b,步骤103之后还可以包括:After the target recommendation information is displayed, input may be made based on the target recommendation information. Referring to FIG. 1b, after step 103, it may further include:
步骤104,响应对所述目标推荐信息的触发操作,根据所述目标推荐信息生成目标信息。 Step 104 , in response to the triggering operation on the target recommendation information, generate target information according to the target recommendation information.
若接收到用户对显示的目标推荐信息的触发操作,则确定该目标推荐信息符合用户的实际需求,那么就可以根据该目标推荐信息中包含的第一推荐词和第二推荐词生成目标信息。例如,接收到用户对目标推荐信息“好想吃火锅”的触发操作,可以直接生成目标信息“好想吃火锅”,还可以进一步分析用户的行为习惯,根据用户的行为习惯,如常用的语气词、表情包等,对目标推荐信息进行进一步优化,生成目标信息,如“好想吃火锅呀”。还可以根据用户的当前位置,获取附近符合用户需求的商家,在生成的目标信息中包含商家信息或商家位置,例如,“好想吃中贸广场的火锅呀”。If the user's triggering operation on the displayed target recommendation information is received, it is determined that the target recommendation information meets the actual needs of the user, and then the target information can be generated according to the first recommendation word and the second recommendation word contained in the target recommendation information. For example, after receiving the user's trigger operation on the target recommendation information "I want to eat hot pot", the target information "I want to eat hot pot" can be directly generated, and the user's behavioral habits can be further analyzed. According to the user's behavioral habits, such as the commonly used tone Words, emoticons, etc., further optimize the target recommendation information to generate target information, such as "I really want to eat hot pot". It is also possible to obtain nearby businesses that meet the user's needs according to the user's current location, and include business information or business locations in the generated target information, for example, "I really want to eat the hot pot in Zhongmao Plaza".
步骤105,在接收到对所述目标信息的确认操作的情况下,以所述目标信息进行输入。 Step 105, in the case of receiving the confirmation operation for the target information, input the target information.
在生成目标信息中,进一步判断生成的目标信息是否符合用户需求,若接收到用户对目标信息的确认操作,则以所述目标信息进行输入。例如,生成的目标信息为“好想吃中贸广场的火锅呀”,但是用户想要到其他地点,那么用户就可以对生成的目标信息进行修改,如,修改为“好想吃万达广场的火锅呀”,只有接收到用户对目标信息的确认操作时,才输入所述目标信息,避免输入的目标信息不符合用户预期。从而提高了信息输入的效率和准确率。In generating the target information, it is further judged whether the generated target information meets the user's requirements, and if a user's confirmation operation on the target information is received, the target information is used for input. For example, the generated target information is "I really want to eat hot pot in China Trade Plaza", but the user wants to go to other places, then the user can modify the generated target information, for example, to "I really want to eat Wanda Plaza's hot pot" "Hotpot", the target information is input only when the user's confirmation operation on the target information is received, so as to prevent the input target information from not meeting the user's expectations. Thus, the efficiency and accuracy of information input are improved.
需要说明的是,本申请实施例提供的信息推荐方法,执行主体可以为信息推荐装置,或者该信息推荐装置中的用于执行信息推荐方法的控制模块。本申请实施例中以信息推荐装置执行信息推荐方法为例,说明本申请实施例提供的方法。It should be noted that, in the information recommendation method provided by the embodiments of the present application, the execution subject may be an information recommendation device, or a control module in the information recommendation device for executing the information recommendation method. In the embodiment of the present application, the method provided by the embodiment of the present application is described by taking the information recommending apparatus executing the information recommending method as an example.
实施例二Embodiment 2
参照图2,其示出了本申请实施例二提供的一种信息推荐方法的具体步骤。Referring to FIG. 2 , it shows the specific steps of an information recommendation method provided in Embodiment 2 of the present application.
步骤201,根据所述用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,生成所述用户对应的推荐词库,所述推荐词库中包括预置的第一推荐词和第二推荐词,所述预置的第一推荐词与所述第二场景信息相对应。 Step 201, according to the user's historical on-screen information and the second scene information corresponding to the historical on-screen information, generate a recommended thesaurus corresponding to the user, and the recommended thesaurus includes a preset first recommended word and a second recommended word, where the preset first recommended word corresponds to the second scene information.
在本申请实施例中,在接收到用户授权的允许获取用户信息的权限的情况下,获取用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,根据获取到的历史上屏信息和第二场景信息,生成该用户的推荐词库,推荐词库中包含预置的第一推荐词和第二推荐词,预置的第一推荐词与所述第二场景信息相对应。从而当接收到用户对输入引擎的调用操作时,可以在推荐词库中查找与调用操作对应的第一场景信息相匹配的第二场景信息对应的第一推荐词,以及与第一推荐词相对应的第二推荐词。In the embodiment of the present application, in the case of receiving the permission authorized by the user to obtain user information, the user's historical screen information and the second scene information corresponding to the historical screen information are obtained, and according to the obtained historical screen information screen information and second scene information, and generate a recommended word bank for the user. The recommended word bank includes preset first recommended words and second recommended words, and the preset first recommended words correspond to the second scene information . Therefore, when the user's calling operation to the input engine is received, the first recommended word corresponding to the second scene information that matches the first scene information corresponding to the calling operation, and the first recommended word corresponding to the first recommended word can be searched in the recommended word database. The corresponding second recommendation word.
在本申请的一种可选实施例中,步骤201所述根据所述用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,生成所述用户对应的推荐词库,包括:In an optional embodiment of the present application, in step 201, according to the historical screen information of the user and the second scene information corresponding to the historical screen information, a recommended vocabulary corresponding to the user is generated, including: :
步骤S11、根据所述用户的历史上屏信息的上屏频率确定所述用户的至少两个高频率语句;Step S11, determining at least two high-frequency sentences of the user according to the screen-on-screen frequency of the user's historical screen-on-screen information;
步骤S12、根据所述高频率语句对应的第二场景信息对所述至少两个高频率语句进行聚类,得到高频率语句组;Step S12, clustering the at least two high-frequency sentences according to the second scene information corresponding to the high-frequency sentences to obtain a high-frequency sentence group;
步骤S13、按照所述高频率语句组和预设相似度条件确定所述至少两个高频率语句对应的第一推荐词;Step S13, determining the first recommended words corresponding to the at least two high-frequency sentences according to the high-frequency sentence group and the preset similarity condition;
步骤S14、提取所述至少两个高频率语句中与所述第一推荐词相对应的第二推词;Step S14, extracting the second inferred word corresponding to the first recommended word in the at least two high-frequency sentences;
步骤S15、根据所述第一推荐词和所述第二推荐词生成所述用户对应的推荐词库。Step S15: Generate a recommended word database corresponding to the user according to the first recommended word and the second recommended word.
需要明确的是,本申请实施例是针对用户经常在某些固定的时间段,或者固定的场景下,或者在特定的应用程序中,需要输入一些相同或相似的内容的情况下,为了提高输入引擎推荐内容的实时性和准确性,提供了一种信息推荐方法。本申请实施例中的推荐词,都是用户经常会用到的,因此,在确定该用户的推荐词库之前,需要先确定该用户使用的高频率语句。It should be clear that the embodiments of the present application are aimed at users who often need to input some same or similar content in certain fixed time periods, or in fixed scenarios, or in specific application programs, in order to improve the input The real-time and accuracy of the content recommended by the engine provides an information recommendation method. The recommended words in the embodiments of the present application are all frequently used by the user. Therefore, before determining the recommended word database of the user, it is necessary to determine the high-frequency sentences used by the user.
具体的,根据用户的历史上屏信息的上屏频率,从该用户的历史上屏信息中查找至少两个上屏频率超出预设频率阈值的历史上屏信息,将所述至少两个上屏频率超出预设频率阈值的历史上屏信息作为该用户的至少两个高频率语句。每一个高频率语句对应一个第二场景信息,根据高频率语句对应的第二场景信息对至少两个高频率语句进行聚类,得到高频率语句组。例如,根据用户的历史上屏信息的上屏频率,得到该用户的高频率语句有“去会议室开会”、“好想吃火锅”、“好想吃烤肉”、“好想吃小龙虾”。其中,“去会议室开会”对应的第二场景信息为周一上午,“好想吃火锅”、“好想吃烤肉”、“好想吃小龙虾”对应的第二场景信息均包含周末下午。按照高频率语句对应的第二场景信息对这几个高频率语句进行聚类,得到两个高频率语句组,其中,“去会议室开会”属于一个高频率语句组,“好想吃火锅”、“好想吃烤肉”、“好想吃小龙虾”属于另一个高频率语句组。按照得到的高频率语句组和预设相似度条件确定第一推荐 词,并提取至少两个高频率语句中与第一关键词相对应的第二关键词。具体的,可以先对高频率语句组包含的各个高频率语句进行拆分,得到多个关键词,这些多个关键词形成所述高频率语句组对应的关键词集合,分别计算得到的关键词集合中各个关键词之间的相似度,也就是计算每两个关键词之间的相似度,将相似度超出预设相似度阈值的关键词进行合并,合并后的关键词就是该高频率语句组对应的第一推荐词,用合并后的关键词,也就是第一推荐词替换掉关键词集合中预设相似度阈值的关键词,得到更新后的关键词集合,更新后的关键词集合中,不是第一推荐词的关键词,就是该高频率语句组对应的第二推荐词。根据该高频率语句组中,第一关键词和第二关键词在高频率语句中的组合情况,确定得到的各个第一关键词和各个第二关键词的对应关系。Specifically, according to the frequency of the user's previous screen information, find at least two historical screen information whose screen access frequency exceeds a preset frequency threshold from the user's historical screen information, and select the at least two previous screen information. The historical on-screen information whose frequency exceeds the preset frequency threshold is taken as at least two high-frequency sentences of the user. Each high-frequency sentence corresponds to a second scene information, and at least two high-frequency sentences are clustered according to the second scene information corresponding to the high-frequency sentence to obtain a high-frequency sentence group. For example, according to the user's screen-on-screen frequency in history, the user's high-frequency sentences are "go to the conference room for a meeting", "want to eat hot pot", "want to eat barbecue", "want to eat crayfish" . Among them, the second scene information corresponding to "going to the conference room for a meeting" is Monday morning, and the second scene information corresponding to "I want to eat hot pot", "I want to eat barbecue", and "I want to eat crayfish" all include weekend afternoons. Cluster these high-frequency sentences according to the second scene information corresponding to the high-frequency sentences, and obtain two high-frequency sentence groups. , "I really want to eat barbecue", "I really want to eat crayfish" belong to another high-frequency sentence group. The first recommended word is determined according to the obtained high-frequency sentence group and the preset similarity condition, and the second keyword corresponding to the first keyword in at least two high-frequency sentences is extracted. Specifically, each high-frequency sentence included in the high-frequency sentence group may be split first to obtain multiple keywords, and these multiple keywords form a keyword set corresponding to the high-frequency sentence group, and the obtained keywords are calculated respectively. The similarity between each keyword in the set, that is, the similarity between each two keywords is calculated, and the keywords whose similarity exceeds the preset similarity threshold are combined, and the combined keyword is the high-frequency sentence. The first recommended word corresponding to the group, replace the keyword with the preset similarity threshold in the keyword set with the combined keyword, that is, the first recommended word, to obtain an updated keyword set, the updated keyword set , is either the keyword of the first recommended word, or the second recommended word corresponding to the high-frequency sentence group. According to the combination of the first keyword and the second keyword in the high-frequency sentence group in the high-frequency sentence group, the obtained corresponding relationship between each first keyword and each second keyword is determined.
例如,对于“去会议室开会”所属的高频率语句组,第一关键词可以为”去会议室”,第二关键词可以为“开会”,或者,第一关键词可以为“开会”,第二关键词为“去会议室”,由于在这个高频率语句组中,只包含一个高频率语句,所以,该高频率语句组对应的第一推荐词和第二推荐词一一对应。对于“好想吃火锅”、“好想吃烤肉”、“好想吃小龙虾”所属的高频率语句组,明显相似度超出预设阈值的关键词为“好想吃”,因此,“好想吃”就是该高频率语句组的第一推荐词,那么,在各个高频率语句中,与“好想吃”组合出现的“火锅”、“烤肉”、“小龙虾”就是该第一推荐词对应的第二推荐词。For example, for the high-frequency sentence group to which "go to the meeting room for a meeting", the first keyword may be "go to the meeting room", the second keyword may be "meeting", or the first keyword may be "meeting", The second keyword is "going to the conference room". Since this high-frequency sentence group contains only one high-frequency sentence, the first and second recommended words corresponding to the high-frequency sentence group are in one-to-one correspondence. For the high-frequency sentence groups to which "I want to eat hot pot", "I want to eat barbecue", and "I want to eat crayfish", the keywords whose similarity exceeds the preset threshold are "I want to eat". Therefore, "Good "Want to eat" is the first recommendation word of the high-frequency sentence group, then, in each high-frequency sentence, "hot pot", "barbecue", and "crayfish" that appear in combination with "want to eat" are the first recommendation. The second recommended word corresponding to the word.
根据得到的第一推荐词和第二推荐词生成所述用户对应的推荐词库。在该用户的推荐词库中,第一推荐词与第二场景信息相对应,第二推荐词与第一推荐词相对应。A recommended word library corresponding to the user is generated according to the obtained first recommended word and second recommended word. In the user's recommended word database, the first recommended word corresponds to the second scene information, and the second recommended word corresponds to the first recommended word.
步骤202,在电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息。 Step 202 , in the case that the display interface of the electronic device includes an input area, obtain first scene information corresponding to the display interface.
其中,所述第一场景信息包括所述显示界面所属的应用程序、所述显示界面包含的时间信息、所述显示界面所在电子设备的地理位置中的至少一项。The first scene information includes at least one of an application to which the display interface belongs, time information included in the display interface, and a geographic location of the electronic device where the display interface is located.
该步骤可以参照步骤101,本申请实施例在此不做进一步赘述。For this step, reference may be made to step 101, which is not further described in this embodiment of the present application.
步骤203,在所述推荐词库中查找与所述第一场景信息相匹配的第二场景 信息对应的第一推荐词,以及与所述第一推荐词相对应的第二推荐词。Step 203: Search the recommended word database for a first recommended word corresponding to the second scene information that matches the first scene information, and a second recommended word corresponding to the first recommended word.
当检测到显示界面包括输入区域时,可以在推荐词库中查找与显示界面对应的第一场景信息相匹配的第二场景信息对应的第一推荐词,以及与第一推荐词相对应的第二推荐词。When it is detected that the display interface includes an input area, the recommended word database can be searched for the first recommended word corresponding to the second scene information that matches the first scene information corresponding to the display interface, and the first recommended word corresponding to the first recommended word Two recommendation words.
例如用户经常在周末下午通过聊天软件给朋友发送“好想吃火锅”“好想吃烤肉”“好想吃小龙虾”等消息,那么“好想吃火锅”“好想吃烤肉”“好想吃小龙虾”就是本申请中的高频率语句,这些高频率语句具有相同的第二场景信息“周末下午、聊天软件”,提取这些高频率语句中相同或语义相近的关键词为”好想吃”,那么。“好想吃”就是该用户的一个与“周末下午、聊天软件”这一第二场景信息相对应的第一推荐词,“火锅”、“烤肉”、“小龙虾”就是与第一推荐词“好想吃”相对应的第二推荐词。For example, users often send messages such as "I want to eat hot pot", "I want to eat barbecue", "I want to eat crayfish" and other messages through chat software on weekend afternoons, then "I want to eat hot pot", "I want to eat barbecue", "I want "Eat crayfish" is the high-frequency sentence in this application, and these high-frequency sentences have the same second scene information "weekend afternoon, chat software", and the same or semantically similar keywords in these high-frequency sentences are extracted as "I want to eat." ",So. "I want to eat" is the user's first recommendation word corresponding to the second scene information of "weekend afternoon, chat software", and "hot pot", "barbecue", and "crayfish" are the first recommendation words. The second recommendation word corresponding to "I want to eat".
当获取到显示界面对应的第一场景信息为“周末下午,聊天软件”时,在预置的推荐词库中查找到与该第一场景信息相匹配的第二场景信息对应的第一推荐词为“好想吃”,以及该第一推荐词对应的第二推荐词有“火锅”、“烤肉”、“小龙虾”。When the acquired first scene information corresponding to the display interface is "weekend afternoon, chat software", find the first recommended word corresponding to the second scene information that matches the first scene information in the preset recommended word database It is "good to eat", and the second recommendation words corresponding to the first recommendation words are "hot pot", "barbecue", and "crayfish".
步骤204,基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。 Step 204, displaying M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
在本申请实施例中,第一推荐词和第二推荐词是从用户的高频率语句中提取出来的,单独的第一推荐词和单独的第二推荐词并不构成完成的语句,因此,需要确定的第一推荐词和第二推荐词,按照两者之间的对应关系进行组合,生成同时包含第一推荐词和第二推荐词的目标推荐信息。In the embodiment of the present application, the first recommended word and the second recommended word are extracted from high-frequency sentences of the user, and the first recommended word and the second recommended word alone do not constitute a completed sentence. Therefore, The first recommended word and the second recommended word to be determined are combined according to the corresponding relationship between the two to generate target recommendation information including both the first recommended word and the second recommended word.
将前述步骤203确定的第一推荐词“好想吃”和第二推荐词“火锅”、“烤肉”、“小龙虾”进行组合,生成目标推荐信息“好想吃火锅”“好想吃烤肉”“好想吃小龙虾”,在推荐展示区域显示生成的目标推荐信息,以供用户选择。Combining the first recommendation word "want to eat" determined in step 203 and the second recommendation words "hot pot", "barbecue" and "crayfish" to generate target recommendation information "want to eat hot pot" and "want to eat barbecue". "I really want to eat crayfish", the generated target recommendation information is displayed in the recommendation display area for users to choose.
在本申请的一种可选实施例中,所述第一推荐词对应的第二推荐词的个数大于1,步骤204所述对所述第一推荐词和所述第二推荐词进行组合生成目标推荐信息,包括:In an optional embodiment of the present application, the number of the second recommended words corresponding to the first recommended word is greater than 1, and the first recommended word and the second recommended word are combined in step 204. Generate target recommendation information, including:
步骤S21、在所述第一推荐词对应的至少两个第二推荐词中,确定默认第 二推荐词;Step S21, in at least two second recommendation words corresponding to the first recommendation word, determine a default second recommendation word;
步骤S22、对所述第一推荐词和所述默认第二推荐词进行组合生成目标推荐信息。Step S22: Combine the first recommended word and the default second recommended word to generate target recommendation information.
具体的,当第一推荐词对应的第二推荐词的个数大于1时,根据用户在预设周期内的历史上屏消息、第二推荐词的使用情况、用户在搜索引擎上的检索信息、浏览信息等确定第二推荐词的权重,并将权重值最大的第二推荐词作为默认第二推荐词。例如,用户在一天前查看了火锅的推荐菜品及用户评价,而没有在近期浏览烤肉、小龙虾的相关信息,则在第一推荐词“好想吃”对应的第二推荐词“火锅”、“烤肉”、“小龙虾”中,“火锅”的权重值最大,将“火锅”作为默认第二推荐词,并将第一推荐词“好想吃”和默认第二推荐词“火锅”进行组合生成目标推荐信息“好想吃火锅”。Specifically, when the number of second recommended words corresponding to the first recommended word is greater than 1, according to the user's historical on-screen messages within a preset period, the usage of the second recommended word, and the user's retrieval information on the search engine , browsing information, etc. to determine the weight of the second recommended word, and use the second recommended word with the largest weight value as the default second recommended word. For example, if a user viewed the recommended dishes and user reviews of hot pot a day ago, but has not browsed the relevant information about barbecue and crayfish recently, the second recommendation word "hot pot" corresponding to the first recommendation word "good to eat", Among "barbecue" and "crawfish", "hot pot" has the largest weight value, and "hot pot" is used as the default second recommendation word, and the first recommendation word "good to eat" and the default second recommendation word "hot pot" are compared. The combination generates the target recommendation information "I really want to eat hot pot".
步骤205,响应对所述目标推荐信息的触发操作,根据所述目标推荐信息生成目标信息。 Step 205, in response to the triggering operation on the target recommendation information, generate target information according to the target recommendation information.
在本申请的一种可选实施例中,步骤205所述响应对所述目标推荐信息的触发操作,根据所述目标推荐词中包含的第一推荐词和第二推荐词生成目标信息,包括:In an optional embodiment of the present application, in step 205, in response to the triggering operation on the target recommendation information, target information is generated according to the first recommendation word and the second recommendation word included in the target recommendation word, including :
响应对所述目标推荐信息的确认操作,根据所述第一推荐词和所述默认第二推荐词生成目标信息。In response to the confirming operation for the target recommendation information, target information is generated according to the first recommendation word and the default second recommendation word.
若接收到用户对显示的目标推荐信息的确认操作,则确定该目标推荐信息符合用户的实际需求,那么就可以根据该目标推荐信息中包含的第一推荐词和第二推荐词生成目标信息。例如,接收到用户对目标推荐信息“好想吃火锅”的确认操作,可以直接生成目标信息包含第一推荐词“好想吃”和默认第二推荐词“火锅”的目标消息“好想吃火锅”,还可以进一步分析用户的行为习惯,根据用户的行为习惯,如常用的语气词、表情包等,对目标推荐信息进行进一步优化,生成目标信息,如“好想吃火锅呀”。还可以根据用户的当前位置,获取附近符合用户需求的商家,在生成的目标信息中包含商家信息或商家位置,例如,“好想吃中贸广场的火锅呀”。If the user's confirmation operation on the displayed target recommendation information is received, it is determined that the target recommendation information meets the actual needs of the user, and then the target information can be generated according to the first recommendation word and the second recommendation word contained in the target recommendation information. For example, after receiving the user's confirmation operation on the target recommendation information "I want to eat hot pot", the target message "I want to eat" can be directly generated with the target information including the first recommendation word "I want to eat" and the default second recommendation word "Hotpot" "Hotpot" can also further analyze the user's behavioral habits, and further optimize the target recommendation information according to the user's behavioral habits, such as commonly used tone words, emoticons, etc., to generate target information, such as "I really want to eat hotpot". It is also possible to obtain nearby businesses that meet the user's needs according to the user's current location, and include business information or business locations in the generated target information, for example, "I really want to eat the hot pot in Zhongmao Plaza".
在本申请的一种可选实施例中,步骤205所述响应对所述目标推荐信息的触发操作,根据所述目标推荐信息中包含的第一推荐词和第二推荐词生成目标信息,包括:In an optional embodiment of the present application, in step 205, in response to the triggering operation on the target recommendation information, target information is generated according to the first recommendation word and the second recommendation word included in the target recommendation information, including :
步骤S31、响应对所述目标推荐信息中的所述默认第二推荐词的触发操作,显示所述目标推荐信息中的第一推荐词对应的至少两个第二推荐词;Step S31, displaying at least two second recommendation words corresponding to the first recommendation word in the target recommendation information in response to the triggering operation on the default second recommendation word in the target recommendation information;
步骤S32、响应对所述至少两个第二推荐词的选择操作,确定目标第二推荐词;Step S32, determining the target second recommended word in response to the selection operation on the at least two second recommended words;
步骤S33、根据所述第一推荐词和所述目标第二推荐词生成目标信息。Step S33: Generate target information according to the first recommended word and the target second recommended word.
在本申请实施例中,若用户对输入引擎提供的默认第二推荐词不满意,用户可以对默认第二推荐词执行触发操作,例如,点击默认第二推荐词,输入引擎响应于用户对默认第二推荐词的触发操作,在推荐展示区域展示目标推荐信息中的第一推荐词对应的所有第二推荐词,以供用户选择。根据用户的选择操作,确定目标第二推荐词,并根据第一推荐词和目标第二推荐词生成目标信息。In this embodiment of the present application, if the user is not satisfied with the default second recommended word provided by the input engine, the user can perform a trigger operation on the default second recommended word, for example, click the default second recommended word, and the input engine responds to the user's response to the default second recommended word. The triggering operation of the second recommendation word is to display all the second recommendation words corresponding to the first recommendation word in the target recommendation information in the recommendation display area for the user to select. According to the user's selection operation, the target second recommended word is determined, and the target information is generated according to the first recommended word and the target second recommended word.
参照图3,示出了本申请实施例提供的一种第二推荐词的展示图。如图2所示,假设当确定的第一推荐词为“好想吃”时,根据各个第二推荐词的权重值,确定的默认第二推荐词为“火锅”,根据第一推荐词和默认推荐词生成目标推荐信息,并显示在推荐展示区域内。若用户对提供的默认第二推荐词“火锅”不满意,则可以对默认第二推荐词执行触发操作,例如点击默认推荐词“火锅”,输入引擎就会在推荐显示区域显示第一推荐词“好想吃”对应的其他第二推荐词,例如“烤肉”、“小龙虾”、“海鲜”。第二推荐词的显示顺序是根据各个第二推荐词对应的权重值决定的。具体的,可以根据用户在预设周期内的历史上屏消息、第二推荐词的使用情况、用户在搜索引擎上的检索信息、浏览信息等确定第二推荐词的权重。Referring to FIG. 3 , a presentation diagram of a second recommended word provided by an embodiment of the present application is shown. As shown in Fig. 2, suppose that when the determined first recommended word is "good to eat", according to the weight value of each second recommended word, the determined default second recommended word is "hot pot", according to the first recommended word and The default recommendation word generates target recommendation information and displays it in the recommendation display area. If the user is not satisfied with the provided default second recommended word "hot pot", the user can perform a trigger operation on the default second recommended word, for example, click the default recommended word "hot pot", the input engine will display the first recommended word in the recommendation display area Other second recommendation words corresponding to "I want to eat", such as "barbecue", "crayfish", "seafood". The display order of the second recommended words is determined according to the weight value corresponding to each second recommended word. Specifically, the weight of the second recommended word may be determined according to the user's historical on-screen messages within a preset period, the usage of the second recommended word, the user's retrieval information on the search engine, browsing information, and the like.
可选地,在本申请实施例中,根据第一场景信息确定的第一推荐词也可能存在多个,当第一推荐词的数目大于1时,根据第一推荐词的权重值确定默认第一推荐词,根据默认第一推荐词和第二推荐词生成目标推荐信息并显示。其中,第一推荐词的权重值可以根据第一推荐词对应的第二场景信息与第一场景 信息的匹配度、用户的历史上屏信息等确定。若用户对显示的目标推荐信息不满意,可以通过对包含默认第一推荐词的目标推荐信息执行触发操作,输入引擎响应于用户的触发操作,在推荐显示区域显示各个第一推荐词和第二推荐词组合生成的目标推荐信息,以供用户选择。Optionally, in this embodiment of the present application, there may also be multiple first recommended words determined according to the first scene information. When the number of first recommended words is greater than 1, the default first recommended word is determined according to the weight value of the first recommended word. A recommended word, and target recommendation information is generated and displayed according to the default first recommended word and the second recommended word. Wherein, the weight value of the first recommendation word may be determined according to the degree of matching between the second scene information corresponding to the first recommendation word and the first scene information, the user's historical screen information, and the like. If the user is not satisfied with the displayed target recommendation information, a trigger operation can be performed on the target recommendation information containing the default first recommendation word, and the input engine responds to the user's trigger operation and displays each first recommendation word and second recommendation word in the recommendation display area. Target recommendation information generated by the combination of recommended words for users to choose.
参照图4,示出了本申请实施例提供的一种第一推荐词的展示图。假设确定默认第一推荐词为“一起”,在推荐显示区域显示包含默认第一推荐词“一起”的目标推荐信息“一起去吃饭吧”,若用户对显示的目标推荐信息不满意,可以点击目标推荐信息“一起去吃饭吧”对应的更多选项,从而查看与第一场景信息相匹配的各个第一推荐词与第二推荐词组合生成的目标推荐信息。Referring to FIG. 4 , a presentation diagram of a first recommended word provided by an embodiment of the present application is shown. Suppose it is determined that the default first recommendation word is "together", and the target recommendation information "Let's go to eat together" containing the default first recommendation word "together" is displayed in the recommendation display area. If the user is not satisfied with the displayed target recommendation information, you can click More options corresponding to the target recommendation information "Let's go to eat together", so as to view the target recommendation information generated by the combination of each first recommendation word and second recommendation word matching the first scene information.
其中,若第一场景信息对应多个第一推荐词,存在至少一个第一推荐词对应多个第二推荐词,则根据各个第一推荐词的权重值确定第一推荐词的第一显示顺序,再根据第一推荐词对应的各个第二推荐词的权重值,确定该第一推荐词对应的第二推荐词的第二显示顺序,根据第一显示顺序和第二显示顺序确定各个第一推荐词和第二推荐词组合生成的目标推荐信息的显示顺序。Wherein, if the first scene information corresponds to a plurality of first recommended words, and there exists at least one first recommended word corresponding to a plurality of second recommended words, the first display order of the first recommended words is determined according to the weight value of each first recommended word , and then determine the second display order of the second recommendation word corresponding to the first recommendation word according to the weight value of each second recommendation word corresponding to the first recommendation word, and determine each first recommendation word according to the first display order and the second display order. The display order of the target recommendation information generated by the combination of the recommended word and the second recommended word.
可选地,在本申请实施例中,若用户对展示区域显示的目标推荐信息不满意,也可以直接在输入框内输入消息内容,输入引擎根据用户输入的消息内容对目标推荐信息进行筛选,在展示区域显示筛选后的目标推荐信息,或者,直接根据用户输入的消息内容生成目标信息。Optionally, in this embodiment of the present application, if the user is not satisfied with the target recommendation information displayed in the display area, the user can also directly input the message content in the input box, and the input engine filters the target recommendation information according to the message content input by the user, The filtered target recommendation information is displayed in the display area, or the target information is directly generated according to the content of the message input by the user.
步骤206,在接收到对所述目标信息的确认操作的情况下,以所述目标信息进行输入。 Step 206, in the case of receiving the confirmation operation for the target information, input the target information.
在生成目标信息中,进一步判断生成的目标信息是否符合用户需求,若接收到用户对目标信息的确认操作,则以该目标信息进行输入。例如,生成的目标信息为“好想吃中贸广场的火锅呀”,但是用户想要到其他地点,那么用户就可以对生成的目标信息进行修改,如,修改为“好想吃万达广场的火锅呀”,只有接收到用户对目标信息的确认操作时,输入所述目标信息,避免输入的目标信息不符合用户预期。In generating the target information, it is further judged whether the generated target information meets the user's requirements, and if the user's confirmation operation on the target information is received, the target information is used for input. For example, the generated target information is "I really want to eat hot pot in China Trade Plaza", but the user wants to go to other places, then the user can modify the generated target information, for example, to "I really want to eat Wanda Plaza's hot pot" "Hotpot", the target information is input only when the user's confirmation operation for the target information is received, so as to prevent the input target information from not meeting the user's expectations.
可选的,在步骤206之后,所述方法还包括:根据输入的所述目标信息以 及所述第一场景信息,更新所述用户对应的推荐词库。Optionally, after step 206, the method further includes: updating the recommended vocabulary corresponding to the user according to the input target information and the first scene information.
在申请实施例中,还可以根据输入的目标信息和输入引擎提供的目标推荐词的匹配情况,以及该目标信息对应的第一场景信息,更新该用户的推荐词库。具体的,若用户根据目标推荐信息生成目标信息,则根据第一场景信息更新推荐词库中该目标推荐信息包含的第一推荐词对应的第二场景信息。In the application embodiment, the user's recommended word database may also be updated according to the matching situation between the input target information and the target recommended words provided by the input engine, and the first scene information corresponding to the target information. Specifically, if the user generates the target information according to the target recommendation information, the second scene information corresponding to the first recommendation word included in the target recommendation information in the recommendation word database is updated according to the first scene information.
综上,在本申请实施例中,通过在显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息;能够根据场景信息确定目标推荐信息,提高了信息推荐的准确率和实时性。To sum up, in this embodiment of the present application, when the display interface includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information. describe the second recommendation word corresponding to the first recommendation word; display M pieces of target recommendation information based on the first recommendation word and the second recommendation word; the target recommendation information can be determined according to the scene information, which improves the accuracy of information recommendation and real-time.
在需要进行信息输入时,响应对所述目标推荐信息的触发操作,根据所述目标推荐信息中包含的第一推荐词和第二推荐词生成目标信息;在接收到对所述目标信息的确认操作的情况下,以所述目标信息进行输入,进而提高了信息输入的效率和准确率。When information input is required, in response to the triggering operation on the target recommendation information, target information is generated according to the first recommendation word and the second recommendation word contained in the target recommendation information; after receiving the confirmation of the target information In the case of operation, the target information is used for input, thereby improving the efficiency and accuracy of information input.
需要说明的是,本申请实施例提供的信息推荐方法,执行主体可以为信息推荐装置,或者该信息推荐装置中的用于执行信息推荐方法的控制模块。本申请实施例中以信息推荐装置执行信息推荐方法为例,说明本申请实施例提供的方法。It should be noted that, in the information recommendation method provided by the embodiments of the present application, the execution subject may be an information recommendation device, or a control module in the information recommendation device for executing the information recommendation method. In the embodiment of the present application, the method provided by the embodiment of the present application is described by taking the information recommending apparatus executing the information recommending method as an example.
实施例三Embodiment 3
参照图5,其示出了本申请实施例三提供的一种信息推荐装置的结构图,具体包括:Referring to FIG. 5 , it shows a structural diagram of an information recommendation apparatus provided in Embodiment 3 of the present application, which specifically includes:
第一场景信息获取模块301,用于在电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息。The first scene information obtaining module 301 is configured to obtain first scene information corresponding to the display interface when the display interface of the electronic device includes an input area.
其中,所述第一场景信息包括所述显示界面对应的时间、地点、所属应用程序中的至少一项。Wherein, the first scene information includes at least one item of time, location, and application program corresponding to the display interface.
推荐词确定模块302,用于根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词。The recommended word determination module 302 is configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word.
目标推荐词输出模块303,用于基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。The target recommendation word output module 303 is configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
本申请实施例中的信息推荐装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(Personal Digital Assistant,PDA)等,或者,所述电子设备也可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(Personal Computer,PC)、电视机(Television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The information recommendation apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (Personal Digital Assistant). Assistant, PDA), etc., or, the electronic device can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc. , the embodiments of the present application are not specifically limited.
本申请实施例中的信息推荐装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The information recommendation device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的信息推荐装置能够实现图1至图2的方法实施例中装置实现的各个过程,为避免重复,这里不再赘述。The information recommendation apparatus provided in the embodiments of the present application can implement each process implemented by the apparatus in the method embodiments of FIG. 1 to FIG. 2 , and to avoid repetition, details are not repeated here.
在本申请实施例中,通过在电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息,能够根据场景信息确定目标推荐信息,提高了信息推荐的实时性和准确性。In the embodiment of the present application, when the display interface of the electronic device includes an input area, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information. Describe the second recommendation word corresponding to the first recommendation word; display M pieces of target recommendation information based on the first recommendation word and the second recommendation word, and the target recommendation information can be determined according to the scene information, which improves the real-time performance of information recommendation and accuracy.
实施例四Embodiment 4
参照图6,其示出了本申请实施例四提供的一种信息推荐装置的结构图,具体包括:Referring to FIG. 6 , it shows a structural diagram of an information recommendation apparatus provided in Embodiment 4 of the present application, which specifically includes:
推荐词库生成模块401,用于根据所述用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,生成所述用户对应的推荐词库,所述推荐词库中包括预置的第一推荐词和第二推荐词,所述预置的第一推荐词与所述第二场景信息相对应。The recommended thesaurus generating module 401 is configured to generate a recommended thesaurus corresponding to the user according to the historical on-screen information of the user and the second scene information corresponding to the historical on-screen information, and the recommended thesaurus includes pre-recommended thesaurus. The preset first recommended word and the second recommended word, the preset first recommended word corresponds to the second scene information.
可选地,所述推荐词库生成模块401,包括:Optionally, the recommended thesaurus generating module 401 includes:
高频率语句确定子模块4011,用于根据所述用户的历史上屏信息的上屏频率确定所述用户的至少两个高频率语句;High-frequency sentence determination sub-module 4011, configured to determine at least two high-frequency sentences of the user according to the screen-on-screen frequency of the user's historical screen-on-screen information;
聚类子模块4012,用于根据所述高频率语句对应的第二场景信息对所述至少两个高频率语句进行聚类,得到高频率语句组;Clustering sub-module 4012, configured to cluster the at least two high-frequency sentences according to the second scene information corresponding to the high-frequency sentences to obtain a high-frequency sentence group;
第一推荐词确定子模块4013,用于按照所述高频率语句组和预设相似度条件确定所述至少两个高频率语句对应的第一推荐词;The first recommended word determination sub-module 4013 is configured to determine the first recommended words corresponding to the at least two high-frequency sentences according to the high-frequency sentence group and the preset similarity condition;
第二推荐词确定子模块4014,用于提取所述至少两个高频率语句中与所述第一推荐词相对应的第二推词;The second recommended word determination sub-module 4014 is configured to extract the second inferred word corresponding to the first recommended word in the at least two high-frequency sentences;
推荐词库生成子模块4015,用于根据所述第一推荐词和所述第二推荐词生成所述用户对应的推荐词库。A recommended thesaurus generating sub-module 4015 is configured to generate a recommended thesaurus corresponding to the user according to the first recommended word and the second recommended word.
第一场景信息获取模块402,用于在显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,所述第一场景信息包括所述显示界面对应的时间、地点、所属应用程序中的至少一项。The first scene information acquisition module 402 is configured to acquire first scene information corresponding to the display interface when the display interface includes an input area, where the first scene information includes the time, place, and belonging to the display interface. At least one of the applications.
推荐词确定模块403,用于根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词。The recommended word determination module 403 is configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word.
可选地,所述推荐词确定模块403,包括:Optionally, the recommended word determination module 403 includes:
推荐词确定子模块4031,用于在所述推荐词库中查找与所述第一场景信息相匹配的第二场景信息对应的第一推荐词,以及与所述第一推荐词相对应的第二推荐词。The recommended word determination sub-module 4031 is used to search the recommended word database for the first recommended word corresponding to the second scene information that matches the first scene information, and the first recommended word corresponding to the first recommended word. Two recommendation words.
目标推荐词输出模块404,用于基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。The target recommendation word output module 404 is configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
可选地,所述第一推荐词对应的第二推荐词的个数大于1,所述目标推荐信息输出模块404,包括:Optionally, the number of the second recommendation words corresponding to the first recommendation words is greater than 1, and the target recommendation information output module 404 includes:
默认第二推荐词确定子模块4041,用于在所述第一推荐词对应的至少两个第二推荐词中,确定默认第二推荐词;The default second recommended word determination sub-module 4041 is configured to determine a default second recommended word among at least two second recommended words corresponding to the first recommended word;
推荐词模块生成子模块4042,用于对所述第一推荐词和所述默认第二推荐 词进行组合生成目标推荐信息;The recommended word module generation sub-module 4042 is used to combine the first recommended word and the default second recommended word to generate target recommendation information;
目标消息生成模块405,用于响应对所述目标推荐信息的触发操作,根据所述目标推荐信息生成目标信息。The target message generating module 405 is configured to generate target information according to the target recommendation information in response to a triggering operation on the target recommendation information.
可选地,所述目标信息生成模块405,包括:Optionally, the target information generation module 405 includes:
第一目标信息生成子模块4051,用于响应对所述目标推荐信息的确认操作,根据所述第一推荐词和所述默认第二推荐词生成目标信息。The first target information generation sub-module 4051 is configured to generate target information according to the first recommended word and the default second recommended word in response to the confirmation operation for the target recommendation information.
可选地,所述目标信息生成模块405,包括:Optionally, the target information generation module 405 includes:
第二推荐词显示子模块4052,用于响应对所述目标推荐信息中的所述默认第二推荐词的触发操作,显示所述目标推荐信息中的第一推荐词对应的至少两个第二推荐词;Second recommendation word display sub-module 4052, configured to display at least two second recommendation words corresponding to the first recommendation word in the target recommendation information in response to a triggering operation on the default second recommendation word in the target recommendation information word of recommendation;
目标第二推荐词确定子模块4053,用于响应对所述至少两个第二推荐词的选择操作,确定目标第二推荐词;The target second recommended word determination sub-module 4053 is configured to determine the target second recommended word in response to the selection operation on the at least two second recommended words;
第二目标消息生成子模块4054,用于根据所述第一推荐词和所述目标第二推荐词生成目标信息;The second target message generation sub-module 4054 is configured to generate target information according to the first recommendation word and the target second recommendation word;
目标信息推荐模块406,用于在接收到对所述目标信息的确认操作的情况下,以所述目标信息进行输入。The target information recommendation module 406 is configured to input the target information in the case of receiving the confirmation operation for the target information.
可选的,所述装置还包括:Optionally, the device further includes:
推荐词库更新模块407,用于根据输入的所述目标信息以及所述第一场景信息,更新所述用户对应的推荐词库。The recommended thesaurus updating module 407 is configured to update the recommended thesaurus corresponding to the user according to the inputted target information and the first scene information.
本申请实施例中的信息推荐装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The information recommendation 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 apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的信息推荐装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The information recommendation device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的信息推荐装置能够实现图1至图2的方法实施例中装置实现的各个过程,为避免重复,这里不再赘述。The information recommendation apparatus provided in the embodiments of the present application can implement each process implemented by the apparatus in the method embodiments of FIG. 1 to FIG. 2 , and to avoid repetition, details are not repeated here.
在本申请实施例中,通过在电子设备的显示界面包括输入框的情况下,获取所述显示界面对应的第一场景信息,根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息;能够根据场景信息确定目标推荐信息,提高了确定的目标推荐信息的实时性和准确性。In the embodiment of the present application, when the display interface of the electronic device includes an input box, the first scene information corresponding to the display interface is obtained, the first recommended word is determined according to the first scene information, and the first recommended word is determined according to the first scene information. describe the second recommendation word corresponding to the first recommendation word; display M pieces of target recommendation information based on the first recommendation word and the second recommendation word; the target recommendation information can be determined according to the scene information, which improves the determined target recommendation information real-time and accurate.
实施例五Embodiment 5
可选的,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述信息推荐方法的任意一种实施例的操作,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701, When the program or instruction is executed by the processor 701, the operation of any one of the above-mentioned information recommendation methods is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、以及处理器810等部件。The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
实施例六Embodiment 6
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述信息推荐方法的任意一种实施例的操作,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the operation of any one of the foregoing information recommendation methods is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质的示例包括有形(非暂态)计算机可读存储介质,如电子电路、半导体存储器设备、计算机只读存储器(Read-Only Memory,ROM)、可擦除ROM(EROM)、随机存取存储器(Random Access Memory,RAM)、闪存、软盘、CD-ROM、硬盘、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. Examples of the readable storage medium include tangible (non-transitory) computer-readable storage media such as electronic circuits, semiconductor memory devices, computer read-only memory (ROM), erasable ROM (EROM), Random Access Memory (RAM), flash memory, floppy disk, CD-ROM, hard disk, magnetic disk or optical disk, etc.
实施例七Embodiment 7
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述信息推荐方法的任意一种实施例的操作,且能达到相同的技术效果,为避免重复,这里不再赘述。An 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 run a program or an instruction to implement any one of the above information recommendation methods The operation of this embodiment can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. In addition, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬 件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to related technologies, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (17)

  1. 一种信息推荐方法,应用于电子设备,所述方法包括:An information recommendation method, applied to an electronic device, the method comprising:
    在所述电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,所述第一场景信息包括所述显示界面所属的应用程序、所述显示界面包含的时间信息、所述电子设备的地理位置中的至少一项;In the case where the display interface of the electronic device includes an input area, acquire first scene information corresponding to the display interface, where the first scene information includes the application to which the display interface belongs and the time included in the display interface at least one of information, the geographic location of the electronic device;
    根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;Determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word;
    基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。M pieces of target recommendation information are displayed based on the first recommendation word and the second recommendation word.
  2. 根据权利要求1所述的方法,其中,所述根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词之前,所述方法还包括:The method according to claim 1, wherein before the determining the first recommended word according to the first scene information and determining the second recommended word corresponding to the first recommended word, the method further comprises:
    根据所述用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,生成所述用户对应的推荐词库,所述推荐词库中包括预置的第一推荐词和第二推荐词,所述预置的第一推荐词与所述第二场景信息相对应;According to the user's historical on-screen information and the second scene information corresponding to the historical on-screen information, a recommended thesaurus corresponding to the user is generated, and the recommended thesaurus includes a preset first recommended word and a second recommended word recommendation words, the preset first recommendation words correspond to the second scene information;
    所述根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词,包括:The determining a first recommended word according to the first scene information, and determining a second recommended word corresponding to the first recommended word, includes:
    在所述推荐词库中查找与所述第一场景信息相匹配的第二场景信息对应的第一推荐词,以及与所述第一推荐词相对应的第二推荐词。A first recommended word corresponding to the second scene information matching the first scene information and a second recommended word corresponding to the first recommended word are searched in the recommended word database.
  3. 根据权利要求2所述的方法,其中,所述根据所述用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,生成所述用户对应的推荐词库,包括:The method according to claim 2, wherein the generating a recommended vocabulary corresponding to the user according to the user's historical on-screen information and the second scene information corresponding to the historical on-screen information, comprising:
    根据所述用户的历史上屏信息的上屏频率确定所述用户的至少两个高频率语句;Determine at least two high-frequency sentences of the user according to the screen-on-screen frequency of the user's historical on-screen information;
    根据所述高频率语句对应的第二场景信息对所述至少两个高频率语句进行聚类,得到高频率语句组;Clustering the at least two high-frequency sentences according to the second scene information corresponding to the high-frequency sentences to obtain a high-frequency sentence group;
    按照所述高频率语句组和预设相似度条件确定所述至少两个高频率语句 对应的第一推荐词;Determine the first recommended words corresponding to the at least two high-frequency sentences according to the high-frequency sentence group and the preset similarity condition;
    提取所述至少两个高频率语句中与所述第一推荐词相对应的第二推词;extracting the second inferred word corresponding to the first recommended word in the at least two high-frequency sentences;
    根据所述第一推荐词和所述第二推荐词生成所述用户对应的推荐词库。A recommended word database corresponding to the user is generated according to the first recommended word and the second recommended word.
  4. 根据权利要求1所述的方法,其中,所述第一推荐词对应的第二推荐词的个数大于1,所述对所述第一推荐词和所述第二推荐词进行组合生成目标推荐信息,包括:The method according to claim 1, wherein the number of the second recommended words corresponding to the first recommended word is greater than 1, and the target recommendation is generated by combining the first recommended word and the second recommended word information, including:
    在所述第一推荐词对应的至少两个第二推荐词中,确定默认第二推荐词;Among the at least two second recommended words corresponding to the first recommended word, determine a default second recommended word;
    基于所述第一推荐词和所述默认第二推荐词显示M个目标推荐信息。M pieces of target recommendation information are displayed based on the first recommendation word and the default second recommendation word.
  5. 根据权利要求4所述的方法,其中,所述基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息之后,还包括:The method according to claim 4, wherein after the displaying M pieces of target recommendation information based on the first recommendation word and the second recommendation word, the method further comprises:
    响应对所述目标推荐信息的触发操作,根据所述目标推荐信息生成目标消息。In response to a triggering operation on the target recommendation information, a target message is generated according to the target recommendation information.
  6. 根据权利要求5所述的方法,其中,所述响应对所述目标推荐信息的触发操作,根据所述目标推荐信息生成目标消息,包括:The method according to claim 5, wherein generating the target message according to the target recommendation information in response to a triggering operation on the target recommendation information comprises:
    响应对所述目标推荐信息中的所述默认第二推荐词的触发操作,显示所述目标推荐信息中的第一推荐词对应的至少两个第二推荐词;In response to a triggering operation on the default second recommended word in the target recommendation information, displaying at least two second recommended words corresponding to the first recommended word in the target recommendation information;
    响应对所述至少两个第二推荐词的选择操作,确定目标第二推荐词;determining a target second recommended word in response to the selection operation on the at least two second recommended words;
    根据所述第一推荐词和所述目标第二推荐词生成目标信息。Target information is generated according to the first recommended word and the target second recommended word.
  7. 一种信息推荐装置,应用于电子设备,其中,所述装置包括:An information recommendation apparatus, applied to electronic equipment, wherein the apparatus includes:
    第一场景信息获取模块,用于在所述电子设备的显示界面包括输入区域的情况下,获取所述显示界面对应的第一场景信息,所述第一场景信息包括所述显示界面所属的应用程序、所述显示界面包含的时间信息、所述电子设备的地理位置中的至少一项;A first scene information acquisition module, configured to acquire first scene information corresponding to the display interface when the display interface of the electronic device includes an input area, where the first scene information includes the application to which the display interface belongs at least one of a program, time information contained in the display interface, and a geographic location of the electronic device;
    推荐词确定模块,用于根据所述第一场景信息确定第一推荐词,以及确定与所述第一推荐词相对应的第二推荐词;A recommended word determination module, configured to determine a first recommended word according to the first scene information, and determine a second recommended word corresponding to the first recommended word;
    目标推荐信息输出模块,用于基于所述第一推荐词和所述第二推荐词显示M个目标推荐信息。A target recommendation information output module, configured to display M pieces of target recommendation information based on the first recommendation word and the second recommendation word.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7, wherein the apparatus further comprises:
    推荐词库生成模块,用于根据所述用户的历史上屏信息和所述历史上屏信息对应的第二场景信息,生成所述用户对应的推荐词库,所述推荐词库中包括预置的第一推荐词和第二推荐词,所述预置的第一推荐词与所述第二场景信息相对应;A recommended thesaurus generation module, configured to generate a recommended thesaurus corresponding to the user according to the user's historical on-screen information and the second scene information corresponding to the historical on-screen information, and the recommended thesaurus includes preset The first recommended word and the second recommended word, the preset first recommended word corresponds to the second scene information;
    所述推荐词确定模块,包括:The recommended word determination module includes:
    推荐词确定子模块,用于在所述推荐词库中查找与所述第一场景信息相匹配的第二场景信息对应的第一推荐词,以及与所述第一推荐词相对应的第二推荐词。A recommended word determination submodule, configured to search the recommended word database for a first recommended word corresponding to the second scene information that matches the first scene information, and a second recommended word corresponding to the first recommended word Recommended words.
  9. 根据权利要求8所述的装置,其中,所述推荐词库生成模块,包括:The device according to claim 8, wherein the recommended word library generation module comprises:
    高频率语句确定子模块,用于根据所述用户的历史上屏信息的上屏频率确定所述用户的至少两个高频率语句;a high-frequency sentence determination submodule, configured to determine at least two high-frequency sentences of the user according to the screen-on-screen frequency of the user's historical screen-on-screen information;
    聚类子模块,用于根据所述高频率语句对应的第二场景信息对所述至少两个高频率语句进行聚类,得到高频率语句组;a clustering submodule, configured to cluster the at least two high-frequency sentences according to the second scene information corresponding to the high-frequency sentences to obtain a high-frequency sentence group;
    第一推荐词确定子模块,用于按照所述高频率语句组和预设相似度条件确定所述至少两个高频率语句对应的第一推荐词;a first recommended word determination submodule, configured to determine the first recommended words corresponding to the at least two high-frequency sentences according to the high-frequency sentence group and the preset similarity condition;
    第二推荐词确定子模块,用于提取所述至少两个高频率语句中与所述第一推荐词相对应的第二推词;A second recommended word determination submodule, configured to extract the second recommended word corresponding to the first recommended word in the at least two high-frequency sentences;
    推荐词库生成子模块,用于根据所述第一推荐词和所述第二推荐词生成所述用户对应的推荐词库。A recommended thesaurus generating sub-module is configured to generate a recommended thesaurus corresponding to the user according to the first recommended word and the second recommended word.
  10. 根据权利要求7所述的装置,其中,所述第一推荐词对应的第二推荐词的个数大于1,所述目标推荐信息输出模块,包括:The device according to claim 7, wherein the number of the second recommendation words corresponding to the first recommendation words is greater than 1, and the target recommendation information output module comprises:
    默认第二推荐词确定子模块,用于在所述第一推荐词对应的至少两个第二推荐词中,确定默认第二推荐词;A default second recommended word determination submodule, configured to determine a default second recommended word among at least two second recommended words corresponding to the first recommended word;
    推荐词模块生成子模块,用于基于所述第一推荐词和所述默认第二推荐词显示M个目标推荐信息。The recommended word module generating sub-module is configured to display M pieces of target recommendation information based on the first recommended word and the default second recommended word.
  11. 根据权利要求10所述的装置,其中,所述装置,还包括:The apparatus of claim 10, wherein the apparatus further comprises:
    目标消息生成模块,用于响应对所述目标推荐信息的确认操作,根据所述目标推荐信息生成目标消息。A target message generation module, configured to generate a target message according to the target recommendation information in response to the confirmation operation for the target recommendation information.
  12. 根据权利要求10所述的装置,其中,所述目标消息生成模块,包括:The apparatus according to claim 10, wherein the target message generation module comprises:
    第二推荐词显示子模块,用于响应对所述目标推荐信息中的所述默认第二推荐词的触发操作,显示所述目标推荐信息中的第一推荐词对应的至少两个第二推荐词;A second recommendation word display sub-module, configured to display at least two second recommendations corresponding to the first recommendation word in the target recommendation information in response to a triggering operation on the default second recommendation word in the target recommendation information word;
    目标第二推荐词确定子模块,用于响应对所述至少两个第二推荐词的选择操作,确定目标第二推荐词;a target second recommended word determination submodule, configured to determine the target second recommended word in response to the selection operation on the at least two second recommended words;
    第二目标消息生成子模块,用于根据所述第一推荐词和所述目标第二推荐词生成目标信息。A second target message generating submodule is configured to generate target information according to the first recommendation word and the target second recommendation word.
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6任一所述的信息推荐方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1 to 6 Any of the steps of the information recommendation method.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6任一所述的信息推荐方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, implement the steps of the information recommendation method according to any one of claims 1 to 6.
  15. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6任一项所述的信息推荐方法的步骤。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used to run a program or an instruction to implement the steps of the information recommendation method according to any one of claims 1 to 6 .
  16. 一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至6任一项所述的信息推荐方法的步骤。A computer program product, the computer program product being stored in a non-volatile storage medium, the program product being executed by at least one processor to implement the information recommendation method according to any one of claims 1 to 6 step.
  17. 一种信息推荐设备,所述信息推荐设备被配置成用于执行如权利要求1至6任一项所述的信息推荐方法的步骤。An information recommendation device configured to perform the steps of the information recommendation method according to any one of claims 1 to 6.
PCT/CN2021/139657 2020-12-25 2021-12-20 Message content input method and apparatus, and electronic device WO2022135339A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011569076.8 2020-12-25
CN202011569076.8A CN112596617A (en) 2020-12-25 2020-12-25 Message content input method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022135339A1 true WO2022135339A1 (en) 2022-06-30

Family

ID=75202567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139657 WO2022135339A1 (en) 2020-12-25 2021-12-20 Message content input method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112596617A (en)
WO (1) WO2022135339A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117540057A (en) * 2024-01-10 2024-02-09 广东省电信规划设计院有限公司 Search guiding method and device based on AIGC

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596617A (en) * 2020-12-25 2021-04-02 维沃移动通信有限公司 Message content input method and device and electronic equipment
CN113128183A (en) * 2021-04-21 2021-07-16 南京维沃软件技术有限公司 Input content processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406565A (en) * 2016-09-29 2017-02-15 维沃移动通信有限公司 Vocabulary input method for mobile terminal and mobile terminal
CN109582866A (en) * 2018-11-23 2019-04-05 北京字节跳动网络技术有限公司 Display methods, device, storage medium and the electronic equipment of personalized recommendation word
US20200257377A1 (en) * 2019-02-11 2020-08-13 Samsung Electronics Co., Ltd. Electronic device and method for recommending word in same
CN111737574A (en) * 2020-06-19 2020-10-02 口口相传(北京)网络技术有限公司 Search information acquisition method and device, computer equipment and readable storage medium
CN112596617A (en) * 2020-12-25 2021-04-02 维沃移动通信有限公司 Message content input method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107871259A (en) * 2016-09-26 2018-04-03 阿里巴巴集团控股有限公司 A kind of processing method of information recommendation, device and client
CN110532351B (en) * 2019-07-19 2022-04-12 口口相传(北京)网络技术有限公司 Recommendation word display method, device and equipment and computer readable storage medium
CN111125344B (en) * 2019-12-23 2023-09-05 新方正控股发展有限责任公司 Related word recommendation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406565A (en) * 2016-09-29 2017-02-15 维沃移动通信有限公司 Vocabulary input method for mobile terminal and mobile terminal
CN109582866A (en) * 2018-11-23 2019-04-05 北京字节跳动网络技术有限公司 Display methods, device, storage medium and the electronic equipment of personalized recommendation word
US20200257377A1 (en) * 2019-02-11 2020-08-13 Samsung Electronics Co., Ltd. Electronic device and method for recommending word in same
CN111737574A (en) * 2020-06-19 2020-10-02 口口相传(北京)网络技术有限公司 Search information acquisition method and device, computer equipment and readable storage medium
CN112596617A (en) * 2020-12-25 2021-04-02 维沃移动通信有限公司 Message content input method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117540057A (en) * 2024-01-10 2024-02-09 广东省电信规划设计院有限公司 Search guiding method and device based on AIGC
CN117540057B (en) * 2024-01-10 2024-04-30 广东省电信规划设计院有限公司 AIGC-based retrieval guiding method and AIGC-based retrieval guiding device

Also Published As

Publication number Publication date
CN112596617A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
WO2022135339A1 (en) Message content input method and apparatus, and electronic device
US9792356B2 (en) System and method for supporting natural language queries and requests against a user's personal data cloud
TWI492075B (en) Method for offering suggestion during conversation, electronic device using the same, and computer program product
CN108541310B9 (en) Method and device for displaying candidate words and graphical user interface
CN107621886B (en) Input recommendation method and device and electronic equipment
US20200356572A1 (en) Search ranking method and apparatus, electronic device and storage medium
US20140040741A1 (en) Smart Auto-Completion
CN107315487B (en) Input processing method and device and electronic equipment
US8856676B1 (en) Pre-filling input fields using heuristic data
US9009031B2 (en) Analyzing a category of a candidate phrase to update from a server if a phrase category is not in a phrase database
CN109918565B (en) Processing method and device for search data and electronic equipment
CN108874827B (en) Searching method and related device
CN108073303A (en) A kind of input method, device and electronic equipment
CN105912586B (en) Information searching method and electronic equipment
CN114138817A (en) Data query method, device, medium and product based on relational database
CN112307281A (en) Entity recommendation method and device
CN109977293B (en) Method and device for calculating search result relevance
CN115118695A (en) Message processing method and device, electronic equipment and storage medium
CN114374663B (en) Message processing method and message processing device
US20150154682A1 (en) Enriching product catalog with search keywords
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN113965614A (en) Session creation method and device and electronic equipment
CN107436896B (en) Input recommendation method and device and electronic equipment
WO2019165902A1 (en) Method and device for generating and displaying data object information
CN110147426B (en) Method for determining classification label of query text and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21909335

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21909335

Country of ref document: EP

Kind code of ref document: A1