Systems and methods for providing voice assistant services for text including echo words

By using an NLU model to recognize and correct responsive speech in a voice assistant system, the problem of inaccurate responsive speech recognition in traditional technologies is solved, enabling more accurate user intent recognition and service delivery.

CN116324976BActive Publication Date: 2026-11-24SAMSUNG ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180066727.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-30
Filing Date
2021-10-22
Publication Date
2026-11-24
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

Traditional technologies struggle to accurately identify user intent from responses in user input and provide effective voice assistant services.

Method used

By using Natural Language Understanding (NLU) models to identify target words in text and leveraging common information to provide domain-specific voice assistant services, including multiple NLU models to correct and interpret anaphora.

Benefits of technology

It enables accurate identification of user intent from user input, providing more precise and effective voice assistant services and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116324976B_ABST
    Figure CN116324976B_ABST
Patent Text Reader

Abstract

A system and method are provided for providing voice assistant services for text including anaphora. A method for providing voice assistant services, performed by an electronic device, includes: acquiring a first text from a first input; detecting target words in the first text using a first NLU model and generating common information related to the detected target words; acquiring a second text from a second input; inputting the common information and the second text into a second NLU model; detecting anaphora included in the second text using the second NLU model and outputting intentions and parameters based on common information corresponding to the detected anaphora; and generating response information related to the intentions and the parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to a system and method for providing voice assistant services for text including anaphora, and for example, to a system and method for providing voice assistant services for text including anaphora based on public information about target words. Background Technology

[0002] With the development of multimedia and network technologies, users can use devices to receive various services. Specifically, with the development of speech recognition technology, users can input voice (e.g., speech) into the device and receive responses based on the voice input.

[0003] However, in traditional technologies, when user input includes referential phrases, it is difficult to accurately grasp the user's intent from such input. Furthermore, while considering the meaning of the referential phrases, it is also difficult to provide voice assistant services specific to certain domains. Therefore, there is a need for a technology that can accurately identify the user's intent from user input including referential phrases and effectively provide responses based on that intent. Summary of the Invention

[0004] Technical solution

[0005] Embodiments of this disclosure provide a system and method for providing a voice assistant service for text including references, wherein the system and method indicate that public information representing target words included in a user's text can be used to interpret references in other texts.

[0006] Embodiments of this disclosure provide a system and method for providing voice assistant services about text including anaphora, wherein the system and method can use a natural language understanding (NLU) model for recognizing a domain of text to identify target words within the text, and can use public information representing the identified target words to provide domain-specific voice assistant services.

[0007] Embodiments of this disclosure provide a system and method for providing voice assistant services about text including anaphora, wherein the system and method can use an NLU model for recognizing the domain of the text to identify target words within the text, and common information representing the identified target words can be used by a plurality of other NLU models.

[0008] Embodiments of this disclosure provide a system and method for providing voice assistant services on text including anaphora, wherein the system and method can use an NLU model for interpreting text to correct common information representing target words.

[0009] According to an example embodiment of this disclosure, a method for providing a voice assistant service performed by an electronic device includes: obtaining a first text generated from a first input; detecting target words in the first text using a first natural language understanding (NLU) model and generating common information related to the detected target words; obtaining a second text generated from a second input; inputting the common information and the second text into a second NLU model; detecting anaphors included in the second text using the second NLU model and outputting intentions and parameters based on common information corresponding to the detected anaphors; and generating response information related to the intentions and the parameters.

[0010] According to an example embodiment of this disclosure, a server configured to provide a voice assistant service includes: a communication interface including circuitry configured to communicate with an electronic device; a memory storing one or more instructions; and a processor configured to execute one or more instructions to configure the server to: obtain first text generated from a first input to the electronic device; detect target words within the first text using a first natural language understanding (NLU) model and generate common information related to the detected target words; obtain second text generated from a second input; input the common information and the second text into a second NLU model; detect references included in the second text using the second NLU model and obtain intentions and parameters based on common information corresponding to the detected references; and generate response information related to the intentions and the parameters.

[0011] According to an example embodiment of this disclosure, a non-transitory computer-readable recording medium has a computer program recorded thereon, wherein the computer program, when executed, causes a device to perform an operation corresponding to the method on a computer. Attached Figure Description

[0012] The above and other aspects, features, and advantages of certain embodiments of this disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, wherein:

[0013] Figure 1 This is a diagram illustrating an example system for providing voice assistant services according to various embodiments;

[0014] Figure 2 This is a block diagram illustrating an example configuration of a second electronic device according to various embodiments;

[0015] Figure 3 The illustration shows a public information management module generating public information from a first text according to an embodiment of the present disclosure.

[0016] Figure 4 This is a table showing the fields corresponding to text including target words according to embodiments of this disclosure.

[0017] Figure 5 This is a table showing common information corresponding to target words according to embodiments of this disclosure.

[0018] Figure 6 This illustrates how, according to embodiments of the present disclosure, common information corresponding to anaphors within a second text is obtained.

[0019] Figure 7 This is a flowchart of a method performed by a second electronic device according to an embodiment of the present disclosure for generating common information for a first text and providing a response to the first text.

[0020] Figure 8 This is a flowchart of a method performed by a second electronic device according to an embodiment of the present disclosure for generating public information for a second text and providing a response to the second text.

[0021] Figure 9 The output of an embodiment of this disclosure is shown as the result of the second NLU model interpreting the second text while taking into account common information.

[0022] Figure 10 This illustrates replacing a portion of the output value of a second NLU model with common information according to an embodiment of the present disclosure.

[0023] Figure 11 This is an illustration of the generation and use of public information according to embodiments of this disclosure.

[0024] Figure 12a The embodiments of this disclosure illustrate the selection and storage of some common information of the same type by considering the results of providing voice assistant services.

[0025] Figure 12b This illustrates how, according to embodiments of the present disclosure, different types of public information are selected and stored by considering the results of providing voice assistant services.

[0026] Figure 12c This illustrates how, according to embodiments of the present disclosure, some common information is selected and stored based on the results of providing voice assistant services and additional user input. Detailed Implementation

[0027] Throughout this disclosure, the expression "at least one of a, b or c" indicates only a, only b, only c, both a and b, both a and c, both b and c, all of a, b and c, or variations thereof.

[0028] Embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. However, the present disclosure may be implemented in many different forms and should not be construed as limited to the embodiments set forth herein. In the drawings, for the sake of simplicity, parts irrelevant to the description may be omitted, and the same reference numerals always denote the same elements.

[0029] Throughout this disclosure, when an element is referred to as "connected" or "combined" to another element, it may be directly connected or combined to said other element, or it may be electrically connected or combined to said other element in the presence of an intermediate element inserted between them. The terms "comprising" and / or "including" or "including" and / or "comprises" are used in this disclosure to specify the presence of said element, but do not exclude the presence or addition of one or more other elements.

[0030] The voice assistant services used in this article may include services that provide dialogue with the user. In a voice assistant service, by taking into account the user's situation, the device's situation, etc., the device can provide responsive messages to the user as if speaking directly to a person. Like a personal secretary, a voice assistant service can appropriately generate and provide the user with the information they need. Voice assistant services can be linked to various services (such as, but not limited to, broadcast services, content sharing services, content delivery services, power management services, game delivery services, chat services, document preparation services, search services, call services, photo services, traffic recommendation services, video playback services, etc.) to provide the user with necessary information or necessary functions.

[0031] A domain can refer to, for example, the area associated with user input input to a device, and can be predefined based on, for example, the meaning of the user input, the attributes of the user input, etc. Domains can be categorized based on, for example, the service associated with the user input or the application performing operations related to the user input. Natural Language Understanding (NLU) models and Natural Language Generation (NLG) models (e.g., each model includes various processing circuitry and / or executable program instructions) can be trained for each domain. Examples of user input may include, but are not limited to, voice input, text input, and image input, and may include any type of input that can be used by the user for voice assistant services.

[0032] The target word can refer to, for example, the word that will be indicated by the anaphora. Examples of target words may include, but are not limited to, words indicating location, words indicating date, words indicating time, and words indicating people.

[0033] The common information corresponding to the target word may include data that can be jointly recognized by multiple voice assistant modules as detailed data for identifying the target word. The common information may have a format, for example, that can be jointly recognized by the multiple voice assistant modules. For example, when the target word is “Seoul” and the type of common information is “location,” the common information corresponding to “Seoul” may be data representing the Global Positioning System (GPS) coordinates indicating the location of Seoul. For example, when the target word is “Tom” and the type of common information is “person,” the common information corresponding to “Tom” may be data representing Tom’s identifier (e.g., user ID, phone number, and name). For example, when the target word is “Christmas” and the type of common information is “time / date,” the common information corresponding to “Christmas” may be data representing December 25th.

[0034] Public information can be categorized into various types based on preset references. For example, the types of public information corresponding to a target word may include, but are not limited to, "location," "date / time," and "person." The types of public information corresponding to a target word can be categorized according to preset criteria, and the references corresponding to the types of public information can be pre-set. For example, when the type of public information is "location," the references corresponding to "location" may include "there," "nearby," "that place," etc. For example, when the type of public information is "date / time," the references corresponding to "date / time" may include "that time," "that date," etc. For example, when the type of public information is "person," the references corresponding to "person" may include he, he (objective case), his, she, her, etc.

[0035] This disclosure will now be described in more detail with reference to the accompanying drawings.

