Method and apparatus for generating a response based on artificial intelligence, and storage medium
Abstract:
A method and apparatus for generating a response based on artificial intelligence, and a storage medium. The method comprises: generating a response forest which employs a multi-way tree data structure, the multi-way tree at least comprising three layers of nodes: a root node, domain nodes and role nodes arranged in a top-bottom order, each leaf node respectively corresponding to at least one response template corresponding to information on the leaf node path; obtaining a user question, searching the response forest according to the user question to obtain a leaf node corresponding to the user question, and regarding a response template corresponding to the obtained leaf node as a candidate response template; generating a to-be-broadcast response according to the user question and the candidate response template, and broadcasting the to-be-broadcast response to the user. The solution of the present disclosure exhibits wide applicability and can improve the response broadcasting effect.
Information query
Patent Agency Ranking
0/0