CPC G06F 40/279 (2020.01) [G06V 30/18143 (2022.01); G06V 30/19013 (2022.01); G06V 30/19093 (2022.01)] | 15 Claims |
1. A method, performed by an electronic device, of processing an inquiry of a user, the method comprising:
receiving an input inquiry input by the user;
obtaining a label value representing an intent of the input inquiry by analyzing the input inquiry by using a natural language understanding (NLU) model;
identifying a representative inquiry mapped to correspond to the label value from among a plurality of representative inquiries that are stored in a response message database;
comparing a vector value of a first embedding vector of the input inquiry changed during the identifying of the representative inquiry with a vector value of a second embedding vector of the representative inquiry;
identifying a keyword from the input inquiry, based on a result of the comparing; and
correcting a response message mapped to correspond to the representative inquiry, by using the identified keyword,
wherein the response message database stores the plurality of representative inquiries for a plurality of intents previously obtained before the input inquiry is received from the user, and
wherein each of the plurality of representative inquiries is mapped to correspond to respective label values for each of the plurality of intents.
|