[0036] Figure 1 This is a diagram illustrating a system for providing voice assistant services according to an embodiment of the present disclosure.

[0037] Reference Figure 1 The system for providing voice assistant services may include a first electronic device 1000 and a second electronic device 2000.

[0038] The first electronic device 1000 can provide text corresponding to user input to the second electronic device 2000, receive response information from the second electronic device 2000, and provide the response information to the user. The first electronic device 1000 can execute an application for providing voice assistant services, receive user input through functions provided by the executed application, and provide response messages and response operations to the user.

[0039] The second electronic device 2000 can receive first text corresponding to user input from the first electronic device 1000, detect target words included in the first text, and generate and store common information representing the detected target words. The common information representing the target words can be used by multiple voice assistant modules within the second electronic device 2000, and the multiple voice assistant modules within the second electronic device 2000 can be modules dedicated to multiple domains for voice assistant services.

[0040] The second electronic device 2000 can detect references included in the second text from the second text corresponding to the user input after the first text, and can provide voice assistant services through a voice assistant module dedicated to the domain of the second text using common information indicating target words corresponding to the references.

[0041] The first electronic device 1000 and the second electronic device 2000 may include, but are not limited to, smartphones, tablet PCs, PCs, smart TVs, mobile phones, personal digital assistants (PDAs), laptops, media players, microservers, GPS devices, e-book terminals, terminals for digital broadcasting, navigation devices, telephone booths, MP3 players, digital cameras, home appliances, and other mobile or non-mobile computing devices. The first electronic device 1000 and the second electronic device 2000 may include wearable devices, such as, but not limited to, watches, glasses, hairbands, rings, etc., with communication and data processing functions. At least one of the first electronic device 1000 or the second electronic device 2000 may be a server device. However, embodiments of this disclosure are not limited thereto, and the first electronic device 1000 and the second electronic device 2000 may include any type of device capable of providing voice assistant services through interoperability with each other.

[0042] The network used to communicatively connect the first electronic device 1000 to the second electronic device 2000 can be implemented as, for example, a wired network (such as, but not limited to, a local area network (LAN), a wide area network (WAN), or a value-added network (VAN)) or as any type of wireless network (such as a mobile radio communication network or a satellite communication network). The network may include a combination of at least two of a local area network (LAN), a wide area network (WAN), a value-added network (VAN), a mobile radio communication network, or a satellite communication network, and is permitted to... Figure 1 The data communication network shown is a comprehensive network in which networks communicate smoothly with each other, and may include wired Internet, wireless Internet, and mobile wireless communication networks. Examples of wireless communication may include, but are not limited to, Wi-Fi, Bluetooth, Bluetooth Low Energy (BLE), ZigBee, Wi-Fi Direct (WFD), Ultra Wideband (UWB), Infrared Data Association (IrDA), and Near Field Communication (NFC).

[0043] Figure 2 This is a block diagram of a second electronic device 2000 according to an embodiment of the present disclosure.

[0044] Reference Figure 2 The second electronic device 2000 may include a communication interface (e.g., including communication circuitry) 2100, a processor (e.g., including processing circuitry) 2200, and a memory (e.g., RAM) 2300. The memory 2300 may include various modules containing various executable program instructions, wherein the various modules include, for example, a public information management module 2310, at least one voice assistant module 2330, and a database (e.g., a database) 2340.

[0045] Communication interface 2100 may include one or more components comprising various communication circuits for communicating with the first electronic device 1000. Communication interface 2100 may send to or receive from the first electronic device 1000 information necessary to provide voice assistant services to the first electronic device 1000. Communication interface 2100 may communicate with another device (not shown) and another server (not shown) to provide voice assistant services. For example, communication interface 2100 may include a short-range wireless communication interface, a mobile communication interface, and a broadcast receiver. Short-range wireless communication interfaces may include, but are not limited to, Bluetooth, BLE, NFC, WLAN (Wi-Fi), Zigbee, IrDA, WFD, UWB, and Ant+ communication interfaces. The mobile communication interface transmits or receives wireless signals to or from at least one of a base station, external terminal, or server on a mobile communication network. Wireless signals may include various types of data transmitted or received based on voice call signals, video call signals, or text / multimedia messages. A broadcast receiver receives broadcast signals and / or broadcast-related information from an external source via a broadcast channel. Broadcast channels may include satellite channels and terrestrial channels.

[0046] The processor 2200 may include various processing circuits and control the overall operation of the second electronic device 2000. For example, in this specification, the processor 2200 may control the functions of the second electronic device 2000 for providing voice assistant services by executing a program stored in the memory 2300, which will be described later.

[0047] The memory 2300 may store programs for processing and controlling the processor 2200. The memory 2300 may include at least one type of storage medium selected from flash memory, hard disk storage media, multimedia card micro storage media, card-type memory (e.g., SD or XD memory), random access memory (RAM), static RAM (SRAM), read-only memory (ROM), electrically erasable programmable ROM (EEPROM), programmable ROM (PROM), magnetic memory, magnetic disk, and optical disk.

[0048] The programs stored in memory 2300 can be classified into multiple modules according to their functions, for example, classified into public information management module 2310 and voice assistant module 2330.

[0049] The public information management module 2310 can analyze text generated from user input to identify domains and target words within the text, and can generate and manage public information related to the identified target words. The public information management module 2310 can accumulate and store the generated public information in a public information DB 2341, which will be described later, and enables the voice assistant module 2330 to use the public information to interpret second text. Target words can refer to, for example, words that are the target indicated by an anaphora, and examples of target words include, but are not limited to, words indicating location, words indicating date, words indicating time, and words indicating people. The public information management module 2310 may include various modules containing various executable program instructions, including, for example, a domain identification module 2311, a target word identification module 2312, a first NLU model 2313, a public information generation module 2314, a public information selection module 2315, and a public information correction module 2316. When the second electronic device 2000 receives user voice data from the first electronic device 1000, the second electronic device 2000 may also include an automatic speech recognition (ASR) model (not shown) for recognizing the user's voice.

[0050] The domain recognition module 2311 can identify domains related to text. The domain recognition module 2311 can identify the domains of text by analyzing the text generated from user input using the first NLU model 2313, which will be described later. The domain recognition module 2311 can identify the domains of text based on the output values ​​output by the first NLU model 2313.

[0051] For example, the first text "What's the weather like in London?" can be input into the first NLU model 2323, and the first NLU model 2313 can output an output value indicating that the field of the first text is "weather". The field recognition module 2311 can recognize that the field of the first text is "weather" based on the output value output by the first NLU model 2313. For example, the second text "What time is it there now?" can be input into the first NLU model 2323, and the first NLU model 2313 can output an output value indicating that the field of the second text is "time". The field recognition module 2311 can recognize that the field of the second text is "time" based on the output value output by the first NLU model 2313.

[0052] The target word recognition module 2312 can identify target words and related information within text. The target word recognition module 2312 can identify the type of target words and corresponding common information by analyzing the text generated from user input using a first NLU model 2313, which will be described in more detail below. The target word recognition module 2312 can identify the type of target words and corresponding common information based on the output value of the first NLU model 2313. For example, when the first text “How is the weather in London?” is input to the first NLU model 2313, the first NLU model 2313 can output an value indicating that the target word in the first text is “London” and the type of common information for “London” is “location”, and the target word recognition module 2312 can identify the target word in the first text as “London” and the type of common information for “London” as “location” based on the output value of the first NLU model 2313.

[0053] Although the domain identification module 2311 and the target word identification module 2312 have been described above as separate modules, the embodiments of this disclosure are not limited thereto. For example, a single module can be used to identify the text-related domains, target words, and the types of common information corresponding to the target words.

[0054] The first NLU model 2313 can analyze text generated from user input and output the domains of the text and target words within the text based on the analysis results. The first NLU model 2313 can also output the type of common information corresponding to the target words included in the text, based on the text generated from user input. The output value output by the first NLU model 2313 can be used by the domain recognition module 2311 and the target word recognition module 2312. The first NLU model 2313 can be an artificial intelligence (AI) model trained to recognize the domains and target words corresponding to the text by interpreting the text. For example, the first NLU model 2313 can be a model trained using text as learning data, wherein the text is labeled with the type of common information and the domains of the text. For example, the input value of the first NLU model 2313 can be text generated from user input, and the output value of the first NLU model 2313 can be target words labeled with the type of common information and the domains of the text. However, embodiments of this disclosure are not limited thereto.

[0055] The public information generation module 2314 can generate public information corresponding to the target word. The public information generation module 2314 can generate detailed data representing the target word as public information, and can generate public information according to a format that can be jointly recognized by the multiple voice assistant modules 2330. For example, when the target word is "Seoul" and the type of public information is "location," the public information generation module 2314 can generate GPS coordinates indicating the location of "Seoul" as public information corresponding to "Seoul" according to a format that can be jointly recognized by the multiple NLU models. For example, when the target word is "Tom" and the type of public information is "person," the public information generation module 2314 can generate an identifier for "Tom" as public information corresponding to "Tom" according to a format that can be jointly recognized by the multiple NLU models. For example, when the target word is "Christmas" and the type of public information is "time / date", the public information generation module 2314 can generate December 25 as public information corresponding to "Christmas" in a format that can be jointly recognized by the multiple NLU models.

