Robot conversation control method and system based on chat big data knowledge base

Robot conversation control method and system based on chat big data knowledge base

  • CN 105,975,530 B
  • Filed: 04/29/2016
  • Issued: 10/01/2021
  • Est. Priority Date: 04/29/2016
  • Status: Active Grant
First Claim
Patent Images

1. A robot dialogue control method is characterized by comprising the following steps:

  • acquiring an input statement;

    the input sentence comprises characters, voice and video;

    the chat sentence acquisition range in the preset chat big data knowledge base comprises human conversation data or chat data, including but not limited to internet chat data, mobile internet chat data, forum chat data and voice chat data;

    each chat statement is used as a line in a file or a database, the previous chat statement of a chat statement is stored in the previous line of the chat statement, and the next chat statement of a chat statement is a reply statement and is stored in the next line of the chat statement;

    in the chat sentences, only the last chat sentence when the chat is finished has no answer sentence, and most chat sentences have answer sentences;

    retrieving a chat sentence which has the maximum matching degree with the input sentence and has a reply sentence from a preset chat big data knowledge base as a retrieval result sentence, wherein the preset chat big data knowledge base comprises a plurality of chat sentences and a reply sentence corresponding to at least one chat sentence in the plurality of chat sentences, the chat sentences are ordered, and the chat sentences and the reply sentences corresponding to the chat sentences are stored in rows;

    when the chat sentences which have the maximum matching degree with the input sentences and have the reply sentences are obtained, the matching is carried out by neglecting the personal name;

    presetting a search engine of human chat sentences in a chat big data knowledge base, wherein the search engine supports text, voice and video search and fuzzy matching;

    the speed of presetting a chat big data knowledge base and a retrieval engine thereof is improved through a cloud storage and cloud computing technology;

    acquiring a reply sentence of the retrieval result sentence as an output sentence;

    outputting the output statement;

    the step of outputting the output statement comprises;

    when the person scale of the retrieval result sentence is different from the person scale of the input sentence, transforming the person scale of the output sentence;

    outputting the output statement after the person scale is transformed;

    the step of transforming the person name of the output sentence when the person name of the search result sentence is different from the person name of the input sentence includes;

    when the subject of the input sentence is a first person and the subject of the retrieval result sentence is a second person, converting the subject in the output sentence into the second person;

    converting the object in the output sentence into a second person when the object of the input sentence is the first person and the object of the search result sentence is the second person;

    when the subject of the input sentence is a second person and the subject of the retrieval result sentence is a first person, converting the subject in the output sentence into the first person;

    converting the object in the output sentence into a first person'"'"'s name when the object of the input sentence is a second person'"'"'s name and the object of the search result sentence is a first person'"'"'s name;

    when the object of the input sentence is the first person, the object of the retrieval result sentence is the second person, if the output sentence does not comprise the object and only comprises the subject, the subject of the output sentence is converted into the second person;

    the step of obtaining the input sentence further comprises;

    obtaining a historical chat record;

    the historical chat records comprise internet chat data, mobile internet chat data, forum chat data, voice chat data and man-machine chat records;

    obtaining a plurality of chat sentences and a reply sentence corresponding to at least one of the chat sentences from the historical chat records;

    and storing the chat sentences and the reply sentences corresponding to the chat sentences in a file form or a database form, and constructing the preset chat big data knowledge base.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×