Content of the invention
In view of this, the embodiment of the present invention provides a kind of chat content to recommend method, device and electronic equipment, it is possible to increase
The matching degree that chat content is recommended, is conducive to the interaction between user and chat correspondent.
In a first aspect, the embodiment of the present invention provides a kind of chat content to recommend method, including:
The chat content recommendation request that receive user sends;
According to described chat content recommendation request, determine the corresponding user gradation of described user;
Chat content is obtained from corresponding chat content storehouse according to the corresponding user gradation of described user, wherein, different
The different chat content storehouse of user gradation correspondence;
Acquired chat content is recommended described user.
In conjunction with a first aspect, in the first embodiment of first aspect, described recommended according to described chat content please
Ask, determine that the corresponding user gradation of described user includes:
According to described chat content recommendation request, obtain sex and the history chat content key word of described user;
Sex according to described user and history chat content key word, determine the corresponding user gradation of described user.
In conjunction with the first embodiment of first aspect, in the second embodiment of first aspect, described according to institute
State sex and the history chat content key word of user, determine that the corresponding user gradation of described user includes:When according to described
When the user gradation arriving corresponding to the sex of user and history chat content key word is two or more, by the use of described user
Family grade be defined as corresponding to two or more user gradation in highest user gradation.
In conjunction with a first aspect, in the third embodiment of first aspect, described according to the corresponding user of described user
Grade obtains chat content from corresponding chat content storehouse and includes:Chatted from corresponding according to the corresponding user gradation of described user
The chat content do not recommended to described user before random acquisition in its content library.
In conjunction with the third embodiment of first aspect, in the 4th kind of embodiment of first aspect, described according to institute
State the corresponding user gradation of user and obtain chat content from corresponding chat content storehouse and include:When in same chat content storehouse
It is out-of-date that chat content is all recommended to described user, corresponding from the other user gradation of the high one-level of the corresponding user gradation of described user
Chat content storehouse in obtain chat content.
Second aspect, the embodiment of the present invention provides a kind of chat content recommendation apparatus, including:
Receiving unit, the chat content recommendation request sending for receive user;
Determining unit, for according to described chat content recommendation request, determining the corresponding user gradation of described user;
Acquiring unit, for obtaining in chat according to the corresponding user gradation of described user from corresponding chat content storehouse
Hold, wherein, the different chat content storehouse of different user grade correspondence;
Recommendation unit, for recommending described user by acquired chat content.
In conjunction with second aspect, in the first embodiment of second aspect, described determining unit includes:
Obtain subelement, for according to described chat content recommendation request, obtaining the sex of described user and history being chatted
Its content keyword;
Determination subelement, for the sex according to described user and history chat content key word, determines described user
Corresponding user gradation.
In conjunction with the first embodiment of second aspect, in the second embodiment of second aspect, described determination
Unit, for when the user gradation that be arrived according to corresponding to the sex of described user and history chat content key word be two with
When upper, by the user gradation of described user be defined as corresponding to two or more user gradation in highest user gradation.
In conjunction with second aspect, in the third embodiment of second aspect, described acquiring unit, for according to described use
The chat content that the corresponding user gradation in family was not recommended to described user before random acquisition from corresponding chat content storehouse.
In conjunction with the third embodiment of second aspect, in the 4th kind of embodiment of second aspect, described acquisition is single
Unit, for when the chat content in same chat content storehouse all to described user recommend out-of-date, from the corresponding use of described user
Chat content is obtained in the other user gradation of the high one-level of family grade corresponding chat content storehouse.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes:Housing, processor, deposit
Reservoir, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer setting
On circuit boards;Power circuit, for being each circuit of above-mentioned electronic equipment or device is powered;Memorizer is used for storing can be held
Line program code;Processor is run and executable program code pair by reading the executable program code of storage in memorizer
The program answered, recommends method for executing aforementioned arbitrary described chat content.
A kind of chat content provided in an embodiment of the present invention recommends method, device and electronic equipment, is sent according to user
Chat content recommendation request determines the corresponding user gradation of described user, according to the corresponding user gradation of described user from corresponding
Chat content is obtained in chat content storehouse, wherein, the different chat content storehouse of different user grade correspondence, and acquired is chatted
Its commending contents gives described user.Compared with prior art, the present invention can be automatic according to the chat content recommendation request of user
Mate corresponding user gradation, so recommend corresponding chat content for user such that it is able to improve that chat content recommends
Degree of joining, is conducive to the interaction between user and chat correspondent.
Specific embodiment
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of not making creative work all its
Its embodiment, broadly falls into the scope of protection of the invention.
The flow chart that Fig. 1 recommends embodiment of the method one for chat content of the present invention, as shown in figure 1, the method for the present embodiment
Can include:
The chat content recommendation request that step S11, receive user send.
In the present embodiment, " chat content recommendation " function can be set in user's chat interface of social networking application software and press
Button, user clicks on this functional keys, sends chat content recommendation request, and this social networking application software is recommended according to this chat content please
Ask and start follow-up chat content recommended flowsheet.
Step S12, according to described chat content recommendation request, determine the corresponding user gradation of described user.
In the present embodiment, user can be divided in advance multiple grades.After user's click function button, send chat content
Recommendation request, electronic equipment, according to described chat content recommendation request, determines the corresponding user gradation of described user.
Step S13, chat content is obtained from corresponding chat content storehouse according to the corresponding user gradation of described user, its
In, the different chat content storehouse of different user grade correspondence.
In the present embodiment, described chat content storehouse can be arranged on electronic equipment internal, or, it is arranged on server end.
When being arranged on server end, electronic equipment first will determined by user gradation be sent to server, then, server according to
Family grade obtains chat content from corresponding chat content storehouse and returns to electronic equipment.
Step S14, acquired chat content is recommended described user.
In the present embodiment, once can recommend one or more chat content to user, user recommends according to electronic equipment
Chat content, chatted with other side, the chat content by being recommended more is mated with the practical situation of user, thus having
Beneficial to the interaction between user and chat correspondent.
The present embodiment, determines the corresponding user gradation of described user, root according to the chat content recommendation request that user sends
Obtain chat content, wherein, different user grade pair according to the corresponding user gradation of described user from corresponding chat content storehouse
Answer different chat content storehouses, and acquired chat content is recommended described user.Compared with prior art, energy of the present invention
Enough corresponding user gradations of chat content recommendation request Auto-matching according to user, and then recommend in corresponding chat for user
Hold such that it is able to improve the matching degree that chat content is recommended, be conducive to the interaction between user and chat correspondent.
The flow chart that Fig. 2 recommends embodiment of the method two for chat content of the present invention, as shown in Fig. 2 the method for the present embodiment
Can include:
The chat content recommendation request that step S21, receive user send.
In the present embodiment, chat content recommendation request and the step S11 class of said method embodiment that receive user sends
Seemingly, here is omitted.
Step S22, according to described chat content recommendation request, obtain the sex of described user and history chat content closed
Keyword.
In the present embodiment, each user can input gender information in registration, and electronic equipment can record the sex letter of user
Breath, when user clicks on " chat content recommendation " functional keyss, electronic equipment obtains the sex of this user according to the account of this user.
In addition, the history chat record of each user can preserve in the electronic device, electronic equipment is according to the history of the user being preserved
Chat record can analyze the history chat content key word drawing this user.
Step S23, the sex according to described user and history chat content key word, determine the corresponding use of described user
Family grade.
In the present embodiment, user can be divided in advance by multiple grades according to user's sex and chat content key word, set up
Synopsis between user's sex and chat content key word and user gradation.
For example, it is possible to user is divided in advance by 6 grades according to user's sex and chat content key word:Male (primary), man
(intermediate), male (senior), female (primary), female's (intermediate), female (senior).
After user's click function button, send chat content recommendation request, electronic equipment obtain the sex of this user with
And history chat content key word, and the sex according to this user and history chat content key word, from the user pre-building
Corresponding user class is found in synopsis between sex and chat content key word and user gradation.
For example, if the sex of this user is male, history chat content key word is " have a meal, go window-shopping, dating ", then really
The user gradation of this user fixed is male (primary).
Further, when the user gradation arriving corresponding to the sex according to described user and history chat content key word
During for two or more, by the user gradation of described user be defined as corresponding to two or more user gradation in highest user
Grade.
Step S24, according to the corresponding user gradation of described user from corresponding chat content storehouse random obtain before not
The chat content recommended to described user.
In the present embodiment, set up corresponding chat content storehouse for each user class in advance, each chat content storehouse Zhong Bao
Include multiple different chat content.According to determined by user gradation, from corresponding chat content storehouse obtain chat content, right
For same user, the chat content having obtained no longer obtains.
Alternatively, described chat content storehouse can be arranged on electronic equipment internal, or, it is arranged on server end.When setting
Put in server end, first user gradation determined by general is sent to server to electronic equipment, and then, server is according to user etc.
Level obtains chat content from corresponding chat content storehouse and returns to electronic equipment.
Further, when the chat content in same chat content storehouse is all out-of-date to described user recommendation, from described use
Chat content is obtained in the corresponding chat content storehouse of the other user gradation of the high one-level of the corresponding user gradation in family.
For example, the user gradation of active user is male (primary), when chatting in male (primary) corresponding chat content storehouse
It is out-of-date that its content is all recommended to this user, then automatically in the chat more corresponding than the other man's (intermediate) of male (primary) high one-level
Chat content is obtained in Rong Ku.
Step S25, acquired chat content is recommended described user.
In the present embodiment, acquired chat content is recommended the process of described user and the step of said method embodiment
Rapid S14 is similar to, and here is omitted.
The present embodiment, obtains sex and the history chat of described user according to the chat content recommendation request that user sends
Content keyword, the sex according to described user and history chat content key word determine corresponding user of described user etc.
Level, does not recommend to described user before random acquisition from corresponding chat content storehouse according to the corresponding user gradation of described user
The chat content crossed, and acquired chat content is recommended described user.Compared with prior art, the present invention being capable of basis
The corresponding user gradation of chat content recommendation request Auto-matching of user, and then recommend corresponding chat content for user, from
And the matching degree that chat content is recommended can be improved, be conducive to the interaction between user and chat correspondent.
Fig. 3 is the structural representation of chat content recommendation apparatus embodiment one of the present invention, as shown in figure 3, the present embodiment
Device can include:Receiving unit 11, determining unit 12, acquiring unit 13, recommendation unit 14, wherein, receiving unit 11, it is used for
The chat content recommendation request that receive user sends;Determining unit 12, for according to described chat content recommendation request, determining institute
State the corresponding user gradation of user;Acquiring unit 13, for according to the corresponding user gradation of described user in corresponding chat
Chat content is obtained in Rong Ku, wherein, the different chat content storehouse of different user grade correspondence;Recommendation unit 14, for by institute
The chat content obtaining recommends described user.
The device of the present embodiment, can be used for executing the technical scheme of embodiment of the method shown in Fig. 1, it realizes principle and skill
Art effect is similar to, and here is omitted.
Fig. 4 is the structural representation of chat content recommendation apparatus embodiment two of the present invention, as shown in figure 4, the present embodiment
On the basis of Fig. 3 shown device structure, further, described determining unit 12 includes device:
Obtain subelement 121, for according to described chat content recommendation request, obtaining sex and the history of described user
Chat content key word;
Determination subelement 122, for the sex according to described user and history chat content key word, determines described use
The corresponding user gradation in family.
Further, described determination subelement 122, for closing when the sex according to described user and history chat content
When the user gradation arriving corresponding to keyword is two or more, by the user gradation of described user be defined as corresponding to arrive two with
Highest user gradation in upper user gradation.
Further, described acquiring unit 13, for according to the corresponding user gradation of described user in corresponding chat
The chat content do not recommended to described user before random acquisition in Rong Ku.
Further, described acquiring unit 13, for when the chat content in same chat content storehouse is all to described use
It is out-of-date that family is recommended, and obtains and chat from the corresponding chat content storehouse of the other user gradation of the high one-level of the corresponding user gradation of described user
Its content.
The device of the present embodiment, can be used for executing the technical scheme of embodiment of the method shown in Fig. 1 or Fig. 2, it realizes former
Reason is similar with technique effect, and here is omitted.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating
In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to
Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence " include ... " it is not excluded that
Also there is other identical element in process, method, article or the equipment including described key element.
Each embodiment in this specification is all described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple
Single, in place of correlation, the part referring to embodiment of the method illustrates.
Represent in flow charts or here logic described otherwise above and/or step, for example, it is possible to be considered as to use
In the order list of the executable instruction realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system as computer based system, including processor or other can hold from instruction
Row system, device or equipment instruction fetch the system of execute instruction) use, or with reference to these instruction execution systems, device or set
Standby and use.For the purpose of this specification, " computer-readable medium " can any can be comprised, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress using with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:There is the electricity of one or more wirings
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program thereon or other are suitable
Medium, because edlin, interpretation or if necessary with it can then be entered for example by carrying out optical scanning to paper or other media
His suitable method is processed to electronically obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can be with storage in memory and by suitable instruction execution
The software of system execution or firmware are realizing.For example, if realized with hardware, and the same in another embodiment, can use
Any one of following technology well known in the art or their combination are realizing:Have for data signal is realized with logic work(
The discrete logic of the logic gates of energy, has the special IC of suitable combinational logic gate circuit, programmable gate
Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment comprises described in aforementioned any embodiment
Device.
Fig. 5 is the structural representation of electronic equipment embodiment of the present invention, it is possible to achieve implement shown in Fig. 1 or Fig. 2 of the present invention
The flow process of example, as shown in figure 5, above-mentioned electronic equipment can include:Housing 31, processor 32, memorizer 33, circuit board 34 and electricity
Source circuit 35, wherein, circuit board 34 is placed in the interior volume that housing 31 surrounds, and processor 32 and memorizer 33 are arranged on circuit
On plate 34;Power circuit 35, for being each circuit of above-mentioned electronic equipment or device is powered;Memorizer 33 is used for storing can be held
Line program code;Processor 32 is run and executable program generation by reading the executable program code of storage in memorizer 33
The corresponding program of code, recommends method for executing aforementioned arbitrary described chat content.
Processor 32 to the concrete implementation procedure of above-mentioned steps and processor 32 by run executable program code
The step executing further, may refer to the description of Fig. 1 of the present invention or embodiment illustrated in fig. 2, will not be described here.
This electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The feature of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and low
End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, has calculating and processes work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.This kind equipment includes:Audio frequency,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server:There is provided the equipment of the service of calculating, it is total that the composition of server includes processor, hard disk, internal memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, is therefore processing energy
The aspects such as power, stability, reliability, safety, extensibility, manageability require higher.
(5) other have the electronic equipment of data interaction function.
Those skilled in the art are appreciated that to realize all or part step that above-described embodiment method carries
Suddenly the program that can be by completes come the hardware to instruct correlation, and described program can be stored in a kind of computer-readable storage medium
In matter, this program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules to be respectively described with function.Certainly, exist
Implement the function of each unit/module can be realized in same or multiple softwares and/or hardware during the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
Mode by software plus necessary general hardware platform to be realized.Based on such understanding, technical scheme essence
On in other words prior art is contributed partly can be embodied in the form of software product, this computer software product
Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., include some instructions use so that a computer equipment
(can be personal computer, server, or network equipment etc.) executes some of each embodiment of the present invention or embodiment
Partly described method.