[0056] For example, when the text includes multiple target words corresponding to a common information type, the common information generation module 2314 can select a target word corresponding to the common information type according to a preset standard, and can generate common information for the selected target word. For example, the text "Please tell me the way from Seoul Station to Busan Station." may include "Seoul Station" and "Busan Station" as target words corresponding to "location," where "location" is the type of common information. In this case, a common information generation standard can be set such that the destination is given a higher priority than the origin, and the common information generation module 2314 can generate common information for "Busan Station" as the destination (instead of "Seoul Station" as the origin). However, embodiments of this disclosure are not limited to this, and the common information generation module 2314 can generate multiple pieces of common information corresponding to the multiple target words respectively, and at least one of the multiple pieces of common information can be selected as common information corresponding to an anaphora included in the following text.

[0057] For example, the public information generation module 2314 can generate multiple pieces of public information corresponding to a target word. For example, for the target word "Christmas" which has "time / date" as the type of public information, the public information generation module 2314 can generate an identifier (ID) value representing "Christmas" and "December 25" as multiple pieces of public information corresponding to "Christmas".

[0058] The public information generation module 2314 can store multiple generated public information entries in the public information DB 2341. The public information generation module 2314 can accumulate and store multiple public information entries related to target words included in the text, according to the order in which the text is obtained. For example, the public information generation module 2314 can store the generated public information in association with the type of public information, the field associated with the generated public information, the target word corresponding to the generated public information, and the attributes of the generated public information. When the public information selection module 2315, which will be described later, selects public information corresponding to references included in the subsequently obtained text, at least one of the following can be used: the order in which the public information is stored, the field associated with the public information, the target word corresponding to the public information, or the attributes of the public information.

[0059] For example, the public information generation module 2314 can store public information corresponding to a preset number of target words for a public information type. For example, when a piece of public information corresponding to the public information type "location" is stored, and public information corresponding to another target word corresponding to "location" is generated from text input after storing the public information corresponding to "location", the public information generation module 2314 can delete the pre-stored public information and store the public information corresponding to the other target word.

[0060] The public information selection module 2315 can select public information for interpreting the second text from multiple public information stored in the public information DB 2341.

[0061] When the domain identification module 2311 identifies a domain of the second text, the common information selection module 2315 can select multiple pieces of common information stored in relation to the identified domain from the common information DB 2341, and can provide the selected pieces of common information to the common information conversion module 2331, which will be described in more detail below. The common information selection module 2315 can provide all or some of the common information stored in the common information DB 2341 to the common information conversion module 2331, regardless of the domain of the second text. When the common information selection module 2315 selects some of the common information, it can select a preset number of recently stored common information from the multiple pieces of common information stored in the common information DB 2341, and provide the selected preset number of recently stored common information to the common information conversion module 2331. In this case, the public information provided to the public information conversion module 2331 can be converted by the public information conversion module 2331 and can be input into the second NLU model 2332 together with the second text.

[0062] According to an embodiment, when an allegory is identified in the second text by the allegory recognition module 2333, which will be described in more detail below, the common information selection module 2315 can select common information corresponding to the identified allegory from the common information DB 2341, and can provide the selected common information to the common information conversion module 2331. In this case, for example, the common information can be converted and input into the second NLU model 2332 along with the second text, or the common information can be used to replace the value corresponding to the allegory in the output value output by the second NLU model 2332 using the second text as input.

[0063] The public information correction module 2316 can correct the public information stored in the public information DB 2341. The public information correction module 2316 can correct the public information stored in the public information DB 2341 based on the output value of the first NLU model 2313. When the target word recognition module 2312 identifies a target word from the second text, the public information generation module 2315 can generate public information corresponding to the target word in the second text. The public information correction module 2316 can replace the public information stored in the public information DB 2341 with the public information corresponding to the target word in the second text. For example, the public information correction module 2316 can correct public information with the same domain and public information type as the target word in the second text. For example, when the first text is “What’s the weather like in London?”, the public information corresponding to “London” as the target word can be stored in the public information DB 2341 in association with the domain “weather” and the public information type “location”. Then, the second text, “What’s the weather like in Seoul?” (instead of “What’s the weather like there?”), can be input into the first NLU model 2313. In this case, common information corresponding to “Seoul” as the target word within the second text can be generated in association with the “weather” domain and the “location” common information type. The common information correction module 2316 can replace the common information corresponding to “London” stored in the common information DB 2341 with the common information corresponding to “Seoul”.

[0064] The common information correction module 2316 can correct the common information stored in the common information DB 2341 based on the output value of the second NLU model 2332. The common information correction module 2316 can use the output value of the second NLU model 2332 to identify target words within the text and can determine whether the common information representing the target word is the same as the common information stored in the common information DB 2341. When the common information representing the target word identified by the common information correction module 2316 is different from the common information stored in the common information DB 2341, the common information correction module 2316 can correct the common information stored in the common information DB 2341. In this case, the common information corresponding to the target word can be corrected based on the parameters associated with the target word output by the second NLU model 2332. For example, the common information corresponding to the target word can be corrected based on the meaning of the target word and the type of common information corresponding to the target word, where the meaning and type are output by the second NLU model 2332. For example, when the first NLU model 2313 outputs "location" as the type of common information corresponding to the target word "Seoul" included in the text, and the second NLU model 2332 outputs "person" as the type of common information corresponding to the target word "Seoul" included in the text, the common information correction module 2316 can add or correct the common information corresponding to the target word "Seoul". In this case, the second NLU model 2332 can be a model specifically for the domain associated with the text, and by using the second NLU model 2332 to generate or correct the common information, more accurate common information related to the target word within the text can be stored in the common information DB 2341.

[0065] The public information correction module 2316 can add or correct public information stored in the public information DB 2341 based on data sent to or received from the user via the voice assistant service. The public information correction module 2316 can add or correct public information stored in the public information DB 2341 based on at least one of the following: text generated from user input, a response message generated by the NLG model 2335 described in more detail below, or the functionality of the first electronic device 1000 or another device (not shown). The voice assistant module 2330 can interpret text generated from user input and can generate response information for the text. The voice assistant module 2330 is a domain-specific module, and the second electronic device 2000 may include multiple voice assistant modules 2330 for multiple domains. The second electronic device 2000 can use the voice assistant module 2330 for a domain specific to text to interpret text. For example, when the domain recognition module 2311 determines the domain of the text to be "weather", the voice assistant module 2330 dedicated to the "weather" domain can be used to interpret the text. When the domain recognition module 2311 determines the domain of the text to be "clock", the voice assistant module 2330 dedicated to the "clock" domain can be used to interpret the text.

[0066] The voice assistant module 2330 may include a common information conversion module 2331, a second NLU model 2332, a reference recognition module 2333, a response information generation module 2334, and an NLG model 2335.

[0067] The public information conversion module 2331 can convert public information to interpret second text. The public information conversion module 2331 can convert at least some of the public information stored in the public information DB 2341 according to a format that can be processed by the voice assistant module 2330. The converted public information can be used to interpret second text including anaphora.

[0068] The voice assistant module 2330 can use a second NLU model 2332 to interpret text generated from user input. The second NLU model 2332 can output intentions and parameters associated with the user's intent by interpreting the text. An intention is information determined by interpreting the text using the second NLU model 2332 and can represent, for example, the user's intent. An intention can include not only intent information indicating the user's intent but also numerical values ​​corresponding to the information indicating the user's intent. Numerical values ​​can represent the probability that the text is associated with information indicating a specific intent. For example, when multiple pieces of information indicating the user's intent are obtained as a result of interpreting text using the second NLU model 2332, the intent information with the largest numerical value among the multiple pieces of intent information can be determined as the intention. Parameters can indicate detailed information related to the intention. Parameters are information related to the intention, and various types of parameters can correspond to an intention.

[0069] According to an embodiment, the voice assistant module 2330 can interpret the second text via the second NLU model 2332 without determining whether an anaphora exists in the second text. In this case, the second NLU model 2332 can receive common information and the second text and can interpret the second text. The second NLU model 2332 can be an AI model for interpreting text including anaphora, wherein the AI ​​model is trained using common information and the text including anaphora. For example, when it is not determined whether an anaphora exists in the second text, the domain recognition module 2311 identifies the domains of the second text, and the common information conversion module 2331 converts multiple pieces of common information associated with the domains of the second text. The converted multiple pieces of common information and the second text can be input into the second NLU model 2332. The second NLU model 2332 can interpret the second text by considering the common information corresponding to the anaphora within the second text. For example, when the second text is “What’s the weather like there today?”, common information associated with the weather domain and the second text can be input into the second NLU model 2332, and the second NLU model 2332 can output the intention of “providing weather information” and parameters such as “today (date)” and “Busan (location)”.

[0070] When it is uncertain whether an anaphora exists in the second text, the common information conversion module 2331 can convert all or some of the common information stored in the common information DB 2341, regardless of the domain of the second text, and the converted common information can be input into the second NLU model 2332 along with the second text. Therefore, the second NLU model 2332 can interpret the second text by considering the common information corresponding to the anaphora within the second text. For example, when the second text is “What’s the weather like there today?”, the most recently stored common information in the common information DB 2341 and the second text can be input into the second NLU model 2332, and the second NLU model 2332 can output the intention of “weather information provided” and parameters such as “today (date)” and “Busan (location)”.

[0071] According to an embodiment, the voice assistant module 2330 can recognize references within the second text and can use common information associated with the recognized references to interpret the second text.

