Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Method embodiment
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:
step 101, acquiring content generated by a user in the process of using an input method;
step 102, if the generated content is determined to have the information recommendation intention, determining recommendation information according to the generated content;
103, displaying a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method;
and 104, responding to the trigger operation aiming at the recommendation identification, and pushing the recommendation information.
The information recommendation method provided by the embodiment of the invention can be used in application scenes in which a user uses an input method, for example, in any application scene such as instant messaging application, an input box of a webpage, a text editor and the like which can be input by using the input method, and the information recommendation method provided by the invention can be used.
The information recommendation method of the embodiment of the invention can be operated in electronic equipment, and the electronic equipment comprises but is not limited to: a server, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, an intelligent tv, a wearable device, and so on.
Specifically, in the process of using the input method by the user, the embodiment of the invention can acquire the content generated by the user in real time and analyze the generated content. The generated content may include at least any one of: input content, transmitted content, received content.
The input content may be content input by a user in an instant messaging application, an input box of a web page, a text editor, and the like. The received content may be content received by a user through an instant messaging application, a mail, and the like. The sent content may be content sent by a user through an instant messaging application, a mail, and the like. It is understood that the embodiments of the present invention do not limit the specific sources of the generated content and the specific content.
If the generated content is determined to have the information recommendation intention, the fact that the user may have the intention of acquiring the recommendation information or the user has the intention of recommending information to others is explained. Thus, recommendation information can be determined based on the content generated by the user; and then, a recommendation identifier corresponding to the recommendation information can be displayed on a relevant interface of an input method currently used by the user, wherein the recommendation identifier is used for prompting that the user currently has the recommendation information which can be acquired, and the recommendation information is pushed only when a trigger operation of the user for the recommendation identifier is received. Therefore, the opportunity of pushing the recommendation information can better meet the current requirements of the user, unnecessary disturbance to the user can be reduced, and user experience is improved.
In an optional embodiment of the present invention, the determining of the generated content in step 102 has an information recommendation intent, which may specifically include: and if the generated content contains a part matched with the preset content, determining that the generated content has the information recommendation intention.
The preset content is used for indicating that the content is related to the information recommendation intention. The preset content may include any form of content such as preset keywords, preset pictures, preset voices and the like. The preset content may be content related to a preset scene, including but not limited to the following scenes: shopping, entertainment, travel, chat, and the like. Under the preset scene, the probability that the user has the information recommendation intention is high. For example, if the user generated content is related to a shopping scenario, the user may have a goods information recommendation intent. As another example, if the user generated content is related to a travel scene, the user may have information recommendation intent such as airline tickets, sight spot tickets, and the like.
In an application example of the invention, the following preset keywords, namely 'cosmetics', 'vacation hotels', 'special price tickets' and the like, are obtained in advance through sorting, in the process that a user uses an input method, the content currently input by the user is obtained as 'you can buy new sunscreen cream for use?', the content input by the user can be analyzed, the obtained 'sunscreen cream' included in the content is matched with the preset keyword 'cosmetics', the input content can be considered to include a part matched with the preset content, and the input content can be determined to have information recommendation intention.
It is to be understood that the embodiment of the present invention does not limit the specific form of the generated content, and the generated content may be in any form of text, picture, voice, and the like. For example, if the generated content is a voice, it may be determined whether the generated content includes a portion matching a preset voice; or voice recognition can be performed on the generated content, the voice is converted into a text, then keyword extraction can be performed on the text obtained after conversion, and whether the extracted keywords are matched with preset keywords or not can be judged. For another example, if the generated content is a picture, it may be determined whether the generated content includes a portion matching a preset image; or text recognition can be carried out on the picture to obtain the text in the picture, and then keyword extraction can be carried out on the text obtained by recognition to judge whether the extracted keywords are matched with the preset keywords or not.
In an optional embodiment of the present invention, the determining of the generated content in step 102 has an information recommendation intent, which may specifically include:
inputting the generated content into a detection model, and if the output probability of the detection model is greater than a preset probability, determining that the generated content has an information recommendation intention; the detection model is a neural network model obtained by training according to content samples generated in history and labeling results corresponding to the content samples generated in history.
The neural network model may fuse a variety of neural networks. The neural network includes, but is not limited to, combinations, overlays, nests of at least one of: CNN (Convolutional Neural Network), LSTM (long short-Term Memory) Network, RNN (Simple Recurrent Neural Network), attention Neural Network, and the like. It is understood that the model structure of the detection model is not limited by the embodiment of the present invention.
Specifically, a large amount of content generated by the user in the history can be collected as a content sample, and the collected content sample is labeled to obtain a labeling result corresponding to each content sample, wherein the labeling result can be used for indicating whether the user has information recommendation intention when the generated content of the user is the content sample. And training to obtain the detection model according to a large number of training samples formed by the content samples and the labeling results corresponding to the content samples.
After the detection model is obtained through training, the content generated in the process of using the input method currently by the user, such as input, received, sent text, pictures, voice and the like, can be input into the detection model. Through the detection model, the probability that the generated content has the information recommendation intention can be output. If the output probability of the detection model is greater than the preset probability (such as 80%), it is indicated that the generated content has the information recommendation intention.
It is understood that the specific source of the training sample of the detection model is not limited by the embodiment of the present invention. For example, the training samples may also include information on the length, time, etc. of the generated content.
In the embodiment of the invention, under the condition that the generated content is determined to have the information recommendation purpose, recommendation information can be determined according to the generated content.
Specifically, the embodiment of the present invention may extract a keyword in the generated content, and determine recommendation information according to the keyword in the generated content. Specifically, the embodiment of the invention can preset a recommendation keyword set, and each recommendation keyword in the recommendation keyword set corresponds to certain recommendation information. And comparing the keywords in the generated content with the recommended keywords in the recommended keyword set, and if the recommended keywords matched with the keywords in the generated content exist in the recommended keyword set, acquiring corresponding recommended information according to the matched recommended keywords.
The recommendation keyword may be a keyword related to the commodity information or the service information, and in an application example of the present invention, it is assumed that the recommendation keyword is "cosmetic", and the recommendation information corresponding to the recommendation keyword includes recommendation information associated with the commodity information, for example, an official website address of a brand a cosmetic, a consumption evaluation of a brand a cosmetic, and the like.
Of course, the recommendation information corresponding to the recommendation keyword is not limited to the product information or the service information, and may include other types such as information such as news. It is understood that the embodiment of the present invention does not limit the specific category of the recommendation information.
In an optional embodiment of the present invention, the determining recommendation information according to the generated content in step 102 may specifically include:
step S11, acquiring a part of the generated content, which is matched with preset content;
step S12, determining the personalized characteristics of the user according to the historical behavior information of the user;
and step S13, determining recommendation information according to the part matched with the preset content and the personalized features.
Specifically, taking the generated content as a text as an example, the generated content may be analyzed to obtain a keyword set corresponding to the generated content, and a part matching a preset content is determined from the keyword set, where the preset content is used to indicate that the content is related to an information recommendation intention. According to the embodiment of the invention, the recommendation information can be determined according to the part matched with the preset content, namely, the part matched with the preset content is related to the information recommendation intention, so that the determined recommendation information can accord with the information recommendation intention of the user.
In a specific application, since different users have different preferences, if recommendation information is determined only based on a portion of generated content that matches preset content, the determined recommendation information may be inaccurate.
Therefore, after determining the part of the generated content, which is matched with the preset content, according to the generated content, the embodiment of the present invention may further determine the personalized feature of the user according to the historical behavior information of the user, and jointly determine the recommendation information according to the part, which is matched with the preset content, and the personalized feature. The personalized features may include characteristics of the user's age, gender, occupation, personal preferences, and the like.
In the embodiment of the invention, the recommendation information can be determined according to the generated content and the personalized features of the user, so that the recommendation information can reflect the preferences of different users on the basis of conforming to the information recommendation intention corresponding to the generated content, the interest degree of the user in the recommendation information is improved, and the user experience is enhanced.
For example, the content input by the user through the input method is: "a good eye cream was recently discovered". By analyzing the input content, the fact that the eye cream contained in the content is matched with the preset keyword cosmetics is obtained, the input content can be considered to contain a part matched with the preset content, the input content can be determined to have the information recommendation intention, and then the recommendation information of the user can be obtained according to the part of the eye cream matched with the preset content, namely the recommendation information related to eye cream commodities can be obtained. In addition, according to the embodiment of the invention, the personalized features of the user can be determined according to the historical behavior information of the user, and further, the recommendation information of the user can be determined jointly according to the part of the eye cream matched with the preset content and the personalized features of the user. For example, if it can be known that the user often views the eye cream of brand a according to the historical search behavior of the user, it may be determined that the eye cream of brand a is recommendation information, and a recommendation identifier corresponding to the recommendation information is generated and displayed on a related interface of an input method.
It should be noted that, the embodiment of the present invention does not limit the display form and the display position of the recommendation identifier. In an optional embodiment of the present invention, the recommendation identifier may include at least any one of the following: icons, symbols, emoticons, sharing pictures, sharing links. For example, the recommendation identifier may be in the form of text, pictures, or a combination of text and pictures.
The recommendation identifier may be displayed on a related interface of the input method, and the related interface may be a candidate item display interface, a user input box display interface, an input method function menu display interface, and the like of the input method.
In an optional embodiment of the present invention, the interface related to the input method may be a candidate item display interface of the input method, and the displaying the recommendation identifier corresponding to the recommendation information on the interface related to the input method specifically may include:
and taking the recommendation identifier corresponding to the recommendation information as a candidate item, and displaying the candidate item in a candidate item display interface of the input method.
In a specific application, when the input method receives content input by a user, the content input by the user is analyzed to obtain corresponding candidate items, and the number of the candidate items can be one or more. For example, a user inputs a character string "xianglian" through an input method interface, the input method can acquire candidate items corresponding to the character string "xianglian" through a character string parsing operation, wherein the candidate items include "connected", "shared chain", "necklace", "love", and the like, and the candidate items "connected", "shared chain", "necklace", "love", and the like are displayed in a candidate item display interface of the input method for the user to select.
Because eyes of a user usually focus on the candidate item display interface in the process of using the input method, the recommendation identifier is used as the candidate item and displayed in the candidate item display interface of the input method, so that the user can see the candidate item corresponding to the recommendation identifier when looking up the candidate item corresponding to the input content, and the convenience of obtaining recommendation information by the user can be improved.
In one application example of the present invention, assuming that the content generated by the user during use of the input method is the text "ashira eye cream", a picture, a purchase link, or the like related to the "ashira eye cream" may be taken as recommendation information. And generating a recommendation identifier corresponding to the recommendation information, for example, using an icon of a product of "ashiramate eye cream" as the recommendation identifier, and displaying the recommendation identifier as a candidate item in a candidate item display interface of the input method. Namely, an icon of the 'ashyland eye cream' commodity is displayed in a candidate item display interface of the input method. Therefore, when the user sees the icon in the candidate item display interface, the user can know that the recommendation information of the 'Yashilandai eye cream' commodity can be pushed by triggering the icon.
Wherein, the pushing recommendation information may include: and the user obtains the recommendation information, or the user shares the recommendation information with others. In an optional embodiment of the present invention, the pushing the recommendation information in response to the trigger operation for the recommendation identifier may specifically include:
step S21, responding to the trigger operation aiming at the recommendation identification, and generating the sharing content corresponding to the recommendation information;
and step S22, pushing the shared content corresponding to the recommendation information to the target object.
The trigger operation may include a click operation, a touch operation, a slide operation, a long press operation, and the like. It is to be understood that the specific type of the triggering operation is not limited by the embodiments of the present invention.
According to the embodiment of the invention, when the triggering operation of the user for the recommendation identifier is received, the sharing content corresponding to the recommendation information can be generated. The shared content can be obtained through the provision of a third-party service party, or can also be obtained through mining the association relationship between the user portrait of the user and the information. For example, the contents that may be interested by the user may be mined according to the user attributes in the user representation, the user historical behaviors, and the association relationship among the pieces of information, and after the contents are sorted, the contents that are ranked at the top are used as the shared contents.
In an optional embodiment of the present invention, the sharing content may specifically include: sharing links and/or sharing pictures; the sharing link is used for pointing to a resource address corresponding to the recommendation information, and the sharing picture comprises a two-dimensional code used for pointing to the resource address corresponding to the recommendation information.
In an embodiment of the present invention, the shared content may be a composite content including text content and/or picture content. For example, the text content in the shared content may be a brand name or a trade name, and the text content may also be a shared link for pointing to a resource address corresponding to the recommendation information. By triggering the sharing link, the user can jump to the resource address corresponding to the recommendation information, and for the recommendation information of the commodity category, the resource address can be a commodity detail page address or a commodity purchase address and the like.
The picture content in the shared content may include a two-dimensional code used to point to a resource address corresponding to the recommendation information, or the picture content may be a link to a home page of a brand or a website of a commodity provider. Therefore, the user can jump to the resource address corresponding to the recommendation information by scanning the two-dimensional code in the shared content to check the specific content of the recommendation information. Or the user can jump to a website homepage of a brand or commodity provider by scanning the two-dimensional code in the shared content to browse the related recommendation information.
In an application example of the invention, according to the content input by the user, an icon of an 'Yashilandai eye cream' commodity is used as a recommendation identifier and is displayed in a candidate item display interface of the input method. When the trigger operation aiming at the recommendation identifier is received, the shared content corresponding to the commodity recommendation information of 'Yashilandai eye cream' can be generated. For example, composite content is generated which includes the name and picture of the "ashlar eye cream" commodity, and the text or picture in the shared content may be the purchase address of the "ashlar eye cream" commodity. And finally, the sharing content corresponding to the recommendation information is pushed to the target object.
In an optional embodiment of the present invention, the target object may be a communication peer, and the pushing of the shared content corresponding to the recommendation information to the target object specifically may include: sending the sharing content corresponding to the recommendation information to the communication opposite terminal; or
The target object may be a shared directory, and the pushing of the shared content corresponding to the recommendation information to the target object may specifically include: and uploading the shared content corresponding to the recommendation information to the shared directory.
In the embodiment of the present invention, the pushing of the recommendation information may be to display the shared content corresponding to the recommendation information to the current user, so that the current user jumps to the resource address corresponding to the recommendation information by triggering the shared content. Or, the pushing of the recommendation information may be sending the shared content corresponding to the recommendation information to the correspondent node corresponding to the current user, so that the user at the correspondent node can obtain the recommendation information. Or, the pushing of the recommendation information may be to upload the shared content corresponding to the recommendation information to a shared directory of the current user, so as to implement publishing of the shared content. For example, the user may post the shared content corresponding to the recommendation information to a social networking site for sharing.
In summary, the embodiment of the present invention may acquire content generated by a user in a process of using an input method, and if it is determined that the generated content has an information recommendation intention, determine recommendation information according to the generated content; displaying a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method; and pushing the recommendation information in response to a trigger operation for the recommendation identifier.
According to the embodiment of the invention, under the condition that the content generated by the user in the process of using the input method is determined to have the information recommendation intention, the recommendation identification corresponding to the recommendation information is displayed to the user to prompt that the user currently has the recommendation information which can be obtained, and the recommendation information is pushed only when the triggering operation of the user for the recommendation identification is received. Therefore, the opportunity of pushing the recommendation information can better meet the current requirements of the user, unnecessary disturbance to the user can be reduced, and user experience is improved.
In addition, in the process that the user uses the input method, the recommendation identification corresponding to the recommendation information is displayed on the relevant interface of the input method of the user, the user can push the recommendation information by triggering the recommendation identification, the operation steps that the user searches the recommendation information to be pushed by using a search engine can be reduced, and the efficiency of the user for obtaining the recommendation information can be 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.
Device embodiment
Referring to fig. 2, a block diagram of an embodiment of an information recommendation apparatus according to the present invention is shown, where the apparatus may specifically include:
a content obtaining module 201, configured to obtain content generated by a user in a process of using an input method;
an information determining module 202, configured to determine recommendation information according to the generated content if it is determined that the generated content has an information recommendation intention;
the identifier display module 203 is configured to display a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method;
and the information pushing module 204 is configured to push the recommendation information in response to a trigger operation for the recommendation identifier.
Optionally, the interface related to the input method is a candidate item display interface of the input method, and the identifier display module is specifically configured to display the recommendation identifier corresponding to the recommendation information as a candidate item in the candidate item display interface of the input method.
Optionally, the information determining module 202 includes:
a first intention determining sub-module for determining that the generated content has an information recommendation intention if the generated content contains a part matching a preset content; or
The second intention determining submodule is used for inputting the generated content into a detection model, and if the output probability of the detection model is greater than the preset probability, the generated content is determined to have an information recommendation intention; the detection model is a neural network model obtained by training according to content samples generated in history and labeling results corresponding to the content samples generated in history.
Optionally, the information determining module 202 includes:
the keyword extraction submodule is used for acquiring a part of the generated content, which is matched with preset content;
the characteristic determination submodule is used for determining the personalized characteristics of the user according to the historical behavior information of the user;
and the information determining submodule is used for determining recommendation information according to the part matched with the preset content and the personalized features.
Optionally, the information pushing module 204 includes:
the content generation submodule is used for responding to the triggering operation aiming at the recommendation identification and generating the shared content corresponding to the recommendation information;
and the content pushing submodule is used for pushing the shared content corresponding to the recommendation information to the target object.
Optionally, the target object is a communication peer, and the content push sub-module is specifically configured to send the shared content corresponding to the recommendation information to the communication peer; or
The target object is a shared directory, and the content pushing submodule is specifically configured to upload shared content corresponding to the recommendation information to the shared directory.
Optionally, the sharing content includes: sharing links and/or sharing pictures; the sharing link is used for pointing to a resource address corresponding to the recommendation information, and the sharing picture comprises a two-dimensional code used for pointing to the resource address corresponding to the recommendation information.
Optionally, the recommendation identifier includes at least any one of: icons, symbols, emoticons, sharing pictures, sharing links.
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.
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.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present invention provides an apparatus for information recommendation, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include instructions for: acquiring content generated by a user in the process of using an input method; if the generated content is determined to have the information recommendation intention, determining recommendation information according to the generated content; displaying a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method; and pushing the recommendation information in response to the trigger operation aiming at the recommendation identification.
Fig. 3 is a block diagram illustrating an apparatus 800 for information recommendation, according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 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 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 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 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice information processing mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 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 component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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 information processing (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, 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 804 comprising instructions, executable by the processor 820 of the device 800 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.
Fig. 4 is a schematic diagram of a server in some embodiments of the invention. The server 1900, which may vary widely in configuration or performance, may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an apparatus (server or terminal), enable the apparatus to perform the information recommendation method shown in fig. 1.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an apparatus (server or terminal), enable the apparatus to perform an information recommendation method, the method comprising: acquiring content generated by a user in the process of using an input method; if the generated content is determined to have the information recommendation intention, determining recommendation information according to the generated content; displaying a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method; and pushing the recommendation information in response to the trigger operation aiming at the recommendation identification.
The embodiment of the invention discloses A1 and an information recommendation method, which comprises the following steps:
acquiring content generated by a user in the process of using an input method;
if the generated content is determined to have the information recommendation intention, determining recommendation information according to the generated content;
displaying a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method;
and pushing the recommendation information in response to the trigger operation aiming at the recommendation identification.
A2, according to the method in A1, displaying a recommendation identifier corresponding to the recommendation information on a related interface of the input method, including:
and taking the recommendation identifier corresponding to the recommendation information as a candidate item, and displaying the candidate item in a candidate item display interface of the input method.
A3, the method of A1, the determining that the generated content has an information recommendation intent, comprising:
if the generated content contains a part matched with preset content, determining that the generated content has an information recommendation intention; or
Inputting the generated content into a detection model, and if the output probability of the detection model is greater than a preset probability, determining that the generated content has an information recommendation intention; the detection model is a neural network model obtained by training according to content samples generated in history and labeling results corresponding to the content samples generated in history.
A4, the method of A1, wherein the determining recommendation information according to the generated content includes:
acquiring a part matched with preset content in the generated content;
according to the historical behavior information of the user, determining the personalized features of the user;
and determining recommendation information according to the part matched with the preset content and the personalized features.
A5, according to the method in A1, the pushing the recommendation information in response to the trigger operation for the recommendation identification includes:
responding to the trigger operation aiming at the recommendation identification, and generating the sharing content corresponding to the recommendation information;
and pushing the shared content corresponding to the recommendation information to the target object.
A6, according to the method of A5, the target object is a correspondent node, and the pushing of the shared content corresponding to the recommendation information to the target object includes: sending the sharing content corresponding to the recommendation information to the communication opposite terminal;
or
The target object is a shared directory, and the pushing of the shared content corresponding to the recommendation information to the target object includes: and uploading the shared content corresponding to the recommendation information to the shared directory.
A7, the method of A5 or A6, the sharing content comprising: sharing links and/or sharing pictures; the sharing link is used for pointing to a resource address corresponding to the recommendation information, and the sharing picture comprises a two-dimensional code used for pointing to the resource address corresponding to the recommendation information.
The embodiment of the invention discloses B8 and an information recommendation device, which comprises:
the content acquisition module is used for acquiring content generated by a user in the process of using the input method;
the information determining module is used for determining recommendation information according to the generated content if the generated content is determined to have the information recommendation intention;
the identification display module is used for displaying the recommendation identification corresponding to the recommendation information on a relevant interface of the input method;
and the information pushing module is used for responding to the triggering operation aiming at the recommendation identification and pushing the recommendation information.
And B9, according to the apparatus of B8, the interface related to the input method is a candidate item display interface of the input method, and the identifier display module is specifically configured to display the recommendation identifier corresponding to the recommendation information as a candidate item in the candidate item display interface of the input method.
B10, the apparatus of B8, the information determining module comprising:
a first intention determining sub-module for determining that the generated content has an information recommendation intention if the generated content contains a part matching a preset content; or
The second intention determining submodule is used for inputting the generated content into a detection model, and if the output probability of the detection model is greater than the preset probability, the generated content is determined to have an information recommendation intention; the detection model is a neural network model obtained by training according to content samples generated in history and labeling results corresponding to the content samples generated in history.
B11, the apparatus of B8, the information determining module comprising:
the keyword extraction submodule is used for acquiring a part of the generated content, which is matched with preset content;
the characteristic determination submodule is used for determining the personalized characteristics of the user according to the historical behavior information of the user;
and the information determining submodule is used for determining recommendation information according to the part matched with the preset content and the personalized features.
B12, the device according to B8, the information pushing module includes:
the content generation submodule is used for responding to the triggering operation aiming at the recommendation identification and generating the shared content corresponding to the recommendation information;
and the content pushing submodule is used for pushing the shared content corresponding to the recommendation information to the target object.
B13, according to the device of B12, the target object is a communication peer, and the content push submodule is specifically used for sending the shared content corresponding to the recommendation information to the communication peer; or
The target object is a shared directory, and the content pushing submodule is specifically configured to upload shared content corresponding to the recommendation information to the shared directory.
B14, the apparatus of B12 or B13, the shared content comprising: sharing links and/or sharing pictures; the sharing link is used for pointing to a resource address corresponding to the recommendation information, and the sharing picture comprises a two-dimensional code used for pointing to the resource address corresponding to the recommendation information.
The embodiment of the invention discloses C15, an apparatus for information recommendation, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors comprise instructions for:
acquiring content generated by a user in the process of using an input method;
if the generated content is determined to have the information recommendation intention, determining recommendation information according to the generated content;
displaying a recommendation identifier corresponding to the recommendation information on a relevant interface of the input method;
and pushing the recommendation information in response to the trigger operation aiming at the recommendation identification.
C16, according to the apparatus of C15, the interface related to the input method is a candidate item presentation interface of the input method, and the presenting of the recommendation identifier corresponding to the recommendation information on the interface related to the input method includes:
and taking the recommendation identifier corresponding to the recommendation information as a candidate item, and displaying the candidate item in a candidate item display interface of the input method.
C17, the apparatus of C15, the determining that the generated content has an information recommendation intent, comprising:
if the generated content contains a part matched with preset content, determining that the generated content has an information recommendation intention; or
Inputting the generated content into a detection model, and if the output probability of the detection model is greater than a preset probability, determining that the generated content has an information recommendation intention; the detection model is a neural network model obtained by training according to content samples generated in history and labeling results corresponding to the content samples generated in history.
C18, the apparatus of C15, the determining recommendation information according to the generated content, comprising:
acquiring a part matched with preset content in the generated content;
according to the historical behavior information of the user, determining the personalized features of the user;
and determining recommendation information according to the part matched with the preset content and the personalized features.
C19, the apparatus according to C15, the pushing the recommendation information in response to the trigger operation for the recommendation identification, including:
responding to the trigger operation aiming at the recommendation identification, and generating the sharing content corresponding to the recommendation information;
and pushing the shared content corresponding to the recommendation information to the target object.
C20, according to the apparatus of C19, the target object is a correspondent node, and the pushing of the shared content corresponding to the recommendation information to the target object includes:
sending the sharing content corresponding to the recommendation information to the communication opposite terminal; or
The target object is a shared directory, and the pushing of the shared content corresponding to the recommendation information to the target object includes:
and uploading the shared content corresponding to the recommendation information to the shared directory.
C21, the apparatus of C19 or C20, the shared content comprising: sharing links and/or sharing pictures; the sharing link is used for pointing to a resource address corresponding to the recommendation information, and the sharing picture comprises a two-dimensional code used for pointing to the resource address corresponding to the recommendation information.
The embodiment of the invention discloses D22, a machine readable medium with instructions stored thereon, which when executed by one or more processors causes an apparatus to perform the information recommendation method as described in one or more of A1-A7.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The information recommendation method, the information recommendation device and the device for information recommendation provided by the invention are described in detail, 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.