CN109960489A - Generate method, apparatus, equipment, medium and the question answering system of intelligent Answer System - Google Patents

Generate method, apparatus, equipment, medium and the question answering system of intelligent Answer System Download PDF

Info

Publication number
CN109960489A
CN109960489A CN201711419805.XA CN201711419805A CN109960489A CN 109960489 A CN109960489 A CN 109960489A CN 201711419805 A CN201711419805 A CN 201711419805A CN 109960489 A CN109960489 A CN 109960489A
Authority
CN
China
Prior art keywords
node
answer
question
interaction
knowledge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711419805.XA
Other languages
Chinese (zh)
Other versions
CN109960489B (en
Inventor
李波
姜中秋
曾永梅
朱频频
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhizhen Intelligent Network Technology Co Ltd
Original Assignee
Shanghai Zhizhen Intelligent Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhizhen Intelligent Network Technology Co Ltd filed Critical Shanghai Zhizhen Intelligent Network Technology Co Ltd
Priority to CN201711419805.XA priority Critical patent/CN109960489B/en
Priority to US16/106,680 priority patent/US11341422B2/en
Publication of CN109960489A publication Critical patent/CN109960489A/en
Application granted granted Critical
Publication of CN109960489B publication Critical patent/CN109960489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of method, apparatus, equipment, storage medium and intelligent Answer Systems for generating intelligent Answer System.The generation method includes: to obtain patterned question and answer flow chart;According to each graphic assembly for including in question and answer flow chart, generate and the matched processing frame of question and answer flow chart;According to each graphic assembly in question and answer flow chart is matched custom-configures information, generate question and answer process module corresponding with question and answer flow chart;Establish the corresponding relationship of one or more knowledge points in each interaction node and knowledge base;And the addition thematic knowledge point corresponding with each question and answer process module in knowledge base.The scheme optimization of the embodiment of the present invention implementation of existing intelligent Answer System realizes rapid build and the update of intelligent Answer System, improves the efficiency for generating intelligent Answer System, greatly reduces the workload of developer.

Description

Generate method, apparatus, equipment, medium and the question answering system of intelligent Answer System
Technical field
The present embodiments relate to intelligent answer technology more particularly to it is a kind of generate intelligent Answer System method, apparatus, Terminal device, storage medium and intelligent Answer System.
Background technique
Human-computer interaction is the science of the interactive relation between research system and user.System can be various machines Device is also possible to the system and software of computerization.For example, various artificial intelligence system (intelligence may be implemented by human-computer interaction Energy customer service system, speech control system etc.).Artificial intelligence semantics recognition is the basis of human-computer interaction, can be to human language Identified, to be converted into machine it will be appreciated that language.
Intelligent Answer System is a kind of typical case of human-computer interaction, wherein after user's proposition problem, intelligent answer system System provides the answer of the problem.Intelligent Answer System is one of very important intelligent Answer System, generally require with The question and answer interaction that user carries out.And the interaction content inputted in a certain wheel question answering process according to user, determine next round question and answer When be supplied to the feedback information of user.Correspondingly, an intelligent Answer System often corresponds to a question and answer process, from question and answer process In root node start, according to the customer interaction information received in multiple interaction nodes (judging node), constantly determine entire Next trend of question and answer process to the last arrives at finish node as expected and completes entire question and answer process.
Present technology often needs to ask by developer by what process design personnel drew when realizing intelligent Answer System Flow chart is answered to be realized in the form of code.It include semantic understanding, the trend of process, pair of business datum system in code It connects, art etc. to user's casting.That is, after process design personnel's proposition demand of intelligent Answer System, by developer's reality Now correspond to writing for code.That is, the code of implementation process finishes the process design personnel of intelligent Answer System It is a black box entirely, if necessary to do any change to intelligent Answer System, just only art is talked about in modification answer at last, will be introduced open Hair personnel carry out modification process code, update after regenerating corresponding flow services to server, furthermore if flow services are being handed over It is not walked according to set process during mutually, it is also desirable to breakpoint be set by the intervention of developer and search asking in code Topic.
Summary of the invention
The embodiment of the invention provides it is a kind of generate the method, apparatus of intelligent Answer System, terminal device, storage medium with And intelligent Answer System improves the efficiency for generating intelligent Answer System to optimize the implementation of existing intelligent Answer System.
In a first aspect, the embodiment of the invention provides a kind of methods for generating intelligent Answer System, comprising:
Obtain patterned one or more question and answer flow charts;
According to each graphic assembly for including in each question and answer flow chart, generate and the matched place of question and answer flow chart Manage frame, wherein the graphic assembly includes: multiple interaction nodes, casting node and the connection for connecting different nodes Part;
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate and each institute The corresponding custom code of graphic assembly is stated to make an addition in the processing frame and at the associated position of graphic assembly, with life At question and answer process module corresponding with the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, the node include: interaction node and Broadcast node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with The corresponding casting content of the first node;
The corresponding relationship for establishing one or more knowledge points in each interaction node and knowledge base, interacts section with described The corresponding knowledge point of point includes: interaction problems and interaction answer, and the interaction problems are used for and the customer interaction information that receives It is matched, the interactive answer is used to determine next trend of the question and answer process module;
Addition thematic knowledge point corresponding with each question and answer process module, the thematic knowledge point packet in knowledge base Problem of subject and theme answer are included, the problem of subject is used to indicate the trigger condition of question and answer process module, the theme answer For establishing the triggering relationship of the thematic knowledge point and the question and answer process module.
Second aspect, the embodiment of the invention also provides a kind of terminal device, the terminal device includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing The method that device realizes the generation intelligent Answer System as described in any embodiment of the present invention.
The third aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, The method of the generation intelligent Answer System as described in any embodiment of the present invention is realized when the program is executed by processor.
Fourth aspect, the embodiment of the invention also provides a kind of intelligent Answer System, the intelligent Answer System is by such as The method that intelligent Answer System is generated described in any embodiment of the present invention generates.
5th aspect, the embodiment of the invention also provides a kind of devices for generating intelligent Answer System, comprising:
Question and answer flow chart obtains module, for obtaining patterned one or more question and answer flow charts;
Handle frame generation module, for according to each graphic assembly for including in each question and answer flow chart, generate with The matched processing frame of question and answer flow chart, wherein the graphic assembly include: multiple interaction nodes, casting node and For connecting the connector of different nodes;
Custom code adding module, for according to matched certainly with each graphic assembly in the question and answer flow chart Define configuration information, generate custom code corresponding with each graphic assembly make an addition in the processing frame with figure At the position of shape component liaison, to generate question and answer process module corresponding with the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, the node include: interaction node and Broadcast node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with The corresponding casting content of the first node;
Corresponding relation building module, for establishing one or more knowledge points in each interaction node and knowledge base Corresponding relationship, knowledge point corresponding with the interaction node include: interaction problems and interaction answer, the interaction problems be used for The customer interaction information received is matched, and the interactive answer is used to determine next trend of the question and answer process module;
Thematic knowledge point adding module, for the addition theme corresponding with each question and answer process module in knowledge base Knowledge point, the thematic knowledge point include problem of subject and theme answer, and the problem of subject is for indicating question and answer process module Trigger condition, the theme answer is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
The embodiment of the invention provides a kind of method, apparatus, equipment, storage medium and intelligence for generating intelligent Answer System Question answering system, by patterned question and answer flow chart and for each graphic assembly setting in the question and answer flow chart Information is custom-configured, can be automatically generated for realizing the question and answer process module of the question and answer flow chart function, pass through later The corresponding relationship of multiple interaction nodes and one or more knowledge points in question and answer flow chart is established in knowledge base, and in knowledge The mode that thematic knowledge point corresponding with each question and answer process module is added in library, can flexibly be realized and be asked based on this Answer the use of the intelligent Answer System of process module generation.The technical solution of the embodiment of the present invention give one kind by finding i.e. The method for the generation intelligent Answer System that resulting mode can be realized, optimizes the realization side of existing intelligent Answer System Formula realizes rapid build and the update of intelligent Answer System, avoids to introduce in intelligent Answer System generating process and open Hair personnel greatly reduce the workload of developer, reduce costs, improve accuracy rate and efficiency.
Detailed description of the invention
Fig. 1 a is the flow chart for the method that one of embodiment of the present invention one generates intelligent Answer System;
Fig. 1 b is the schematic diagram of the patterned question and answer flow chart of one of embodiment of the present invention one;
Fig. 1 c is the schematic diagram for custom-configuring information of one of embodiment of the present invention one input interaction node;
Fig. 1 d is the schematic diagram for custom-configuring information of one of embodiment of the present invention one input casting node;
Fig. 1 e is a kind of schematic diagram for custom-configuring information of input pad of one kind of the embodiment of the present invention;
Fig. 2 is the flow chart for the method that one of embodiment of the present invention two generates intelligent Answer System;
Fig. 3 is the structural schematic diagram of one of the embodiment of the present invention four computer equipment;
Fig. 4 is the structure chart for the device that one of embodiment of the present invention six generates intelligent Answer System.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
The content of embodiment to facilitate the understanding of the present invention first introduces question and answer knowledge point and language in intelligent answer The related notion of adopted expression formula is simply introduced:
1, question and answer knowledge point
Question and answer knowledge point most original and simplest form in knowledge base are exactly usually common FAQ, general form It is that " ask-answer " is right.For example, " rate of CRBT " are exactly that clearly standard asks description for expression.Here " asking " should not be by narrowly It is interpreted as " inquiring ", and should broadly understand one " input ", being somebody's turn to do " input " has corresponding " output ".For example, for being used for For the semantics recognition of control system, the instruction of user, such as " opening radio " should also be understood to be one " asking ", corresponding at this time " answering " can be the calling for executing the control program accordingly controlled.
User to machine when inputting, the most ideal situation is that asked using standard, then the intelligent semantic identifying system of machine At once it will be appreciated that the meaning of user.However, user often not uses standard to ask, but some deformations for asking of standard Form.For example, if being " changing a radio station " for the standard form of asking of the radio station switching of radio, then what user may use Order is " switching one radio station ", and what machine was also required to can to identify user's expression is the same meaning.
For intelligent semantic identification, the extension that the standard that needs in knowledge base is asked is asked, which, which asks, asks table with standard There is slight difference up to form, but expresses identical meaning.
It therefore, include multiple question and answer knowledge points in knowledge base, each question and answer knowledge point includes problem and answer, and problem includes Standard, which is asked, asks that the problems in question and answer knowledge point shows generally by the form of semantic formula with multiple extensions.
2, semantic formula
Semantic formula is mainly made of word, part of speech and their "or" relationship, and core depends on " part of speech ", part of speech Simple to understand to be one group of word for having general character, these words can be similar or dissimilar semantically, these words can also be with It is noted as important or inessential.Semantic formula and user's question sentence relationship and traditional template matching have very big difference, In conventional template matching, template and user's question sentence are only matched and not matched relationship, and semantic formula and user's question sentence Between relationship be indicated by the value (similarity) of quantization, while this quantization value between similar question sentence and user's question sentence Similarity can mutually compare.Since semantic formula will participate in together similarity calculation with similar question sentence, so mould The definition of plate grammer is unsuitable complicated, but has enough ability expression semantic again.
Embodiment one
Fig. 1 a is a kind of flow chart of the method for generation intelligent Answer System that the embodiment of the present invention one provides, the present embodiment It is applicable to the case where intelligent Answer System is generated according to question and answer flow chart, the intelligent Answer System specifically refers to can be with friendship The system that mutual user carries out question and answer interaction, this method can be by the devices provided in an embodiment of the present invention for generating intelligent Answer System It executes, the mode which can be used software and/or hardware is realized, and generally can integrate for generating intelligent answer system The terminal device of system is perhaps in server and the terminal device or server are directly or indirectly connected with knowledge base.Such as figure Shown in 1a, the method for the present embodiment is specifically included:
S110, patterned one or more question and answer flow charts are obtained.
In the present embodiment, the question and answer flow chart specifically can be process design personnel selection and combine setting process volume The each graphic assembly provided in editing interface, obtained patterned flow chart.
Optionally, the question and answer flow chart can be more wheel question and answer flow charts, correspondingly, intelligent Answer System generated To take turns intelligent Answer System more.
Wherein, graphic assembly may include node and the connector (typical, connecting line) for connecting different nodes. It include interaction node in the node, the interaction node specifically refers to that question and answer can have been carried out with interactive user (can to ask with one One answers, and can also ask answer with one more) node of interaction, under the interaction node, the customer interaction information that can be inputted according to user, Determine next trend of question and answer flow chart.
For the overall structure of question and answer flow chart, a question and answer flow chart may include having a root nodes stand process Beginning, one or more terminal nodes represent the end of process.In addition, can also include multilayer interaction section in question and answer flow chart Point, every layer of interaction node include one or more interaction nodes.Wherein, one layer of interaction node, a corresponding question and answer stage.
It is, of course, understood that the node other than it may include interaction node, can also include casting section Node or recording node etc. is arranged in point, variable, and the present embodiment is not limited thereto, in general, a question and answer process Root node in figure is interaction node, and terminal node is casting node.
In order to make it easy to understand, showing a kind of patterned question and answer flow chart in Figure 1b.As shown in Figure 1 b, the question and answer The graphic assembly of diamond shape is interaction node (such as: inquiry age node 101) in flow chart, and rectangular graphic assembly is casting section Point (such as: the age is unsatisfactory for terms of loan node 102).It is connected between each node by the connecting line of node-to-node.Its In, it include four layers of interaction node in question and answer flow chart described in Fig. 1 b.It include an interaction node in each layer, namely: Include: inquiry age node 101 (root node) in first layer, represents the inquiry stage at age, the second layer has comprised querying whether vehicle There is room node 103, represents garage and inquire that stage, third layer include the node 106 for inquiring the amount of the loan, represent amount of the loan inquiry Stage and the 4th layer include inquiry several sections of points 107 by stages, represent and count the inquiry stages by stages.Basis in each interaction node The different interaction contents of input can accordingly determine the different trends of the question and answer flow chart.In addition, the question and answer flow chart includes Multiple terminal nodes, namely: the age is unsatisfactory for terms of loan node 102, reminds excess node 109, reminds oversubscription issue node 108 and casting loan result node 10A by stages.
S120, according to each graphic assembly for including in each question and answer flow chart, generate and the question and answer flow chart The processing frame matched, wherein the graphic assembly includes: multiple interaction nodes.
In the present embodiment, a kind of question and answer process module that can be automatically generated is proposed.Correspondingly, be provided previously with not The standard implementation code that same type graphic assembly matches, such as: it establishes corresponding with interaction node and casting node Standard implementation code wrap pre-establishes pair between standard implementation code and corresponding graphic assembly in different library files It should be related to.Typically, it can be previously written in the process editing interface and realize generation with the matched standardization of each graphic assembly The storage address (or reference address) of code, correspondingly, can be for the question and answer process drawn based on the process editing interface Each graphic assembly for including in figure, the automatic corresponding matched processing frame of generation.
It should be noted that concern is primarily with generate the method for intelligent Answer System, therefore, question and answer for the embodiment of the present invention It may include having multiple interaction nodes in flow chart, still, the technical solution of the embodiment of the present invention theoretically may be implemented any The generation intelligent Answer System of type, as long as drawing corresponding flow chart as needed, corresponding processing frame can be obtained, And corresponding process module is obtained in turn.
S130, according to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate Custom code corresponding with each graphic assembly make an addition in the processing frame with the associated position of graphic assembly Place, to generate question and answer process module corresponding with the question and answer flow chart.
It is understood that only including corresponding graphic assembly with the matched standard implementation code of each graphic assembly The general utility functions that can be realized.Such as: it is directed to an interaction node, includes decision logic in corresponding standard implementation code, Or it is directed to a casting node, it include casting logic etc. in corresponding standard implementation code.In order to enable a graphical set Part can be realized the function that it is assigned in question and answer flow chart, needs to input and custom-configures parameter accordingly.
It cites a plain example, is unsatisfactory for terms of loan node 102 for the age in Fig. 1 b, the age is needed to be unsatisfactory for Terms of loan node 102 in a triggered, can broadcast content " age is unsatisfactory for the terms of loan ", correspondingly, above-mentioned, " age is not Meet the terms of loan " it is exactly the function that the imparting of terms of loan node 102 is unsatisfactory for the age, in order to enable the age is unsatisfactory for providing a loan Condition node 102 can be realized above-mentioned function, need that the processing is added using above-mentioned casting content as information is custom-configured In frame.
Typically, blank code can be reserved with the setting position in the matched standard implementation code of each graphic assembly Section is being obtained for the graphic assembly input in question and answer flow chart when custom-configuring parameter (for example, passing through process The parameter configuration interface input that editing interface provides), correspondence is added in the matched custom code of parameter that custom-configures Blank code segment in, to realize customized graphic assembly function.
Optionally, information (such as: the age is unsatisfactory for the terms of loan) can will be custom-configured to make by oneself directly as described Adopted code makes an addition in the processing frame, can also according to custom-configure information (for example, open rejection priority option or Open knowledge priority option), what matching was write in advance makes an addition to institute from the different custom codes for custom-configuring information matches It states in processing frame, the present embodiment is to this and is not limited.
Correspondingly, if completing customized setting to the whole graphic assemblies for including in a question and answer flow chart, The realization code that can be realized the question and answer flow chart function can be generated, namely: generate question and answer described in the embodiment of the present invention Process module.
S140, the corresponding relationship for establishing one or more knowledge points in each interaction node and knowledge base, and it is described The corresponding knowledge point of interaction node includes: interaction problems and interaction answer, and the interaction problems are used to hand over the user received Mutual information is matched, and the interactive answer is used to determine next trend of the question and answer process module.
In the present embodiment, interaction node needs to determine the question and answer process module established according to customer interaction information Next trend.Namely: interaction node includes at least two branches, and the difference that different branches correspond to the question and answer process module is walked To.Therefore, it is necessary to be the different branch condition of different branch establishings in the question and answer process module, such as: as shown in Figure 1 b, It inquires on age node 101, if it is determined that customer interaction information is " having reach 20 years old ", then question and answer process module is flowed along branch A Go to this trend of node 103 that asks whether to have car and house, if it is determined that customer interaction information is " less than 20 years old ", then question and answer stream Journey module can circulate along branch B is unsatisfactory for this trend of terms of loan node 102 to the age.
In fact, interactive user (namely: the user that question and answer interact is carried out with intelligent Answer System) in an interaction node The expression-form of the customer interaction information of lower input may be not unique, and customer interaction informations multiple and different in other words can be with The corresponding same branch condition.It as in the previous example, for example, can be with prespecified customer interaction information for " having reach 20 years old ", " adult " Or when " meeting age condition ", question and answer process module can circulate along branch A, then in addition to by branch A (connector) Dynamic trigger condition setting be " having reach 20 years old " except, it is also necessary to establish in knowledge base and know with the matched interaction of interaction node Know point: (having reach 20 years old, completely 20 years old), (having grown up, completely 20 years old) and (meeting age condition, completely 20 years old).And respectively It establishes above-mentioned interactive knowledge point and inquires the corresponding relationship of age node 101.Similarly, for " less than 20 years old " this branch, It is also required to establish in knowledge base and interaction node is matched interacts knowledge point: (less than 20 years old, less than 20 years old), (it is teenage, not Full 20 years old) and (be unsatisfactory for age condition, less than 20 years old).Therefore, inquiry age node 101 need to interact knowledge point with six altogether Establish corresponding relationship.It is understood that knowledge point corresponding with interaction node and question and answer knowledge point in the prior art are that have Difference, therefore, for the ease of difference, knowledge point corresponding with interaction node is referred to as interactive knowledge point hereinafter.
Wherein, first half in each bracket represents the interaction problems of interaction knowledge point, for the user that receives Interactive information is matched, and the latter half in each bracket represents the interaction answer of the interaction knowledge point, described in determining Next trend of question and answer process module.
By aforesaid operations, when question and answer process module circulates to the inquiry age node 101, no matter interactive user is inputted " having reach 20 years old " still " has grown up ", and " having reach 20 years old " this interaction answer can be matched in knowledge base, is being obtained After " having reach 20 years old " this interaction answer, intelligent Answer System can determine the Dynamic trigger of the interaction answer and branch A setting Condition matches, then question and answer process module continues circulation downwards by branch A.
Need it is once more emphasized that, the interactive knowledge point corresponding with interaction node stored in the knowledge base be different from institute The question and answer knowledge point stored in knowledge base is stated, as previously mentioned, so-called question and answer knowledge point, generally comprises problematic and corresponding answers Case (alternatively referred to as " ask-answer " to), wherein the question and answer knowledge point is primarily adapted for use in the scene that question and answer are carried out with interactive user In, the problems in question and answer knowledge point with the customer interaction information of interactive user for being matched, if successful match, to the friendship Answer in mutual user feedback question and answer knowledge point, or execute the calling with the control program of the answer content matching.
Namely: question and answer knowledge point can directly determine interaction process result corresponding with customer interaction information (for example, anti- Present answer content or execute the calling of setting control program), and interacting knowledge point is point for determining intelligent Answer System Branch condition, the two purposes is different.For the ease of being distinguished in different application scene to above-mentioned two class knowledge point, can incite somebody to action Interaction knowledge point and question and answer knowledge point are stored at storage location different in the knowledge base, or in interaction knowledge point The knowledge point label etc. that addition is distinguished with question and answer knowledge point.
In fact, the main purpose that interaction knowledge point is arranged allows for the user received for same interaction node The content of interactive information may be diversified, for example, " reach 20 years old " described in precedent or " adult " etc., still, In order to guarantee that the design terseness an of intelligent Answer System only makes generally when a branch condition of interaction node is arranged With single conditional content, such as: " having reach 20 years old " therefore introduces the concept of interactive knowledge point.Pass through the needle in knowledge base Multiple interactive knowledge points are arranged to the same branch condition of same interaction node, namely: by multiple differences for being directed toward same branch Interaction problems, the same interactive answer in correspondence, can be realized and allow multiple approximate expression contents that can correspond to a branch Condition.
In other embodiments of the invention, question and answer knowledge point with interact knowledge point not it is also possible to not to the two It distinguishes, all within protection scope of the present invention.
It as in the previous example, may include multiple connectors to connect different nodes in a question and answer process module, it therefore, can be with Information is custom-configured by configure target connector that one is used to connect upper layer interaction node and lower level node, is realized Determination to next trend of the question and answer process module.
Correspondingly, the information that custom-configures may include: and the matched dynamic condition configuration information of target connector; The target connector is interaction section for connecting association upper layer node and association lower level node, the association upper layer node Point;
Wherein, the dynamic condition configuration information circulates from the association upper layer node to institute for the question and answer process module The condition of association lower level node is stated, the dynamic condition configuration information is corresponding with the association upper layer node in the knowledge base A knowledge point in interaction answer match.
S150, the addition thematic knowledge point corresponding with each question and answer process module in knowledge base, the theme are known Knowing point includes problem of subject and theme answer, and the problem of subject is used to indicate the trigger condition of question and answer process module, the master Topic answer is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
In the present embodiment, question and answer process module (code for realizing question and answer flow chart) is being generated, and in knowledge base It establishes after interaction node and the corresponding relationship of one or more knowledge point, in order to realize to the normal of the question and answer process module It uses, needs the further addition thematic knowledge point corresponding with each question and answer process module in knowledge base.
It should be noted that in the present embodiment, giving one kind and firstly generating question and answer process module, establish theme later The implementation of knowledge point, and it will be appreciated by persons skilled in the art that the establishment process of thematic knowledge point can not office It is limited to execute after generating question and answer process module, here and is not limited thereof.For example, thematic knowledge can be initially set up Point is establishing corresponding question and answer process module etc. later.
In fact, thematic knowledge point and the difference of the question and answer knowledge point in knowledge base are: when the use of interactive user input When the problems in family interactive information and question and answer knowledge point match, can directly export the answer of the question and answer knowledge point, or execute with The calling of the control program of the answer content matching, and when the customer interaction information of interactive user input (is referred to as just hereinafter Beginning solicited message) when being matched with the problem of subject of a thematic knowledge point, then can correspond to the triggering question and answer process module (for example, Directly trigger the root node of the question and answer process module).
Typically, the theme answer in a thematic knowledge point can be the corresponding question and answer process module of thematic knowledge point Storage address or call address etc. the information of the question and answer process module can be accurately positioned.
The embodiment of the invention provides it is a kind of generate intelligent Answer System method, by patterned question and answer flow chart with And information is custom-configured for each graphic assembly setting in the question and answer flow chart, reality can be automatically generated for The question and answer process module of the existing question and answer flow chart function, later by establishing multiple interactions in question and answer flow chart in knowledge base The corresponding relationship of node and one or more knowledge points, and addition is corresponding with each question and answer process module in knowledge base Thematic knowledge point mode, can flexibly realize makes the intelligent Answer System generated based on the question and answer process module With.The technical solution of the embodiment of the present invention gives a kind of generation intelligent answer that can be realized by way of What You See Is What You Get The method of system optimizes the implementation of existing intelligent Answer System, realize the rapid build of intelligent Answer System with And update, it avoids in intelligent Answer System generating process and introduces developer, greatly reduce the workload of developer, drop Low cost, improves accuracy rate and efficiency.
In on the basis of the various embodiments described above, the information that custom-configures be may further include: with interaction node Corresponding rejection priority option.
Wherein, when the question and answer process module circulates and opens the first interaction node of rejection priority function to configuration, such as Fruit determines in customer interaction information at least one knowledge point corresponding with first interaction node in knowledge base received Interaction problems mismatch, then provide rejection response, request re-enter the customer interaction information.
Namely: if an interaction node is configured for rejection priority option, identification base is only capable of in the interaction node In the interaction problems of the interaction node.Typically, if to be provided with rejection excellent for an interaction node of question and answer flow chart First option, then obtain write in advance with the matched custom code of rejection priority function, and above-mentioned custom code is added In the processing frame and at the associated position of the interaction node.
By the way that rejection priority option is arranged, it ensure that intelligent Answer System can be held according to pre-designed process sequence Row arbitrarily will not be jumped or be fed back because of some unrecognized problems of the intelligent Answer System that user inputs, So that regular, the secondary sequence of entire intelligent Answer System is more preferable.
Unlike rejection priority option, the information that custom-configures can also include: corresponding with interaction node Knowledge priority option;
Wherein, when the question and answer process module circulates and opens the second interaction node of knowledge priority function to configuration, such as Fruit determines in received customer interaction information at least one knowledge point corresponding with second interaction node in knowledge base Interaction problems mismatch, then carry out global search to the customer interaction information in the knowledge base, and look into according to the overall situation Result is looked for execute corresponding interactive operation.
Namely: if an interaction node is configured for knowledge priority option, base is identified first in the interaction node In the interaction problems of the interaction node, if recognition failures, will continue to identify problem in other knowledge points in knowledge base.Allusion quotation Type, if being provided with knowledge priority option for an interaction node of question and answer flow chart, obtain write in advance with The matched custom code of knowledge priority function, and by above-mentioned custom code make an addition in the processing frame with the interaction section At the associated position of point.
By the way that knowledge priority option is arranged, it ensure that the execution flexibility of intelligent Answer System, can be handed over determining user When mutual information is mismatched with the node currently to circulate, also question and answer can be carried out with user well and interacted, to further increase user Satisfaction.
In a specific example, for the corresponding interactive system of flow chart of such as Fig. 1 b, for inquiry age node 101 This interaction node is corresponding with 6 interactive knowledge points, and the interaction problems of this 6 interactive knowledge points are respectively " having reach 20 years old ", " Adult ", " meeting age condition ", " less than 20 years old ", " teenage " and " not meeting age condition ", when user's interaction of input When information and above-mentioned 6 interaction problems mismatch, such as: " today, weather was how ", if the inquiry age node 101 is set Rejection priority option is set, then intelligent Answer System will not provide corresponding feedback for the customer interaction information, and rest on User, which is continued waiting for, on inquiry age node 101 re-enters new interactive information;If the inquiry age node 101 is provided with The problem of knowledge priority option, the then intelligent Answer System can be searched in knowledge base with the inquiry weather corresponding question and answer knowledge Point, and the answer of the question and answer knowledge point is fed back, for example, " today, weather was fine, 25 DEG C of temperature ".
On the basis of the various embodiments described above, the information that custom-configures be can further include: with interaction node Corresponding back track function option;
Wherein, when the question and answer process module circulates and opens the third interaction node of back track function to configuration, if really The interaction problems phase of fixed received customer interaction information upper layer node corresponding with the third interaction node in knowledge base Match, then the question and answer process module circulates upper layer node corresponding to the third interaction node.
By the way that back track function is arranged, the versatility of intelligent Answer System can be made stronger, in intelligent Answer System and used Family carries out in question and answer interactive process, and the content that can be inputted at any time according to user readjusts walking for entire intelligent Answer System To being re-executed especially it is possible to return to the interaction node executed to one, and redefine based on the interaction Next trend of node, to better meet the practical question and answer demand of user.
In a specific example, for the corresponding interactive system of flow chart of such as Fig. 1 b, for inquiry age node 101, user has input " less than 20 years old " this customer interaction information, correspondingly, the intelligent Answer System by branch B circulate to Age is unsatisfactory for terms of loan node 102, and broadcasts corresponding casting content to user.At this point, if user re-enters " Full 20 years old " this customer interaction information, then intelligent Answer System can circulate (backtracking) to inquiring age node 101, and root again According to the above content that user inputs, intelligent Answer System again through branch A circulate to ask whether to have car and house node 103 after It is continuous to be interacted with user's progress question and answer.
Specifically, the graphic assembly can further include: casting node.Correspondingly, described custom-configure letter Breath may include: casting content corresponding with node, and the node includes: interaction node and casting node;
Wherein, if the question and answer process module circulates to the fourth node configured with casting content, corresponding casting with The corresponding casting content of the fourth node.
In a specific example, as shown in Figure 1 b, when intelligent Answer System circulates to asking whether the node that has car and house When 103 this interaction node, which can broadcast preset casting content first, for example, " may I ask whether you have vehicle Have room ", next trend of intelligent Answer System can be determined based on the customer interaction information of receipt of subsequent later;When intelligent answer system To when meeting this casting node of 200,000 terms of loan, which can directly be broadcasted in preset casting for system circulation Hold, such as: " you meet 200,000 terms of loan ".
Content is broadcasted by setting, effective question and answer can be carried out with user and interacted, and user can be needed in next step The interaction content of input is effectively prompted.
On the basis of the various embodiments described above, the information that custom-configures be can further include: corresponding with node Interrupt function choosing-item;
Wherein, the question and answer process module circulate to open interrupt five node of function when, if with described the Before the corresponding casting content casting of five nodes terminates, receive customer interaction information, then stop to the casting content after Continued broadcasting report.
It is arranged and interrupts the benefit of function choosing-item and be: if familiar entire intelligent Answer System of user interacted Journey terminates to broadcast without waiting for a node in intelligent Answer System, the information of interaction needed for can rapidly inputting, into one Step improves the efficiency of human-computer interaction.
In a specific example, as shown in Figure 1 b, when intelligent Answer System circulates to asking whether the node that has car and house When 103 this interaction node, during the interaction node broadcasts " may I ask whether you have car and house ", if receiving user " having vehicle without room " of input will not then be further continued for broadcasting above-mentioned casting content, but circulation extremely meets 200,000 terms of loan rapidly Node 104 is interacted with user, has saved entire question and answer interaction time.
The technical solution of the embodiment of the present invention is right for the various function needs that intelligent Answer System may use Corresponding realization code should be write and be encapsulated, process design personnel can be made according to actual design requirement, it is convenient to select Demand is custom-configured needed for selecting or inputting, further improves the generation intelligent Answer System of the embodiment of the present invention Method versatility and user satisfaction.
Wherein, in order to make it easy to understand, showing a kind of input interaction node in figure 1 c custom-configures showing for information It is intended to.As illustrated in figure 1 c, the schematic diagram for custom-configuring information for the inquiry age node 101 in Fig. 1 b is given.Its In, in input frame corresponding with " knowledge ", whole interaction problems corresponding with the inquiry age node 101 can be inputted.
A kind of schematic diagram for custom-configuring information of input casting node is shown in Fig. 1 d.As shown in Fig. 1 d, give The schematic diagram for custom-configuring information for the prompting excess node 109 in Fig. 1 b is gone out.It wherein, can be in answer frame Input casting content corresponding with the prompting excess node 109.
A kind of schematic diagram for custom-configuring information of input pad is shown in Fig. 1 e.As shown in Figure 1 d, it provides For the schematic diagram for custom-configuring information of connector corresponding with branch A in Fig. 1 b, wherein corresponding with " condition " Input frame in, can input branch by selection execute condition.
It typically, can be when user double-clicks or clicks a graphic assembly in question and answer flow chart, in corresponding pop-up State the input template for custom-configuring information, process design personnel can be realized pair by simply selecting and input operation Different graphic assemblies, which inputs, different custom-configures information.
Embodiment two
Fig. 2 is a kind of flow chart of method for generating intelligent Answer System provided by Embodiment 2 of the present invention, the present embodiment It is optimized based on above-described embodiment, it in the present embodiment, will be according to each figure for including in each question and answer flow chart Shape component, generate with the question and answer flow chart it is matched processing frame operation and establish each interaction node and knowledge The operation of the corresponding relationship of one or more knowledge points is embodied in library.Correspondingly, the method for the embodiment of the present invention includes:
S210, patterned one or more question and answer flow charts are obtained.
Root node in S220, the acquisition question and answer flow chart, and generated and described according to the type of the root node The corresponding base standard code of node, and the base standard code is added in source code frame.
S230, since next layer of the root node, successively obtain in the question and answer flow chart node as working as Preceding traverse node.
Typically, if next layer of root node includes multiple nodes, according to certain traversal order, for example, from It is left-to-right or from right to left etc., after the node of this layer is all traversed, continue to traverse next node layer.
S240, according to the type of the current traverse node, obtain additional standard corresponding with the current traverse node Change code.
S250, according to the standardized codes for the upper node layer being connect by connector with the current traverse node in institute The position in source code frame is stated, it will be in the corresponding addition source code frame of the additional standardized codes.
S260, judge whether to complete the processing to nodes whole in the question and answer flow chart: if so, executing S270;Otherwise It returns and executes S230.
S270, will after the completion of processing the obtained source code frame as with the matched processing of question and answer flow chart Frame.
It should be noted that the embodiment of the present invention gives at a kind of question and answer flow chart generation that basis has been completed The method for managing frame, indeed, it is possible to generate the processing frame, the present embodiment in question and answer flowcharting process real-time update Generation opportunity to the processing frame and without limitation.
S280, according to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate Custom code corresponding with each graphic assembly make an addition in the processing frame with the associated position of graphic assembly Place, to generate question and answer process module corresponding with the question and answer flow chart.
S290, one or more knowledge inputted for each interaction node in each intelligent Answer System is obtained Point.
It whether include the knowledge point inputted in S2100, judgemental knowledge library: if so, executing S2110;Otherwise, it executes S2120。
In the present embodiment, consider that such a application scenarios, multiple question and answer process modules may be corresponded in knowledge base A knowledge point, for example, the intelligent Answer System seeked advice from of the installment credit in Fig. 1 b is needed using inquiry this interaction of age Node, and the intelligent Answer System that a credit card handles consulting is also needed using inquiry this interaction node of age.Therefore, It is not necessary to which multiple duplicate knowledge points are arranged in knowledge base for identical interaction node.
Correspondingly, obtain process design personnel for question and answer flow chart an interaction node input one or it is more When a knowledge point, according to, to the storage condition of the knowledge point, executing different operations in knowledge base: if storage should in knowledge base The corresponding relationship of the knowledge point and interaction node is then directly established in knowledge point;It is first if not stored knowledge point in knowledge base After first establishing the knowledge point in knowledge base, continue the corresponding relationship established between the knowledge point and interaction node.It is arranged in this way Benefit be: guarantee normal information inquiry on the basis of, simplify the informational capacity stored in knowledge base significantly.
S2110, existing knowledge point and the interaction node in corresponding intelligent Answer System are directly established in the knowledge base Between corresponding relationship, execute S2130.
S2120, the knowledge point is created in the knowledge base, and establish in the knowledge base newly-built knowledge point with The corresponding relationship between interaction node in corresponding intelligent Answer System, executes S2130.
S2130, the addition thematic knowledge point corresponding with each question and answer process module in knowledge base, the theme are known Knowing point includes problem of subject and theme answer, and the problem of subject is used to indicate the trigger condition of question and answer process module, the master Topic answer is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
The technical solution of the embodiment of the present invention is by generating corresponding processing frame based on the question and answer flow chart completed Mode, avoid during flowchart drawing generate processing frame when, the modification for the question and answer flow chart can correspond to more The defect of the new processing frame, improves the formation efficiency of question and answer process module, in addition, the embodiment of the present invention does not repeat to be stored in The mode of the corresponding knowledge point of interaction node can simplify the informational capacity in knowledge base significantly.
Embodiment three
The embodiment of the invention provides a kind of intelligent Answer System, the intelligent Answer System passes through such as any reality of the present invention The method for generating intelligent Answer System described in example is applied to generate.
The intelligent Answer System includes: question and answer process module corresponding with question and answer flow chart, in the question and answer flow chart Including multiple graphic assemblies, the graphic assembly includes: multiple interaction nodes;
It is stored in knowledge base, there is one of corresponding relationship with each interaction node in the question and answer flow chart Or multiple knowledge points, knowledge point corresponding with the interaction node include: interaction problems and interaction answer, the interaction problems are used Matched in the customer interaction information received, the interactive answer be used for determine the question and answer process module it is next walk To;And
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, The problem of subject is answered for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme Case is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
Further, question and answer process module corresponding with question and answer flow chart, specifically includes:
According to each graphic assembly for including in the question and answer flow chart, the generated and matched place of question and answer flow chart Manage frame;And
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, it is generated with Each graphic assembly is corresponding, make an addition in the processing frame with the customized generation at the associated position of graphic assembly Code.
The technical solution of the embodiment of the present invention gives a kind of based on the method intelligence generated for generating intelligent Answer System It can question answering system.By the intelligent Answer System, question and answer process mould needed for convenience, effective triggering can be needed according to question and answer Block has greatly enriched the knowledge vertex type stored in knowledge base.
Example IV
Fig. 3 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention four provides.Fig. 3, which is shown, to be suitable for being used to Realize the block diagram of the exemplary computer device 12 of embodiment of the present invention.The computer equipment 12 that Fig. 3 is shown is only one Example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 3, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can To include but is not limited to: one or more processor or processing unit 16, system storage 28 connect not homologous ray group The bus 18 of part (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not Movably, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 3 The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould Block 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also To pass through network adapter 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network Network, such as internet) communication.As shown, network adapter 20 is logical by other modules of bus 18 and computer equipment 12 Letter.It should be understood that other hardware and/or software module, packet can be used in conjunction with computer equipment 12 although being not shown in Fig. 3 It includes but is not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic tape drive Device and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the method that intelligent Answer System is generated provided by the embodiment of the present invention.
Namely: the processing unit is realized when executing described program: obtaining patterned one or more question and answer flow charts;
According to each graphic assembly for including in each question and answer flow chart, generate and the matched place of question and answer flow chart Manage frame, wherein the graphic assembly includes: multiple interaction nodes, casting node and the connection for connecting different nodes Part;
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate and each institute The corresponding custom code of graphic assembly is stated to make an addition in the processing frame and at the associated position of graphic assembly, with life At question and answer process module corresponding with the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, the node include: interaction node and Broadcast node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with The corresponding casting content of the first node;
The corresponding relationship for establishing one or more knowledge points in each interaction node and knowledge base, interacts section with described The corresponding knowledge point of point includes: interaction problems and interaction answer, and the interaction problems are used for and the customer interaction information that receives It is matched, the interactive answer is used to determine next trend of the question and answer process module;
Addition thematic knowledge point corresponding with each question and answer process module, the thematic knowledge point packet in knowledge base Problem of subject and theme answer are included, the problem of subject is used to indicate the trigger condition of question and answer process module, the theme answer For establishing the triggering relationship of the thematic knowledge point and the question and answer process module.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer program, the journey The method of the generation intelligent Answer System provided such as all inventive embodiments of the application is provided when sequence is executed by processor:
Namely: the realization when program is executed by processor: obtain patterned one or more question and answer flow charts;
According to each graphic assembly for including in each question and answer flow chart, generate and the matched place of question and answer flow chart Manage frame, wherein the graphic assembly includes: multiple interaction nodes, casting node and the connection for connecting different nodes Part;
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate and each institute The corresponding custom code of graphic assembly is stated to make an addition in the processing frame and at the associated position of graphic assembly, with life At question and answer process module corresponding with the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, the node include: interaction node and Broadcast node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with The corresponding casting content of the first node;
The corresponding relationship for establishing one or more knowledge points in each interaction node and knowledge base, interacts section with described The corresponding knowledge point of point includes: interaction problems and interaction answer, and the interaction problems are used for and the customer interaction information that receives It is matched, the interactive answer is used to determine next trend of the question and answer process module;
Addition thematic knowledge point corresponding with each question and answer process module, the thematic knowledge point packet in knowledge base Problem of subject and theme answer are included, the problem of subject is used to indicate the trigger condition of question and answer process module, the theme answer For establishing the triggering relationship of the thematic knowledge point and the question and answer process module.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Embodiment six
Fig. 4 is the structure chart for the device that one of embodiment of the present invention six generates intelligent Answer System, as shown in figure 4, Described device include: question and answer flow chart obtain module 410, processing frame generation module 420, custom code adding module 430, Corresponding relation building module 440 and thematic knowledge point adding module 450.Wherein:
Question and answer flow chart obtains module 410, for obtaining patterned one or more question and answer flow charts;
Frame generation module 420 is handled, for generating according to each graphic assembly for including in each question and answer flow chart With the matched processing frame of the question and answer flow chart, wherein the graphic assembly include: multiple interaction nodes, casting node with And the connector for connecting different nodes;
Custom code adding module 430, for being matched according to each graphic assembly in the question and answer flow chart Custom-configure information, generate custom code corresponding with each graphic assembly and make an addition in the processing frame At the associated position of graphic assembly, to generate question and answer process module corresponding with the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, the node include: interaction node and Broadcast node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with The corresponding casting content of the first node;
Corresponding relation building module 440, for establishing one or more knowledge in each interaction node and knowledge base The corresponding relationship of point, knowledge point corresponding with the interaction node include: interaction problems and interaction answer, and the interaction problems are used Matched in the customer interaction information received, the interactive answer be used for determine the question and answer process module it is next walk To;
Thematic knowledge point adding module 450, it is corresponding with each question and answer process module for being added in knowledge base Thematic knowledge point, the thematic knowledge point include problem of subject and theme answer, and the problem of subject is for indicating question and answer process The trigger condition of module, the theme answer is used to establish the thematic knowledge point and the triggering of the question and answer process module is closed System.
On the basis of the various embodiments described above, the information that custom-configures includes: that rejection corresponding with interaction node is excellent First option;
Wherein, when the question and answer process module circulates and opens the first interaction node of rejection priority function to configuration, such as Fruit determines in customer interaction information at least one knowledge point corresponding with first interaction node in knowledge base received Interaction problems mismatch, then provide rejection response, request re-enter the customer interaction information.
On the basis of the various embodiments described above, the information that custom-configures includes: that knowledge corresponding with interaction node is excellent First option;
Wherein, when the question and answer process module circulates and opens the second interaction node of knowledge priority function to configuration, such as Fruit determines in received customer interaction information at least one knowledge point corresponding with second interaction node in knowledge base Interaction problems mismatch, then carry out global search to the customer interaction information in the knowledge base, and look into according to the overall situation Result is looked for execute corresponding interactive operation.
On the basis of the various embodiments described above, the information that custom-configures includes: backtracking function corresponding with interaction node It can option;
Wherein, when the question and answer process module circulates and opens the third interaction node of back track function to configuration, if really The interaction problems phase of fixed received customer interaction information upper layer node corresponding with the third interaction node in knowledge base Match, then the question and answer process module circulates upper layer node corresponding to the third interaction node.
On the basis of the various embodiments described above, the information that custom-configures includes: that the function that interrupts corresponding with node is selected ?;
Wherein, the question and answer process module circulate to open interrupt five node of function when, if with described the Before the corresponding casting content casting of five nodes terminates, receive customer interaction information, then stop to the casting content after Continued broadcasting report.
On the basis of the various embodiments described above, the information that custom-configures includes: and the matched dynamic of target connector Condition configuration information;
For connecting association upper layer node and being associated with lower level node, the association upper layer node is the target connector Interaction node;
Wherein, the dynamic condition configuration information is that more wheel question and answer process modules circulate from the association upper layer node To the condition of the association lower level node, the dynamic condition configuration information and the association upper layer node in the knowledge base Interaction answer in a corresponding knowledge point matches.
On the basis of the various embodiments described above, the processing frame generation module, comprising:
Root node acquiring unit, for obtaining the root node in the question and answer flow chart, and according to the class of the root node Type generates base standard code corresponding with the root node, and source code frame is added in the base standard code In;
Current traverse node acquiring unit, for since next layer of the root node, successively obtaining the question and answer stream A node is as current traverse node in journey figure;
Additional standardized codes acquiring unit obtains and described current for the type according to the current traverse node The corresponding additional standardized codes of traverse node;
Additional standardized codes adding unit, for according to upper one connect with the current traverse node by connector Position of the standardized codes of node layer in the source code frame, will be described in the corresponding addition of the additional standardized codes In source code frame;
Unit is repeated, for triggering the execution of the current traverse node acquiring unit, until completing to ask described Answer the processing of whole nodes in flow chart;
Handle frame acquiring unit, for will after the completion of processing the obtained source code frame as with the question and answer The matched processing frame of flow chart.
On the basis of the various embodiments described above, corresponding relation building module, comprising:
Knowledge point obtains module, for obtaining one of each interaction node being directed in each intelligent Answer System input Or multiple knowledge points;
First correspondence relationship establishing unit, for if it is determined that in knowledge base do not include input the knowledge point, then exist The knowledge point is created in the knowledge base, and establishes in the knowledge base newly-built knowledge point and corresponding intelligent Answer System In interaction node between corresponding relationship;
Second correspondence relationship establishing unit, for if it is determined that including the knowledge point of input in knowledge base, then directly In the corresponding relationship established in the knowledge base between existing knowledge point and the interaction node in corresponding intelligent Answer System.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (19)

1. a kind of method for generating intelligent Answer System characterized by comprising
Obtain patterned one or more question and answer flow charts;
According to each graphic assembly for including in each question and answer flow chart, generate and the matched processing block of question and answer flow chart Frame, wherein the graphic assembly includes: multiple interaction nodes, casting node and the connector for connecting different nodes;
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate and each figure The corresponding custom code of shape component makes an addition in the processing frame and at the associated position of graphic assembly, with generate with The corresponding question and answer process module of the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, and the node includes: interaction node and casting Node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with it is described The corresponding casting content of first node;
The corresponding relationship for establishing one or more knowledge points in each interaction node and knowledge base, with the interaction node pair The knowledge point answered includes: interaction problems and interaction answer, and the interaction problems are used to carry out with the customer interaction information received Matching, the interactive answer are used to determine next trend of the question and answer process module;
The addition thematic knowledge point corresponding with each question and answer process module in knowledge base, the thematic knowledge point include leading Topic problem and theme answer, the problem of subject are used to indicate the trigger condition of question and answer process module, and the theme answer is used for Establish the triggering relationship of the thematic knowledge point and the question and answer process module.
2. the method according to claim 1, wherein the information that custom-configures includes: and interaction node pair The rejection priority option answered;
Wherein, when the question and answer process module circulates and opens the first interaction node of rejection priority function to configuration, if really Surely the friendship in the customer interaction information received at least one knowledge point corresponding with first interaction node in knowledge base Mutual problem mismatches, then provides rejection response, and the customer interaction information is re-entered in request.
3. method according to claim 1 or 2, which is characterized in that the information that custom-configures includes: and interaction node Corresponding knowledge priority option;
Wherein, when the question and answer process module circulates and opens the second interaction node of knowledge priority function to configuration, if really Interaction in fixed received customer interaction information at least one knowledge point corresponding with second interaction node in knowledge base Problem mismatches, then carries out global search to the customer interaction information in the knowledge base, and according to global search knot Fruit executes corresponding interactive operation.
4. the method according to claim 1, wherein the information that custom-configures includes: and interaction node pair The back track function option answered;
Wherein, when the question and answer process module circulates and opens the third interaction node of back track function to configuration, if it is determined that connect The interaction problems of the customer interaction information of receipts upper layer node corresponding with the third interaction node in knowledge base match, then The question and answer process module is circulated upper layer node corresponding to the third interaction node.
5. the method according to claim 1, wherein the information that custom-configures includes: corresponding with node Interrupt function choosing-item;
Wherein, the question and answer process module circulate to open interrupt five node of function when, if with described Section five Before the corresponding casting content casting of point terminates, customer interaction information is received, then is stopped to the casting content after continued broadcasting Report.
6. the method according to claim 1, wherein the information that custom-configures includes: and target connector Matched dynamic condition configuration information;
The target connector is interaction for connecting association upper layer node and association lower level node, the association upper layer node Node;
Wherein, the dynamic condition configuration information circulates from the association upper layer node to institute for more wheel question and answer process modules The condition of association lower level node is stated, the dynamic condition configuration information is corresponding with the association upper layer node in the knowledge base A knowledge point in interaction answer match.
7. the method according to claim 1, wherein according to each figure for including in each question and answer flow chart Component generates and the matched processing frame of the question and answer flow chart, comprising:
The root node in the question and answer flow chart is obtained, and corresponding with the root node according to the generation of the type of the root node Base standard code, and the base standard code is added in source code frame;
Since next layer of the root node, successively obtains a node in the question and answer flow chart and saved as current traversal Point;
According to the type of the current traverse node, additional standardized codes corresponding with the current traverse node are obtained;
According to the standardized codes for the upper node layer being connect with the current traverse node by connector in the original generation Position in code frame, will be in the corresponding addition source code frame of the additional standardized codes;
It returns and executes since next layer of the root node, successively obtain a node in the question and answer flow chart and be used as currently The operation of traverse node, until completing the processing to nodes whole in the question and answer flow chart;
Will after the completion of processing the obtained source code frame as with the matched processing frame of the question and answer flow chart.
8. method according to claim 1-7, which is characterized in that establish each interaction node and knowledge base The corresponding relationship of middle one or more knowledge point, comprising:
Obtain one or more knowledge point for each interaction node input in each intelligent Answer System;
If it is determined that not including the knowledge point of input in knowledge base, then the knowledge point is created in the knowledge base, and In the corresponding relationship established in the knowledge base between newly-built knowledge point and the interaction node in corresponding intelligent Answer System;
If it is determined that include the knowledge point of input in knowledge base, then established directly in the knowledge base existing knowledge point with The corresponding relationship between interaction node in corresponding intelligent Answer System.
9. a kind of device for generating intelligent Answer System characterized by comprising
Question and answer flow chart obtains module, for obtaining patterned one or more question and answer flow charts;
Handle frame generation module, for according to each graphic assembly for including in each question and answer flow chart, generate with it is described The matched processing frame of question and answer flow chart, wherein the graphic assembly includes: multiple interaction nodes, casting node and is used for Connect the connector of different nodes;
Custom code adding module, for according to matched customized with each graphic assembly in the question and answer flow chart Configuration information, generate custom code corresponding with each graphic assembly make an addition in the processing frame with graphical set At the associated position of part, to generate question and answer process module corresponding with the question and answer flow chart;
The information that custom-configures includes: casting content corresponding with node, and the node includes: interaction node and casting Node;
Wherein, if the question and answer process module circulates to the first node configured with casting content, corresponding casting with it is described The corresponding casting content of first node;
Corresponding relation building module, it is corresponding with knowledge points one or more in knowledge base for establishing each interaction node Relationship, knowledge point corresponding with the interaction node include: interaction problems and interaction answer, and the interaction problems are used for and reception To customer interaction information matched, the interactive answer is used to determine next trend of the question and answer process module;
Thematic knowledge point adding module, for the addition thematic knowledge corresponding with each question and answer process module in knowledge base Point, the thematic knowledge point include problem of subject and theme answer, and the problem of subject is used to indicate the touching of question and answer process module Clockwork spring part, the theme answer are used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
10. device according to claim 9, which is characterized in that the information that custom-configures includes: and interaction node pair The rejection priority option answered;
Wherein, when the question and answer process module circulates and opens the first interaction node of rejection priority function to configuration, if really Surely the friendship in the customer interaction information received at least one knowledge point corresponding with first interaction node in knowledge base Mutual problem mismatches, then provides rejection response, and the customer interaction information is re-entered in request.
11. device according to claim 9 or 10, which is characterized in that the information that custom-configures includes: and interacts section The corresponding knowledge priority option of point;
Wherein, when the question and answer process module circulates and opens the second interaction node of knowledge priority function to configuration, if really Interaction in fixed received customer interaction information at least one knowledge point corresponding with second interaction node in knowledge base Problem mismatches, then carries out global search to the customer interaction information in the knowledge base, and according to global search knot Fruit executes corresponding interactive operation.
12. device according to claim 9, which is characterized in that the information that custom-configures includes: and interaction node pair The back track function option answered;
Wherein, when the question and answer process module circulates and opens the third interaction node of back track function to configuration, if it is determined that connect The interaction problems of the customer interaction information of receipts upper layer node corresponding with the third interaction node in knowledge base match, then The question and answer process module is circulated upper layer node corresponding to the third interaction node.
13. device according to claim 9, which is characterized in that the information that custom-configures includes: corresponding with node Interrupt function choosing-item;
Wherein, the question and answer process module circulate to open interrupt five node of function when, if with described Section five Before the corresponding casting content casting of point terminates, customer interaction information is received, then is stopped to the casting content after continued broadcasting Report.
14. device according to claim 9, which is characterized in that the information that custom-configures includes: and target connector Matched dynamic condition configuration information;
The target connector is interaction for connecting association upper layer node and association lower level node, the association upper layer node Node;
Wherein, the dynamic condition configuration information circulates from the association upper layer node to institute for more wheel question and answer process modules The condition of association lower level node is stated, the dynamic condition configuration information is corresponding with the association upper layer node in the knowledge base A knowledge point in interaction answer match.
15. device according to claim 9, which is characterized in that the processing frame generation module, comprising:
Root node acquiring unit, for obtaining the root node in the question and answer flow chart, and it is raw according to the type of the root node It is added in source code frame at base standard code corresponding with the root node, and by the base standard code;
Current traverse node acquiring unit, for since next layer of the root node, successively obtaining the question and answer flow chart In a node as current traverse node;
Additional standardized codes acquiring unit obtains and the current traversal for the type according to the current traverse node The corresponding additional standardized codes of node;
Additional standardized codes adding unit, for according to the upper one layer of section being connect with the current traverse node by connector Position of the standardized codes of point in the source code frame, the corresponding addition of the additional standardized codes is described original In code skeleton;
Unit is repeated, for triggering the execution of the current traverse node acquiring unit, until completing to the question and answer stream The processing of whole nodes in journey figure;
Handle frame acquiring unit, for will after the completion of processing the obtained source code frame as with the question and answer process Scheme matched processing frame.
16. according to the described in any item devices of claim 9-15, which is characterized in that corresponding relation building module, comprising:
Knowledge point obtain module, for obtains be directed to each intelligent Answer System in each interaction node input one or Multiple knowledge points;
First correspondence relationship establishing unit, for if it is determined that not including the knowledge point of input in knowledge base, then described The knowledge point is created in knowledge base, and establish in the knowledge base newly-built knowledge point in corresponding intelligent Answer System Corresponding relationship between interaction node;
Second correspondence relationship establishing unit, for if it is determined that including the knowledge point of input in knowledge base, then directly in institute State the corresponding relationship established between existing knowledge point and the interaction node in corresponding intelligent Answer System in knowledge base.
17. a kind of terminal device, which is characterized in that the terminal device includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as the method described in any one of claims 1-8 for generating intelligent Answer System.
18. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor The Shi Shixian method for example described in any one of claims 1-8 for generating intelligent Answer System.
19. a kind of intelligent Answer System, which is characterized in that the intelligent Answer System passes through such as any one of claim 1-8 The method of the generation intelligent Answer System generates.
CN201711419805.XA 2017-12-15 2017-12-25 Method, device, equipment, medium and question-answering system for generating intelligent question-answering system Active CN109960489B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711419805.XA CN109960489B (en) 2017-12-25 2017-12-25 Method, device, equipment, medium and question-answering system for generating intelligent question-answering system
US16/106,680 US11341422B2 (en) 2017-12-15 2018-08-21 Multi-round questioning and answering methods, methods for generating a multi-round questioning and answering system, and methods for modifying the system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711419805.XA CN109960489B (en) 2017-12-25 2017-12-25 Method, device, equipment, medium and question-answering system for generating intelligent question-answering system

Publications (2)

Publication Number Publication Date
CN109960489A true CN109960489A (en) 2019-07-02
CN109960489B CN109960489B (en) 2024-01-02

Family

ID=67020869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711419805.XA Active CN109960489B (en) 2017-12-15 2017-12-25 Method, device, equipment, medium and question-answering system for generating intelligent question-answering system

Country Status (1)

Country Link
CN (1) CN109960489B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131637A (en) * 2019-12-13 2020-05-08 集奥聚合(北京)人工智能科技有限公司 Intelligent voice technology service system and device
CN113393201A (en) * 2020-03-12 2021-09-14 阿里巴巴集团控股有限公司 Contract processing system and method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060036430A1 (en) * 2004-08-12 2006-02-16 Junling Hu System and method for domain-based natural language consultation
CN102831482A (en) * 2012-08-01 2012-12-19 浙江兴旺宝明通网络有限公司 Heuristic inquiry system based on intelligent question answering aimed at pump valve industry
US20130019285A1 (en) * 2011-07-15 2013-01-17 International Business Machines Corporation Validating that a user is human

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060036430A1 (en) * 2004-08-12 2006-02-16 Junling Hu System and method for domain-based natural language consultation
US20130019285A1 (en) * 2011-07-15 2013-01-17 International Business Machines Corporation Validating that a user is human
CN102831482A (en) * 2012-08-01 2012-12-19 浙江兴旺宝明通网络有限公司 Heuristic inquiry system based on intelligent question answering aimed at pump valve industry

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶忠杰;: "基于课程本体的智能FAQ系统的设计", 计算机时代, no. 12 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131637A (en) * 2019-12-13 2020-05-08 集奥聚合(北京)人工智能科技有限公司 Intelligent voice technology service system and device
CN113393201A (en) * 2020-03-12 2021-09-14 阿里巴巴集团控股有限公司 Contract processing system and method and electronic equipment

Also Published As

Publication number Publication date
CN109960489B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
CN108090177A (en) The generation methods of more wheel question answering systems, equipment, medium and take turns question answering system more
US11409425B2 (en) Transactional conversation-based computing system
CN107977236B (en) Question-answering system generation method, terminal device, storage medium and question-answering system
CN110019716A (en) More wheel answering methods, terminal device and storage medium
CN110019723A (en) Answering method, terminal device and storage medium based on question answering system
CN110019731A (en) Intelligent interactive method, device, terminal device and storage medium
CN110096516B (en) User-defined database interaction dialog generation method and system
CN115129878B (en) Conversation service execution method, device, storage medium and electronic equipment
CN109960489A (en) Generate method, apparatus, equipment, medium and the question answering system of intelligent Answer System
CN107967304A (en) Session interaction processing method, device and electronic equipment
CN112784024B (en) Man-machine conversation method, device, equipment and storage medium
CN110019727A (en) Intelligent interactive method, device, terminal device and storage medium
CN112487170B (en) Man-machine interaction dialogue robot system facing scene configuration
CN109933314A (en) The generating means of more wheel question answering systems
CN113452853B (en) Voice interaction method and device, electronic equipment and storage medium
CN112163078B (en) Intelligent response method, device, server and storage medium
CN110019718A (en) Method, terminal device and the storage medium of the more wheel question answering systems of modification
CN109960490B (en) Method, device, equipment, medium and question-answering system for generating intelligent question-answering system
WO2013181633A1 (en) Providing a converstional video experience
CN110020014A (en) More wheel question and answer systems
CN108845879A (en) A kind of robot resource transfer method, apparatus, server and storage medium
CN110019721A (en) Modify method, terminal device and the storage medium of question answering system
CN112100338B (en) Dialog theme extension method, device and system for intelligent robot
CN110019717A (en) The device of the more wheel question answering systems of modification
WO2023184810A1 (en) Application definition method and apparatus, electronic device, storage medium, and computer program product

Legal Events

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