[0072] In this scenario, the reference recognition module 2333 can identify references within the second text by being executed by the processor 2200. For example, the reference recognition module 2333 can identify references within the second text based on rules. Alternatively, the reference recognition module 2333 can identify references within the second text by comparing preset references with the second text. In this case, the preset references can be pre-stored in the DB 2340 for identifying references within the second text.

[0073] The reference word recognition module 2333 can use an AI model for reference word recognition to identify reference words within the second text. In this case, the AI ​​model for reference word recognition can be a model pre-trained to recognize reference words, and the reference word recognition module 2333 can identify reference words included in the second text based on the output value output by the AI ​​model for reference word recognition. For example, when the second text is input into the AI ​​model for reference word recognition, the AI ​​model can output the parameter "there (reference word)," and the reference word recognition module 2333 can identify "there (reference word)" within the text as a reference word from the output parameter "there (reference word)." The AI ​​model for reference word recognition may include, but is not limited to, a first NLU model 2313, a second NLU model 2332, or a separate model (not shown).

[0074] When the reference word recognition module 2333 recognizes a reference word in the second text, the public information selection module 2315 can select public information related to the recognized reference word and provide the selected public information to the public information conversion module 2331.

[0075] In this scenario, the public information selection module 2315 can select public information corresponding to the reference identified from the text from among the multiple public information items stored in the public information DB 2341. The public information selection module 2315 can identify public information from the public information DB 2341 that indicates a reference included in the text, based on the type of public information associated with the reference and / or domain related to the text. For example, when the public information for the "location" field of the "weather" field generated from the first text is the GPS coordinates of London, and the reference included in the second text obtained after the first text is "there," the public information selection module 2315 can select the GPS coordinates of London from the public information DB 2341 as the public information corresponding to the reference "there" based on the public information type "location."

[0076] The public information selection module 2315 can identify target words corresponding to references and can select public information corresponding to the target words. In this case, the public information selection module 2315 can select target words corresponding to references from target words identified in the text obtained before the second text is obtained. The public information selection module 2315 can select public information corresponding to the selected target words. However, embodiments of this disclosure are not limited thereto, and the public information selection module 2315 can select public information according to various criteria by considering at least one of the following: the order in which public information is stored, the domain associated with the public information, the target words corresponding to the public information, or the attributes of the public information.

[0077] For example, when multiple pieces of common information associated with a target word are stored in the common information DB 2341, the common information selection module 2315 can select from the stored multiple pieces of common information the common information corresponding to the target word included in the subsequent text. In this case, the common information selection module 2315 can select the common information corresponding to the anaphora included in the text from the multiple pieces of common information stored in the common information DB 2341 by considering the output value of the second NLU model 2332, which will be described later.

[0078] The public information selected by the public information selection module 2315 can be converted into a format that can be used by the voice assistant module 2330, which will be described later. For example, when the voice assistant module 2330 has difficulty using the public information selected by the public information selection module 2315 without modification, the public information selected by the public information selection module 2315 can be converted into a format that can be used by the voice assistant module 2330.

[0079] According to an embodiment, the voice assistant module 2330 can input common information and second text into the second NLU model 2332 to interpret the second text. The voice assistant module 2330 can input the second text and common information corresponding to the references within the second text into the second NLU model 2332, and can obtain the output value output by the second NLU model 2332. In this case, the second NLU model 2332 can input the second text and common information corresponding to the references within the second text, and can interpret the second text. The second NLU model 2332 can be an AI model for interpreting text including references, wherein the AI ​​model is trained using the common information corresponding to the references and the text including the references. For example, when the common information conversion module 2331 converts the common information corresponding to the references within the second text, the converted common information and the second text can be input into the second NLU model 2332. The second NLU model 2332 can interpret the second text by considering the common information corresponding to the references within the second text. For example, when the second text is “What’s the weather like there today?”, the common information corresponding to “there” and the second text can be input into the second NLU model 2332, and the second NLU model 2332 can output the intention of “weather information provided” and parameters such as “today (date)” and “Busan (location)”.

[0080] Although it has been described above that both the second text and the common information corresponding to the references within the second text are input into the second NLU model 2332, embodiments of this disclosure are not limited thereto. For example, the references within the second text may be replaced by the common information, and the second text whose references have been replaced by the common information may be input into the second NLU model 2332.

[0081] According to an embodiment, the voice assistant module 2330 can input second text into the second NLU model 2332, and can replace the parameters corresponding to the response in the parameters output by the second NLU model 2332 with common information corresponding to the response. In this case, the second NLU model 2332 can be an AI model that receives and interprets the second text. For example, when the second text is "What's the weather like there today?", the second text can be input into the second NLU model 2332, and the second NLU model 2332 can output the intention of "providing weather information" and parameters such as "today (date)" and "there (response)". The voice assistant module 2330 can replace the parameter "there (response)" representing the response with "Busan (location)".

[0082] The response information generation module 2334 can generate response information for the text based on the result of interpreting the second text. The response information is data associated with the response to the text, and therefore may include, for example, data provided to the first electronic device 1000, another device (not shown), and another server (not shown), as well as data for the operation of the second electronic device 2000.

[0083] The response information generation module 2334 can plan the actions of the second electronic device 2000, the first electronic device 1000, or another device (not shown) according to the user's intention, based on the output value of the second NLU model 2332. For example, the response information generation module 2334 can use utterance data and action data, which are the result of interpreting text, to plan the actions of the second electronic device 2000, the first electronic device 1000, or another device (not shown) according to the user's intention. The utterance data is stored in the utterance data DB 2342, which will be described in more detail later, and the action data is stored in the action data DB 2343, which will be described in more detail below. The response information generation module 2334 can generate response information for text by planning the actions of the second electronic device 2000, the first electronic device 1000, or another device (not shown) according to the user's intention.

[0084] For example, the response information generation module 2334 can use the NLG model 2335 to generate a response message based on the user's intent. For example, the response information generation module 2334 can obtain response content to be provided to the user, such as text, images, or moving pictures. For example, the response information generation module 2334 can determine the operation of the first electronic device 1000 or another device of the user (not shown), and can generate control commands for controlling the first electronic device 1000 or the other device (not shown).

[0085] DB 2340 can store necessary information for voice assistant services. DB 2340 may include public information DB 2341, speech data DB 2342, and action data DB 2343.

[0086] The public information database 2341 can store public information corresponding to target words. The public information database 2341 can accumulate and store public information related to target words included in the text according to the order in which the text is obtained. For example, the public information database 2341 can store the generated public information in association with the type of public information, the fields associated with the public information, the target words corresponding to the public information, and the attributes of the public information.

[0087] The discourse data DB 2342 can store discourse data associated with the functions of the first electronic device 1000 and another device (not shown). The stored discourse data can be used to identify the functions of the first electronic device 1000 and the other device (not shown) associated with the results of text interpretation.

[0088] Action data DB 2343 can store action data associated with the functions of a first electronic device 1000 and another first electronic device 1000. Action data can be data concerning a series of detailed operations of the first electronic device 1000 corresponding to specific utterance data. For example, action data may include information related to detailed operations to be performed by the first electronic device 1000 according to specific utterance data, the correlation between each detailed operation and another detailed operation, and the order in which the detailed operations are performed. The correlation between each detailed operation and the other detailed operation includes information about another detailed operation to be performed before performing one detailed operation, so as to perform the detailed operation. For example, when the operation to be performed is "music playback," "power on" may be another detailed operation to be performed before the operation "music playback." Action data may also include, but is not limited to, functions to be performed by a target device to perform a specific operation, the order in which the functions are performed, the input values ​​necessary for performing the functions, and the output values ​​output as a result of performing the functions. The speech data stored in speech data DB2342 and the action data stored in action data DB2343 can be mapped to each other and can be used by the second electronic device 2000 to plan the operation of the second electronic device 2000, the operation of the first electronic device 1000, and the operation of another device (not shown) related to the user's intention, based on the result of interpreting the text.

[0089] exist Figure 2 In this embodiment, the second electronic device 2000 manages public information corresponding to target words based on user input from the first electronic device 1000 and provides voice assistant services. However, embodiments of this disclosure are not limited thereto. For example, the second electronic device 2000 may manage public information corresponding to target words within a text based on user input to the first electronic device 1000 and provide voice assistant services without receiving text from the first electronic device 1000. The second electronic device 2000 may be a server device or a user device, and Figure 2 At least some operations of the second electronic device 2000 can be performed by the first electronic device 1000. When the second electronic device 2000 is a user's device, the second electronic device 2000 may also include, for example, a user input interface (not shown), a display (not shown), and a sensor unit (not shown).

[0090] Figure 3This illustrates how public information is generated from a first text by a public information management module 2312 according to an embodiment of this disclosure.

[0091] Reference Figure 3 When the second electronic device 2000 receives the first text "What's the weather like in London?" as user input, the public information management module 2312 of the second electronic device 2000 can input the first text into the first NLU model 2313, and can identify the domain and target word of the first text based on the output value of the first NLU model 2313. For example, the public information management module 2312 can identify that the domain of "What's the weather like in London?" is "weather", the target word is "London", and the type of public information is "geographic". The public information management module 2312 can generate a value representing the GPS coordinates of London as public information corresponding to the target word "London".

[0092] Figure 4 This is a table showing the fields corresponding to text including target words according to embodiments of this disclosure.

