CPC G10L 15/063 (2013.01) [G06F 40/268 (2020.01); G10L 15/07 (2013.01); G10L 15/183 (2013.01)] | 12 Claims |
1. An electronic device comprising:
a processor; and
a memory operatively connected to the processor,
wherein the memory stores instructions that, when executed, cause the processor to:
select at least one data received through a user input;
analyze text data included in the selected at least one data using morphological analysis;
identify a substantive portion contained in the text data using the morphological analysis;
embed the identified substantive portion contained in the text data;
extract additional data including at least one of a word and a phrase having a greatest similarity with the identified substantive portion;
learn an external language model using the selected at least one data;
learn a personal language model using the selected at least one data and the additional data;
adjust a first weight value for a learning result of the personal language model to be higher than a second weight value for a learning result of the external language model, based on the additional data being extracted; and
provide response data using the learning result of the personal language model based on the adjusted first weight value.
|