CN111831132A - Information recommendation method and device and electronic equipment - Google Patents

Information recommendation method and device and electronic equipment Download PDF

Info

Publication number
CN111831132A
CN111831132A CN201910320048.3A CN201910320048A CN111831132A CN 111831132 A CN111831132 A CN 111831132A CN 201910320048 A CN201910320048 A CN 201910320048A CN 111831132 A CN111831132 A CN 111831132A
Authority
CN
China
Prior art keywords
information
session
emotion
user
session information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910320048.3A
Other languages
Chinese (zh)
Inventor
冯静静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201910320048.3A priority Critical patent/CN111831132A/en
Publication of CN111831132A publication Critical patent/CN111831132A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides an information recommendation method, an information recommendation device and electronic equipment, wherein the method comprises the following steps: acquiring session scene information; performing user emotion analysis according to the session scene information, and determining corresponding emotion information; searching session information matched with the emotion information, and displaying the session information; and then can recommend according to user's emotional information for the information of recommending can more satisfy user's demand, and the user can directly select conversation information to reply, and need not manual word by word input also need not painstakingly to polish the information that needs to input, has improved input efficiency.

Description

Information recommendation method and device and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an information recommendation method and apparatus, and an electronic device.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people. These electronic devices are typically installed with an input method application (abbreviated as input method) so that a user can input information using the input method.
When a user interacts in an instant messaging manner, the user can input information by using an input method to realize interaction. In the interaction process, for the information sent by the opposite side, the input method can recommend corresponding reply information, so that the user can reply conveniently; for example, the opposite end sends a message "i don't want to speak", and the input method recommends information "good bar". However, the existing input method is not intelligent enough to recommend reply messages, which is not beneficial to the continuous promotion of conversation; for example, based on the above example, after the peer selects the recommendation information "good bar" to reply, the chat session is likely to be terminated; if the user wants to continue the chat conversation, the user needs to manually input the sentence which the user wants to reply, such as 'do not make a good deal', the operation is complicated, and the input efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an information recommendation method for improving input efficiency.
Correspondingly, the embodiment of the invention also provides an information recommendation device and electronic equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problem, an embodiment of the present invention discloses an information recommendation method, which specifically includes: acquiring session scene information; performing user emotion analysis according to the session scene information, and determining corresponding emotion information; and searching the session information matched with the emotion information, and displaying the session information.
Optionally, the analyzing the user emotion according to the session scene information to determine corresponding emotion information includes: determining a keyword corresponding to the session scene information; determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
Optionally, the searching for the session information matched with the emotion information includes: and searching mapping information based on the emotion information, and determining matched session information.
Optionally, the session information includes a plurality of session information, and the method further includes the step of screening the session information: screening the session information according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to historical feedback information aiming at the session information.
Optionally, the session information includes statements of a plurality of terminals, and the terminals include a home terminal and other terminals; the displaying the session information includes: and displaying the local statement in the session information.
Optionally, the statement at the home terminal includes a plurality of statements, and the method further includes: receiving a screen-up instruction; the screen-up instruction corresponds to a first home statement in the session information; receiving opposite end information; and if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed on the screen.
Optionally, the emotion information includes: the emotion information of the local end user and/or the emotion information of the opposite end user.
The embodiment of the invention also discloses an information recommendation device, which specifically comprises: the information acquisition module is used for acquiring the session scene information; the emotion determining module is used for carrying out user emotion analysis according to the session scene information and determining corresponding emotion information; and the information determining module is used for searching the session information matched with the emotion information and displaying the session information.
Optionally, the emotion determining module is configured to determine a keyword corresponding to the session context information; determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
Optionally, the information determining module includes: and the session information determining submodule is used for searching mapping information based on the emotion information and determining matched session information.
Optionally, the session information includes a plurality of session information, and the apparatus further includes a filtering module: the screening module is used for screening the session information according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to historical feedback information aiming at the session information.
Optionally, the session information includes statements of a plurality of terminals, and the terminals include a home terminal and other terminals; the information determination module includes: and the session information display submodule is used for displaying the local statement in the session information.
Optionally, the statement at the home terminal includes a plurality of statements, and the apparatus further includes: the instruction receiving module is used for receiving a screen-up instruction; the screen-up module is used for displaying a first home statement in the session information corresponding to the screen-up instruction; and the matching module is used for displaying the next home terminal statement of the session information on a screen if the opposite terminal information is matched with the statements of other terminals in the session information.
Optionally, the emotion information includes: the emotion information of the local end user and/or the emotion information of the opposite end user.
The embodiment of the invention also discloses a readable storage medium, and when instructions in the storage medium are executed by a processor of the electronic equipment, the electronic equipment can execute the information recommendation method in any one of the embodiments of the invention.
An embodiment of the present invention also discloses an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, and the one or more programs include instructions for: acquiring session scene information; performing user emotion analysis according to the session scene information, and determining corresponding emotion information; and searching the session information matched with the emotion information, and displaying the session information.
Optionally, the analyzing the user emotion according to the session scene information to determine corresponding emotion information includes: determining a keyword corresponding to the session scene information; determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
Optionally, the searching for the session information matched with the emotion information includes: and searching mapping information based on the emotion information, and determining matched session information.
Optionally, the session information includes a plurality of session information, and the electronic device further includes a step of filtering the session information: screening the session information according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to historical feedback information aiming at the session information.
Optionally, the session information includes statements of a plurality of terminals, and the terminals include a home terminal and other terminals; the displaying the session information includes: and displaying the local statement in the session information.
Optionally, the statement of the local end includes a plurality of statements, and further includes instructions for: receiving a screen-up instruction; the screen-up instruction corresponds to a first home statement in the session information; receiving opposite end information; and if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed on the screen.
Optionally, the emotion information includes: the emotion information of the local end user and/or the emotion information of the opposite end user.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the session scene information can be acquired, and then the user emotion analysis is carried out according to the session scene information to determine the corresponding emotion information; searching the session information matched with the emotion information, and displaying the session information; and then can recommend according to user's emotional information for the information of recommending can more satisfy user's demand, and the user can directly select conversation information to reply, and need not manual word by word input also need not painstakingly to polish the information that needs to input, has improved input efficiency.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of a method for information recommendation of the present invention;
FIG. 2 is a flow chart of the steps of an alternative embodiment of an information recommendation method of the present invention;
FIG. 3 is a block diagram of an embodiment of an information recommendation device according to the present invention;
FIG. 4 is a block diagram of an alternative embodiment of an information recommendation device of the present invention;
FIG. 5 illustrates a block diagram of an electronic device for information recommendation, according to an example embodiment;
fig. 6 is a schematic structural diagram of an electronic device for information recommendation according to another exemplary embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core ideas of the embodiment of the invention is that the user emotion analysis is carried out, and the conversation information which accords with the emotion analysis result is recommended for the user, so that the recommended conversation information can better meet the user requirement, and further, the user does not need to manually and carelessly cut the information which needs to be input, and the input efficiency is improved.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an information recommendation method according to the present invention is shown, which may specifically include the following steps:
and 102, acquiring session scene information.
In the embodiment of the invention, a user can enter the communication interface corresponding to the communication application according to the self requirement to communicate with other users, and the communication application can be an instant communication application such as social software or a short message application. Therefore, in the process that a user enters a communication interface of communication application in terminal equipment and has conversation with other users, after receiving opposite-end information, the session scene information can be obtained, and then corresponding reply information is recommended for the user according to the session scene information; the session context information may include various information, such as the above information, and information associated with the above information, such as environment, time, and the like, which is not limited in this embodiment of the present invention.
And step 104, carrying out user emotion analysis according to the session scene information, and determining corresponding emotion information.
In the embodiment of the invention, in order to enable the information recommended for the user to meet the user requirements better, the emotion analysis of the user can be carried out according to the conversation scene information, for example, by adopting the emotion recognition technology in the field of artificial intelligence, the emotion analysis of the user is realized by the emotion analysis of each keyword in the conversation scene information, and the corresponding emotion information is determined; the emotion information may include emotion information of a home terminal user and also emotion information of an opposite terminal user. For example, peer information in the session context information: "I do not want to pass today and want to cry"; user emotion analysis can be performed according to the session scene information, and it can be determined that emotion information of an opposite-end user is 'difficult'. For another example, the home terminal information in the session context information: "i find you a cheat because i look more than the photo, opposite end information: "which one has passed the prize"; user emotion analysis can be performed according to the session scene information, and the emotion information of the home terminal user can be determined to be 'wish to raise sister'.
And 106, searching the session information matched with the emotion information, and displaying the session information.
In the embodiment of the invention, a plurality of sections of session information can be collected in advance, and then the emotion information matched with each section of session information is determined; for example, the affective information matched to a piece of conversation information for a comfort category may be "bad", the affective information matched to a piece of conversation information for a comfort category may be "angry", the affective information matched to a piece of conversation information for an earthy style category may be "fond of making a trip", and so on. After determining the corresponding emotion information of the user, searching session information matched with the emotion information, and then displaying the session information; the area for displaying the session information may be set as required, for example, the display area of the input method, such as a candidate area and an association area, may also be a display area of the communication application, which is not limited in the present invention.
As an example of the present invention, user a enters chat application X to chat with user B, and after user a sends information "how few you are today", receives information replied by user B "nothing, i'm always few"; at this time, the input method of the user a corresponding to the terminal device may obtain the session context information, such as the above information, including: the local terminal information ' how few you are today ', the opposite terminal information ' nothing, I's always few '; then, carrying out user emotion analysis according to the session scene information, and determining corresponding emotion information, for example, determining that the emotion information of the opposite-end user is 'angry' according to the session scene information; and searching session information matched with the emotional information, for example, the emotion information matched with the soothing type session information such as 'good, not good, and buying good for you', and then displaying the session information. After the subsequent user a replies by selecting 'good, not angry, and buying good-taste' from the displayed session information, the user B may reply to the problem, for example, 'good, i.e. i want to eat x', and the user a may also continue to reply; thereby being able to continue the conversation and help the user to sooth the opponent's mood.
As an example of the present invention, user C enters chat application M to chat with user D, and after sending information "you say you very well today and know you very happy," receives information "thank you, i also know you very happy" replied by user D; at this time, the input method of the user C corresponding to the terminal device may obtain the session context information, such as the above information, including: home terminal information: "you say very well today, very happy to know you", opposite end information: "thank you, i also happy to know you"; then, carrying out user emotion analysis according to the session scene information, and determining corresponding emotion information, for example, determining that the emotion information of the home terminal user is 'want to raise sister' according to the session scene information; and searching the session information matched with the emotion information, for example, the session information of ' want to raise sister ' which is matched with the local emotion class of emotion information, such as ' today ' if you die, i die, you can die with love, i die with love you ' and then displaying the session information. Subsequent user C selects session information that "today is that you die or that you die, you can love to die, i love to die you," after replying, user D replies to the problem, such as "Haaha, you are too talking", user C can continue replying, and then conversation can continue, and help users to better raise sisters.
In the embodiment of the invention, the session scene information can be acquired, and then the user emotion analysis is carried out according to the session scene information to determine the corresponding emotion information; searching the session information matched with the emotion information, and displaying the session information; and then can recommend according to user's emotional information for the information of recommending can more satisfy user's demand, and the user can directly select conversation information to reply, and need not manual word by word input also need not painstakingly to polish the information that needs to input, has improved input efficiency.
Referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 202, obtaining session scene information.
In the embodiment of the invention, a user can adopt instant messaging application and short message application to carry out information interaction, and the input method can acquire the session scene information in a communication interface after the input method is positioned in the communication interface of a certain communication application and receives the message of an opposite terminal. Wherein the session context information may include: the above information and the associated information of the above information.
The above information may include local information and opposite information; in an example of the present invention, one way of obtaining the above information may be to obtain a chat record corresponding to the communication interface, and then select the above information from the chat record. In the embodiment of the invention, the input method can send a request for obtaining the chat records to the corresponding communication application, wherein the request can comprise set time which can be set as 1 hour and 1 day as required; after receiving the request for obtaining the chat records, the communication application can determine and extract the chat records within the set time according to the current time, the set time and the time stamps of all the chat records, and then return the extracted chat records to the input method; further, the input method may use the received chat history as the above information. In an example of the present invention, another way to obtain the above information may be to capture a screen of a current communication interface, perform an OCR (Optical Character Recognition) analysis on an image obtained by capturing the screen, and use a text obtained by the OCR analysis as the above information, which is not limited in this embodiment of the present invention.
Wherein the association information may include information related to the above information, and may include at least one of: environmental information, location information, weather information, and time information; of course, other information may also be included, and the embodiment of the present invention is not limited thereto.
And step 204, determining a keyword corresponding to the session scene information.
And step 206, determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
In the embodiment of the present invention, multiple pieces of historical session context information and corresponding reference emotion information may be obtained in advance, where the historical session context information may include historical session context information corresponding to the user, and may also include historical session context information corresponding to users in the whole network.
In the embodiment of the invention, aiming at each historical conversation scene information, the historical conversation scene information can be analyzed to determine the corresponding keyword; then, determining the emotion value corresponding to each keyword by searching an emotion dictionary; the emotion dictionary may include a self-organizing dictionary and an existing dictionary, each word in the emotion dictionary has a corresponding emotion value, the emotion value may be a multidimensional vector, each dimension corresponds to an emotion, and the value of each dimension may refer to a score of the emotion corresponding to the dimension. The self-compiling dictionary can be a dictionary which adopts artificial annotation of emotion values, and the existing dictionary can comprise an existing emotion dictionary such as a Hopkinson emotion dictionary and a Chinese emotion polarity dictionary. Then, training a machine learning model by using the historical conversation scene information, the emotion values corresponding to the keywords in the historical conversation scene information and the corresponding reference emotion information; for example, the keywords and the corresponding emotion values in the historical session scene information may be input into the machine learning model to obtain the emotion information output by the machine learning model, and then the emotion information output by the machine learning model and the reference emotion information corresponding to the historical session scene information are compared to perform reverse training on the machine learning model. And then, subsequently, the trained machine learning model can be used for carrying out user emotion analysis to determine emotion information.
In the embodiment of the present invention, the historical session scene information may include texts or pictures, which is not limited in the present invention; if the historical conversation scene information is a text, for each section of text, natural language processing may be performed on the section of text, for example, word segmentation processing may be performed on the section of text to obtain word segmentation segments, and then keywords corresponding to the section of text may be determined according to the word segmentation segments. If the historical conversation scene information is a picture, a subject term of the picture can be acquired as a corresponding keyword for each picture; or performing OCR analysis on the picture, acquiring a corresponding recognition text, determining a keyword corresponding to the recognition text, and then taking the keyword of the recognition text as the keyword of the picture.
Therefore, after the session scene information is acquired, if the session scene information is a text, the session scene information may be subjected to natural language processing, for example, word segmentation processing is performed to obtain a corresponding word segmentation segment, and then, the keyword corresponding to the session scene information is determined according to the word segmentation segment. If the conversation scene is a picture, acquiring a subject term of the conversation scene information, and taking the subject term as the key of the conversation scene information; or performing OCR analysis on the session scene information to determine a keyword corresponding to the session scene information. Then determining the corresponding emotion value of each keyword; the manner of determining the emotion value corresponding to each keyword in the session context information is similar to the manner of determining the emotion value of each keyword in the historical session context information, and is not repeated here. And then, inputting each keyword and the corresponding emotion value in the session scene information into the trained machine learning model, so as to obtain the emotion information of the local end user and/or the opposite end user.
And step 208, searching mapping information based on the emotion information, and determining matched session information.
In the embodiment of the invention, a plurality of sections of session information can be collected in advance, after the emotion information matched with each section of session information is determined, mapping information between each section of session information and the corresponding matched emotion information can be respectively established, and then the session information and the corresponding mapping information are stored in the database. After determining the emotion information corresponding to the user, mapping information can be searched from the database based on the emotion information, and session information matched with the emotion information is determined.
Step 210, screening the session information.
In the embodiment of the invention, the session information matched with the emotion information can comprise a plurality of pieces, so that the matched session information can be screened, the recommended information can meet the requirements of users, and the input efficiency is further improved.
Some session information may be related to session context information and some may be unrelated to session context information; therefore, in an example of the present invention, one way to filter the session information may be to filter the session information according to the session context information. The relevance degree of each piece of session information corresponding to the session scene information can be calculated, the session information with high relevance degree with the session scene information is selected, and the session information with low relevance degree with the session scene information is filtered. Of course, in an optional embodiment of the present invention, while the session information is obtained in advance, the historical session information corresponding to each session information may be obtained, and then mapping information between the historical session scene information, the session information, and the corresponding matching emotion information is established; then, subsequently, according to the session scene information and the emotion information, a mapping relation is searched, and corresponding session information is determined; the embodiments of the present invention are not limited in this regard.
In the embodiment of the invention, the session information can be screened according to the preference degree of the user for the session information, wherein the user is likely to click frequently for the favorite session information, and the user is likely to click less frequently for the disliked session information; therefore, the preference degree of the user for the session information can be represented by using the historical click frequency corresponding to the session information, and the historical click frequency can be in direct proportion to the preference degree. In an example of the present invention, another way to filter the session information may be to filter the session information according to a historical click frequency corresponding to the session information. The historical click frequency corresponding to each session information can be counted, then the session information with high historical click frequency is selected, and the session information with low historical click frequency is filtered.
In addition, the feedback information of the user for the session information with different preferences may also be different, for example, based on the above example: and a user C: "you say so well today, you know you happy," user D: "thank you, i am happy to know you" if user C replies with the session information: "today you die or i die, you can die, i love you die", user D's reply may be: "boring to the utmost"; if the session information replied by the user C is: "can you not know what is going on next speech and can you please do? ", the reply of user D may be: "good o, no problem". Therefore, in the embodiment of the present invention, the preference degree of the user for the session information can be determined according to the feedback information for the session information. In an example of the present invention, the session information may be filtered according to historical feedback information for the session information; the method includes the steps of determining historical feedback information of a user for each piece of session information, then determining the preference degree of the user for each piece of session information according to the historical feedback information, and then filtering the session information according to the preference degree of the user for each piece of session information. Wherein, the conversation information with low preference degree can be filtered; the history feedback information for the session information may refer to history feedback information of an opposite-end user corresponding to the local-end user, and may also include history feedback information for the session information of all users, which is not limited in this embodiment of the present invention.
And step 212, displaying the screened session information.
In the embodiment of the invention, when the screened session information comprises a plurality of pieces, if the session information is screened according to the correlation degree with the session scene information, the session information can be displayed from high to low according to the correlation degree corresponding to the session information; if the session information is screened according to the preference degree of the user, displaying the session information from high to low according to the preference degree corresponding to the session information; of course, the relevancy and the preference degree corresponding to the session information may also be weighted, and the session information is displayed from top to bottom according to the weighting result, which is not limited in the embodiment of the present invention. The session information includes statements of a plurality of terminals, the terminals include a home terminal and other terminals, and the other terminals may include other terminals except the home terminal; for example, "do we do not have good gift to exchange? (at the end), like an calash! (opposite end), good, you are my from now on, i is your (home). Of course, each piece of session information may also include only a local statement, for example, "do not have difficulty, and we eat a big meal on weekends (local)"; the embodiments of the present invention are not limited in this regard. If the session information includes statements of a plurality of terminals, only local statements in the session information can be displayed for each piece of session information when the screened session information is displayed locally; session information as in the above example: "do we do not have good exchange of gifts? (on the end) like an calash! Good (opposite end), from now on you are my, i are your (home), then we can only show "do we exchange gifts not good? Good, from now on you are my, i is your "for the user to select.
In an optional embodiment of the present invention, for each piece of session information, the local statement in the session information may include a plurality of statements, and after displaying the screened session information, the user may perform a screen-up operation, and correspondingly, the input method may receive a screen-up instruction; and the screen-up instruction corresponds to a first home statement in the session information, and then the information is waited to be replied by the opposite-end user. After the opposite-end user replies, the opposite-end information can be received, and if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed; the received opposite-end information can be matched with other end sentences which are behind the last on-screen sentence of the session information and are ahead of the next on-screen sentence of the user, and if the opposite-end information and the other end sentences are matched, the next on-screen sentence behind the last on-screen sentence can be on-screen. And the subsequent sentence at the home terminal in the session information can be sequentially displayed by the same analogy.
In summary, in the embodiment of the present invention, session context information may be obtained, and then user emotion analysis is performed according to the session context information to determine corresponding emotion information; searching the session information matched with the emotion information, and displaying the session information; and then can recommend according to user's emotional information for the information of recommending can more satisfy user's demand, and the user can directly select conversation information to reply, and need not manual word by word input also need not painstakingly to polish the information that needs to input, has improved input efficiency.
Secondly, in the embodiment of the invention, the keywords corresponding to the session scene information can be determined, then the emotion values corresponding to the keywords are determined, and the emotion information is determined according to the emotion values corresponding to the keywords; and then can be accurate carry on user's emotion analysis, improve the accuracy of confirming the conversation information, thus further raise the information input efficiency.
Furthermore, in the embodiment of the present invention, the session information may include a plurality of pieces, and after the session information matched with the emotion information is determined, the session information may be further filtered; the session information can be screened according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to the feedback information aiming at the session information. And then the session information which meets the requirements of the user is screened out, and the information input efficiency is further improved.
Thirdly, in the embodiment of the present invention, the session information may include statements of a plurality of terminals, where the terminals include a home terminal and other terminals; and then the local statement in the session information can be displayed. In one session information, the local statement may include a plurality of statements, and a screen-up instruction may be received subsequently; the screen-up instruction corresponds to a first home statement in the session information; after the opposite end replies, the opposite end information can be received; if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed on the screen; and further, the user does not need to select again, and the input efficiency is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of an embodiment of an information recommendation apparatus according to the present invention is shown, which may specifically include the following modules:
an information obtaining module 302, configured to obtain session context information;
an emotion determining module 304, configured to perform user emotion analysis according to the session scene information, and determine corresponding emotion information;
and the information determining module 306 is configured to search the session information matched with the emotion information, and display the session information.
Referring to fig. 4, a block diagram of an alternative embodiment of an information recommendation device of the present invention is shown.
In an optional embodiment of the present invention, the emotion determining module 304 is configured to determine a keyword corresponding to the session context information; determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
In an optional embodiment of the present invention, the information determining module 306 includes:
the session information determining submodule 3062 is configured to search mapping information based on the emotion information, and determine matching session information.
In an optional embodiment of the present invention, the session information includes a plurality of pieces, and the apparatus further includes a screening module 308:
the screening module 308 is configured to screen the session information according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to historical feedback information aiming at the session information.
In an optional embodiment of the present invention, the session information includes statements of a plurality of terminals, and the terminals include a home terminal and other terminals; the information determination module 306 includes:
the session information displaying submodule 3064 is configured to display the local statement in the session information.
In an optional embodiment of the present invention, the local sentence includes a plurality of sentences, and the apparatus further includes:
an instruction receiving module 310, configured to receive a screen-up instruction;
a screen-up module 312, configured to screen up a first home statement in the session information corresponding to the screen-up instruction;
a matching module 314, configured to, if the opposite-end information matches with the statement at the other end in the session information, screen up a next home-end statement of the session information.
In an optional embodiment of the present invention, the emotion information includes: the emotion information of the local end user and/or the emotion information of the opposite end user.
In summary, in the embodiment of the present invention, session context information may be obtained, and then user emotion analysis is performed according to the session context information to determine corresponding emotion information; searching the session information matched with the emotion information, and displaying the session information; and then can recommend according to user's emotional information for the information of recommending can more satisfy user's demand, and the user can directly select conversation information to reply, and need not manual word by word input also need not painstakingly to polish the information that needs to input, has improved input efficiency.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 5 is a block diagram illustrating an electronic device 500 for information recommendation according to an example embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 506 provides power to the various components of the electronic device 500. Power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 500.
The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of components, such as a display and keypad of the electronic device 500, the sensor assembly 514 may detect a change in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, orientation or acceleration/deceleration of the electronic device 500, and a change in the temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 514 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 514 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the electronic device 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of information recommendation, the method comprising: acquiring session scene information; performing user emotion analysis according to the session scene information, and determining corresponding emotion information; and searching the session information matched with the emotion information, and displaying the session information.
Optionally, the analyzing the user emotion according to the session scene information to determine corresponding emotion information includes: determining a keyword corresponding to the session scene information; determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
Optionally, the searching for the session information matched with the emotion information includes: and searching mapping information based on the emotion information, and determining matched session information.
Optionally, the session information includes a plurality of session information, and the method further includes the step of screening the session information: screening the session information according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to historical feedback information aiming at the session information.
Optionally, the session information includes statements of a plurality of terminals, and the terminals include a home terminal and other terminals; the displaying the session information includes: and displaying the local statement in the session information.
Optionally, the statement at the home terminal includes a plurality of statements, and the method further includes: receiving a screen-up instruction; the screen-up instruction corresponds to a first home statement in the session information; receiving opposite end information; and if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed on the screen.
Optionally, the emotion information includes: the emotion information of the local end user and/or the emotion information of the opposite end user.
Fig. 6 is a schematic structural diagram of an electronic device 600 for information recommendation according to another exemplary embodiment of the present invention. The electronic device 600 may be a server, which may vary greatly due to different configurations or capabilities, and may include one or more Central Processing Units (CPUs) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the server.
The server may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for: acquiring session scene information; performing user emotion analysis according to the session scene information, and determining corresponding emotion information; and searching the session information matched with the emotion information, and displaying the session information.
Optionally, the analyzing the user emotion according to the session scene information to determine corresponding emotion information includes: determining a keyword corresponding to the session scene information; determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
Optionally, the searching for the session information matched with the emotion information includes: and searching mapping information based on the emotion information, and determining matched session information.
Optionally, the session information includes a plurality of session information, and the electronic device further includes a step of filtering the session information: screening the session information according to the session scene information; and/or screening the session information according to the historical click frequency corresponding to the session information; and/or screening the session information according to historical feedback information aiming at the session information.
Optionally, the session information includes statements of a plurality of terminals, and the terminals include a home terminal and other terminals; the displaying the session information includes: and displaying the local statement in the session information.
Optionally, the statement of the local end includes a plurality of statements, and further includes instructions for: receiving a screen-up instruction; the screen-up instruction corresponds to a first home statement in the session information; receiving opposite end information; and if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed on the screen.
Optionally, the emotion information includes: the emotion information of the local end user and/or the emotion information of the opposite end user.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The information recommendation method, the information recommendation device and the electronic device provided by the invention are described in detail, and specific examples are applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An information recommendation method, comprising:
acquiring session scene information;
performing user emotion analysis according to the session scene information, and determining corresponding emotion information;
and searching the session information matched with the emotion information, and displaying the session information.
2. The method of claim 1, wherein the analyzing emotion of the user according to the session context information to determine corresponding emotion information comprises:
determining a keyword corresponding to the session scene information;
determining the emotion value corresponding to each keyword, and determining emotion information according to the emotion value corresponding to each keyword.
3. The method of claim 1, wherein the searching for session information matching the emotion information comprises:
and searching mapping information based on the emotion information, and determining matched session information.
4. The method of claim 1, wherein the session information comprises a plurality of session information, the method further comprising the step of filtering the session information:
screening the session information according to the session scene information; and/or the presence of a gas in the gas,
screening the session information according to the historical click frequency corresponding to the session information; and/or the presence of a gas in the gas,
and screening the session information according to historical feedback information aiming at the session information.
5. The method of claim 1, wherein the session information comprises statements of a plurality of terminals, the terminals comprising a home terminal and other terminals;
the displaying the session information includes:
and displaying the local statement in the session information.
6. The method of claim 5, wherein the local sentence comprises a plurality of sentences, and the method further comprises:
receiving a screen-up instruction;
the screen-up instruction corresponds to a first home statement in the session information;
receiving opposite end information;
and if the opposite-end information is matched with the sentences of other ends in the session information, the next home-end sentence of the session information is displayed on the screen.
7. The method of any of claims 1-6, wherein the affective information comprises: the emotion information of the local end user and/or the emotion information of the opposite end user.
8. An information recommendation apparatus, comprising:
the information acquisition module is used for acquiring the session scene information;
the emotion determining module is used for carrying out user emotion analysis according to the session scene information and determining corresponding emotion information;
and the information determining module is used for searching the session information matched with the emotion information and displaying the session information.
9. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information recommendation method of any of method claims 1-7.
10. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
acquiring session scene information;
performing user emotion analysis according to the session scene information, and determining corresponding emotion information;
and searching the session information matched with the emotion information, and displaying the session information.
CN201910320048.3A 2019-04-19 2019-04-19 Information recommendation method and device and electronic equipment Pending CN111831132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910320048.3A CN111831132A (en) 2019-04-19 2019-04-19 Information recommendation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910320048.3A CN111831132A (en) 2019-04-19 2019-04-19 Information recommendation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111831132A true CN111831132A (en) 2020-10-27