[0093] Reference Figure 4 The fields “What’s the weather like in Busan?”, “What’s the temperature in Los Angeles (LA) right now?”, and “Please tell me the weather on Sunday.” can be identified as “weather”; the fields “Please tell me the time in Shanghai.” and “What time is it in Brazil right now?” can be identified as “clock”; and the fields “Please find famous restaurants in London.” and “Please tell me which restaurants are open tomorrow.” can be identified as “restaurants”.

[0094] The public information type corresponding to the target words “Busan”, “Los Angeles”, “Shanghai”, “Brazil” and “London” can be identified as “Location”, and the public information type corresponding to the target words “tomorrow” and “Sunday” can be identified as “Date”.

[0095] It can generate public information corresponding to target words, and can classify and store the generated public information according to the domain or public information type.

[0096] Figure 5 This is a table showing common information corresponding to target words according to embodiments of this disclosure.

[0097] Reference Figure 5It can generate “common.BaseDate{year{common.Integer(2020)},month{common.Integer(4)},day{common.Integer(19)}}” as common information corresponding to the target words “20.04.19” and “2020 / 04 / 19”, and can generate “common.BaseGeoPoint{latitude{common.decimal(34.052235)},longitude{common.decimal(-118.243683)}}” as common information corresponding to the target words “LA” and “Los Angeles”. Figure 5 Public information can have a format that can be recognized by multiple voice assistant modules.

[0098] Figure 6 This illustrates how, according to embodiments of the present disclosure, common information corresponding to anaphors within a second text is obtained.

[0099] Reference Figure 6 When the first electronic device 1000 receives the user's first text "How is the weather in London?", the second electronic device 2000 can generate public information corresponding to the target word "London" in the first text, and can store the generated public information in public information DB 2341.

[0100] Subsequently, when the first electronic device 1000 outputs "It's sunny and the weather is fine" as a response to the first text, the user can input the question "What time is it there now?" into the first electronic device 1000. Then, when the first electronic device 1000 provides the second electronic device 2000 with the second text "What time is it there now?", the second electronic device 2000 can detect "there" as an anaphora within the second text and extract the public information corresponding to the detected anaphora from the public information DB 2341 to interpret the meaning of the second text.

[0101] Figure 7 This is a flowchart of a method performed by a second electronic device 2000 according to an embodiment of the present disclosure for generating common information for a first text and providing a response to the first text.

[0102] In operation S700, the second electronic device 2000 can obtain the user's first text. The first electronic device 1000, used by the user of the voice assistant service, can receive the user's first voice input and convert the received first voice input into first text. The first electronic device 1000 can send the first text to the second electronic device 2000, and the second electronic device 2000 can receive the first text from the first electronic device 1000. For example, when the user inputs the voice message "What's the weather like in London today?" into the first electronic device 1000, the first electronic device 1000 can convert the user's voice into the first text "What's the weather like in London today?" and provide the first text to the second electronic device 2000. When the user inputs the first text into the first electronic device 1000, the first electronic device 1000 can provide the first text input by the user to the second electronic device 2000, and the second electronic device 2000 can receive the first text from the first electronic device 1000.

[0103] The second electronic device 2000 can obtain the first text from the user's voice input to the second electronic device 2000. In this case, the second electronic device 2000 can be the user's device rather than a server.

[0104] During operation S705, the second electronic device 2000 can use the first NLU model 2313 to identify domains, target words, and information related to the target words from the first text.

[0105] The second electronic device 2000 can identify the domain of the first text by analyzing the first text input by the user using the first NLU model 2313. The second electronic device 2000 can identify the domain of the first text based on the output value output by the first NLU model 2313. For example, the first text "What is the weather like in London today?" can be input into the first NLU model 2313, and the first NLU model 2313 can output an output value indicating that the domain of the first text is "weather", and the second electronic device 2000 can identify the domain of the first text as "weather" based on the output value output by the first NLU model 2313.

[0106] The second electronic device 2000 can identify target words and related information within text. The second electronic device 2000 can identify the type of target words and corresponding common information by analyzing the user's first text using a first NLU model 2313. The second electronic device 2000 can identify the type of target words and corresponding common information based on the output value of the first NLU model 2313. For example, when the first text "What's the weather like in London today?" is input into the first NLU model 2313, the first NLU model 2313 can output an value indicating that the target word in the first text is "London" and the type of common information for "London" is "location," and the second electronic device 2000 can identify the target word in the first text as "London" and the type of common information corresponding to "London" as "location" based on the output value of the first NLU model 2313.

[0107] In operation S710, the second electronic device 2000 can determine whether it is necessary to generate common information for target words within the first text. The second electronic device 2000 can determine this by considering whether the target words are included in the first text, the meaning of text input before the first text, and the common information stored in the common information DB 2341. For example, when it is determined that the target words included in the first text and the corresponding common information are not stored in the common information DB 2341, the second electronic device 2000 can determine that the common information corresponding to the target words in the first text will be stored. When it is determined that the target words included in the first text and the corresponding common information have already been stored in the common information DB 2341, the second electronic device 2000 can determine that the common information corresponding to the target words in the first text will not be stored.

[0108] When it is determined in operation S710 that public information needs to be generated, in operation S715, the second electronic device 2000 can generate public information corresponding to the target word. The second electronic device 2000 can generate detailed data indicating the target word as public information, and can generate public information according to a format that can be jointly recognized by multiple voice assistant modules 2330. For example, when the target word is "London" and the type of public information is "location," the second electronic device 2000 can generate GPS coordinates indicating the location of London as public information corresponding to "London" according to a format that can be jointly recognized by multiple NLU models. For example, when the target word is "Tom" and the type of public information is "person," the second electronic device 2000 can generate an identifier for "Tom" as public information corresponding to "Tom" according to a format that can be jointly recognized by multiple NLU models. For example, when the target word is "Christmas" and the type of public information is "time / date", the second electronic device 2000 can generate December 25 as public information corresponding to "Christmas" in a format that can be recognized by multiple NLU models.

[0109] For example, when the text includes multiple target words corresponding to a common information type, the second electronic device 2000 can select one target word corresponding to the common information type according to a preset standard, and can generate common information about the selected target word. For example, the text "Please tell me the way from Seoul Station to Busan Station." may include "Seoul Station" and "Busan Station" as target words corresponding to "location," where "location" is the type of common information. In this case, a common information generation standard can be set such that the destination is given a higher priority than the origin, and the second electronic device 2000 can generate common information for "Busan Station" as the destination (instead of "Seoul Station" as the origin). However, embodiments of this disclosure are not limited to this, and the second electronic device 2000 can generate multiple pieces of common information corresponding to multiple target words respectively, and can select at least one piece of common information from the multiple pieces of common information as common information corresponding to a reference included in the following text.

[0110] For example, the second electronic device 2000 can generate multiple pieces of public information corresponding to a target word. For example, for the target word "Christmas" with "time / date" as the public information type, the public information generation module 2314 can generate "December 25" and an ID value representing "Christmas" as multiple pieces of public information corresponding to "Christmas".

[0111] During operation S720, the second electronic device 2000 can accumulate and store the generated public information. The second electronic device 2000 can store the generated public information in public information DB 2341. The second electronic device 2000 can accumulate and store public information associated with target words included in the text, according to the order in which the text is obtained. For example, the second electronic device 2000 can store the generated public information in association with the type of public information, the domain associated with the public information, the target words corresponding to the public information, and the attributes of the public information.

[0112] For example, the second electronic device 2000 can store public information corresponding to a preset number of target words for a public information type. For example, when a piece of public information corresponding to "location" as a type of public information is stored, and public information corresponding to another target word corresponding to "location" is generated from text input after storing the public information corresponding to "location", the second electronic device 2000 can delete the previously stored public information and store the public information corresponding to the other target word.

[0113] When operating S725, the second electronic device 2000 can use the second NLU model 2332 to interpret the first text.

[0114] The second electronic device 2000 can input the first text into the second NLU model 3332 and obtain intentions and parameters from the second NLU model 2332. The second electronic device 2000 can interpret the first text based on intentions representing the user's intent and parameters representing detailed information associated with the intentions. When anaphora is included in the first text, the second electronic device 2000 can use common information generated from text prior to the first text to interpret the first text.

[0115] The second electronic device 2000 can select a voice assistant module 2330 dedicated to the domain of the first text, and can control the selected voice assistant module 2330 to interpret the first text. The second electronic device 2000 can use a second NLU model 2332 within the voice assistant module 2330 dedicated to the domain of the first text to interpret the first text.

[0116] When it is determined in operation S710 that no public information needs to be generated, in operation S725, the second electronic device 2000 can use the second NLU model 2332 to interpret the first text without generating public information for the first text.

[0117] In operation S730, the second electronic device 2000 can generate response information for the first text. The second electronic device 2000 can generate response information for the text based on the result of interpreting the first text. The response information is data associated with the response to the text, and therefore may include, for example, data provided to the first electronic device 1000, another device (not shown), and another server (not shown), as well as data for the operation of the second electronic device 2000. The second electronic device 2000 can plan the actions of the second electronic device 2000, the first electronic device 1000, or another device (not shown) according to the user's intent based on the output value of the second NLU model 2332. For example, the second electronic device 2000 can use utterance data and action data as a result of interpreting the first text to plan the actions of the second electronic device 2000, the first electronic device 1000, or another device (not shown) according to the user's intent, wherein the utterance data is stored in utterance data DB 2342 and the action data is stored in action data DB 2343. The second electronic device 2000 can generate text-based response information by planning the actions of the second electronic device 2000, the first electronic device 1000, or another device (not shown) according to the user's intention.

