Artificial intelligence natural language operational system on a kind of intelligent terminal
Technical field
The present invention relates to artificial intelligence field, particularly relate to a kind of artificial intelligence natural language operational system.
Background technology
For a long time, the interactive mode between people and the computing machine mostly rests on mouse clickable icon menu, keyboard input command, and touch screen etc. is arrived in latest developments.But obviously, these interactive modes are not best selection, and man-machine direct dialogue is very promising interactive mode.Many conversational systems based on experience occurred recently, the people inputs by modes such as voice or keyboards after the natural language, and system can return corresponding natural language and reply and carry out corresponding operation.But in the reality, existing conversational system can only provide the current input of user and reply, can not based on context provide more accurately and reply, the user need to pay close attention to the duty of external unit constantly simultaneously, equipment is made rational management, this has brought very large inconvenience for user's use, greatly reduces the quality that the user experiences.
Summary of the invention
The invention provides a kind of user's experience effect good, in conjunction with the artificial intelligence natural language operational system on the intelligent terminal of contextual analysis.
For solving the problems of the technologies described above, the technical solution used in the present invention is: the operational system of the artificial intelligence natural language on a kind of intelligent terminal is provided, comprise user and intelligent terminal, it is characterized in that, described intelligent terminal and user have the dialogue of context logic, according to the program of correct sequential completing user arrangement execution.
Further, described artificial intelligence natural language operational system comprises artificial intelligence natural language interactive intelligence body and program handling system, and artificial intelligence natural language interactive intelligence body comprises artificial intelligence markup language knowledge base and artificial intelligence markup language interpreter.Operation artificial intelligence natural language operational system is comprised of natural language interactive intelligence body and program handling system in the intelligent terminal.Natural language interactive intelligence body is undertaken by the various use input-output device of intelligent terminal and people alternately.Program handling system is in internal system and natural language interactive intelligence body communications exchange information, and program handling system is connected with external unit by wired or wireless sensor network, reaches control and obtains the purpose that external unit feeds back.
Further, described artificial intelligence markup language knowledge base comprises and replys rule.In the artificial intelligence markup language knowledge base, the state reservoir stores current state, to the input of user's natural language except provide reply, also transmit relative program to program handling system, allow external unit carry out corresponding operation, the redirect of doing the reservoir state that does well with reference to the rule in the knowledge base according to state and user's input, program handling system feedback and the systems response of current state reservoir at last, just can allow in this way system have context logic, and can be according to the program of correct sequential completing user arrangement execution.
Further, described program handling system comprises program storage and program operation controller.Program handling system is controlled the feedback of external unit and collection external unit by mutual with external unit.Program handling system feeds back to natural language interactive intelligence body with the running status of program simultaneously by obtaining alternately new program with natural language interactive intelligence body.
Further, described user's input message is converted to character string after intelligent terminal is processed.
Further, described input message is voice or character.
Further, described intelligent terminal is provided with status register and finite state machine knowledge base, intelligent terminal is converted into character string with the natural language of user's input, intelligent terminal is retrieved the state of described character string representative in the finite state machine knowledge base, return accordingly and reply, and according to replying and current state, with reference to the rule in the finite state machine knowledge base, change the state in the state reservoir.
Further, the realization of described artificial intelligence natural language operational system comprises the steps:
Step 1, the initialization of artificial intelligence natural language operational system loads the artificial intelligence markup language knowledge base;
Step 2 through after the pre-service of intelligent terminal, is used for converting user's input, program handling system feedback to use the character string record natural language expressing;
Step 3 with character string normalization, soon will be converted to the term such as " what " standard such as terms lack of standardization such as " refreshing horses ";
Step 4 is inquired about corresponding knowledge in the artificial intelligence markup language knowledge base, and the state matches that identifies on the state in the current state storer and the knowledge is consistent;
Step 5 is replied masterplate according to the knowledge that inquires and is provided and reply, and does the redirect that does well according to the state of current state reservoir and the rule in the finite state machine knowledge base, revises the content in the state reservoir;
Step 6 is returned step 2.
Further, described intelligent terminal is server, personal computer or embedded system.
Further, described intelligent terminal and user have a plurality of.
Compared with prior art, beneficial effect is: the present invention uses artificial intelligence markup language and intelligent terminal, cooperates the mode with batch processing, circular treatment, makes interactive system more perfect, provides better user to experience.In artificial intelligence natural language interactive intelligence body, set up the state reservoir, use artificial smart tags language compilation to construct the knowledge base of finite state machine (DFA), thereby realize the Context Reasoning based on experience, the order that the natural language of user input is converted into batch processing is transferred to disposal system and is processed, be similar to natural language is converted into one section program that computing machine can be analyzed execution, after disposal system is carried out associative operation to each intelligent appliance in networking, the household electrical appliances return signal is passed to intelligent body and is finally replied the user, and then greatly improved people's management, the efficient of controlling equipment, thereby the effect of realization intelligent interaction.
Description of drawings
Fig. 1 is intelligent terminal natural language operational system structural representation;
Fig. 2 is the state transition graph of finite state machine among the embodiment (DFA).
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
As shown in Figure 1, be the structural drawing of artificial intelligence natural language operational system provided by the present invention, this system comprises a user and an intelligent terminal at least.Operation artificial intelligence natural language operational system in the intelligent terminal.Artificial intelligence natural language operational system is comprised of artificial intelligence natural language interactive intelligence body and program handling system.Artificial intelligence natural language interactive intelligence body is undertaken by the various use input-output device of intelligent hardware terminal and people alternately.Program handling system is inner and artificial intelligence natural language interactive intelligence body communications exchange information in artificial intelligence natural language operational system, program handling system is connected with external unit by wired or wireless sensor network, reaches control and obtains the purpose that external unit feeds back.
Natural language interactive intelligence body is comprised of artificial intelligence markup language knowledge base and artificial intelligence markup language interpreter.
The artificial intelligence markup language knowledge base is used artificial smart tags language compilation, is explained by resolver and carries out.Artificial intelligence markup language is a kind of XML language of expansion.The below is the label that artificial intelligence markup language uses:
1.category label is used for knowledge of sign.
2.pattern be the pattern subtab, be used for the regular expression of marking matched input.
3.template be the subtab of pattern, be used for the masterplate of replying of sign knowledge.
4.random label is used for extracting a conduct and replying from a plurality of masterplates of replying.
5.li being used for interior each of sign random label, label replys masterplate.
6.srai label is processed the content in the label again as input.
7.set label is used for changing the value of variable.
8.topic label only has the value of current topic variable to equal the value that marks in the topic label, the knowledge in the topic label just can be mated in system, and can preferential coupling.
Do not return to the user 9.think the content in the label is explicit.
In the process of coupling knowledge input masterplate, according to preferential matching literal, the principle of rear coupling asterisk is carried out.
In the artificial intelligence markup language knowledge base of the mutual body of artificial intelligence natural language, the state reservoir stores current state, natural language input to the user is replied except providing, and to program handling system transmission program, allow external unit carry out corresponding operation, at last do the redirect that does well with reference to the rule in the artificial intelligence markup language knowledge base according to the state of current state reservoir and user's input or program handling system feedback and systems response, just can allow in this way system have context logic, and can be according to the program of correct sequential completing user arrangement execution.When using artificial intelligence markup language to write knowledge base, use the topic variable as the state reservoir.
Below be the operation workflow of artificial intelligence natural language interactive intelligence body:
Step 1, the initialization of artificial intelligence natural language operational system loads the artificial intelligence markup language knowledge base;
Step 2 through after the pre-service of intelligent terminal, is used for converting user's input, program handling system feedback to use the character string record natural language expressing;
Step 3 with character string normalization, soon will be converted to the term such as " what " standard such as terms lack of standardization such as " refreshing horses ";
Step 4 is inquired about corresponding knowledge in the artificial intelligence markup language knowledge base, and the state matches that identifies on the state in the current state storer and the knowledge is consistent;
Step 5 is replied masterplate according to the knowledge that matches and is provided and reply, and returns to simultaneously one section program of computing machine and transfers to systematic analysis and carry out, such as a, heat up water; B, heat up water and cook after finishing; C, cook finish after cooking.Do the redirect that does well with reference to the rule in the artificial intelligence markup language knowledge base according to state and user's input, external unit feedback and the systems response of current state reservoir afterwards, revise the content in the state reservoir.The mechanism of state transition, as shown in Figure 2;
Step 6 is got back to (2), continues service.
Program handling system is connected with external unit by wired or wireless sensor network, according to the program in the program storage external unit feedack is judged, and external unit is sent instruction control.Program handling system and natural language interactive intelligence body carry out communication in artificial intelligence natural language operational system simultaneously, artificial intelligence natural language interactive intelligence body sends to program handling system with program on the one hand, and program handling system sends to natural language interactive intelligence body with program ruuning situation on the other hand.
Artificial intelligence natural language operational system on a kind of intelligent terminal that provides by the invention described above improved the interactive experience of user and intelligent terminal greatly, improved greatly the efficient of management daily life, work simultaneously.
The above only is an example of the present invention; be not so limit claim of the present invention; every equivalent structure or flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.