Summary of the invention
In view of this, the embodiment of the present application provides a kind of session expression processing method, to solve to exist in the prior art
Technological deficiency.The embodiment of the present application provides a kind of session expression processing unit, a kind of calculating equipment and a kind of meter simultaneously
Calculation machine readable storage medium storing program for executing.
The embodiment of the present application discloses a kind of session expression processing method, comprising:
Obtain the session status at least one session object that conversation page is related to;
Determine that the session status concentrates corresponding state expression in preset state expression;
The state expression is shown in the conversation page;
According to detecting that the expression collection for the state expression acts, the state expression is collected to
In the session expression library for talking about expression interaction.
Optionally, the session status for obtaining at least one session object that conversation page is related to, comprising:
Obtain the conversation start time for the active session object that the conversation page is related to;The active session object includes
Triggering enters the session object of the conversation page in the session object that the conversation page is related to;
Determine that the passive session object that the conversation page is related to is corresponding in the conversation start time affiliated time interval
Session status;The passive session object includes in session object that the conversation page is related to except the active session object
Except session object.
Optionally, the session status for obtaining at least one session object that conversation page is related to, comprising:
Obtain the conversation start time for the active session object that the conversation page is related to;The active session object includes
Triggering enters the session object of the conversation page in the session object that the conversation page is related to;
According to the conversation start time, determine passive session object that the conversation page is related in the conversation page
Historical session record belonging to business scenario dimension under session status;The passive session object includes the conversation page
Session object in the session object being related in addition to the active session object.
Optionally, the determination session status concentrates corresponding state expression in preset state expression, comprising:
Determine that preset state expression of the session status under the business scenario dimension concentrates corresponding state expression,
And the expression of the state expression shows rule;
Correspondingly, described show the state expression in the conversation page, comprising:
Show that rule shows the state expression in the conversation page according to the expression.
Optionally, before the session status step for obtaining at least one session object that conversation page is related to executes,
Include:
Obtain the session request that the active session object is initiated for the passive session object;
The conversation page is shown based on the session request.
Optionally, described after the conversation page shows that the state expression step executes and described according to detection
The expression collection for the state expression arrived acts, and the state expression is collected to the session for the expression interaction that conversates
Before step executes in expression library, comprising:
Judge the expression collection movement for the state expression whether is detected in prefixed time interval;
It is acted if so, executing the expression collection for the state expression that the basis detects, by the state table
Feelings collect the step into the session expression library for the expression interaction that conversates;
If it is not, hiding the state expression that the conversation page is shown.
It is optionally, described after the conversation page shows that the state expression step executes, comprising:
If detecting the session input action of the session input frame for conversation page setting, or detects and be directed to
The page sliding action of the conversation page then hides the state expression that the conversation page is shown.
Optionally, the session expression is identified configured with emotional state, and the emotional state mark includes following at least one
:
The mark of selected state, the unselected state of the unselected state of session expression of the selected state of session expression
Mark;
If the emotional state of the session expression is identified as the selected state and identifies, the session expression supports quilt
It triggers and sends.
Optionally, the session input frame setting espressiove of the conversation page inputs mark;
If detecting, the expression input mark is triggered, and shows in the session input frame region of the conversation page
The emotional state of session expression in session expression library identifies.
Optionally, if detecting the session expression that the session input frame region for the conversation page is shown
Emotional state mark mark trigger action, judge that the emotional state of the session expression identifies whether as selected state mark
Know;
If so, sending the session expression, and the session expression is shown in the conversation recording of the conversation page;
If it is not, the emotional state mark of the session expression is updated to described chosen from the unselected status indicator
Status indicator, and the emotional state for issuing the session expression identifies the prompting being updated.
Optionally, the session expression processing method, comprising:
If the emotional state mark of the session expression is updated, the session expression is updated to the session expression
Library, and the update in session expression library is synchronized at least one and conversates what expression interacted using session expression library
Expression session component.
Optionally, the session expression processing method, comprising:
If the emotional state mark of any one session expression in the session expression library described in the expression session component
Knowledge is triggered, and judges that the emotional state of the session expression identifies whether as the selected state mark;
If so, sending the session expression, and the conversational list is shown in the conversation recording of the expression session component
Feelings.
Optionally, the passive session object, including at least one of following: customer service robot, dialogue robot.
Optionally, the state expression includes: the dynamical state expression of at least frame facial expression image frame composition.
The application also provides a kind of session expression processing unit, comprising:
Session status acquiring unit is configured as obtaining the session shape at least one session object that conversation page is related to
State;
State expression determination unit is configured to determine that the session status concentrates corresponding state in preset state expression
Expression;
State expression display unit is configured as showing the state expression in the conversation page;
State expression collects unit, is configured as being acted according to the expression collection for the state expression detected,
The state expression is collected into the session expression library for conversating expression interaction.
The application also provides a kind of calculating equipment, comprising:
Memory and processor;
For the memory for storing computer executable instructions, the processor is executable for executing the computer
Instruction:
Obtain the session status at least one session object that conversation page is related to;
Determine that the session status concentrates corresponding state expression in preset state expression;
The state expression is shown in the conversation page;
According to detecting that the expression collection for the state expression acts, the state expression is collected to
In the session expression library for talking about expression interaction.
The application also provides a kind of computer readable storage medium, is stored with computer instruction, and the instruction is by processor
The step of session expression processing method is realized when execution.
Compared with prior art, the application has the advantages that
The application provides a kind of session expression processing method, comprising: obtains at least one session pair that conversation page is related to
The session status of elephant;Determine that the session status concentrates corresponding state expression in preset state expression;In the conversation page
Show the state expression;It is acted according to the expression collection for the state expression detected, the state expression is received
It hides into the session expression library for conversating expression interaction.
The session status of session expression processing method provided by the present application, the session object being related to from conversation page is true
Fixed corresponding state expression, the emotional state of session object is conveyed by state expression, and on this basis by session
The mode of page presentation state expression is stowed to state expression as session expression in session expression library, so that session will be conveyed
The state expression of the emotional state of object is combined with the session expression that can be talked about in interactive process, makes the processing for session expression
More there is interest and more convenient.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with
Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments,
It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims
The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly
Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes
One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment
Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other
It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments
As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to
" ... when " or " when ... " or " in response to determination ".
The application provides a kind of session expression processing method, and the application also provides a kind of session expression processing unit, a kind of
Calculate equipment and a kind of computer readable storage medium.Below in conjunction with embodiment provided by the present application attached drawing one by one
It is described in detail, and each step of method is illustrated.
A kind of session expression processing method embodiment provided by the present application is as follows:
Referring to attached drawing 1, it illustrates a kind of session expression processing method process flow diagrams provided in this embodiment, referring to attached
Fig. 2, it illustrates the first conversation page schematic diagrames provided by the embodiments of the present application;Referring to attached drawing 3, it illustrates the application realities
Second of conversation page schematic diagram of example offer is provided;Referring to attached drawing 4, it illustrates the third sessions provided by the embodiments of the present application
Page schematic diagram;Referring to attached drawing 5, it illustrates the 4th kind of conversation page schematic diagrames provided by the embodiments of the present application;Referring to attached drawing
6, it illustrates the 5th kind of conversation page schematic diagrames provided by the embodiments of the present application;Referring to attached drawing 7, it illustrates the application implementations
The 6th kind of conversation page schematic diagram that example provides.
Session expression processing method provided by the present application, comprising:
Step S102 obtains the session status at least one session object that conversation page is related to.
In instant messaging application, in the interactive process that conversates, for example user and customer service robot conversate interaction
During, can only generally be interacted in the form of picture and text, voice etc., customer service robot can not convey the mood of oneself, also without
Method simulates a real character;If it is desired to making customer service robot truer, then need to assign more emotions, can be handed in session
The mood of customer service robot is conveyed during mutually in a suitable form, to leave for extending in itself from the image of customer service robot
Corresponding session expression out.
Session expression processing method provided by the present application, from this angle, the session pair being related to according to conversation page
The session status of elephant determines its corresponding state expression, is conveyed by the corresponding state expression of the session status of session object
The emotional state of session object, and collected by way of a kind of game on the basis of conversation page display state expression
State expression further enriches the session expression library for conversating interactive according to the state expression being collected into, makes conversational list
The collection of feelings more has interest.
The session object that conversation page described in the embodiment of the present application is related to, refer to conversation page carry out text, voice or
Session object in session interactive process can be divided into the active for actively initiating session by the session object of the information exchanges such as person's picture
Session object and the passive passive session object for receiving session invitation.Wherein, the active session object can be triggering session
Interact and enter the session object of conversation page, in the embodiment of the present application, the passive session object preferably refers to service machine device
People.
For example, user and customer service robot conversate in the scene interacted, session interaction is usually to initiate from user, then
The user of triggering session interaction and the entrance participant words page is active session object;It is corresponding, passively receive Client-initiated
The customer service robot of session interaction is passive session object.
In addition to this, the passive session object can also be other intelligence except user or the customer service robot
Robot, such as the dialogue robot etc. in instant communication applications or in game for engaging in the dialogue with user, this implementation
Example does not limit this.
The session status of the session object refers to that respectively the biography of mood passes the session object when conversating interactive
Reach, with the artificial example of customer service machine, the session status of customer service robot from morning to night include: read a book, play games, have a meal and beat it is sleepy
It sleeps, realizes that the more moods of customer service robot are conveyed by the session status of different periods.
In a kind of preferred embodiment provided by the embodiments of the present application, at least one session pair that conversation page is related to is obtained
During the session status of elephant, the conversation start time for the active session object that conversation page is related to is obtained first;The active
Session object includes the session object that triggering enters conversation page in session object that conversation page is related to;Then session page is determined
The passive session object that face is related to is in the corresponding session status of the conversation start time affiliated time interval;The passive session
Object includes the session object in session object that conversation page is related in addition to the active session object.
For example, user is as the active session objects trigger in session interaction scene and enters and customer service machine conference page
After face, is greeted first to user from customer service robot and send conversation message;Wherein, customer service robot sends session to user
The foundation of message is the conversation start time that the two enters conversation page, then further true on the basis of the conversation start time
Fixed corresponding session status.
Specifically, if it is the morning that user, which triggers and enters the conversation start time that interacts of conversating with customer service robot,
08:00-12:00, then session status of the customer service robot in this period is " reading ";If user's triggering and entrance and customer service
The conversation start time that robot conversates interactive is 14:00-17:00 in afternoon, then customer service robot is in this period
Session status is " playing games ";If user triggers and enters under the conversation start time for conversating and interacting with customer service robot is
Noon 17:00-19:00, then session status of the customer service robot in this period is " having a meal ";If user triggers and enters and visitor
Taking the conversation start time that robot conversates interactive is evening 21:00-23:00, then customer service robot is in this period
Session status be " doze ".
In another kind preferred embodiment provided by the embodiments of the present application, at least one session that conversation page is related to is obtained
During the session status of object, the conversation start time for the active session object that conversation page is related to is obtained first;The master
Dynamic session object includes the session object that triggering enters conversation page in session object that conversation page is related to;Then according to
The conversation start time determines passive session object business belonging to the historical session record of conversation page that conversation page is related to
Session status under scene dimension;The passive session object includes in session object that conversation page is related to except the active meeting
Talk about the session object except object.
For example, user is as the active session objects trigger in session interaction scene and enters and customer service machine conference page
After face, is greeted first to user from customer service robot and send conversation message;Wherein, customer service robot sends session to user
The foundation of message both is that the conversation start time for entering conversation page and the two in the historical session of conversation page record institute
The online shopping business scenario dimension or speculation in stocks business scenario dimension of category, then in conversation start time and online shopping industry
Conversation message is sent to user on the basis of scene dimension of being engaged in or the session status that business scenario dimension determines of speculating in shares.
Preferably, it before the session status for obtaining the passive session object that conversation page is related to, can also obtain
The session request that the active session object is initiated for the passive session object, and based on described in session request displaying
Conversation page then shows that user and customer service robot understand for example, receiving the session request that user is directed to customer service robot
Talk about interaction conversation page, thus conversate on the basis of conversation page for subsequent step expression processing provide visualize according to
According to.
Step S104 determines that the session status concentrates corresponding state expression in preset state expression.
State expression described in the embodiment of the present application refers to the mood for conveying the session object in different sessions state
And the expressive features of animation, it is preferred that the state expression is dynamical state expression, specifically, the dynamical state
Expression is made of an at least frame facial expression image frame, i.e. Dynamic Graph.
It uses the example above, the session status of customer service robot morning 08:00-12:00 is reading, then this session status of reading a book
Corresponding state expression is Dynamic Graph of the robot image in reading;Similar, customer service robot 14:00-17:00 in afternoon
Session status be play games, then the corresponding state expression of this session status of playing games be a robot image with earphone
The Dynamic Graph played games;The session status of customer service robot 17:00-19:00 in afternoon is to have a meal, then this session status pair of having a meal
The state expression answered is the Dynamic Graph that a robot image is had a meal, the Dynamic Graph that robot image as shown in Fig. 2 is had a meal
Shown in 201;The session status of customer service robot evening 21:00-23:00 is to doze off, then this session status of dozing off is corresponding
State expression be a robot image doze off Dynamic Graph.
Preset state expression collection described in the embodiment of the present application refers in advance for the session object in different sessions state
Corresponding state expression is set, and the corresponding state expression of all session status collectively constitutes the preset state expression collection.
In practical application, according to the session status of the session object of above-mentioned determination, and according to the preset state table
Feelings concentrate the corresponding state expression of each session status pre-set, determine the session pair in the preset state expression collection
The corresponding state expression of the session status of elephant.
In the conversation start time for the active session object that the acquisition conversation page of above-mentioned offer is related to, and according to the meeting
Initial time is talked about, determines passive session object business field belonging to the historical session record of conversation page that conversation page is related to
On the basis of session status under scape dimension, in a kind of preferred embodiment provided by the embodiments of the present application, the meeting is being determined
Speech phase is during preset state expression concentrates corresponding state expression, except the determining session status is in the business field
Preset state expression under scape dimension concentrates corresponding state expression, while determining that the expression of the state expression shows rule.
Step S106 shows the state expression in the conversation page.
As described above, determine the session status preset state expression concentrate corresponding state expression during,
Except preset state expression of the determination session status under the business scenario dimension concentrates corresponding state expression, while really
The expression of the fixed state expression shows rule;Correspondingly, during conversation page shows the state expression, then according to institute
It states expression and shows that rule shows the state expression in conversation page, to make the corresponding state expression of session status in session page
The displaying in face is more diversified, promotes the mutual session interaction experience of session object.
For example, showing that regular conversation page shows that customer service machine conference state is the state of " having a meal " according to following expression
Expression (i.e. robot image be at table Dynamic Graph): the Dynamic Graph that robot image is at table shows 3 seconds in conversation page, such as
User is without click or other any operations in fruit this 3 seconds, then the Dynamic Graph that robot image is at table is in the aobvious of conversation page
Show termination, disappears from conversation page.
Except above-mentioned offer shows that rule, can be in addition to conversation page shows the state expression according to the expression
It is realized by other embodiments and the state expression is detected in the control that conversation page is shown, it is provided by the embodiments of the present application
In a kind of preferred embodiment, after conversation page shows the state expression, judge whether detect in prefixed time interval
It is acted to the expression collection for the state expression;If so, executing following step S108, the shape is directed to according to what is detected
The expression collection of state expression acts, and the state expression is collected into the session expression library for conversating expression interaction;If it is not,
Then hide the state expression that conversation page is shown.
For example, the state expression (i.e. robot image be at table Dynamic Graph) of customer service robot " having a meal " is in conversation page
Display 3 seconds;If receiving the expression collection movement for the Dynamic Graph that user shows for conversation page in this 3 seconds, enters and receive
Hide Dynamic Graph logic;If not receiving the expression collection movement of the Dynamic Graph shown for conversation page in this 3 seconds, to
The Dynamic Graph that session is shown is hidden after display in 3 seconds.
In practical applications, the state expression is illustrated in after conversation page, if the session pair that conversation page is related to
The interaction that conversates is wanted as between, for example during user does shopping on line, user triggers and enters and customer service robot
The purpose for the interactive conversation page that conversates is to seek advice from merchandise related information to customer service robot as early as possible, passes through following offers
Preferred embodiment can be rapidly switched to session interaction state, in a kind of preferred embodiment provided by the embodiments of the present application,
After conversation page shows the state expression, the movement that detection session object is inputted in conversation page, specifically, if detecting
For the session input action of the session input frame of conversation page setting, show the meaning for issuing the session object of session input action
Hope is the interaction that conversates, then hides the state expression that conversation page is shown, restore to the session interaction shape of conversation page
State;
Similar, if detecting the page sliding action for conversation page, show the session for issuing page sliding action
The wish of object is likely to check that historical session records, then hides the state expression that conversation page is shown.
Step S108 is acted according to the expression collection for the state expression detected, the state expression is received
It hides into the session expression library for conversating expression interaction.
Session expression library described in the embodiment of the present application refers to and carries out expression interaction when institute in conversation page between session object
The set of the session expression used.When it is implemented, supporting meeting further to enrich the session expression for including in session expression library
Session expression is stowed in session expression library by words object in conversation procedure.
Preferably, the session expression in session expression library is identified configured with emotional state, the emotional state mark
Include: the selected state of session expression selected state mark, session expression unselected state unselected state mark
Know;
Wherein, if the emotional state of the session expression is identified as the selected state and identifies, the session expression branch
It holds and is triggered and sends;If the emotional state of the session expression is identified as the unselected status indicator, the session expression
It does not support to be sent, must support to send after the session expression is selected.
Further, the session input frame of conversation page is preferably provided with espressiove input mark;If detecting, the expression is defeated
Inlet identity is triggered, and shows the table of the session expression in session expression library in the session input frame region of conversation page
Feelings status indicator.
For example, customer service robot has a meal, (what i.e. robot image was at table is dynamic for the corresponding state expression of this session status
State figure), after the expression collection movement which is input by a user is chosen, which is collected as session expression to session
Expression library.The session input frame of conversation page as shown in Fig. 5 is provided with expression input mark 501, expression input
After mark 501 is triggered, the emotional state of the session expression in the display session expression library of session input frame region is identified.
It is to realize to session expression in the session expression library on the basis of the above-mentioned progress state differentiation to session expression
More comprehensive control, in a kind of preferred embodiment provided by the embodiments of the present application, if detecting the meeting for conversation page
The mark trigger action of the emotional state mark for the session expression that words input frame region is shown, judges the conversational list
The emotional state of feelings identifies whether as the mark of selected state;
If so, sending the session expression, and the session expression is shown in the conversation recording of conversation page;
If it is not, the emotional state mark of the session expression is updated to described chosen from the unselected status indicator
Status indicator, and the emotional state for issuing the session expression identifies the prompting being updated.
For example, user during session interaction, if wanting to send some session expression in session expression library, is first turned on
Then the table that some the session expression sent is wanted in session expression library is clicked in the session expression library of session input frame region
Feelings status indicator sends the conversational list if the emotional state for the session expression being clicked is identified as selected state mark
Feelings;
If the emotional state for the session expression being clicked is identified as unselected status indicator, user need to further trigger this
The emotional state of session expression identifies, by triggering the never selected state mark update of the emotional state mark of the session expression
For the mark of selected state, user can send the session expression on the basis of selected state identifies.
It should be noted that for the applicability of session expression in enhancing session expression library, it can be by the session expression
Library is synchronized to other assemblies, for example, if current conversate interaction in some application by conversation page, active user and visitor
Take robot conversated by conversation page be used interchangeably be the application functional unit after sale, and the application is except after sale
It also include community function component except functional unit, session expression library is then synchronized to by community function component as shown in Fig. 7
Community function component is using the session expression in session expression library equally transmittable in community function component process.
In a kind of preferred embodiment provided by the embodiments of the present application, the table of session expression in session expression library is detected
Situation state identifies whether to be updated, if the emotional state mark of the session expression is updated, the session expression is updated to
Session expression library, and the update in session expression library is synchronized at least one and is understood using session expression library
Talk about the expression session component of expression interaction.
Further, for any one using session expression library conversate expression interaction expression session component,
During carrying out expression session in the expression session component, conversated expression by the preferred embodiment of following offers
Send detection processing:
If the emotional state of any one session expression in the session expression library described in the expression session component identifies
It is triggered, judges that the emotional state of the session expression identifies whether as the selected state mark;
If so, showing that the session expression support is sent, then the session expression is sent, and in the expression session component
Conversation recording in show the session expression;
If it is not, then show that the session expression support is not supported still to be sent, it need to be to the emotional state of the session expression
Mark is selected and is triggered the mark of selected state and sent later.
For example, community function component as shown in Fig. 7, session expression library is synchronized to the community function component, is based on
This, user can conversate expression interaction in the community function component, for example input conversational list in the comment to community's note
Session expression in feelings library;
It is being chosen for user, want in review process specifically in inputting session expression library during session expression
The session expression of input judges that the emotional state of the session expression identifies whether as the mark of selected state;If so, by the meeting
Expression input user is talked about in the comment of community's note;If it is not, need to be identified to the emotional state of the session expression selected
And it is triggered selected state mark and is inputted later.
Following combination attached drawings 2 provide the conversational list that the specific example of session expression processing provides this Shen to attached drawing 7
Feelings processing method is further described:
It conversates with customer service robot " Anna " in the scene interacted in user, session interaction is usually to send out from user
It rises, user is triggering session interaction and enters and the active session object of the customer service machine conference page, the artificial quilt of customer service machine
Dynamic session object.
Specifically, if it is the morning that user, which triggers and enters the conversation start time that interacts of conversating with customer service robot,
08:00-12:00, then session status of the customer service robot in this period is " reading ";If user's triggering and entrance and customer service
The conversation start time that robot conversates interactive is 14:00-17:00 in afternoon, then customer service robot is in this period
Session status is " playing games ";If user triggers and enters under the conversation start time for conversating and interacting with customer service robot is
Noon 17:00-19:00, then session status of the customer service robot in this period is " having a meal ";If user triggers and enters and visitor
Taking the conversation start time that robot conversates interactive is evening 21:00-23:00, then customer service robot is in this period
Session status be " doze ".
Further, the session status of customer service robot morning 08:00-12:00 is reading, then this session status pair of reading a book
The state expression answered is Dynamic Graph of the robot image in reading;Similar, customer service robot 14:00-17:00's in afternoon
Session status is to play games, then the corresponding state expression of this session status of playing games is that a robot image is beaten with earphone
The Dynamic Graph of game;The session status of customer service robot 17:00-19:00 in afternoon is to have a meal, then this session status of having a meal is corresponding
State expression be the Dynamic Graph had a meal of a robot image;The session status of customer service robot evening 21:00-23:00 is
It dozes off, then the corresponding state expression of this session status of dozing off is the Dynamic Graph that a robot image is dozed off.
After the corresponding state expression for determining the session status of customer service robot, current sessions shape is shown in conversation page
The corresponding state expression of state, session status when customer service robot 06:00 in afternoon are to have a meal, then show and have a meal in conversation page
The Dynamic Graph that the corresponding robot image of this session status is had a meal, the Dynamic Graph that robot image as shown in Fig. 2 is had a meal
201。
When being particularly shown the Dynamic Graph 201 that robot image is had a meal, the Dynamic Graph that robot image is at table is in session
The page is shown 3 seconds;
If receiving the movement that user arouses input dialogue frame in this 3 seconds, show that user wants progress and service machine
The session interaction of device people " Anna " hides the Dynamic Graph that the robot image that conversation page is shown is at table, as shown in Fig. 3;
If the expression collection movement for the Dynamic Graph that user shows for conversation page is received in this 3 seconds, by machine
It is humanoid and to issue to collect and successfully remind as the Dynamic Graph being at table is stowed in session expression library as expression, such as 4 institute of attached drawing
Show.
As shown in Fig. 5, conversation page is provided with session input frame, expression input mark 501 is provided with, with customer service
Robot has a meal for the Dynamic Graph that the corresponding state expression robot image of this session status is at table, and robot image exists
The Dynamic Graph having a meal is collected as session expression to session expression library, can be looked by triggering expression input mark 501
See that the Dynamic Graph that the robot image collected is at table is collected to the session expression after session expression library, expression input mark
After knowledge 501 is triggered, the emotional state of the session expression in the display session expression library of session input frame region is identified, such as
The emotional state of the corresponding session expression of the Dynamic Graph that robot image is at table shown in 601 in attached drawing 6 identifies, and the meeting
The emotional state of words expression is identified as selected state mark.
Meanwhile if current conversate interaction in some application by conversation page, active user and customer service robot
Conversated by conversation page be used interchangeably be the application functional unit after sale, and the application is except functional unit after sale
Except include also community function component, session expression library is then synchronized to community function by community function component as shown in Fig. 7
Component is using the session expression in session expression library equally transmittable in community function component process.
Session expression library is synchronized to after the community function component, and user can conversate table in community function component
Feelings interaction, such as the session expression in the comment to community's note in input session expression library;Specifically in input session expression library
During middle session expression, session expression choosing for user, being inputted in review process judges the session expression
Emotional state identify whether for selected state mark;If so, the comment by session expression input user to community's note
In the middle;If it is not, need to identify selected and be triggered after selected state mark to the emotional state of the session expression
It is inputted.
In conclusion session expression processing method provided by the present application, the session for the session object being related to from conversation page
State, which is set out, determines corresponding state expression, the emotional state of session object is conveyed by state expression, and on this basis
Being stowed in session expression library by way of conversation page display state expression using state expression as session expression, thus
The state expression for conveying the emotional state of session object is combined with the session expression that can be talked about in interactive process, is made for session
The processing of expression more has interest and more convenient.
A kind of session expression processing device embodiment provided by the present application is as follows:
In the above-described embodiment, a kind of session expression processing method is provided, corresponding, the application also provides
A kind of session expression processing unit, is illustrated with reference to the accompanying drawing.
Referring to attached drawing 8, it illustrates a kind of schematic diagrames of session expression processing device embodiment provided by the present application.
Since Installation practice is substantially similar to embodiment of the method, so describing fairly simple, relevant part please join
The corresponding explanation of the embodiment of the method for above-mentioned offer is provided.Installation practice described below is only schematical.
The application provides a kind of session expression processing unit, comprising:
Session status acquiring unit 802 is configured as obtaining the session at least one session object that conversation page is related to
State;
It is corresponding to be configured to determine that the session status is concentrated in preset state expression for state expression determination unit 804
State expression;
State expression display unit 806 is configured as showing the state expression in the conversation page;
State expression collects unit 808, is configured as being collected according to the expression for the state expression detected dynamic
Make, the state expression is collected into the session expression library for conversating expression interaction.
Optionally, the session status acquiring unit 802 includes:
First conversation start time obtained subelement, was configured as obtaining the active session object that the conversation page is related to
The conversation start time;The active session object include in session object that the conversation page is related to triggering enter the meeting
Talk about the session object of the page;
First session status determines subelement, is configured to determine that passive session object that the conversation page is related in institute
State the corresponding session status of conversation start time affiliated time interval;The passive session object includes that the conversation page is related to
Session object in session object in addition to the active session object.
Optionally, the session status acquiring unit 802 includes:
Second conversation start time obtained subelement, was configured as obtaining the active session object that the conversation page is related to
The conversation start time;The active session object include in session object that the conversation page is related to triggering enter the meeting
Talk about the session object of the page;
Second session status determines subelement, is configured as determining the conversation page according to the conversation start time
Session status under the passive session object being related to business scenario dimension belonging to the historical session record of the conversation page;
The passive session object includes the session in session object that the conversation page is related in addition to the active session object
Object.
Optionally, the state expression determination unit 804 is specifically configured to determine the session status in the business
Preset state expression under scene dimension concentrates the expression of corresponding state expression and the state expression to show rule;
Correspondingly, the state expression display unit 806, is specifically configured to show rule described according to the expression
Conversation page shows the state expression.
Optionally, the session expression processing unit, comprising:
Session request acquiring unit is configured as obtaining the active session object for the passive session object initiation
Session request;
Conversation page display unit is configured as showing the conversation page based on the session request.
Optionally, the session expression processing unit, comprising:
Expression collects motion detection unit, is configured as judging whether detect in prefixed time interval for the state
The expression collection of expression acts;If so, running the state expression collection unit 808;It is shown if it is not, hiding the conversation page
The state expression.
Optionally, the session expression processing unit, comprising:
State expression hidden unit, if being configured as detecting the meeting of the session input frame for conversation page setting
Input action is talked about, or detects the page sliding action for the conversation page, then hides what the conversation page was shown
The state expression.
Optionally, the session expression is identified configured with emotional state, and the emotional state mark includes following at least one
:
The mark of selected state, the unselected state of the unselected state of session expression of the selected state of session expression
Mark;
If the emotional state of the session expression is identified as the selected state and identifies, the session expression supports quilt
It triggers and sends.
Optionally, the session input frame setting espressiove of the conversation page inputs mark;
If detecting, the expression input mark is triggered, and shows in the session input frame region of the conversation page
The emotional state of session expression in session expression library identifies.
Optionally, the session expression processing unit, comprising:
First emotional state label detection unit, if being configured as detecting the session input frame for the conversation page
The mark trigger action of the emotional state mark for the session expression that region is shown, judges the expression of the session expression
Whether status indicator is that selected state has identified;If so, sending the session expression, and in the conversation recording of the conversation page
The middle display session expression;If it is not, the emotional state mark of the session expression is updated from the unselected status indicator
It is identified for the selected state, and the emotional state for issuing the session expression identifies the prompting being updated.
Optionally, the session expression processing unit, comprising:
Session expression library synchronization unit will be described if the emotional state mark for being configured as the session expression is updated
Session expression is updated to session expression library, and the update in session expression library is synchronized at least one and uses the meeting
Words expression library conversate expression interaction expression session component.
Optionally, the session expression processing unit, comprising:
Second emotional state label detection unit, if being configured as the session expression library described in the expression session component
In any one session expression emotional state mark be triggered, judge the emotional state of the session expression identify whether as
The mark of selected state;If so, sending the session expression, and shown in the conversation recording of the expression session component
The session expression.
Optionally, the passive session object, including at least one of following: customer service robot, dialogue robot.
Optionally, the state expression includes: the dynamical state expression of at least frame facial expression image frame composition.
A kind of calculating apparatus embodiments provided by the present application are as follows:
Fig. 9 is to show the structural block diagram of the calculating equipment 900 according to one embodiment of this specification.The calculating equipment 900
Component include but is not limited to memory 910 and processor 920.Processor 920 is connected with memory 910 by bus 930,
Database 950 is for saving data.
Calculating equipment 900 further includes access device 940, access device 940 enable calculate equipment 900 via one or
Multiple networks 960 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 940 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 9 of equipment 900 is calculated
It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in Fig. 9 is merely for the sake of example
Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions
Part.
Calculating equipment 900 can be any kind of static or mobile computing device, including mobile computer or mobile meter
Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 900 can also be mobile or state type
Server.
The application provides a kind of calculating equipment, including memory 910, processor 920 and storage are on a memory and can be
The computer instruction run on processor, the processor 920 is for executing following computer executable instructions:
Obtain the session status at least one session object that conversation page is related to;
Determine that the session status concentrates corresponding state expression in preset state expression;
The state expression is shown in the conversation page;
According to detecting that the expression collection for the state expression acts, the state expression is collected to
In the session expression library for talking about expression interaction.
Optionally, the session status for obtaining at least one session object that conversation page is related to, comprising:
Obtain the conversation start time for the active session object that the conversation page is related to;The active session object includes
Triggering enters the session object of the conversation page in the session object that the conversation page is related to;
Determine that the passive session object that the conversation page is related to is corresponding in the conversation start time affiliated time interval
Session status;The passive session object includes in session object that the conversation page is related to except the active session object
Except session object.
Optionally, the session status for obtaining at least one session object that conversation page is related to, comprising:
Obtain the conversation start time for the active session object that the conversation page is related to;The active session object includes
Triggering enters the session object of the conversation page in the session object that the conversation page is related to;
According to the conversation start time, determine passive session object that the conversation page is related in the conversation page
Historical session record belonging to business scenario dimension under session status;The passive session object includes the conversation page
Session object in the session object being related in addition to the active session object.
Optionally, the determination session status concentrates corresponding state expression in preset state expression, comprising:
Determine that preset state expression of the session status under the business scenario dimension concentrates corresponding state expression,
And the expression of the state expression shows rule;
Correspondingly, described show the state expression in the conversation page, comprising:
Show that rule shows the state expression in the conversation page according to the expression.
Optionally, before the session status instruction execution for obtaining at least one session object that conversation page is related to,
The processor 920 is also used to execute following computer executable instructions:
Obtain the session request that the active session object is initiated for the passive session object;
The conversation page is shown based on the session request.
Optionally, described after the conversation page shows that the state expression step executes and described according to detection
The expression collection for the state expression arrived acts, and the state expression is collected to the session for the expression interaction that conversates
In expression library before instruction execution, the processor 920 is also used to execute following computer executable instructions:
Judge the expression collection movement for the state expression whether is detected in prefixed time interval;
It is acted if so, executing the expression collection for the state expression that the basis detects, by the state table
Feelings are collected into the session expression library for conversating expression interaction and are instructed;
If it is not, hiding the state expression that the conversation page is shown.
Optionally, described after the conversation page shows the state expression instruction execution, the processor 920 is also
For executing following computer executable instructions:
If detecting the session input action of the session input frame for conversation page setting, or detects and be directed to
The page sliding action of the conversation page then hides the state expression that the conversation page is shown.
Optionally, the session expression is identified configured with emotional state, and the emotional state mark includes following at least one
:
The mark of selected state, the unselected state of the unselected state of session expression of the selected state of session expression
Mark;
If the emotional state of the session expression is identified as the selected state and identifies, the session expression supports quilt
It triggers and sends.
Optionally, the session input frame setting espressiove of the conversation page inputs mark;
If detecting, the expression input mark is triggered, and shows in the session input frame region of the conversation page
The emotional state of session expression in session expression library identifies.
Optionally, if detecting the session expression that the session input frame region for the conversation page is shown
Emotional state mark mark trigger action, judge that the emotional state of the session expression identifies whether as selected state mark
Know;
If so, sending the session expression, and the session expression is shown in the conversation recording of the conversation page;
If it is not, the emotional state mark of the session expression is updated to described chosen from the unselected status indicator
Status indicator, and the emotional state for issuing the session expression identifies the prompting being updated.
Optionally, the processor 920 is also used to execute following computer executable instructions:
If the emotional state mark of the session expression is updated, the session expression is updated to the session expression
Library, and the update in session expression library is synchronized at least one and conversates what expression interacted using session expression library
Expression session component.
Optionally, the processor 920 is also used to execute following computer executable instructions:
If the emotional state mark of any one session expression in the session expression library described in the expression session component
Knowledge is triggered, and judges that the emotional state of the session expression identifies whether as the selected state mark;
If so, sending the session expression, and the conversational list is shown in the conversation recording of the expression session component
Feelings.
Optionally, the passive session object, including at least one of following: customer service robot, dialogue robot.
Optionally, the state expression includes: the dynamical state expression of at least frame facial expression image frame composition.
A kind of computer readable storage medium embodiment provided by the present application is as follows:
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction
It is accomplished by when being executed by processor
Obtain the session status at least one session object that conversation page is related to;
Determine that the session status concentrates corresponding state expression in preset state expression;
The state expression is shown in the conversation page;
According to detecting that the expression collection for the state expression acts, the state expression is collected to
In the session expression library for talking about expression interaction.
Optionally, the session status for obtaining at least one session object that conversation page is related to, comprising:
Obtain the conversation start time for the active session object that the conversation page is related to;The active session object includes
Triggering enters the session object of the conversation page in the session object that the conversation page is related to;
Determine that the passive session object that the conversation page is related to is corresponding in the conversation start time affiliated time interval
Session status;The passive session object includes in session object that the conversation page is related to except the active session object
Except session object.
Optionally, the session status for obtaining at least one session object that conversation page is related to, comprising:
Obtain the conversation start time for the active session object that the conversation page is related to;The active session object includes
Triggering enters the session object of the conversation page in the session object that the conversation page is related to;
According to the conversation start time, determine passive session object that the conversation page is related in the conversation page
Historical session record belonging to business scenario dimension under session status;The passive session object includes the conversation page
Session object in the session object being related in addition to the active session object.
Optionally, the determination session status concentrates corresponding state expression in preset state expression, comprising:
Determine that preset state expression of the session status under the business scenario dimension concentrates corresponding state expression,
And the expression of the state expression shows rule;
Correspondingly, described show the state expression in the conversation page, comprising:
Show that rule shows the state expression in the conversation page according to the expression.
Optionally, before the session status step for obtaining at least one session object that conversation page is related to executes,
Include:
Obtain the session request that the active session object is initiated for the passive session object;
The conversation page is shown based on the session request.
Optionally, described after the conversation page shows that the state expression step executes and described according to detection
The expression collection for the state expression arrived acts, and the state expression is collected to the session for the expression interaction that conversates
Before step executes in expression library, comprising:
Judge the expression collection movement for the state expression whether is detected in prefixed time interval;
It is acted if so, executing the expression collection for the state expression that the basis detects, by the state table
Feelings collect the step into the session expression library for the expression interaction that conversates;
If it is not, hiding the state expression that the conversation page is shown.
It is optionally, described after the conversation page shows that the state expression step executes, comprising:
If detecting the session input action of the session input frame for conversation page setting, or detects and be directed to
The page sliding action of the conversation page then hides the state expression that the conversation page is shown.
Optionally, the session expression is identified configured with emotional state, and the emotional state mark includes following at least one
:
The mark of selected state, the unselected state of the unselected state of session expression of the selected state of session expression
Mark;
If the emotional state of the session expression is identified as the selected state and identifies, the session expression supports quilt
It triggers and sends.
Optionally, the session input frame setting espressiove of the conversation page inputs mark;
If detecting, the expression input mark is triggered, and shows in the session input frame region of the conversation page
The emotional state of session expression in session expression library identifies.
Optionally, if detecting the session expression that the session input frame region for the conversation page is shown
Emotional state mark mark trigger action, judge that the emotional state of the session expression identifies whether as selected state mark
Know;
If so, sending the session expression, and the session expression is shown in the conversation recording of the conversation page;
If it is not, the emotional state mark of the session expression is updated to described chosen from the unselected status indicator
Status indicator, and the emotional state for issuing the session expression identifies the prompting being updated.
Optionally, it is accomplished by when which is executed by processor
If the emotional state mark of the session expression is updated, the session expression is updated to the session expression
Library, and the update in session expression library is synchronized at least one and conversates what expression interacted using session expression library
Expression session component.
Optionally, it is accomplished by when which is executed by processor
If the emotional state mark of any one session expression in the session expression library described in the expression session component
Knowledge is triggered, and judges that the emotional state of the session expression identifies whether as the selected state mark;
If so, sending the session expression, and the conversational list is shown in the conversation recording of the expression session component
Feelings.
Optionally, the passive session object, including at least one of following: customer service robot, dialogue robot.
Optionally, the state expression includes: the dynamical state expression of at least frame facial expression image frame composition.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of the technical solution of storage media and above-mentioned session expression processing method belongs to same design, the technology of storage medium
The detail content that scheme is not described in detail may refer to the description of the technical solution of above-mentioned session expression processing method.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen
It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment
All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification,
It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application
Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only
It is limited by claims and its full scope and equivalent.