[0118] For example, the second electronic device 2000 can use the NLG model 2335 to generate a response message based on the user's intent. For example, the second electronic device 2000 can obtain response content to be provided to the user, such as text, images, or moving pictures. For example, the second electronic device 2000 can determine the operation of the first electronic device 1000 or another device of the user (not shown), and can generate control commands for controlling the first electronic device 1000 or the other device (not shown).

[0119] During operation S735, the second electronic device 2000 can provide the generated response information. The second electronic device 2000 can provide the generated response information to at least one of the first electronic device 1000, another device (not shown), or another server (not shown). In response to the response information, the first electronic device 1000 and the other device (not shown) can perform operations based on the response information. For example, when the response information is a response message, the first electronic device 1000 and the other device (not shown) can output a response message. For example, when the response message is a control command, the first electronic device 1000 and the other device (not shown) can perform functions according to the control command. For example, in response to the response information, another server (not shown) can control the first electronic device 1000 and the other device (not shown) according to the response information.

[0120] Figure 8 This is a flowchart of a method performed by a second electronic device 2000 according to an embodiment of the present disclosure for generating public information of a second text and providing a response to the second text.

[0121] In operation S800, the second electronic device 2000 can obtain the user's second text. The first electronic device 1000 can receive the user's second voice after receiving the user's first voice, and can convert the received second voice into second text. The first electronic device 1000 can send the second text to the second electronic device 2000, and the second electronic device 2000 can receive the second text from the first electronic device 1000. For example, after the first voice "What's the weather like in London?", the user can input the second voice "What time is it there?" into the first electronic device 1000. The first electronic device 1000 can convert the user's second voice into the second text "What time is it there?" and provide the second text to the second electronic device 2000. When the user inputs second text into the first electronic device 1000, the first electronic device 1000 can provide the user-input second text to the second electronic device 2000, and the second electronic device 2000 can receive the second text from the first electronic device 1000.

[0122] The second electronic device 2000 can obtain second text from the user's voice input to the second electronic device 2000. In this case, the second electronic device 2000 can be the user's device rather than a server.

[0123] In operation S805, the second electronic device 2000 can use the first NLU model 2313 to identify domains and target words from the second text. The second electronic device 2000 can identify the domains of the second text by analyzing the second text input by the user using the first NLU model 2313. The second electronic device 2000 can identify the domains of the second text based on the output value output by the first NLU model 2313. For example, the second text "What time is it there now?" can be input into the first NLU model 2313, and the first NLU model 2313 can output an output value indicating that the domain of the second text is "time", and the second electronic device 2000 can identify the domain of the second text as "time" based on the output value output by the first NLU model 2313.

[0124] The second electronic device 2000 can identify target words and related information within a second text. The second electronic device 2000 can identify the type of target words and corresponding common information by analyzing the user's second text using a first NLU model 2313. The second electronic device 2000 can identify the type of target words and corresponding common information based on the output value of the first NLU model 2313. For example, when the second text "What time is it there now?" is input into the first NLU model 2313, the first NLU model 2313 can output an value indicating that the first text does not contain the target words, and the second electronic device 2000 can identify that the first text does not contain the target words based on the output value of the first NLU model 2313.

[0125] When the second text “Is December 25th a public holiday there?” is input into the first NLU model 2313, the first NLU model 2313 can output an output value indicating that the target word in the second text is “December 25th” and that the type of common information for “December 25th” is “date”. The second electronic device 2000 can identify, based on the output value output by the first NLU model 2313, that the target word in the second text is “December 25th” and that the type of common information corresponding to “December 25th” is “date”.

[0126] In operation S810, the second electronic device 2000 can determine whether public information needs to be generated. The second electronic device 2000 can determine whether public information for the target word in the second text needs to be generated by considering whether the target word is included in the second text, the meaning of the text input before the second text, and the public information stored in the public information DB 2341. For example, when the second text does not include the target word, the second electronic device 2000 can determine that public information will not be generated. For example, when public information corresponding to the same target word as the target word in the second text has already been stored in the public information DB 2341, the second electronic device 2000 can determine that public information will not be generated. For example, when the target word in the second text is a new target word, the second electronic device 2000 can determine that public information will be generated.

[0127] When it is determined in operation S810 that public information needs to be generated, in operation S815, the second electronic device 2000 can generate public information corresponding to the target words in the second text. The second electronic device 2000 can generate detailed data indicating the target words as public information, and the public information can be generated according to a format that can be recognized by multiple voice assistant modules 2330.

[0128] For example, the second text “What’s the weather like in Seoul?” (instead of “What’s the weather like there?”) can be input into the first NLU model 2313. In this case, common information corresponding to the target word “Seoul” in the second text can be generated in association with the weather domain and location common information type.

[0129] During operation S820, the second electronic device 2000 can add or correct public information stored in public information DB 2341. The second electronic device 2000 can add public information corresponding to target words in the second text to public information DB 2341. For example, when the target word in the second text is a new word, the second electronic device 2000 can accumulate and store the public information corresponding to the target word in the second text in the previously stored public information, according to the order in which the second text was obtained.

[0130] For example, the second electronic device 2000 can delete a portion of the public information stored in the public information DB 2341. When the number of public information entries to be stored in the public information DB 2341 is preset and a preset number of public information entries have already been stored in the public information DB 2341, the second electronic device 2000 can delete the earliest stored public information from among the multiple public information entries stored in the public information DB 2341 in order to store public information corresponding to the target words in the second text.

[0131] For example, the second electronic device 2000 can replace the common information stored in the common information DB 2341 with common information corresponding to the target words in the second text. When common information of the same type as the common information of the target words in the second text is stored in the common information DB 2341, the second electronic device 2000 can replace the common information of the same type stored in the common information DB 2341 with the common information of the target words in the second text.

[0132] For example, when the first text is “What’s the weather like in London?”, public information corresponding to the target word “London” can be stored in public information DB 2341 in association with weather domain and location public information type. Then, public information corresponding to the target word “Seoul” in the second text “What’s the weather like in Seoul?” (instead of “What’s the weather like there?”) can be generated in association with weather domain and location public information type. The second electronic device 2000 can replace the public information corresponding to “London” stored in public information DB 2341 with the public information corresponding to “Seoul”.

[0133] However, the standard by which the second electronic device 2000 adds public information corresponding to the target words in the second text to the public information DB 2341 is not limited to this. The public information DB 2341 can be corrected according to various other standards.

[0134] In operation of S825, the second electronic device 2000 can extract common information used for interpreting the second text.

[0135] According to an embodiment, the second electronic device 2000 can extract multiple pieces of public information stored in relation to fields of the second text from the public information DB 2341. The second electronic device 2000 can extract multiple pieces of public information corresponding to fields identical to the fields of the second text from the public information DB 2341 based on the fields of the second text identified in operation S805. For example, when the field of the second text is "time", the second electronic device 2000 can extract multiple pieces of public information corresponding to the "time" field from among the multiple pieces of public information stored in the public information DB 2341.

[0136] According to an embodiment, the second electronic device 2000 can extract all or some of the common information from multiple pieces of common information stored in the common information DB 2341, regardless of the fields of the second text. In this case, the second electronic device 2000 can extract a preset number of recently stored common information from the multiple pieces of common information stored in the common information DB 2341, but the embodiments of this disclosure are not limited thereto.

[0137] According to an embodiment, the second electronic device 2000 can extract only the public information corresponding to the reference phrase in the second text from the public information DB 2341. The output value output by the first NLU model 2313 in operation S805 may include the reference phrase and the type of public information corresponding to it. In this case, the second electronic device 2000 can identify the reference phrase in the second text and the type of public information corresponding to it based on the output value output by the first NLU model 2313. For example, when the first NLU model 2313 outputs "there" and "location," the second electronic device 2000 can identify that the reference phrase in the second text is "there," and the type of public information corresponding to the reference phrase "there" is "location." The second electronic device 2000 can extract multiple pieces of public information from the public information DB 2341 that have the same type of public information as the type of public information corresponding to the reference phrase in the second text. For example, the second electronic device 2000 can extract public information categorized as “location” from public information DB 2341.

[0138] In operation of S830, the second electronic device 2000 can use the second NLU model 2332 to interpret the second text.

[0139] According to an embodiment, the second electronic device 2000 can input extracted common information and second text into the second NLU model 2332. The second electronic device 2000 can convert the extracted common information in a format suitable for the second NLU model 2332, and can input the converted common information along with the second text into the second NLU model 2332. In this case, the second NLU model 2332 can be a model trained to interpret the meaning of text including anaphors based on text including anaphors and common information, and the second NLU model 2332 can output the interpretation result of the second text as an output value by considering the meaning of the common information corresponding to the anaphors. For example, the multiple pieces of common information stored in the common information DB 2341 and the second text "What time is it there now?" are input into the second NLU model 2332, and the second NLU model 2332 can output the intention and parameters obtained by interpreting the second text by considering the GPS coordinates of the target word "London" in the first text.

