Disclosure of Invention
The invention aims to provide a knowledge base construction system based on a natural language recognition customer service robot, which aims to solve the problems that the conventional knowledge base construction system proposed in the background art does not have scene pairing during question answering, cannot better communicate with a user, and does not have intelligent recognition compensation processing on incomplete sentences during processing of questions.
In order to achieve the above purpose, the present invention provides the following technical solutions: the knowledge base construction system based on the natural language recognition customer service robot comprises a preset knowledge input unit, a knowledge base construction system, a recognition authority unit, a natural language conversion construction unit, a scenario knowledge construction unit, a incomplete language supplementation unit, a knowledge compensation system and a knowledge feedback unit, wherein the output end of the preset knowledge input unit is electrically connected with the input end of the knowledge base construction system, the preset knowledge input unit is in bidirectional connection with the recognition authority unit, the knowledge base construction system is in bidirectional connection with the natural language conversion construction unit, the knowledge base construction system is in bidirectional connection with the scenario knowledge construction unit, the output end of the knowledge base construction system is electrically connected with the input end of the incomplete language supplementation unit, the incomplete language supplementation unit is in bidirectional connection with the knowledge compensation system, the output end of the knowledge compensation system is electrically connected with the input end of the knowledge feedback unit, and the output end of the knowledge feedback unit is electrically connected with the input end of the preset knowledge input unit;
The preset knowledge input unit is used for inputting natural language required by the customer service robot prepared in advance into a knowledge base for establishment;
the knowledge base construction system is used for carrying out differential classification on knowledge data and storing the classified knowledge data;
The identification authority unit is used for performing authority verification processing when a preset knowledge input unit is operated, and is also used for performing encryption processing in the knowledge base construction system;
the natural language conversion building unit is used for classifying and distinguishing the recognized languages and also used for carrying out language conversion processing on the distinguished texts;
the scene knowledge construction unit is used for carrying out proper scene matching and carrying out question reply processing when the response processing is established;
The incomplete language supplementing unit is used for carrying out incomplete supplementing complete processing on the language when the language is incomplete;
the knowledge compensation system is used for carrying out AI identification on the collected languages and carrying out back-questioning processing on the languages which are not successfully identified;
the knowledge feedback unit is used for feeding back the knowledge data which is newly obtained after the incomplete language supplementing unit and the knowledge compensation system are processed.
As a preferred embodiment of the present invention: the knowledge base construction system comprises a language collection module, a knowledge classification module, a cloud storage module and a weight setting unit, wherein the output end of the language collection module is electrically connected with the input end of the knowledge classification module, the output end of the knowledge classification module is electrically connected with the input end of the cloud storage module, and the cloud storage module is in bidirectional connection with the weight setting unit;
The language collection module is used for receiving and processing knowledge data and simultaneously receiving and processing data when an external problem is sent out;
The knowledge classification module is used for classifying the received knowledge data into knowledge categories;
the cloud storage module is used for storing the collected knowledge data through a cloud;
The weight setting unit is used for performing feature arrangement on the received knowledge data and performing storage processing.
As a preferred embodiment of the present invention: the weight setting unit comprises a receiving time ordering module and a feature extraction module, wherein the output end of the receiving time ordering module is electrically connected with the input end of the feature extraction module, the receiving time ordering module is used for carrying out time ordering processing on knowledge data input into the cloud storage module in different time periods, and the feature extraction module is used for carrying out feature language extraction processing on the knowledge data and carrying out rapid classification arrangement processing on extracted feature languages.
As a preferred embodiment of the present invention: the identification authority unit comprises a key confirmation module and a cloud information confirmation module, wherein the output end of the key confirmation module is electrically connected with the input end of the cloud information confirmation module, the key confirmation module is used for carrying out key confirmation processing when knowledge data is input, and the cloud information confirmation module is used for carrying out cloud information face confirmation processing on operators during knowledge input processing.
As a preferred embodiment of the present invention: the natural language conversion building unit comprises a language identification module, a text information conversion module and a text language-to-speech module, wherein the output end of the language identification module is electrically connected with the input end of the text information conversion module, and the output end of the text information conversion module is electrically connected with the input end of the text language-to-speech module;
the language identification module is used for carrying out language type identification processing on the received language data;
the text information conversion module is used for carrying out text information conversion processing after distinguishing the language types;
The text language-to-speech module is used for converting text information into required language-like speech.
As a preferred embodiment of the present invention: the scene knowledge construction unit comprises a knowledge keyword input module, a keyword scene matching module and a language answer matching module, wherein the output end of the knowledge keyword input module is electrically connected with the input end of the keyword scene matching module, and the output end of the keyword scene matching module is electrically connected with the input end of the language answer matching module;
The knowledge keyword input module is used for inputting keywords of knowledge data and correspondingly processing the input keywords and the knowledge data;
the keyword scene pairing module is used for carrying out proper dialogue scene pairing processing on the identified keywords;
The language answer matching module is used for carrying out dialogue answer knowledge data matching processing after the dialogue scene is matched.
As a preferred embodiment of the present invention: the incomplete language supplementing unit comprises an incomplete threshold value confirming module, a knowledge base sentence integral comparison module and a knowledge base word interpretation module, wherein the output end of the incomplete threshold value confirming module is electrically connected with the input end of the knowledge base sentence integral comparison module, and the output end of the knowledge base sentence integral comparison module is electrically connected with the input end of the knowledge base word interpretation module;
The incomplete threshold value confirmation module is used for confirming the loss threshold value of the characters which are identified to be lost in the incomplete language data;
the knowledge base whole sentence comparison module is used for comparing the received incomplete language data with similar sentences in the knowledge base;
the knowledge base single word interpretation module is used for interpreting the word meanings of the received incomplete language data one by one and matching the word meanings.
As a preferred embodiment of the present invention: the knowledge compensation system comprises a language acquisition unit and a repeated question-back unit, wherein the language acquisition unit is in bidirectional connection with the incomplete language supplementing unit, the language acquisition unit is in bidirectional connection with the repeated question-back unit, the output end of the repeated question-back unit is electrically connected with the input end of the knowledge feedback unit, the language acquisition unit is used for carrying out question recognition processing on the collected language data, and the repeated question-back unit is used for carrying out question-back user operation on unidentified language data questions and answers.
As a preferred embodiment of the present invention: the language acquisition unit comprises an AI language identification module, a similar problem expansion module and a problem classification reply module, wherein the output end of the AI language identification module is electrically connected with the input end of the similar problem expansion module, and the output end of the similar problem expansion module is electrically connected with the input end of the problem classification reply module;
The AI language identification module is used for carrying out AI identification allocation processing on the questions raised by the language data;
the similar problem expansion module is used for searching knowledge data similar to the problem and expanding the problem in the knowledge base when the problem proposed by the language data is identified;
The question classification replying module is used for classifying and replying questions presented by the language data.
Compared with the prior art, the invention has the beneficial effects that: the invention realizes that key confirmation and cloud information confirmation processing are needed when internal data are changed and added by adding the identification authority unit, improves the safety of internal data storage, realizes that voice conversion processing is carried out on different types of natural languages by adding the natural language conversion establishing unit, is applicable to crowds with various natural languages, improves the working efficiency, realizes that keyword extraction is carried out on sentences and proper scene matching is carried out by adding the scene knowledge establishing unit, and is suitable for carrying out proper dialogue answer processing with different scenes.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-2, the present invention provides a technical solution: the knowledge base construction system based on the natural language recognition customer service robot comprises a preset knowledge input unit, a knowledge base construction system, a recognition authority unit, a natural language conversion establishment unit, a scenario knowledge construction unit, an incomplete language supplementation unit, a knowledge compensation system and a knowledge feedback unit, wherein the output end of the preset knowledge input unit is electrically connected with the input end of the knowledge base construction system, the preset knowledge input unit is in bidirectional connection with the recognition authority unit, the knowledge base construction system is in bidirectional connection with the natural language conversion establishment unit, the knowledge base construction system is in bidirectional connection with the scenario knowledge construction unit, the output end of the knowledge base construction system is electrically connected with the input end of the incomplete language supplementation unit, the incomplete language supplementation unit is in bidirectional connection with the knowledge compensation system, the output end of the knowledge compensation system is electrically connected with the input end of the knowledge feedback unit, and the output end of the knowledge feedback unit is electrically connected with the input end of the preset knowledge input unit;
the preset knowledge input unit is used for inputting natural language required by the customer service robot prepared in advance into the knowledge base for establishment, and inputting the natural language knowledge base for the customer service robot and initially establishing the knowledge base;
the knowledge base construction system is used for distinguishing and classifying the knowledge data, storing the classified knowledge data, classifying and storing the knowledge data, and matching the corresponding knowledge data faster in use, so that the recognition efficiency is improved;
The identification authority unit is used for performing authority verification processing when the preset knowledge input unit is operated, and is also used for performing encryption processing in the knowledge base construction system, and performing encryption processing to protect the preset knowledge input unit and the knowledge base construction system, so that verification processing is required during operation, and safety is improved;
the natural language conversion building unit is used for classifying and distinguishing the recognized languages, and is also used for carrying out language conversion processing on the distinguished texts, recognizing different natural languages and applying corresponding languages, so that the working efficiency is improved;
the scene knowledge construction unit is used for carrying out proper scene matching and question reply processing when the response processing is established, matching the scenes and improving the question and answer efficiency;
The incomplete language supplementing unit is used for supplementing complete incomplete language processing when incomplete language appears, and intelligently compensating sentences when incomplete sentences are received;
the knowledge compensation system is used for carrying out AI identification on the collected languages and carrying out back-questioning processing on the languages which are not successfully identified;
the knowledge feedback unit is used for feeding back the knowledge data which is newly obtained after the incomplete language supplementing unit and the knowledge compensation system are processed.
The knowledge base construction system comprises a language collection module, a knowledge classification module, a cloud storage module and a weight setting unit, wherein the output end of the language collection module is electrically connected with the input end of the knowledge classification module, the output end of the knowledge classification module is electrically connected with the input end of the cloud storage module, and the cloud storage module is in bidirectional connection with the weight setting unit;
The language collection module is used for receiving and processing knowledge data and simultaneously receiving and processing data when an external problem is sent out;
The knowledge classification module is used for classifying the received knowledge data into knowledge categories;
The cloud storage module is used for storing the collected knowledge data through the cloud, distinguishing the knowledge data types through the knowledge classification module, and storing the knowledge data after distinguishing;
the weight setting unit is used for performing feature arrangement on the received knowledge data and performing storage processing.
The weight setting unit comprises a receiving time ordering module and a feature extraction module, wherein the output end of the receiving time ordering module is electrically connected with the input end of the feature extraction module, the receiving time ordering module is used for carrying out time ordering processing on knowledge data input into the cloud storage module in different time periods, the feature extraction module is used for carrying out feature language extraction processing on the knowledge data, extracting feature languages are subjected to rapid classification arrangement processing, the knowledge data input into the cloud storage module in different time periods are subjected to time ordering processing, the features are extracted, and proper weight distribution is carried out when the knowledge data are emergent feature language data.
The identification authority unit comprises a key confirmation module and a cloud information confirmation module, wherein the output end of the key confirmation module is electrically connected with the input end of the cloud information confirmation module, the key confirmation module is used for carrying out key confirmation processing when knowledge data is input, the cloud information confirmation module is used for carrying out cloud information face confirmation processing on operators during knowledge input processing, the key confirmation module is used for inputting keys and carrying out key verification processing, and after verification processing, the cloud information and user information are matched and confirmed, so that management safety and working stability are improved.
The natural language conversion building unit comprises a language identification module, a text information conversion module and a text language-to-speech module, wherein the output end of the language identification module is electrically connected with the input end of the text information conversion module, and the output end of the text information conversion module is electrically connected with the input end of the text language-to-speech module;
The language identification module is used for carrying out language type identification processing on the received language data;
The text information conversion module is used for carrying out text information conversion processing after distinguishing the language types;
the text-to-speech module is used for converting text information into required language speech, identifying the language when encountering different languages, identifying natural language types, converting human voice language into text information, and converting the text information into matched speech.
The scene knowledge construction unit comprises a knowledge keyword input module, a keyword scene matching module and a language answer matching module, wherein the output end of the knowledge keyword input module is electrically connected with the input end of the keyword scene matching module, and the output end of the keyword scene matching module is electrically connected with the input end of the language answer matching module;
The knowledge keyword input module is used for inputting keywords of knowledge data and correspondingly processing the input keywords and the knowledge data;
The keyword scene pairing module is used for carrying out proper dialogue scene pairing processing on the identified keywords;
The language answer matching module is used for carrying out dialogue answer knowledge data matching processing after matching dialogue scenes, and carrying out scene matching on the language keywords collected by the language collecting module, and carrying out proper answer processing for different scene states after scene matching.
The incomplete language supplementing unit comprises an incomplete threshold value confirming module, a knowledge base sentence whole comparing module and a knowledge base word interpretation module, wherein the output end of the incomplete threshold value confirming module is electrically connected with the input end of the knowledge base sentence whole comparing module, and the output end of the knowledge base sentence whole comparing module is electrically connected with the input end of the knowledge base word interpretation module;
The incomplete threshold value confirmation module is used for confirming the missing threshold value of the characters which are identified to be missing in the incomplete language data;
the knowledge base whole sentence comparison module is used for comparing the received incomplete language data with similar sentences in the knowledge base;
the knowledge base single word interpretation module is used for interpreting word meanings of received incomplete language data one by one and matching the word meanings, so that the repair efficiency of the incomplete language data is improved.
The knowledge compensation system comprises a language acquisition unit and a repeated question-back unit, wherein the language acquisition unit is in bidirectional connection with the incomplete language supplementing unit, the language acquisition unit is in bidirectional connection with the repeated question-back unit, the output end of the repeated question-back unit is electrically connected with the input end of the knowledge feedback unit, the language acquisition unit is used for carrying out question recognition processing on collected language data, and the repeated question-back unit is used for carrying out question-back user operation on unidentified language data questions and answers, so that the accuracy and the working efficiency of question processing are improved.
The system comprises a language acquisition unit, a question classification and response module and a question classification and response module, wherein the language acquisition unit comprises an AI language identification module, a similar question expansion module and a question classification and response module, the output end of the AI language identification module is electrically connected with the input end of the similar question expansion module, and the output end of the similar question expansion module is electrically connected with the input end of the question classification and response module;
The AI language identification module is used for carrying out AI identification distribution processing on the problems presented by the language data, carrying out problem matching on the presented language data problems, and improving the working efficiency;
The similar problem expansion module is used for searching knowledge data similar to the problem and expanded problems in the knowledge base when the problem presented by the language data at the recognition position is identified, expanding the following problems, and matching the following series of problems, so that the matching efficiency of the later-stage answer is improved;
the question classification replying module is used for classifying and replying the questions presented by the language data.
Specifically, when in use, the key confirmation module is used for inputting keys and carrying out key verification processing, cloud information and user information are matched and confirmed after verification processing, knowledge data is input to the knowledge base construction system through the preset knowledge input unit after verification, the knowledge data types are collected and are subjected to distinguishing processing through the knowledge classification module, cloud storage is carried out after distinguishing, the voice of an external consultation customer service robot is collected through the language collection module, knowledge data input into the cloud storage module in different time periods are subjected to time sequencing processing, characteristic language extraction processing is carried out, characteristic language is extracted and is subjected to rapid classifying arrangement processing, languages are identified when different languages are encountered, natural language types are confirmed after identification and are converted into text information, the text information is converted into matched voice processing, communication scene efficiency is improved, all keywords are established through the knowledge keyword input module of the scene knowledge scene construction unit, the keywords collected through the language collection module are matched, appropriate answer processing is carried out on different scene states, when a dialogue is received through the language collection module, when a incomplete sentence is input into the knowledge data in the cloud storage module in different time periods, the dialogue is subjected to the time sequencing processing, the problem is set up, the problem is directly solved by setting a threshold value of a comparison question and is set up, the answer is directly after the question is set up in a threshold value is set, the answer is set up, and the question is directly is compared with a question is set up in a threshold-of a question is set, and is quite poor, and the question is set up, the incomplete language supplementing unit can not recognize the language data and the questions which can not be answered by the repeated question-back unit are input into the preset knowledge input unit through the knowledge feedback unit for memorizing and processing.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.