Family

ID=72911700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910320048.3A Pending CN111831132A (en) 2019-04-19 2019-04-19 Information recommendation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111831132A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610231A (en) * 2021-08-19 2021-11-05 北京金山数字娱乐科技有限公司 Language model training method and device and phrase recommendation method and device
CN113887206A (en) * 2021-09-15 2022-01-04 北京三快在线科技有限公司 Model training and keyword extraction method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610231A (en) * 2021-08-19 2021-11-05 北京金山数字娱乐科技有限公司 Language model training method and device and phrase recommendation method and device
CN113887206A (en) * 2021-09-15 2022-01-04 北京三快在线科技有限公司 Model training and keyword extraction method and device

Similar Documents

Publication Publication Date Title
CN109800325B (en) Video recommendation method and device and computer-readable storage medium
CN105426152B (en) The display methods and device of barrage
CN108038102B (en) Method and device for recommending expression image, terminal and storage medium
CN108227950B (en) Input method and device
CN111291069B (en) Data processing method and device and electronic equipment
CN108121736B (en) Method and device for establishing subject term determination model and electronic equipment
CN110175223A (en) A kind of method and device that problem of implementation generates
CN112508612B (en) Method for training advertisement creative generation model and generating advertisement creative and related device
CN110929176A (en) Information recommendation method and device and electronic equipment
CN111046210A (en) Information recommendation method and device and electronic equipment
CN111831132A (en) Information recommendation method and device and electronic equipment
CN111739535A (en) Voice recognition method and device and electronic equipment
CN109145151B (en) Video emotion classification acquisition method and device
CN111240497A (en) Method and device for inputting through input method and electronic equipment
CN112784151A (en) Method and related device for determining recommendation information
CN111984767A (en) Information recommendation method and device and electronic equipment
CN107301188B (en) Method for acquiring user interest and electronic equipment
CN110895558A (en) Dialog reply method and related device
CN110362686B (en) Word stock generation method and device, terminal equipment and server
CN111339263A (en) Information recommendation method and device and electronic equipment
CN109558017B (en) Input method and device and electronic equipment
CN113946228A (en) Statement recommendation method and device, electronic equipment and readable storage medium
CN112363631A (en) Input method, input device and input device
CN111611339A (en) Recommendation method and device for inputting related users
CN110929122A (en) Data processing method and device and data processing device

Legal Events

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