[0140] According to an embodiment, the second electronic device 2000 can input second text and replace the values ​​corresponding to anaphors in the output values ​​output by the second NLU model 2332 with extracted common information. In this case, the second NLU model 2332 can be a model trained to input text and interpret the meaning of the text, and the second NLU model 2332 can output the interpretation result of the second text as the output value without considering the meaning of the common information corresponding to the anaphors. The second electronic device 2000 can replace the values ​​corresponding to anaphors in the output values ​​output by the second NLU model 2332 with the extracted common information. In this case, the extracted common information can be converted into the format of the output values ​​of the second NLU model 2332, and the converted common information can replace the values ​​corresponding to anaphors in the output values ​​output by the second NLU model 2332. For example, when the second text “What time is it there now?” is input into the second NLU model 2332, the second NLU model 2332 can output intentions and parameters as the result of interpreting the second text. The parameters related to the anaphora “there” in the intentions and parameters output by the second NLU model 2332 can be replaced by the GPS coordinate value of “London” corresponding to “there”.

[0141] In operation S835, the second electronic device 2000 can determine whether it is necessary to correct the common information. When it is determined that the common information needs to be corrected, in operation S840, the second electronic device 2000 can correct the common information stored in the common information DB 2341.

[0142] The second electronic device 2000 can determine whether it is necessary to correct the common information stored in the common information DB 2341 based on the output value of the second NLU model 2332. The second electronic device 2000 can use the output value of the second NLU model 2332 to identify target words within the text and can determine whether the common information representing the target words is the same as the common information stored in the common information DB 2341. When the common information representing the target words identified by the second electronic device 2000 differs from the common information stored in the common information DB 2341, the common information correction module 2316 can correct the common information stored in the common information DB 2341. In this case, the common information corresponding to the target words can be corrected based on the parameters associated with the target words output by the second NLU model 2332. For example, the second electronic device 2000 can add or correct common information corresponding to the target word among multiple common information items stored in the common information DB 2341 based on the meaning of the target word and the type of common information corresponding to the target word, wherein the meaning and type are output by the second NLU model 2332. For example, when the first NLU model 2313 outputs the type of common information corresponding to the target word "Seoul" included in the second text as "location", and the second NLU model 2332 outputs the type of common information corresponding to the target word "Seoul" included in the second text as "person", the second electronic device 2000 can correct the common information corresponding to the target word "Seoul". In this case, the second NLU model 2332 can be a model specific to the domain of the second text, and the second electronic device 2000 can use the second NLU model 2332 to generate or correct common information so that more accurate common information related to the target word in the second text can be stored in the common information DB 2341.

[0143] During operation S840, the second electronic device 2000 can correct the public information stored in the public information DB 2341 based on data sent to or received from the user via the voice assistant service. The public information correction module 2316 can correct the public information stored in the public information DB 2341 based on at least one of the following: text generated from user input, a response message generated by the NLG model 2335 (described later), or a function of the first electronic device 1000 or another device (not shown), according to the user's intent.

[0144] In operation S845, the second electronic device 2000 can generate response information for the second text. In operation S850, the second electronic device 2000 can provide the generated response information. Operations S845 and S850 correspond to operations S730 and S735, therefore, for ease of interpretation, their detailed descriptions are not repeated here.

[0145] Figure 9 The output of the result of interpreting a second text taking into account the common information of a second NLU model 2332 according to an embodiment of the present disclosure is shown.

[0146] Reference Figure 9 When the second text, including the anaphora "What time is it there now?", and the extracted common information are input into the second NLU model 2332, the second NLU model 2332 can output an intention and parameters representing the interpretation result of the second text, in which the common information corresponding to the anaphora is already reflected. For example, the second NLU model 2332 can output "time information provided" as the intention and output "current (time)" and "London (geographic point (latitude: 51.50853, longitude: -0.12574))" as parameters. Although the extracted common information is in Figure 9 The common information is input into the second NLU model 2332 without modification, but embodiments of this disclosure are not limited thereto. The extracted common information can be preprocessed according to a format interpretable by the second NLU model 2332, and the preprocessed common information can be input into the second NLU model 2332. Although the GPS values ​​for London are... Figure 9 The output is provided by the second NLU model 2332 without any changes, but the embodiments of this disclosure are not limited thereto. In order for the second electronic device 2000 to provide voice assistant services to the user, the second NLU model 2332 may output a value in a preset format as the result of interpreting the text.

[0147] Figure 10 This illustrates replacing a portion of the output value of the second NLU model 2332 with common information according to an embodiment of this disclosure.

[0148] Reference Figure 10 When the second text, including the anaphora "What time is it there now?", is input into the second NLU model 2332, the second NLU model 2332 can output an intention and parameters representing the interpretation result of the second text, in which common information corresponding to the anaphora is not reflected. For example, the second NLU model 2332 can output "time information provided" as an intention and output "current (time)" and "current (location)" as parameters.

[0149] Subsequently, the second electronic device 2000 can extract common information from the common information DB 2341 corresponding to the reference phrase "there (location)" in the output value of the second NLU model 2332, and can replace the reference phrase "there (location)" with the extracted common information. For example, the second electronic device 2000 can replace the reference phrase "there (location)" with "London (geographic point (latitude: 51.50853, longitude: -0.12574))". Although in Figure 10The value output by the second NLU model 2332 is replaced by the GPS value, but the embodiments of this disclosure are not limited thereto. In order for the second electronic device 2000 to provide voice assistant services to the user, the value output by the second NLU model 2332 can replace the preset format value used as the result of interpreting text.

[0150] Figure 11 This is an illustration of the generation and use of public information according to embodiments of this disclosure.

[0151] Reference Figure 11 In the voice assistant module 110 that provides weather news, a geopoint 112 can be identified, wherein the geopoint 112 is a weather-related location value in a preset format of version 9.26.16, and a base geopoint 114 can be generated and stored, wherein the base geopoint 114 is public information in a predetermined format, which represents the geopoint 112 as the identified location value.

[0152] The voice assistant module 114 that provides a world clock can identify a geographic point 116 from a base geographic point 114 which serves as public information, and can use the geographic point 116 to provide time information corresponding to the location, wherein the geographic point 116 is a location value with a preset format of version 9.26.28.

[0153] The geographic point 116, serving as a location value, can be converted into a value that can be used by the voice assistant module 114, which provides a world clock. For example, the voice assistant module 114, which provides a world clock, can generate a base location 118, and can use the base location 118, which serves as the generated location value, to provide the current date and time at the corresponding location, where the base location 118 is the location value on the map corresponding to the geographic point 116, which serves as the location value.

[0154] In this scenario, for example, geographic point 112 could be data operated by a voice assistant module that manages geographic information in version 9.26.16, and geographic point 116 could be data operated by a voice assistant module that manages geographic information in version 9.26.28. However, embodiments of this disclosure are not limited thereto.

[0155] Although the above description has described how the geographic point 116 as a location value is converted into a value usable by the voice assistant module 114, embodiments of this disclosure are not limited thereto. The geographic point 116 as a location value may be converted by another voice assistant module. For example, the base location 118 on a map corresponding to the geographic point 116 as a location value may be generated by a voice assistant module for managing geographic information in version 9.26.28, and the generated location value may be used by the voice assistant module 114 that provides a world clock.

[0156] Figure 12a The embodiments of this disclosure illustrate the selection and storage of some common information of the same type by considering the results of providing voice assistant services.

[0157] Reference Figure 12a It can generate public information indicating the location of "Jongno" from the user's text "Please tell me the nearest train station to Jongno." It can also provide the user with the response message "Seoul Station is nearby."

[0158] When the user's text "Thank you." is received, the second electronic device 2000 can recognize that the correct response message for the user's intent has been provided to the user, and can store the public information indicating the location of "Seoul Station" in the public information DB 2341.

[0159] When the user's text "Please tell me another place." is obtained, the second electronic device 2000 can recognize that an erroneous response message has been provided to the user regarding the user's intent, and can store the public information indicating the location of "Jongro" in the public information DB 2341.

[0160] Figure 12b This illustrates how, according to embodiments of the present disclosure, different types of public information are selected and stored by considering the results of providing voice assistant services.

[0161] Reference Figure 12b It can generate a public message indicating "3 PM" from the user's text "Please tell me your schedule for tomorrow at 3 PM." It can also provide the user with a response message to their text, such as "You have a meeting at the Samsung R&D Center at 3 PM."

[0162] When the user's text "Thank you." is received, the second electronic device 2000 can recognize that the correct response message for the user's intent has been provided, and can store the public information indicating "3 p.m." and the public information indicating the location of "Samsung R&D Center" in the public information DB 2341.

[0163] When the user's text "Please be more specific." is obtained, the second electronic device 2000 can recognize that an error response message has been provided to the user regarding the user's intent, and can store the public information indicating "3 p.m." in the public information DB 2341.

[0164] Figure 12c This illustrates how, according to embodiments of the present disclosure, some common information is selected and stored based on the results of providing voice assistant services and additional user input.

[0165] Reference Figure 12c The second electronic device 2000 can generate public information indicating the location of "Seoul Station" from the user's text, "Please tell me about famous restaurants near Seoul Station." A response message to the user's text, "50 famous restaurants found. Please select the restaurant you are interested in," can be provided to the user. Subsequently, when the user selects at least one restaurant from the 50 famous restaurants, the second electronic device 2000 can generate public information indicating the location of the restaurant selected by the user. The second electronic device 2000 can store the public information indicating the location of "Seoul Station" and the public information indicating the location of the restaurant selected by the user in public information DB 2341.

