Summary of the invention
Technical problems based on background technology, the invention proposes a kind of intelligent Answer System in knowledge based library and
Method;
A kind of intelligent Answer System in knowledge based library proposed by the present invention, comprising:
Problem obtains module, for obtaining question letters;
Semantic word segmentation module obtains the Feature Words in question letters for carrying out semantic participle to question letters;
Problem retrieval module, for being retrieved in question and answer knowledge base according to Feature Words and the highest problem of feature Word similarity
As target problem, answer problematic and corresponding with problem is stored in question and answer knowledge base;
Answer feedback module is used for the corresponding target answer of user feedback target problem.
Preferably, it includes that phonetic problem obtains transform subblock, picture problem obtains conversion that described problem, which obtains module,
Module, video problems obtain transform subblock;The phonetic problem obtains transform subblock, for obtaining problem voice, and will
Problem voice is converted to question letters;The picture problem obtains transform subblock, for obtaining problem picture, and by problem figure
Piece is converted to question letters;The video problems obtain transform subblock, for obtaining problem video, and by problem Video Quality Metric
For question letters.
Preferably, described problem retrieval module is specifically used for:
The problems in Feature Words and question and answer knowledge base are compared, according to comparison result it is determining with Feature Words registration most
High problem as with the highest target problem of feature Word similarity.
Preferably, the semantic word segmentation module, is specifically used for:
By deep learning method training history vocabulary text, the language statistics for determining word Yu word combination probability are obtained
Model;
Semantic participle is carried out to question letters according to language statistics model and domain lexicon, obtains the feature in question letters
Word, the domain lexicon include universaling dictionary and terminological dictionary, include field profession word in the terminological dictionary.
A kind of intelligent answer method in knowledge based library, comprising:
S1, question letters are obtained;
S2, semantic participle is carried out to question letters, obtains the Feature Words in question letters;
S3, it is retrieved in question and answer knowledge base according to Feature Words with the highest problem of feature Word similarity as target problem,
Answer problematic and corresponding with problem is stored in question and answer knowledge base;
S4, to the corresponding target answer of user feedback target problem.
Preferably, in step S1, before obtaining question letters, further includes: obtain problem voice, and problem voice is turned
Be changed to question letters, and/or, obtain problem picture, and by problem picture be converted to question letters and/or, obtain problem video,
And by problem Video Quality Metric be question letters.
Preferably, step S3, specifically: the problems in Feature Words and question and answer knowledge base are compared, tied according to comparing
Fruit it is determining with the problem of Feature Words registration highest as with the highest target problem of feature Word similarity.
Preferably, step S2 is specifically included:
By deep learning method training history vocabulary text, the language statistics for determining word Yu word combination probability are obtained
Model;
Semantic participle is carried out to question letters according to language statistics model and domain lexicon, obtains the feature in question letters
Word, the domain lexicon include universaling dictionary and terminological dictionary, include field profession word in the terminological dictionary.
The present invention obtains question letters first, then carries out semantic participle to question letters, obtains the spy in question letters
Levy word, retrieve in preset question and answer knowledge base further according to Feature Words and the highest target problem of feature Word similarity, finally to
The corresponding target answer of user feedback target problem is asked in this way, question and answer knowledge is corresponded to be associated with and be stored in problem with answer
It answers in knowledge base, and solves the problems, such as that user proposes by the technical substitution of artificial intelligence or auxiliary customer service, reduce enterprise and consulting
The investment for asking scene customer service manpower, discharges the workload of customer service, saves cost for enterprise and improves customers' satisfaction level.
Specific embodiment
Referring to Fig.1, the intelligent Answer System in a kind of knowledge based library proposed by the present invention, comprising:
Problem obtains module, for obtaining question letters.
It includes that phonetic problem obtains transform subblock, picture problem obtains transform subblock, video is asked that problem, which obtains module,
Topic obtains transform subblock;The phonetic problem obtains transform subblock, converts for obtaining problem voice, and by problem voice
For question letters;The picture problem obtains transform subblock, is converted to problem for obtaining problem picture, and by problem picture
Text;The video problems obtain transform subblock, are question letters for obtaining problem video, and by problem Video Quality Metric.
In concrete scheme, user can input question letters and/or problem voice and/or problem picture and/or problem
Video;Phonetic problem obtains transform subblock, for obtaining the problem of user inputs voice, and passes through speech recognition technology problem
The problems in voice text;Picture problem obtains transform subblock, for obtaining the problem of user inputs picture, and passes through picture and text
Identification technology extracts the problems in problem picture text;Video problems obtain transform subblock, for obtaining asking for user's input
Video is inscribed, and by speech recognition technology and picture and text identification technology, extracts the problems in problem video text.
Semantic word segmentation module obtains module with problem and connect, and semantic word segmentation module is used to carry out question letters semantic point
Word obtains the Feature Words in question letters.
Semantic word segmentation module is specifically used for: by deep learning method training history vocabulary text, obtaining for determining word
With the language statistics model of word combination probability;Semantic participle is carried out to question letters according to language statistics model and domain lexicon,
The Feature Words in question letters are obtained, the domain lexicon includes universaling dictionary and terminological dictionary, includes in the terminological dictionary
Field profession word.
In concrete scheme, a complete text is carried out to the fractionation of word, such as " I likes father and mother " segments,
" I ", " love ", " father ", "and", " mother " can be split into, participle is an easily thing for English, because
It is naturally to be split with space, but Chinese connects together for English, traditional Chinese word segmentation is using lookup word
The matched method of allusion quotation and most long word, the problem of this segmenting method maximum are cannot to solve the problems, such as Chinese ambiguous, ambiguity
Be exactly that in short different participles express different meanings, such as: " I likes father and mother ", can split into " I ", " love ",
" father ", "and", " mother " are unable to complete Chinese word segmentation for machine device in the case where no any study, so
It needs artificial intelligence to participate in, for machine, in the case where no any study, is unable to complete Chinese word segmentation, this
Embodiment is trained a large amount of history text, document, article by deep learning method, obtain for determine word with
The language statistics model of word combination probability improves the accuracy rate of semantic participle, solves the problems, such as that Chinese is ambiguous;
For example, when text is " I likes father and mother " the problem of user inputs, using lookup dictionary and most long word
The method matched determines that participle can be " I likes father and mother ", " I likes ", " father and mother ", " I likes father ", " and mother
Then mother ", " I likes ", " father ", "and", " mother " people determine point of " I likes father and mother " by language statistics model
Word probability is W, and the participle probability of " I likes ", " father and mother " are X, and the participle probability of " I likes father ", " and mother " are Y,
" I like ", " father ", "and", " mother " participle probability be Z, and W > X > Y > Z, it is determined that semantic word segmentation result is " I
Love father and mother ".
Problem retrieval module is connect with semantic word segmentation module, and problem retrieval module is used for according to Feature Words in question and answer knowledge
In library retrieval with the highest problem of feature Word similarity as target problem, stored in question and answer knowledge base it is problematic and with problem pair
The answer answered.
Problem retrieval module is specifically used for: the problems in Feature Words and question and answer knowledge base being compared, tied according to comparing
Fruit it is determining with the problem of Feature Words registration highest as with the highest target problem of feature Word similarity.
In concrete scheme, the customer service of enterprise or business personnel carry out problem and corresponding answer according to practical business
Combing, and associated storage is corresponded in question and answer knowledge base with problem and answer, then by Feature Words and asking in question and answer knowledge base
Topic is compared, it is determining with Feature Words registration highest the problem of, and be the problem of Feature Words registration highest and Feature Words
The highest target problem of similarity;
Such as: Feature Words are " X brand " " electric cooker ", " function ";
The problems in question and answer knowledge base is " what the function of Y brand electric cooker includes? ", " the function packet of X brand solar energy
What is included? ", " what the accessory of X brand electric cooker includes? ", " what the function of X brand electric cooker includes? ";
The problems in " X brand " " electric cooker ", " function " and question and answer knowledge base are carried out retrieval to compare, determine " X brand electricity
What the function of pot for cooking rice includes? " the problem includes " X brand " " electric cooker ", " function ", with " X brand " " electric cooker ", " function "
Registration highest, then " what the function of X brand electric cooker includes? " as with the highest target problem of feature Word similarity.
Answer feedback module is connect with problem retrieval module, and answer feedback module is used for user feedback target problem pair
The target answer answered.
In concrete scheme, by the corresponding answer feedback of target problem to the user of input problem, quickly answered.
Referring to Fig. 2, a kind of intelligent answer method in knowledge based library proposed by the present invention, comprising:
Step S1 obtains question letters.
In this step, before obtaining question letters further include: obtain problem voice, and problem voice is converted to problem
Text, and/or, obtain problem picture, and by problem picture be converted to question letters and/or, obtain problem video, and by problem
Video Quality Metric is question letters.
In concrete scheme, user can input question letters and/or problem voice and/or problem picture and/or problem
Video;The problem of obtaining user's input voice, and pass through the problems in speech recognition technology problem voice text;It is defeated to obtain user
The problem of enter'sing picture, and the problems in problem picture text is extracted by picture and text identification technology;The problem of obtaining user's input regards
Frequently, and by speech recognition technology and picture and text identification technology, the problems in problem video text is extracted.
Step S2 carries out semantic participle to question letters, obtains the Feature Words in question letters.
This step specifically includes: being obtained by deep learning method training history vocabulary text for determining word and phrase
Close the language statistics model of probability;Semantic participle is carried out to question letters according to language statistics model and domain lexicon, is asked
The Feature Words in text are inscribed, it includes that field is special in the terminological dictionary that the domain lexicon, which includes universaling dictionary and terminological dictionary,
Industry word.
In concrete scheme, a complete text is carried out to the fractionation of word, such as " I likes father and mother " segments,
" I ", " love ", " father ", "and", " mother " can be split into, participle is an easily thing for English, because
It is naturally to be split with space, but Chinese connects together for English, traditional Chinese word segmentation is using lookup word
The matched method of allusion quotation and most long word, the problem of this segmenting method maximum are cannot to solve the problems, such as Chinese ambiguous, ambiguity
Be exactly that in short different participles express different meanings, such as: " I likes father and mother ", can split into " I ", " love ",
" father ", "and", " mother " are unable to complete Chinese word segmentation for machine device in the case where no any study, so
It needs artificial intelligence to participate in, for machine, in the case where no any study, is unable to complete Chinese word segmentation, this
Embodiment is trained a large amount of history text, document, article by deep learning method, obtain for determine word with
The language statistics model of word combination probability improves the accuracy rate of semantic participle, solves the problems, such as that Chinese is ambiguous;
For example, when text is " I likes father and mother " the problem of user inputs, using lookup dictionary and most long word
The method matched determines that participle can be " I likes father and mother ", " I likes ", " father and mother ", " I likes father ", " and mother
Then mother ", " I likes ", " father ", "and", " mother " people determine point of " I likes father and mother " by language statistics model
Word probability is W, and the participle probability of " I likes ", " father and mother " are X, and the participle probability of " I likes father ", " and mother " are Y,
" I like ", " father ", "and", " mother " participle probability be Z, and W > X > Y > Z, it is determined that semantic word segmentation result is that " I likes
Father and mother ".
Step S3 is retrieved with the highest problem of feature Word similarity in question and answer knowledge base according to Feature Words and to be asked as target
It inscribes, stores answer problematic and corresponding with problem in question and answer knowledge base.
This step specifically: the problems in Feature Words and question and answer knowledge base are compared, according to comparison result determine with
The problem of Feature Words registration highest as with the highest target problem of feature Word similarity.
In concrete scheme, the customer service of enterprise or business personnel carry out problem and corresponding answer according to practical business
Combing, and associated storage is corresponded in question and answer knowledge base with problem and answer, then by Feature Words and asking in question and answer knowledge base
Topic is compared, it is determining with Feature Words registration highest the problem of, and be the problem of Feature Words registration highest and Feature Words
The highest target problem of similarity;
Such as: Feature Words are " X brand " " electric cooker ", " function ";
The problems in question and answer knowledge base is " what the function of Y brand electric cooker includes? ", " the function packet of X brand solar energy
What is included? ", " what the accessory of X brand electric cooker includes? ", " what the function of X brand electric cooker includes? ";
The problems in " X brand " " electric cooker ", " function " and question and answer knowledge base are carried out retrieval to compare, determine " X brand electricity
What the function of pot for cooking rice includes? " the problem includes " X brand " " electric cooker ", " function ", with " X brand " " electric cooker ", " function "
Registration highest, then " what the function of X brand electric cooker includes? " as with the highest target problem of feature Word similarity.
Step S4, to the corresponding target answer of user feedback target problem.
In concrete scheme, by the corresponding answer feedback of target problem to the user of input problem, quickly answered.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
Anyone skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its
Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.