Summary of the invention
The present invention provides a kind of interactive information processing method, server and terminal, heavier to solve burden for users
The problem of.
According to the first aspect of the invention, a kind of interactive information processing method is provided, server, packet are applied to
It includes:
Sentence is seeked advice from according to user, the first response message for seeking advice from sentence for the user is sent to terminal;The use
It is that user is sent by the terminal that sentence is seeked advice from family;
If receiving the verification request of terminal transmission, search record is characterized at least two candidate consulting meanings are identified
Figure, and determine that wherein each candidate consulting is intended to corresponding candidate consulting sentence;The verification request is that the terminal determines institute
It states the first response message and does not meet and generated when the demand for counseling of user, the search record includes that the user seeks advice from sentence,
And at least partly history search record;
Sentence is seeked advice from according to the target at least two candidate consulting sentences, Xiang Suoshu terminal is returned to be consulted for the target
Ask the second response message of sentence.
Optionally, at least two candidate consultings that the identification search record is characterized are intended to, and determine wherein each time
Choosing consulting is intended to corresponding candidate consulting sentence, comprising:
According to multiple Feature Words in the search record, determine that described at least two candidate consultings are intended to;
It is intended to corresponding default sentence according to each candidate consulting, determines that each candidate consulting is intended to corresponding candidate consulting
Sentence.
Optionally, multiple Feature Words according in the search record determine described at least two candidate consulting meanings
Figure, comprising:
According to the multiple Feature Words and consulting intention assessment model in the search record, the knowledge of each Feature Words is obtained
Not as a result, the recognition result includes that at least two consulting intentions that the Feature Words can characterize and each consulting are intended to
Probability;
In the recognition result, selects one or more consultings to be intended to the candidate consulting and be intended to.
Optionally, at least two candidate consultings that the identification search record is characterized are intended to, and determine wherein each time
Choosing consulting is intended to before corresponding candidate consulting sentence, further includes:
Determine that the user seeks advice from the quantity of the middle text or word in sentence beyond threshold value.
Optionally, before the verification request for receiving terminal transmission, further includes:
Instruction information is sent to the terminal, the instruction information is used to indicate the terminal and exports feedback guidance to user
Information, the feedback guidance information is for guiding user in the terminal input feedback information;The feedback information is for characterizing
Whether first response message meets the demand for counseling of user;
The verification request is that the terminal is generated according to the feedback information.
It is optionally, described to be sent before indicating information to the terminal, further includes:
Determine that the non-characterization of first response message seeks advice from the confirmative question of sentence for the user;And/or
Determine the notification information of the artificial customer service of the non-characterization switching of first response message.
Optionally, the target according at least two candidate consulting sentences seeks advice from sentence, and Xiang Suoshu terminal returns to needle
To the second response message of target consulting sentence, comprising:
Described at least two candidate consulting sentences are sent to the terminal;
Information is selected according to the sentence that the terminal is sent, determines the mesh in described at least two candidate consulting sentences
Mark consulting sentence;The sentence selection information is that the terminal is determined in response to the selection operation of user;
Sentence is seeked advice from according to the target, Xiang Suoshu terminal returns to second response message.
According to the second aspect of the invention, a kind of interactive information processing method is provided, terminal, packet are applied to
It includes:
User, which is sent, to server seeks advice from sentence;
Receive the first response message that sentence is seeked advice from for the user that the server is sent;
If it is determined that first response message does not meet the demand for counseling of user, then verification is sent to the server and asked
It asks, so that at least two candidate consultings that server identification search record is characterized are intended to, and determines wherein each time
Choosing consulting is intended to corresponding candidate consulting sentence, and the search record includes that the user seeks advice from sentence, and at least partly goes through
History search record;
The second response message for target consulting sentence that the server returns is received, the target consulting sentence is
Sentence in described at least two candidate consulting sentences;
Second response message is exported to user.
It is optionally, described to be sent before verifying request to the server, further includes:
According to the instruction information that the server is sent, feedback guidance information, the feedback guidance information are exported to user
For guiding user in the terminal input feedback information;Whether the feedback information is full for characterizing first response message
The demand for counseling of sufficient user;
According to the feedback information that user inputs, determine that first response message does not meet the demand for counseling of user.
Optionally, before second response message for target consulting sentence for receiving the server return, also
Include:
Receive the server is sent described at least two candidate consulting sentences;
To the candidate consulting sentence of user's output described at least two;
It in response to the selection operation of user, generates sentence and selects information, and send the sentence selection to the server
Information determines institute in described at least two candidate consulting sentences so that the server selects information according to the sentence
State target consulting sentence.
According to the third aspect of the invention we, a kind of server is provided, comprising:
First response sending module sends to terminal for seeking advice from sentence according to user and seeks advice from sentence for the user
The first response message;It is that user is sent by the terminal that the user, which seeks advice from sentence,;
Candidate sentence determining module, if the verification request for receiving terminal transmission, identifies that search record is characterized
At least two candidate consultings be intended to, and determine that wherein each candidate consulting is intended to corresponding candidate consulting sentence;The verification
Request is that the terminal is determined and generated when first response message does not meet the demand for counseling of user, the search record packet
It includes the user and seeks advice from sentence, and at least partly history search record;
Second response sending module, for seeking advice from sentence, Xiang Suoshu according to the target at least two candidate consulting sentences
Terminal returns to the second response message for target consulting sentence.
Optionally, the candidate sentence determining module, comprising:
Candidate is intended to determine submodule, for determining described at least two according to multiple Feature Words in the search record
A candidate consulting is intended to;
Candidate sentence determines submodule, for being intended to corresponding default sentence according to each candidate consulting, determines each time
Choosing consulting is intended to corresponding candidate consulting sentence.
Optionally, the candidate intention determines submodule, comprising:
Recognition unit, for obtaining according to the multiple Feature Words and consulting intention assessment model in the search record
The recognition result of each Feature Words, the recognition result include at least two consulting intentions that the Feature Words can characterize, with
And the probability that each consulting is intended to;
Candidate intent determination unit, in the recognition result, selecting one or more consultings to be intended to the time
Choosing consulting is intended to.
Optionally, the server, further includes:
Threshold value exceeds module, for determining that the user seeks advice from the quantity of the middle text or word in sentence beyond threshold value.
Optionally, the server, further includes:
Indicate information sending module, for sending instruction information to the terminal, the instruction information is used to indicate described
Terminal exports feedback guidance information to user, and the feedback guidance information is for guiding user to believe in the terminal input feedback
Breath;The feedback information is for characterizing the demand for counseling whether first response message meets user;
The verification request is that the terminal is generated according to the feedback information.
Optionally, the server, further includes:
Non- rhetorical question determining module, for determining that the non-characterization of first response message seeks advice from the anti-of sentence for the user
Question sentence;And/or:
Unartificial determining module, for determining the notification information of the artificial customer service of the non-characterization switching of first response message.
Optionally, the second response sending module, comprising:
Candidate sentence sending submodule, for sending described at least two candidate consulting sentences to the terminal;
Object statement determines submodule, and the sentence for being sent according to the terminal selects information, described at least two
Determine that the target seeks advice from sentence in candidate's consulting sentence;The sentence selection information is selection of the terminal in response to user
Operation determination;
Second response sending submodule, for seeking advice from sentence according to the target, Xiang Suoshu terminal returns to described second and answers
Answer information.
According to the fourth aspect of the invention, a kind of terminal is provided, comprising:
User's sentence sending module seeks advice from sentence for sending user to server;
First response receiving module, for receiving answering for the first of user consulting sentence for the server transmission
Answer information;
Verify request sending module, for if it is determined that first response message does not meet the demand for counseling of user, then to
The server sends verification request, so that at least two candidate consulting meanings that server identification search record is characterized
Figure, and determine that wherein each candidate consulting is intended to corresponding candidate consulting sentence, the search record includes user's consulting
Sentence, and at least partly history search record;
Second response receiving module, the second response letter for target consulting sentence returned for receiving the server
Breath, the target consulting sentence are the sentences in described at least two candidate consulting sentences;
Second response output module, for exporting second response message to user.
Optionally, the terminal, further includes:
Guidance information feedback module, the instruction information for being sent according to the server export feedback guidance to user
Information, the feedback guidance information is for guiding user in the terminal input feedback information;The feedback information is for characterizing
Whether first response message meets the demand for counseling of user;
Demand does not meet determining module, the feedback information for being inputted according to user, determines the first response letter
Breath does not meet the demand for counseling of user.
Optionally, the terminal, further includes:
Candidate sentence receiving module, the described at least two candidate consulting sentences sent for receiving the server;
Candidate sentence output module, for seeking advice from sentence to user's output described at least two is candidate;
Information sending module is selected, for the selection operation in response to user, sentence is generated and selects information, and to the clothes
Business device sends the sentence and selects information, so that the server selects information according to the sentence, described at least two
Determine that the target seeks advice from sentence in candidate's consulting sentence.
According to the fifth aspect of the invention, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute first aspect and its optinal plan via the executable instruction is executed
The interactive information processing method being related to.
According to the sixth aspect of the invention, a kind of electronic equipment is provided characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute second aspect and its optinal plan via the executable instruction is executed
The interactive information processing method being related to.
According to the seventh aspect of the invention, a kind of storage medium is provided, computer program is stored thereon with, feature exists
In the interactive information processing method that realization first aspect and its optinal plan are related to when the program is executed by processor.
8th invention according to the present invention, provides a kind of storage medium, is stored thereon with computer program, and feature exists
In the interactive information processing method that realization second aspect and its optinal plan are related to when the program is executed by processor.
The present invention provides a kind of interactive information processing method, server and terminal, the present invention by according to
Sentence is seeked advice from family, and the first response message that sentence is seeked advice from for the user is sent to terminal, is realized user and is seeked advice from sentence
Response.
The response of sentence is seeked advice from based on user, if the present invention passes through the verification request for receiving terminal transmission, it is determined that wait
Choosing consulting sentence and verification request are that the terminal determines that first response message does not meet the demand for counseling of user
When generate, realize response and be unsatisfactory for automatically determining the candidate consulting sentence for consulting, in turn, Yong Huwu when demand for counseling
Complicated consulting sentence need to be inputted again, reduce the processing load of user.
Simultaneously as identified candidate consulting sentence is that candidate consulting intention is determining, and candidate consulting is intended that packet
The consulting that search record containing user consulting sentence, and at least partly history search record is characterized is intended to, compared to
The first response message obtained from sentence is seeked advice from only for user, the present invention can avoid information by considering various information
Limitation influences the accuracy of intention assessment, so that identified candidate consulting sentence and target consulting sentence can be more
Accurately express the demand of user.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to
Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation,
Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting
It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes
The intrinsic other step or units of journey, method, product or equipment.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below
Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 1 is the schematic diagram of application scenarios in one embodiment of the invention.
Referring to FIG. 1, user can be interacted using terminal 1 with server 2, eventually in scene applicatory of the embodiment of the present invention
It can use network implementations communication between end 1 and server 2.Wherein, terminal, it can be understood as arbitrary disposition processor with deposit
The electronic equipment of reservoir, the electronic equipment of server therein may be arbitrary disposition processor and memory, Huo Zhe electricity
The set of sub- equipment.Specifically, terminal 1 can be such as: mobile phone, tablet computer, computer etc..
Fig. 2 is the flow diagram of the interactive information processing method of server in one embodiment of the invention.
Referring to FIG. 2, the interactive information processing method of server, comprising:
S11: seeking advice from sentence according to user, and the first response message that sentence is seeked advice from for the user is sent to terminal.
User seeks advice from sentence, it will be appreciated that for the sentence that user is sent by the terminal, can pass through terminal for user
The sentence that the last time sends, may be pointing directly toward the interrogative sentence of its demand, it is also possible to other and its query content phase
The sentence of pass, such as: it can be with are as follows: " whether cargo can be sent within this week ", or " because I stays out next week." this
The sentence that its query is explained in kind, is also likely to be some sentences unrelated with its query content itself, such as:
" bothering you to reply as early as possible OK ".Just because of user seeks advice from the diversity of sentence, so, seek advice from what sentence was sent for the user
First response message possibly accurately can not carry out response to the demand of user.
In one of embodiment, user, which seeks advice from sentence, can refer to that a sentence, the sentence can not be divided with symbol,
And refer to the sentence that user's single is sent.
In another embodiment, user, which seeks advice from sentence, can also refer to a plurality of sentence, such as a plurality of language currently continuously transmitted
Sentence, the sentence being specifically as follows in particular time range.
First response message, it will be appreciated that for server seeks advice from sentence for user and generates.
In one of embodiment, it can be server and be directed to user and seek advice from sentence and automatically generate, it specifically can be with
After seeking advice from sentence progress intention assessment to user, it is intended to according to different consultings true from the corresponding relationship between different response messages
Fixed.
S12: if receiving the verification request of terminal transmission, search record is characterized at least two candidate consultings are identified
It is intended to, and determines that wherein each candidate consulting is intended to corresponding candidate consulting sentence.
Verification request, it will be appreciated that when to be that the terminal determines that first response message does not meet the demand for counseling of user
It generates, meanwhile, the present embodiment, which does not limit terminal and how to determine, does not meet demand for counseling, that is, mode is arbitrarily determined, all without departing from
The description range of the present embodiment.
Search record, including the user seek advice from sentence, and at least partly history search record;At least partly history
Search record can be the history search record of the user with beyond all doubt determination, and the history search record is not include user
Seek advice from sentence.
In one of embodiment, at least partly history search record is specific before can seeking advice from sentence for user
A plurality of sentence, a plurality of sentence before being also possible in specific time.In specific implementation process, at least partly history search record
It can be two.
As long as it can be seen that realizing the sentence that search record is included seeks advice from sentence more than user, and the sentence having more is
It is recorded in history search record, does not then depart from the description range of the present embodiment.
The first response message obtained from sentence is seeked advice from compared to only for user, the present embodiment can be by considering multiplicity
Information avoids the limitation of information from influencing the accuracy of intention assessment, so that identified candidate consulting sentence and target
Consulting sentence can more accurately express the demand of user.
Such as: if user has input respectively: " whether cargo can be sent within this week ", " because I stays out next week ", with
And " trouble you reply as early as possible OK " three sentences, if seeking advice from sentence generation the as user using " trouble you reply as early as possible OK "
One response message, then it can not learn the actual demand for counseling of user naturally, in turn, in the present embodiment, search record include with
Upper three information is directed to three information, can be conducive to the more acurrate demand for counseling for learning user of server and consulting is intended to
It is about delivery period, in turn, server can be intended to according to the consulting, determine more accurate response message.
S13: sentence is seeked advice from according to the target at least two candidate consulting sentences, Xiang Suoshu terminal, which returns, is directed to the mesh
Second response message of mark consulting sentence.
Target seeks advice from sentence, it will be appreciated that for the sentence arbitrarily selected from least two candidate consulting sentences.
The process that the second response message is generated for target consulting sentence, can refer to and seek advice from sentence generation first for user
The process of response message understands.
In one of embodiment, it can be server and be directed to user and seek advice from sentence and automatically generate, it specifically can be with
After seeking advice from sentence progress intention assessment to user, it is intended to according to different consultings true from the corresponding relationship between different response messages
Fixed.
It is intended to due to the consulting of target consulting sentence and is intended to for one of them candidate consulting, so, it can not also root again
It determines that consulting is intended to according to target consulting sentence, directly the candidate consulting being obtained before is intended to be stored and called.
A kind of interactive information processing method is present embodiments provided, by seeking advice from sentence according to user, to terminal
The first response message for seeking advice from sentence for the user is sent, the response that user seeks advice from sentence is realized.
The response of sentence is seeked advice from based on user, if the present embodiment passes through the verification request for receiving terminal transmission, it is determined that
Candidate's consulting sentence and verification request are that the terminal determines that first response message does not meet the consulting need of user
It is generated when asking, realizes response and be unsatisfactory for automatically determining the candidate consulting sentence for consulting, in turn, user when demand for counseling
Without inputting complicated consulting sentence again, the processing load of user is reduced.
Simultaneously as identified candidate consulting sentence is that candidate consulting intention is determining, and candidate consulting is intended that packet
The consulting that search record containing user consulting sentence, and at least partly history search record is characterized is intended to, compared to
The first response message obtained from sentence is seeked advice from only for user, the present embodiment can avoid information by considering various information
Limitation influence the accuracy of intention assessment so that identified candidate consulting sentence and target consulting sentence can
More accurately express the demand of user.
Fig. 3 is the flow diagram of the interactive information processing method of server in another embodiment of the present invention.
Referring to FIG. 3, the interactive information processing method of server, comprising:
S21: seeking advice from sentence according to user, and the first response message that sentence is seeked advice from for the user is sent to terminal.
Technical term, technical characteristic, technical effect and optional embodiment in relation to step S21, can refer to Fig. 2 institute
Show that the step S11 in embodiment understands, for duplicate content, is not repeated herein.
S22: whether the quantity that the user seeks advice from middle text or word in sentence exceeds threshold value.
In the present embodiment, since long sentence is often expressed as excessive meaning, meanwhile, according to the statistics of practice, long sentence is also usual
It is the non-sentence characterized to practical problem, so, the present embodiment exists for one of condition with long sentence, i.e., seeks advice from user
In the case that sentence is long sentence, the present embodiment is thought to need to be handled in response to verification request, also is understood as consulting in user
In the case that inquiry sentence is long sentence, current embodiment require that guidance user, which passes through terminal, issues verification request.
In other alternative embodiments, even if the situation of non-long sentence, also it is applicable the present invention and its part optinal plan.
Since the present embodiment need to judge the length of sentence, the character unrelated with main representation language in sentence can not be received
Enter to consider, should the character unrelated with main representation language, can such as sign character, character, the characterization order number, quotient of URL link
The numerical character etc. of product number.
If the dominant language of sentence be Chinese, as unit of middle text, only need to consider wherein in text quantity whether
Beyond threshold value, if the dominant language of sentence is English, French etc., as unit of word, the quantity of wherein word need to be only considered
Whether threshold value is exceeded.In addition, the corresponding threshold value of middle text, threshold value corresponding with word can be different, the list of different language
The corresponding threshold value of word, can be identical, be also possible to different.Middle text may include simplified Chinese character, also may include the complex form of Chinese characters.Tool
In body implementation process, it is directed to middle text, threshold value can be Any Digits more than 20 words, such as: consider statistical number
According to limited, overfitting is avoided, threshold value can be 25 words.
If the judging result of step S22 be it is yes, that is, determine that the user seeks advice from the quantity of the middle text or word in sentence
Beyond threshold value, in the present embodiment, implementable step S23, in other alternative embodiments, also implementable step S24, or can also jump
Cross step S23 and step S24, direct implementation steps S25.
If the judging result of step S22 be it is no, process can be ended processing.
S23: whether first response message characterizes the confirmative question that sentence is seeked advice from for the user.
Since the instruction message of step S25 expresses the meaning requried the users, so, it can be with the above so-called rhetorical question
Sentence interacts, and causes obscuring for user, so, by step S23, it can avoid multiple rhetorical question answers occur, after influencing user
Continuous interaction.Meanwhile if the first response message is confirmative question, indicate that the demand for counseling of user or consulting are intended to have one substantially
Direction, at this point, the necessity of verification opposite can become smaller a bit.
If the judging result of step S23 be it is no, implementable step S24 can end processing process if being judged as YES.
S24: whether first response message characterizes the notification information for artificial customer service of transferring.
It also is understood as, and judges whether process flow is transferred to the process flow of artificial customer service, if so, can terminate this reality
Apply the process flow of example.
Above step S23, S24 can be performed both by, and can also select an execution, can also not executed, and the sequence executed can also be
Arbitrarily step S23 is not limited to before step S24.
S25: Xiang Suoshu terminal sends instruction message.
Indicate information, it can be understood as be used to indicate the terminal to user and export feedback guidance information.
Feed back guidance information, it can be understood as guiding user in the terminal input feedback information.
Feedback information, it can be understood as whether meet the demand for counseling of user for characterizing first response message.
As it can be seen that being to guide whether user meets the first response message by terminal by the transmission of instruction message
Demand for counseling is fed back.In specific implementation process, may make terminal to user output " see that your reference content is more, may I ask with
Whether upper reply solves the problems, such as you " information, if user reply at the terminal "Yes" or click expression "Yes" display
Object, then it is assumed that the first response message meets the demand for counseling of user;If user replys "No" or clicks table at the terminal
Up to the display object of "No", then it is assumed that the first response message does not meet the demand for counseling of user.
In one of embodiment, the verification request is that the terminal is generated according to the feedback information, it may be assumed that eventually
It holds after the feedback information for receiving the first response message of characterization demand for counseling for being unsatisfactory for user, produces, and to server
Send the verification request.
S26: the verification request of terminal transmission whether is received.
If so, thening follow the steps S27;If it is not, then waiting after a certain period of time, determine without verification, so as to terminate to locate
Manage process.Meanwhile terminal can also send to server in the case where user feedback meets demand for counseling and indicate without verifying, into
And server can be directly determined without verification without waiting, to end processing process.
In addition, if do not receive after step s25 verification request, but have received user sent by terminal it is new
Sentence is seeked advice from, then can send corresponding third response message for new consulting sentence.
As it can be seen that there are four kinds of situations, first, user confirmed that first answers when terminal guides user's input feedback information
The demand for counseling that information is unsatisfactory for user is answered, then produces verification request, implementation steps S26;Second, user confirmed that first answers
The demand for counseling that information meets user is answered, then currently processed process can terminate;Third, user is not directed to feedback guidance information
It is operated, but has directly inputted new consulting sentence, then server upon receipt, can be directed to new consulting sentence, transmission pair
The third response message answered.Fourth, user does not reply for a long time, then also can determine without verification, so as to end processing process.
S27: at least two candidate consultings that identification search record is characterized are intended to, and determine wherein each candidate consulting meaning
Scheme corresponding candidate consulting sentence.
Technical term, technical characteristic, technical effect and optional embodiment in relation to step S27, can refer to Fig. 2 institute
Show that the step S12 in embodiment understands, for duplicate content, is not repeated herein.
Fig. 4 is the flow diagram of step S27 in embodiment illustrated in fig. 3.
Referring to FIG. 4, step S27 may include:
S271: according to multiple Feature Words in the search record, determine that described at least two candidate consultings are intended to.
Feature Words can refer to by the participle to sentence in search record, and be compared with the word in database
Etc. means extract in search record.
Search record may include as previously mentioned that the user seeks advice from sentence, and at least partly history consulting note
Record;When carrying out the processing of step S271, user first can be seeked advice from into sentence and be merged at least partly history search record, example
Each sentence, record are such as merged by a long sentence by specific symbol, which can be such as comma, branch.
Since the meaning of sentence can usually be characterized from the meaning of wherein word, so, intention is determined by word, can be had
Certain accuracy, and can avoid carrying out labyrinth as long sentence more complicated parsing, in contrast, required processing
Workload is smaller, and processing load is lighter.
Fig. 5 is the flow diagram of step S271 in embodiment illustrated in fig. 4.
Referring to FIG. 5, step S271 may include:
S2711: according to the multiple Feature Words and consulting intention assessment model in the search record, each feature is obtained
The recognition result of word.
Recognition result, it can be understood as be intended to including at least two consultings that the Feature Words can characterize, and each
Seek advice from the probability being intended to.
Seek advice from intention assessment model, it can be understood as inputted corpus can be directed to, determine that the corpus is corresponding multiple
Consulting is intended to, and respectively consulting is intended to the model of probability, which can be by a large amount of proven material training determinations,
The material can be that its consulting be intended to it is anticipated that in the case where having learnt corresponding what the consulting intention of each expectations to demarcate, model
It can be directed to any corpus inputted, provide its possible consulting intention and corresponding probability.In turn, note will seeked advice from
After multiple Feature Words input consulting intention assessment model in the sentence after sentence or merging after the merging of record, correspondence can be true
The probability that fixed at least two consulting is intended to and each consulting is intended to.
In addition, being directed to user seeks advice from sentence, the consulting intention assessment model can also be used and identify that user seeks advice from sentence
User be intended to after, determine that user is intended to the first corresponding response message;It is directed to following target consulting sentence, it can also benefit
After the target intention for identifying target consulting sentence with the consulting intention assessment model, determine corresponding to target intention that second answers
Answer information;It is directed to new consulting sentence, after the new intention that the consulting intention assessment model identifies new consulting sentence can also be used,
Determine third response message corresponding to new be intended to.
S2712: it in the recognition result, selects one or more consultings to be intended to the candidate consulting and is intended to.
In one of embodiment, if consulting intention assessment model gives the intention of consulting corresponding to each Feature Words
And its probability, then it can integrate statistics and include each consulting intention and its probability, tool corresponding to sentence after the merging of those Feature Words
The calculating process of body can realize that the factor being contemplated that includes the part of speech of Feature Words, in sentence according to any processing logic
Position, the generality of Feature Words itself etc., the corresponding consulting of binding characteristic word is intended to and its probability, can calculate all spies
Levy the statistical probability that all consultings of word are intended to.In turn, numerical value biggish one can therefrom be selected according to the size of statistical probability
Or multiple consultings are intended to be intended to as candidate consulting.
In another embodiment, if consulting intention assessment model can carry out intention knowledge directly against sentence after inputting merging
Not, multiple consultings intentions and its probability are obtained, and then according to the given biggish one or more consultings of probability selection numerical value
It is intended to be intended to as candidate consulting.
Meanwhile based on consulting intention assessment model, multiple consulting intentions of search record and its any hand of probability are determined
Section, all without departing from the description of present embodiment, and is not limited to above realization logic.
It is intended to corresponding default sentence according to each candidate consulting, determines that each candidate consulting is intended to corresponding candidate consulting
Sentence.
S272: being intended to corresponding default sentence according to each candidate consulting, determines that each candidate consulting is intended to corresponding time
Choosing consulting sentence.
In the server, can record, which has different consultings to be intended to corresponding difference, presets sentence, such as is directed to color
The default sentence of inquiry can be " may I ask which color the product has ";The default sentence for being directed to the inquiry of logistics can be
" may I ask how long the product can be sent to " etc..
Meanwhile different sexes, age, the preference etc. for being directed to user, it is different can be also intended to configuration for same consulting
Default sentence, to meet the preference of user's multiplicity.
S28: sentence is seeked advice from according to the target at least two candidate consulting sentences, Xiang Suoshu terminal, which returns, is directed to the mesh
Second response message of mark consulting sentence.
Technical term, technical characteristic, technical effect and optional embodiment in relation to step S28, can refer to Fig. 2 institute
Show that the step S13 in embodiment understands, for duplicate content, is not repeated herein.
Fig. 6 is the flow diagram of step S28 in embodiment illustrated in fig. 3.
Referring to FIG. 6, step S28 may include:
S281: Xiang Suoshu terminal sends described at least two candidate consulting sentences.
S282: selecting information according to the sentence that the terminal is sent, and determines in described at least two candidate consulting sentences
The target seeks advice from sentence.
Sentence selects information, it can be understood as the terminal is determined in response to the selection operation of user;Which characterizes with
Family selected sentence at least two candidate consulting sentences by terminal.In specific implementation process, sentence selects information can
To be the mark of sentence, it is also possible to sentence itself, if sentence itself, then terminal sends sentence and selects information, it will be understood that
Target, which is sent, for terminal seeks advice from sentence.
S283: sentence is seeked advice from according to the target, Xiang Suoshu terminal returns to second response message.
A kind of interactive information processing method is present embodiments provided, by seeking advice from sentence according to user, to terminal
The first response message for seeking advice from sentence for the user is sent, the response that user seeks advice from sentence is realized.
The response of sentence is seeked advice from based on user, if the present embodiment passes through the verification request for receiving terminal transmission, it is determined that
Candidate's consulting sentence and verification request are that the terminal determines that first response message does not meet the consulting need of user
It is generated when asking, realizes response and be unsatisfactory for automatically determining the candidate consulting sentence for consulting, in turn, user when demand for counseling
Without inputting complicated consulting sentence again, the processing load of user is reduced.
Simultaneously as identified candidate consulting sentence is that candidate consulting intention is determining, and candidate consulting is intended that packet
The consulting that search record containing user consulting sentence, and at least partly history search record is characterized is intended to, compared to
The first response message obtained from sentence is seeked advice from only for user, the present embodiment can avoid information by considering various information
Limitation influence the accuracy of intention assessment so that identified candidate consulting sentence and target consulting sentence can
More accurately express the demand of user.
In addition, the present embodiment promotes user while hoisting machine comprehensive understanding user is intended to seeks advice from experience, reach fast
Speed solves the purpose of customer problem.
Fig. 7 is the flow diagram of the interactive information processing method of terminal in one embodiment of the invention.
Referring to FIG. 7, the interactive information processing method of terminal, comprising:
S31: user is sent to server and seeks advice from sentence;
S32: the first response message that sentence is seeked advice from for the user that the server is sent is received;
S33: it if it is determined that first response message does not meet the demand for counseling of user, then sends and verifies to the server
Request, so that at least two candidate consultings that server identification search record is characterized are intended to, and determination is wherein each
Candidate consulting is intended to corresponding candidate consulting sentence, and the search record includes user's consulting sentence, and at least partly
History search record;
S34: receiving the second response message for target consulting sentence that the server returns, and the target seeks advice from language
Sentence is the sentence in described at least two candidate consulting sentences;
S35: second response message is exported to user.
The server of the interactive information processing method and embodiment illustrated in fig. 2 of the terminal of the present embodiment it is man-machine right
The information processing method of words is corresponding, and technical term, technical characteristic, technical effect and optional embodiment can refer to figure
The associated description of 2 illustrated embodiments understands, is not repeated herein.
A kind of interactive information processing method is present embodiments provided, the response that user seeks advice from sentence is realized.It is real
Show response to be unsatisfactory for automatically determining the candidate consulting sentence for consulting when demand for counseling, in turn, user without inputting again
Complicated consulting sentence, reduces the processing load of user.The present embodiment can avoid the office of information by considering various information
Limit influences the accuracy of intention assessment, so that identified candidate consulting sentence and target consulting sentence can be more quasi-
Really express the demand of user.
Fig. 8 is the flow diagram of the interactive information processing method of terminal in another embodiment of the present invention.
Referring to FIG. 8, the interactive information processing method of terminal, comprising:
S401: user is sent to server and seeks advice from sentence.
S402: the first response message that sentence is seeked advice from for the user that the server is sent is received.
S403: the instruction information sent according to the server exports feedback guidance information, the feedback guidance to user
Information is for guiding user in the terminal input feedback information;The feedback information is used to characterize first response message
The no demand for counseling for meeting user.
S404: the feedback information inputted according to user determines that first response message does not meet the consulting of user
Demand.
S405: Xiang Suoshu server send verification request so that the server identification search record characterized to
Few two candidate consultings are intended to, and determine that wherein each candidate consulting is intended to corresponding candidate consulting sentence, the search record
Sentence, and at least partly history search record are seeked advice from including the user.
S406: the server is sent described at least two candidate consulting sentences are received.
S407: to the candidate consulting sentence of user's output described at least two.
S408: it in response to the selection operation of user, generates sentence and selects information, and send the sentence to the server
Information is selected, so that the server selects information according to the sentence, in described at least two candidate consulting sentences really
The fixed target seeks advice from sentence.
S409: the second response message for target consulting sentence that the server returns, the target consulting are received
Sentence is the sentence in described at least two candidate consulting sentences.
S410: second response message is exported to user.
The interactive information processing method and Fig. 3 of the terminal of the present embodiment to embodiment illustrated in fig. 6 server
Interactive information processing method is corresponding, technical term, technical characteristic, technical effect and optional embodiment, can
Understand referring to the associated description of Fig. 3 to embodiment illustrated in fig. 6, is not repeated herein.
A kind of interactive information processing method is present embodiments provided, the response that user seeks advice from sentence is realized.It is real
Show response to be unsatisfactory for automatically determining the candidate consulting sentence for consulting when demand for counseling, in turn, user without inputting again
Complicated consulting sentence, reduces the processing load of user.The present embodiment can avoid the office of information by considering various information
Limit influences the accuracy of intention assessment, so that identified candidate consulting sentence and target consulting sentence can be more quasi-
Really express the demand of user.
Fig. 9 is the structural schematic diagram of server in one embodiment of the invention.
Referring to FIG. 9, server 500, comprising:
First response sending module 501 sends to terminal for seeking advice from sentence according to user and seeks advice from language for the user
First response message of sentence;It is that user is sent by the terminal that the user, which seeks advice from sentence,;
Candidate sentence determining module 502, if the verification request for receiving terminal transmission, identifies search record institute table
The candidate consulting of at least two of sign is intended to, and determines that wherein each candidate consulting is intended to corresponding candidate consulting sentence;The school
Testing request is that the terminal determines that first response message does not meet and generates when the demand for counseling of user, the search record
Sentence, and at least partly history search record are seeked advice from including the user;
Second response sending module 503, for seeking advice from sentence according to the target at least two candidate consulting sentences, to institute
It states terminal and returns to the second response message for seeking advice from sentence for the target.
A kind of server is present embodiments provided, by seeking advice from sentence according to user, is sent to terminal and is directed to the user
The first response message for seeking advice from sentence realizes the response that user seeks advice from sentence.
The response of sentence is seeked advice from based on user, if the present embodiment passes through the verification request for receiving terminal transmission, it is determined that
Candidate's consulting sentence and verification request are that the terminal determines that first response message does not meet the consulting need of user
It is generated when asking, realizes response and be unsatisfactory for automatically determining the candidate consulting sentence for consulting, in turn, user when demand for counseling
Without inputting complicated consulting sentence again, the processing load of user is reduced.
Simultaneously as identified candidate consulting sentence is that candidate consulting intention is determining, and candidate consulting is intended that packet
The consulting that search record containing user consulting sentence, and at least partly history search record is characterized is intended to, compared to
The first response message obtained from sentence is seeked advice from only for user, the present embodiment can avoid information by considering various information
Limitation influence the accuracy of intention assessment so that identified candidate consulting sentence and target consulting sentence can
More accurately express the demand of user.
Fig. 9 is the structural schematic diagram of server in one embodiment of the invention.
Referring to FIG. 9, server 500, comprising:
First response sending module 501 sends to terminal for seeking advice from sentence according to user and seeks advice from language for the user
First response message of sentence;It is that user is sent by the terminal that the user, which seeks advice from sentence,;
Candidate sentence determining module 502, if the verification request for receiving terminal transmission, identifies search record institute table
The candidate consulting of at least two of sign is intended to, and determines that wherein each candidate consulting is intended to corresponding candidate consulting sentence;The school
Testing request is that the terminal determines that first response message does not meet and generates when the demand for counseling of user, the search record
Sentence, and at least partly history search record are seeked advice from including the user;
Second response sending module 503, for seeking advice from sentence according to the target at least two candidate consulting sentences, to institute
It states terminal and returns to the second response message for seeking advice from sentence for the target.
A kind of server is present embodiments provided, by seeking advice from sentence according to user, is sent to terminal and is directed to the user
The first response message for seeking advice from sentence realizes the response that user seeks advice from sentence.
The response of sentence is seeked advice from based on user, if the present embodiment passes through the verification request for receiving terminal transmission, it is determined that
Candidate's consulting sentence and verification request are that the terminal determines that first response message does not meet the consulting need of user
It is generated when asking, realizes response and be unsatisfactory for automatically determining the candidate consulting sentence for consulting, in turn, user when demand for counseling
Without inputting complicated consulting sentence again, the processing load of user is reduced.
Simultaneously as identified candidate consulting sentence is that candidate consulting intention is determining, and candidate consulting is intended that packet
The consulting that search record containing user consulting sentence, and at least partly history search record is characterized is intended to, compared to
The first response message obtained from sentence is seeked advice from only for user, the present embodiment can avoid information by considering various information
Limitation influence the accuracy of intention assessment so that identified candidate consulting sentence and target consulting sentence can
More accurately express the demand of user.
Figure 10 is the structural schematic diagram of server in another embodiment of the present invention.
Referring to FIG. 10, server 6000, comprising:
First response sending module 6100 sends to terminal and seeks advice from for the user for seeking advice from sentence according to user
First response message of sentence;It is that user is sent by the terminal that the user, which seeks advice from sentence,;
Candidate sentence determining module 6600, if the verification request for receiving terminal transmission, identifies search record institute
The candidate consulting of at least two of characterization is intended to, and determines that wherein each candidate consulting is intended to corresponding candidate consulting sentence;It is described
Verification request is that the terminal determines that first response message does not meet and generates when the demand for counseling of user, and the consulting is remembered
Record includes that the user seeks advice from sentence, and at least partly history search record;
Second response sending module 6700, for seeking advice from sentence according to the target at least two candidate consulting sentences, to
The terminal returns to the second response message for target consulting sentence.
Figure 11 is the structural schematic diagram of candidate sentence determining module in embodiment illustrated in fig. 10.
Please refer to Figure 11, candidate's sentence determining module 6600, comprising:
Candidate is intended to determine submodule 6610, for according to multiple Feature Words in the search record, determine it is described extremely
Few two candidate consultings are intended to;
Candidate sentence determines submodule 6620, for being intended to corresponding default sentence according to each candidate consulting, determines every
A candidate consulting is intended to corresponding candidate consulting sentence.
Optionally, the candidate intention determines submodule 6610, comprising:
Recognition unit 6611, for according in the search record multiple Feature Words and consulting intention assessment model,
The recognition result of each Feature Words is obtained, the recognition result includes at least two consulting meanings that the Feature Words can characterize
The probability that figure and each consulting are intended to;
Candidate intent determination unit 6612, in the recognition result, selecting one or more consultings to be intended to institute
Candidate consulting is stated to be intended to.
Optionally, the server 6000, further includes:
Threshold value exceeds module 6200, for determining that the user seeks advice from the quantity of the middle text or word in sentence beyond threshold
Value.
Optionally, the server 6000, further includes:
Indicate information sending module 6500, for sending instruction information to the terminal, the instruction information is used to indicate
The terminal exports feedback guidance information to user, and the feedback guidance information is for guiding user in the terminal input feedback
Information;The feedback information is for characterizing the demand for counseling whether first response message meets user;
The verification request is that the terminal is generated according to the feedback information.
Optionally, the server 6000, further includes:
Non- rhetorical question determining module 6300, for determining that the non-characterization of first response message seeks advice from sentence for the user
Confirmative question;And/or:
Unartificial determining module 6400, for determining the notice letter of the artificial customer service of the non-characterization switching of first response message
Breath.
Figure 12 is the structural schematic diagram of the second response sending module in embodiment illustrated in fig. 10.
Please refer to Figure 12, the second response sending module 6700, comprising:
Candidate sentence sending submodule 6710, for sending described at least two candidate consulting sentences to the terminal;
Object statement determines submodule 6720, and sentence for being sent according to the terminal selects information, it is described at least
Determine that the target seeks advice from sentence in two candidate consulting sentences;The sentence selection information is the terminal in response to user
What selection operation determined;
Second response sending submodule 6730, for seeking advice from sentence according to the target, Xiang Suoshu terminal returns to described the
Two response messages.
A kind of server is present embodiments provided, by seeking advice from sentence according to user, is sent to terminal and is directed to the user
The first response message for seeking advice from sentence realizes the response that user seeks advice from sentence.
The response of sentence is seeked advice from based on user, if the present embodiment passes through the verification request for receiving terminal transmission, it is determined that
Candidate's consulting sentence and verification request are that the terminal determines that first response message does not meet the consulting need of user
It is generated when asking, realizes response and be unsatisfactory for automatically determining the candidate consulting sentence for consulting, in turn, user when demand for counseling
Without inputting complicated consulting sentence again, the processing load of user is reduced.
Simultaneously as identified candidate consulting sentence is that candidate consulting intention is determining, and candidate consulting is intended that packet
The consulting that search record containing user consulting sentence, and at least partly history search record is characterized is intended to, compared to
The first response message obtained from sentence is seeked advice from only for user, the present embodiment can avoid information by considering various information
Limitation influence the accuracy of intention assessment so that identified candidate consulting sentence and target consulting sentence can
More accurately express the demand of user.
Figure 13 is the structural schematic diagram of terminal in one embodiment of the invention.
Please refer to Figure 13, terminal 700, comprising:
User's sentence sending module 701 seeks advice from sentence for sending user to server;
First response receiving module 702 seeks advice from the of sentence for the user for receiving that the server sends
One response message;
Request sending module 703 is verified, for if it is determined that first response message does not meet the demand for counseling of user, then
Verification request is sent to the server, so that at least two candidate consultings that server identification search record is characterized
It is intended to, and determines that wherein each candidate consulting is intended to corresponding candidate consulting sentence, the search record includes that the user consults
Ask sentence, and at least partly history search record;
Second response receiving module 704, for receiving answering for the second of target consulting sentence for the server return
Information is answered, the target consulting sentence is the sentence in described at least two candidate consulting sentences;
Second response output module 705, for exporting second response message to user.
A kind of terminal is present embodiments provided, the response that user seeks advice from sentence is realized.Response is realized to be unsatisfactory for seeking advice from
The candidate consulting sentence for consulting is automatically determined when demand, in turn, user is not necessarily to input complicated consulting sentence again, reduces
The processing load of user.The present embodiment can avoid the limitation of information from influencing the standard of intention assessment by considering various information
True property, so that identified candidate consulting sentence and target consulting sentence can more accurately express the demand of user.
Figure 14 is the structural schematic diagram of terminal in another embodiment of the present invention.
Please refer to Figure 14, terminal 800, comprising:
User's sentence sending module 801 seeks advice from sentence for sending user to server;
First response receiving module 802 seeks advice from the of sentence for the user for receiving that the server sends
One response message;
Request sending module 805 is verified, for if it is determined that first response message does not meet the demand for counseling of user, then
Verification request is sent to the server, so that at least two candidate consultings that server identification search record is characterized
It is intended to, and determines that wherein each candidate consulting is intended to corresponding candidate consulting sentence, the search record includes that the user consults
Ask sentence, and at least partly history search record;
Second response receiving module 809, for receiving answering for the second of target consulting sentence for the server return
Information is answered, the target consulting sentence is the sentence in described at least two candidate consulting sentences;
Second response output module 810, for exporting second response message to user.
Optionally, the terminal 800, further includes:
Guidance information feedback module 803, the instruction information for being sent according to the server export feedback to user and draw
Information is led, the feedback guidance information is for guiding user in the terminal input feedback information;The feedback information is used for table
Levy the demand for counseling whether first response message meets user;
Demand does not meet determining module 804, and the feedback information for being inputted according to user determines first response
Information does not meet the demand for counseling of user.
Optionally, the terminal 800, further includes:
Candidate sentence receiving module 806, the described at least two candidate consulting sentences sent for receiving the server;
Candidate sentence output module 807, for seeking advice from sentence to user's output described at least two is candidate;
Information sending module 808 is selected, for the selection operation in response to user, sentence is generated and selects information, and to institute
State server and send sentence selection information so that the server selects information according to the sentence, it is described at least
Determine that the target seeks advice from sentence in two candidate consulting sentences.
A kind of terminal is present embodiments provided, the response that user seeks advice from sentence is realized.Response is realized to be unsatisfactory for seeking advice from
The candidate consulting sentence for consulting is automatically determined when demand, in turn, user is not necessarily to input complicated consulting sentence again, reduces
The processing load of user.The present embodiment can avoid the limitation of information from influencing the standard of intention assessment by considering various information
True property, so that identified candidate consulting sentence and target consulting sentence can more accurately express the demand of user.
Figure 15 is the structural schematic diagram of electronic equipment in one embodiment of the invention.
Figure 15 is please referred to, it includes: processor 91 and memory 92 that the present embodiment, which additionally provides a kind of electronic equipment 90,;Its
In:
Memory 92, for storing computer program, which can also be flash (flash memory).
Processor 91, for executing executing instruction for memory storage, to realize each step in the above method.Specifically
It may refer to the associated description in previous methods embodiment.
Optionally, memory 92 can also be integrated with processor 91 either independent.
When the memory 92 is independently of the device except processor 91, the electronic equipment 90 can also include:
Bus 93, for connecting the memory 92 and processor 91.
The present embodiment also provides a kind of readable storage medium storing program for executing, is stored with computer program in readable storage medium storing program for executing, works as electronics
When at least one processor of equipment executes the computer program, electronics executes the side that above-mentioned various embodiments provide
Method.
The present embodiment also provides a kind of program product, which includes computer program, computer program storage
In readable storage medium storing program for executing.At least one processor of electronic equipment can read the computer program from readable storage medium storing program for executing,
At least one processor executes the computer program and electronic equipment is made to implement the method that above-mentioned various embodiments provide.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.