[0166] exist Figure 12a , Figure 12b and Figure 12c In this context, multiple pieces of public information are generated and stored based on the results of providing voice assistant services. However, the method for generating and storing public information is not limited to this. Various rules for generating, storing, and selecting public information can be set based on factors such as the type of user query, the characteristics of the voice assistant service, and user feedback.

[0167] Embodiments of this disclosure can also be implemented in the form of a recording medium including computer-executable instructions, such as a computer-executable program module. A computer-readable medium can be any available medium accessible by a computer, and includes volatile and non-volatile media, as well as removable and non-removable media. A computer-readable medium may also include a computer storage medium. Computer storage media includes volatile and non-volatile media, removable and non-removable media implemented using any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).

[0168] Furthermore, computer-readable storage media may be provided in the form of non-transitory storage media. Here, "non-transitory storage media" refers to a tangible device and may not contain signals (e.g., electromagnetic waves). This term does not distinguish between cases where data is stored semi-permanently in the storage medium and cases where data is temporarily stored. For example, "non-transitory storage media" may include buffers for temporarily storing data.

[0169] According to embodiments of this disclosure, methods according to various disclosed embodiments can be provided by being included in a computer program product. The computer program product is a commodity and therefore can be traded between a seller and a buyer. The computer program product is distributed in the form of a device-readable storage medium (e.g., an optical disc read-only memory (CD-ROM)) or can be distributed through an app store (e.g., the Play Store). TM This can be done directly and online between two user devices (e.g., smartphones) (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product (e.g., a downloadable application) may be stored at least temporarily in a device-readable storage medium (such as the memory of a manufacturer's server, an app store's server, or a relay server), or may be temporarily generated.

[0170] As used herein, the term "unit" can refer to a hardware component such as a processor or circuit, and / or a software component executed by a hardware component such as a processor.

[0171] The expression “including at least one of a, b, or c” as used in this document may mean, for example, “including only a”, “including only b”, “including only c”, “including both a and b”, “including both b and c”, “including both a and c”, or “including both a, b, and c”.

[0172] The functions related to AI according to this disclosure are operated via processors and memory. The processors may include one or more processors. These processors may include, for example, but not limited to, general-purpose processors (such as CPUs, APs, or digital signal processors (DSPs)), graphics processors (such as GPUs), vision processing units (VPUs), AI-only processors (such as NPUs), etc. The one or more processors are controlled to process input data according to predefined operating rules or AI models stored in memory. When the one or more processors are AI-only processors, the AI-only processor may be designed as a hardware architecture dedicated to processing a specific AI model.

[0173] Predefined operating rules or AI models can refer to models created through learning. Here, "through learning" can mean, for example, learning a basic AI model using multiple learning data through a learning algorithm, thereby creating predefined operating rules or AI models, wherein the operating rules or AI models are configured to perform desired characteristics (or purposes). This learning can be performed within the apparatus itself that performs the AI ​​according to this disclosure, or it can be performed via a separate server and / or system. Examples of learning algorithms include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning.

[0174] The AI ​​model may include multiple neural network layers. Each of the multiple neural network layers may have multiple weight values, and neural network operations are performed by operations between the results of operations of previous layers and the multiple weight values. The multiple weight values ​​of the multiple neural network layers can be optimized by the learning results of the AI ​​model. For example, multiple weight values ​​can be updated to reduce or minimize the loss or cost values ​​obtained from the AI ​​model during learning processing. Artificial neural networks may include deep neural networks (DNNs), including, for example, convolutional neural networks (CNNs), deep neural networks (DNNs), recurrent neural networks (RNNs), restricted Boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), deep Q-networks, etc., but embodiments of this disclosure are not limited thereto.

[0175] In a method for providing a voice assistant service related to text including anaphora according to embodiments of the present disclosure, the device receives a speech signal as an analog signal via a microphone and converts the speech signal into computer-readable text using an Automatic Speech Recognition (ASR) model to recognize the user's speech and interpret the user's intent. The user's utterance intent can be obtained by interpreting the converted text using a Natural Language Understanding (NLU) model. The ASR model or NLU model can be an AI model. The AI ​​model can be processed by an AI-only processor designed with hardware architecture specifically for processing AI models. AI models can be created through learning.

[0176] Language understanding can refer to technologies such as recognizing and applying / processing human language / characters, and therefore includes natural language processing, machine translation, dialogue systems, question answering, and speech recognition / speech synthesis, etc.

[0177] In a method for providing a voice assistant service related to text including anaphora according to embodiments of the present disclosure, an AI model can be used to determine common information corresponding to target words from the text. The processor can perform preprocessing on the text to convert it into a format suitable for use as input to the AI ​​model. The AI ​​model can be created through learning.

[0178] Reasoning and prediction can refer to techniques used to logically reason and predict information by judging it. Examples of reasoning and prediction include knowledge-based reasoning, optimization prediction, preference-based planning, and recommendation.

[0179] While this disclosure has been shown and described with reference to various exemplary embodiments, it should be understood that these exemplary embodiments are intended to be illustrative and not restrictive. Those skilled in the art will further understand that various changes in form and detail may be made therein without departing from the true spirit and full scope of this disclosure, including the appended claims and their equivalents. Therefore, the above embodiments should be considered descriptive only and not for limiting purposes. For example, each component described as a single type may be implemented in a distributed manner, and similarly, components described as distributed may be implemented in a composite manner.

Claims

1. A method for providing a voice assistant service performed by an electronic device, the method comprising: Obtain the first text generated from the first input; Using a first Natural Language Understanding (NLU) model, target words are detected in a first text and common information related to the detected target words is generated, wherein the common information includes detailed data representing the target words; Obtain the second text generated from the second input; The public information and the second text are input into the second NLU model; Using a second NLU model, references included in the second text are detected, and intentions and parameters are obtained based on common information corresponding to the detected references; and Generate response information related to the intention and the parameters. The detailed data of the public information has a format that can be jointly recognized by multiple voice assistant modules targeting multiple domains.

2. The method according to claim 1, further comprising: Use the first NLU model to identify the domain corresponding to the first text; and The public information is matched with the domain, and the matching results are stored. The step of inputting the common information and the second text into the second NLU model includes: inputting the common information and the second text stored by matching the domain into the second NLU model.

3. The method according to claim 2, further comprising: The first NLU model is used to identify the domains of the second text. The step of inputting the common information and the second text into the second NLU model includes: inputting the common information and the second text associated with the domain of the second text into the second NLU model.

4. The method according to claim 2, wherein, The first NLU model includes an artificial intelligence (AI) model trained using text as learning data, wherein the text is labeled with a type of common information and a domain of the text.

5. The method according to claim 1, further comprising: The first NLU model is used to identify the domains of the second text; and Select the model that corresponds to the domain of the identified second text from among multiple NLU models as the second NLU model.

6. The method according to claim 5, wherein, The target words include words indicated by anaphora, and include words indicating at least one of location, date, time, or person.

7. The method according to claim 3, further comprising: The common information associated with the second text is converted into a format usable by the voice assistant module corresponding to the domain of the identified second text. The second text is interpreted using the public information having the available format.

8. The method according to claim 1, wherein, Accumulate and store multiple pieces of common information about the target words included in the text obtained before obtaining the second text.

9. The method according to claim 1, further comprising: The target words in the first text were detected using a second NLU model. and Correct the public information corresponding to the target words.

10. The method according to claim 1, further comprising: The first NLU model was used to detect target words in the second text; as well as Replace the common information corresponding to the target words in the first text with common information corresponding to the target words in the second text.

11. A server configured to provide a voice assistant service, wherein, The server includes: A communication interface, including communication circuitry configured to communicate with an electronic device; At least one processor; and The memory stores one or more instructions that, when executed by the at least one processor, cause the at least one processor to control the server to perform the following operations: Obtain the first text generated from the first input to the electronic device. Using a first Natural Language Understanding (NLU) model, target words are detected within a first text, and common information related to the detected target words is generated. This common information includes detailed data representing the target words. Obtain the second text generated from the second input. The common information and the second text are input into the second NLU model. Using a second NLU model, references included in the second text are detected, and intentions and parameters are obtained based on common information corresponding to the detected references. Generate response information related to the intention and the parameters. The detailed data of the public information has a format that can be jointly recognized by multiple voice assistant modules targeting multiple domains.

12. The server according to claim 11, wherein, The memory stores instructions that, when executed by the at least one processor, cause the at least one processor to control the server to perform the following operations: The first NLU model is used to identify the domains corresponding to the first text. Match the public information with the domain and store the matching results, and The public information and the second text, stored by matching the domain, are input into the second NLU model.

13. The server according to claim 12, wherein, The memory stores instructions that, when executed by the at least one processor, cause the at least one processor to control the server to perform the following operations: The first NLU model is used to identify the domains of the second text, and The common information associated with the domain of the second text and the second text are input into the second NLU model.

14. The server according to claim 12, wherein, The first NLU model includes an artificial intelligence (AI) model trained using text as learning data, wherein the text is labeled with a type of common information and a domain of the text.

15. A computer-readable recording medium, wherein, A computer program for performing the method according to claim 1 is recorded on the computer-readable recording medium.

Citation Information

Patent Citations

  • Speaker based anaphora resolution

    US20200143814A1