The disclosure relates to an electronic device. More particularly, the disclosure relates to an electronic device and a method of obtaining a natural language understanding (NLU) parameter by an electronic device for obtaining a user input, such as a voice and text, and outputting a processing result of NLU.
With the development of mobile communication technology and processor technology, portable electronic devices (hereinafter, electronic devices) can implement various functions in addition to a conventional call function. Further, a variety of platforms may provide interactive services based on artificial intelligence or natural language understanding (NLU), such as a voice assistant or a chatbot, for electronic devices.
A user may perform a desired function by giving a command to an electronic device through utterance or text. For example, a service for performing designated intent rather than a simple conversation, such as a task-oriented chatbot, may be provided through an electronic device. An artificial intelligence (AI) engine that provides such a service needs to understand a user's command, understand the intent of the user, and obtain a necessary parameter.
The above information is presented as background information only, and to assist with an understanding of the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure.
An AI engine (e.g., a voice assistant or a chatbot) may lack parameters necessary to understand and process a command from a user. In this case, to obtain the necessary parameters, the AI engine needs to send an additional inquiry to the user, and the user is required to respond appropriately. This process of continuously asking the user about information required to process the command of the user may cause the user to feel tired and may have a negative impact on the overall experience of the user.
Aspects of the disclosure are to address at least the above-mentioned problems and/or disadvantages, and to provide at least the advantages described below. Accordingly, an aspect of the disclosure is to provide an electronic device and a method of obtaining a parameter for natural language understanding that are capable of performing a function corresponding to a user input without an additional query even when there is a lack of parameters required for intent extracted from the user input.
Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments.
In accordance with an aspect of the disclosure, an electronic device is provided. The electronic device includes a display including a touchscreen, a microphone configured to receive a voice input from a user, a memory, and at least one processor configured to be operatively connected to the display, the microphone, and the memory, wherein the at least one processor may be configured to obtain an instruction based on text that is input through a touch input on the display or a voice input that is input through the microphone, obtain intent corresponding to the instruction, identify at least one parameter additionally required to perform an operation corresponding to the obtained intent, and obtain the at least one additionally required parameter from at least one application stored in the memory.
In accordance with another aspect of the disclosure, a method for obtaining a parameter for natural language understanding by an electronic device is provided. The method includes obtaining an instruction based on a touch input or a voice input from a user, obtaining intent corresponding to the instruction, identifying at least one parameter additionally required to perform an operation corresponding to the obtained intent, and obtaining the at least one additionally required parameter from at least one application.
According to the various aspects of the disclosure, it is possible to provide an electronic device and a method of obtaining a parameter for natural language understanding that are capable of performing a function corresponding to a user input without an additional query by obtaining a lacking parameter from a different domain (or application) even when there is a lack of parameters required for intent extracted from the user input.
Other effects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure.
The above and other aspects, features, and advantages of certain embodiments of the disclosure will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:
Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures.
The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of various embodiments of the disclosure as defined by the claims and their equivalents. It includes various specific details to assist in that understanding but these are to be regarded as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the various embodiments described herein can be made without departing from the scope and spirit of the disclosure. In addition, descriptions of well-known functions and constructions may be omitted for clarity and conciseness.
The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used to enable a clear and consistent understanding of the disclosure. Accordingly, it should be apparent to those skilled in the art that the following description of various embodiments of the disclosure is provided for illustration purpose only and not for the purpose of limiting the disclosure as defined by the appended claims and their equivalents.
It is to be understood that the singular forms “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to “a component surface” includes reference to one or more of such surfaces.
Referring to
The at least one processor 120 may execute, for example, software (e.g., a program 140) to control at least one other component (e.g., a hardware or software component) of the electronic device 101 coupled with the at least one processor 120, and may perform various data processing or computation. According to one embodiment, as at least part of the data processing or computation, the at least one processor 120 may store a command or data received from another component (e.g., the sensor module 176 or the communication module 190) in volatile memory 132, process the command or the data stored in the volatile memory 132, and store resulting data in non-volatile memory 134. According to an embodiment, the at least one processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)), and/or an auxiliary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor 121. For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or to be specific to a specified function. The auxiliary processor 123 may be implemented as separate from, or as part of the main processor 121.
The auxiliary processor 123 may control at least some of functions or states related to at least one component (e.g., the display module 160, the sensor module 176, or the communication module 190) among the components of the electronic device 101, instead of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or together with the main processor 121 while the main processor 121 is in an active state (e.g., executing an application). According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., the camera module 180 or the communication module 190) functionally related to the auxiliary processor 123. According to an embodiment, the auxiliary processor 123 (e.g., the neural processing unit) may include a hardware structure specified for artificial intelligence model processing. An artificial intelligence model may be generated by machine learning. Such learning may be performed, e.g., by the electronic device 101 where the artificial intelligence is performed or via a separate server (e.g., the server 108). Learning algorithms may include, but are not limited to, e.g., supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning. The artificial intelligence model may include a plurality of artificial neural network layers. The artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), deep Q-network or a combination of two or more thereof, but is not limited thereto. The artificial intelligence model may, additionally or alternatively, include a software structure other than the hardware structure.
The memory 130 may store various data used by at least one component (e.g., the at least one processor 120 or the sensor module 176) of the electronic device 101. The various data may include, for example, software (e.g., the program 140) and input data or output data for a command related thereto. The memory 130 may include the volatile memory 132 or the non-volatile memory 134. The non-volatile memory 134 may include an internal memory 136 and/or an external memory 138.
The program 140 may be stored in the memory 130 as software, and may include, for example, an operating system (OS) 142, middleware 144, and/or an application 146.
The input module 150 may receive a command or data to be used by another component (e.g., the at least one processor 120) of the electronic device 101, from the outside (e.g., a user) of the electronic device 101. The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
The sound output module 155 may output sound signals to the outside of the electronic device 101. The sound output module 155 may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as playing multimedia or playing record. The receiver may be used for receiving incoming calls. According to an embodiment, the receiver may be implemented as separate from, or as part of the speaker.
The display module 160 may visually provide information to the outside (e.g., a user) of the electronic device 101. The display module 160 may include, for example, a display, a hologram device, or a projector and control circuitry to control a corresponding one of the display, hologram device, and projector. According to an embodiment, the display module 160 may include a touch sensor adapted to detect a touch, or a pressure sensor adapted to measure the intensity of force incurred by the touch.
The audio module 170 may convert a sound into an electrical signal and vice versa. According to an embodiment, the audio module 170 may obtain the sound via the input module 150, or output the sound via the sound output module 155 or a headphone of an external electronic device (e.g., an electronic device 102) directly (e.g., wiredly) or wirelessly coupled with the electronic device 101.
The sensor module 176 may detect an operational state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) external to the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
The interface 177 may support one or more specified protocols to be used for the electronic device 101 to be coupled with the external electronic device (e.g., the electronic device 102) directly (e.g., wiredly) or wirelessly. According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
The connecting terminal 178 may include a connector via which the electronic device 101 may be physically connected with the external electronic device (e.g., the electronic device 102). According to an embodiment, the connecting terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
The haptic module 179 may convert an electrical signal into a mechanical stimulus (e.g., a vibration or a movement) or electrical stimulus which may be recognized by a user via his tactile sensation or kinesthetic sensation. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electric stimulator.
The camera module 180 may capture a still image or moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
The power management module 188 may manage power supplied to or consumed by the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least part of, for example, a power management integrated circuit (PMIC).
The battery 189 may supply power to at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a primary cell which is not rechargeable, a secondary cell which is rechargeable, a fuel cell, or a combination thereof.
The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and the external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108) and performing communication via the established communication channel. The communication module 190 may include one or more communication processors that are operable independently from the at least one processor 120 (e.g., the application processor (AP)) and supports a direct (e.g., wired) communication or a wireless communication. According to an embodiment, the communication module 190 may include a transceiver and/or a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) and/or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules may communicate with the external electronic device via the first network 198 (e.g., a short-range communication network, such as Bluetooth™, wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA)) or the second network 199 (e.g., a long-range communication network, such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or wide area network (WAN))). These various types of communication modules may be implemented as a single component (e.g., a single chip), or may be implemented as multi components (e.g., multi chips) separate from each other. The wireless communication module 192 may identify and authenticate the electronic device 101 in a communication network, such as the first network 198 or the second network 199, using subscriber information (e.g., international mobile subscriber identity (IMSI)) stored in the subscriber identification module 196.
The wireless communication module 192 may support a 5G network, after a 4G network, and next-generation communication technology, e.g., new radio (NR) access technology. The NR access technology may support enhanced mobile broadband (eMBB), massive machine type communications (mMTC), or ultra-reliable and low-latency communications (URLLC). The wireless communication module 192 may support a high-frequency band (e.g., the mmWave band) to achieve, e.g., a high data transmission rate. The wireless communication module 192 may support various technologies for securing performance on a high-frequency band, such as, e.g., beamforming, massive multiple-input and multiple-output (massive MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large-scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101, an external electronic device (e.g., the electronic device 104), or a network system (e.g., the second network 199). According to an embodiment, the wireless communication module 192 may support a peak data rate (e.g., 20 Gbps or more) for implementing eMBB, loss coverage (e.g., 164 dB or less) for implementing mMTC, or U-plane latency (e.g., 0.5 ms or less for each of downlink (DL) and uplink (UL), or a round trip of 1 ms or less) for implementing URLLC.
The antenna module 197 may transmit or receive a signal or power to or from the outside (e.g., the external electronic device) of the electronic device 101. According to an embodiment, the antenna module 197 may include an antenna including a radiating element composed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 may include a plurality of antennas (e.g., array antennas). In such a case, at least one antenna appropriate for a communication scheme used in the communication network, such as the first network 198 or the second network 199, may be selected, for example, by the communication module 190 (e.g., the wireless communication module 192) from the plurality of antennas. The signal or the power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as part of the antenna module 197.
According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to an embodiment, the mmWave antenna module may include a printed circuit board, a RFIC disposed on a first surface (e.g., the bottom surface) of the printed circuit board, or adjacent to the first surface and capable of supporting a designated high-frequency band (e.g., the mmWave band), and a plurality of antennas (e.g., array antennas) disposed on a second surface (e.g., the top or a side surface) of the printed circuit board, or adjacent to the second surface and capable of transmitting or receiving signals of the designated high-frequency band.
At least some of the above-described components may be coupled mutually and communicate signals (e.g., commands or data) therebetween via an inter-peripheral communication scheme (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)).
According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 via the server 108 coupled with the second network 199. Each of the electronic devices 102 or 104 may be a device of a same type as, or a different type, from the electronic device 101. According to an embodiment, all or some of operations to be executed at the electronic device 101 may be executed at one or more of the external electronic devices 102, 104, or 108. For example, if the electronic device 101 should perform a function or a service automatically, or in response to a request from a user or another device, the electronic device 101, instead of, or in addition to, executing the function or the service, may request the one or more external electronic devices to perform at least part of the function or the service. The one or more external electronic devices receiving the request may perform the at least part of the function or the service requested, or an additional function or an additional service related to the request, and transfer an outcome of the performing to the electronic device 101. The electronic device 101 may provide the outcome, with or without further processing of the outcome, as at least part of a reply to the request. To that end, a cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device 101 may provide ultra low-latency services using, e.g., distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet-of-things (IoT) device. The server 108 may be an intelligent server using machine learning and/or a neural network. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology or IoT-related technology.
The electronic device according to various embodiments may be one of various types of electronic devices. The electronic devices may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. According to an embodiment of the disclosure, the electronic devices are not limited to those described above.
It should be appreciated that various embodiments of the disclosure and the terms used therein are not intended to limit the technological features set forth herein to particular embodiments and include various changes, equivalents, or replacements for a corresponding embodiment. With regard to the description of the drawings, similar reference numerals may be used to refer to similar or related elements. It is to be understood that a singular form of a noun corresponding to an item may include one or more of the things, unless the relevant context clearly indicates otherwise. As used herein, each of such phrases as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B, or C,” “at least one of A, B, and C,” and “at least one of A, B, or C,” may include any one of, or all possible combinations of the items enumerated together in a corresponding one of the phrases. As used herein, such terms as “1st” and “2nd,” or “first” and “second” may be used to simply distinguish a corresponding component from another, and does not limit the components in other aspect (e.g., importance or order). It is to be understood that if an element (e.g., a first element) is referred to, with or without the term “operatively” or “communicatively,” as “coupled with,” “coupled to,” “connected with,” or “connected to” another element (e.g., a second element), it means that the element may be coupled with the other element directly (e.g., wiredly), wirelessly, or via a third element.
As used in connection with various embodiments of the disclosure, the term “module” may include a unit implemented in hardware, software, or firmware, and may interchangeably be used with other terms, for example, “logic,” “logic block,” “part,” or “circuitry.” A module may be a single integral component, or a minimum unit or part thereof, adapted to perform one or more functions. For example, according to an embodiment, the module may be implemented in a form of an application-specific integrated circuit (ASIC).
Various embodiments as set forth herein may be implemented as software (e.g., the program 140) including one or more instructions that are stored in a storage medium (e.g., internal memory 136 or external memory 138) that is readable by a machine (e.g., the electronic device 101). For example, a processor (e.g., the at least one processor 120) of the machine (e.g., the electronic device 101) may invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor. This allows the machine to be operated to perform at least one function according to the at least one instruction invoked. The one or more instructions may include a code generated by a complier or a code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Wherein, the term “non-transitory” simply means that the storage medium is a tangible device, and does not include a signal (e.g., an electromagnetic wave), but this term does not differentiate between where data is semi-permanently stored in the storage medium and where the data is temporarily stored in the storage medium.
According to an embodiment, a method according to various embodiments of the disclosure may be included and provided in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded) online via an application store (e.g., PlayStore™), or between two user devices (e.g., smart phones) directly. If distributed online, at least part of the computer program product may be temporarily generated or at least temporarily stored in the machine-readable storage medium, such as memory of the manufacturer's server, a server of the application store, or a relay server.
According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single entity or multiple entities, and some of the multiple entities may be separately disposed in different components. According to various embodiments, one or more of the above-described components may be omitted, or one or more other components may be added. Alternatively or additionally, a plurality of components (e.g., modules or programs) may be integrated into a single component. In such a case, according to various embodiments, the integrated component may still perform one or more functions of each of the plurality of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration. According to various embodiments, operations performed by the module, the program, or another component may be carried out sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order or omitted, or one or more other operations may be added.
Referring to
The user terminal 210 of an embodiment may be a terminal device (or electronic device) that can be connected to the Internet, for example, a mobile phone, a smartphone, a personal digital assistant (PDA), a notebook computer, a TV, a domestic appliance, a wearable device, an HMD, or a smart speaker.
According to the illustrated embodiment, the user terminal 210 may include a communication interface 213, a microphone 212, a speaker 216, a display 211, a memory 215, and/or at least one processor 214. The listed components may be operatively or electrically connected to each other. The user terminal 210 may include at least some of the components and/or functions of the electronic device 100 of
The communication interface 213 according to an embodiment may be configured to be connected to an external device to transmit and receive data. The microphone 212 according to an embodiment may receive a sound (e.g., a user's utterance) and may convert the sound into an electrical signal. The speaker 216 according to an embodiment may output an electrical signal as a sound (e.g., a voice). The display 211 according to an embodiment may be configured to display an image or a video. Further, the display 211 according to an embodiment may display a graphic user interface (GUI) of an executed application (or application program).
The memory 215 according to an embodiment may store a client module 218, a software development kit (SDK) 217, and a plurality of applications 219a and 219b. The client module 218 and the SDK 217 may form a framework (or a solution program) for performing a general-purpose function. In addition, the client module 218 or the SDK 217 may form a framework for processing a voice input.
The plurality of applications 219a and 219b in the memory 215 according to an embodiment may be programs for performing a designated function. According to an embodiment, the plurality of applications may include a first application 219a and a second application 219b. According to an embodiment, each of the plurality of applications 219a and 219b may include a plurality of operations for performing a designated function. For example, the applications 219a and 219b may include an alarm application, a message application, and/or a schedule application. According to an embodiment, the plurality of applications 219a and 219b may be executed by the at least one processor 214 to sequentially execute at least some of the plurality of operations.
The at least one processor 214 according to an embodiment may control the overall operation of the user terminal 210. For example, the at least one processor 214 may be electrically connected to the communication interface 213, the microphone 212, the speaker 216, and the display 211 to perform a designated operation.
The at least one processor 214 according to an embodiment may also execute a program stored in the memory 215 to perform a designated function. For example, the at least one processor 214 may execute at least one of the client module 218 or the SDK 217 to perform the following operation for processing a voice input. The at least one processor 214 may control the operation of the plurality of applications 219a and 219b, for example, through the SDK 217. An operation to be described below as the operation of the client module 218 or the SDK 217 may be an operation by execution by the at least one processor 214.
The client module 218 according to an embodiment may receive a voice input. For example, the client module 218 may receive a voice signal corresponding to a user's utterance detected through the microphone 212. The client module 218 may transmit the received voice input to the intelligent server 230. The client module 218 may transmit state information about the user terminal 210, together with the received voice input, to the intelligent server 230. The state information may be, for example, execution state information about an application.
The client module 218 according to an embodiment may also receive a result corresponding to the received voice input. For example, when the intelligent server 230 can produce the result corresponding to the received voice input, the client module 218 may receive the result corresponding to the received voice input. The client module 218 may display the received result on the display 211.
The client module 218 according to an embodiment may also receive a plan corresponding to the received voice input. The client module 218 may display a result of executing a plurality of operations of an application according to the plan on the display 211. For example, the client module 218 may sequentially display results of executing the plurality of operations on the display 211. In another example, the user terminal 210 may display only some (e.g., a result of executing the last operation) of the results of executing the plurality of operations on the display 211.
According to an embodiment, the client module 218 may also receive a request for obtaining information required to produce the result corresponding to the voice input from the intelligent server 230. According to an embodiment, the client module 218 may transmit the required information to the intelligent server 230 in response to the request.
The client module 218 according to an embodiment may transmit information about the result of executing the plurality of operations according to the plan to the intelligent server 230. The intelligent server 230 may identify that the received voice input has been properly processed using the information about the result.
The client module 218 according to an embodiment may include a voice recognition module. According to an embodiment, the client module 218 may recognize a voice input for performing a limited function through the voice recognition module. For example, the client module 218 may perform an intelligent application for processing a voice input for performing an organic operation through a designated input (e.g., Wake up!).
The intelligent server 230 according to an embodiment may receive information relating to a user voice input from the user terminal 210 through a communication network. According to an embodiment, the intelligent server 230 may change data relating to the received voice input into text data. According to an embodiment, the intelligent server 230 may generate, based on the text data, a plan for performing a task corresponding to the user voice input.
According to one embodiment, the plan may be generated by an artificial intelligence (AI) system. The artificial intelligence system may be a rule-based system or a neural network-based system (e.g., a feedforward neural network (FNN)), or a recurrent neural network (RNN). Alternatively, the artificial intelligence system may be a combination of the above systems or a different artificial intelligence system. According to an embodiment, the plan may be selected from a set of predefined plans, or may be generated in real time in response to a user request. For example, the artificial intelligence system may select at least the plan from among a plurality of predefined plans.
The intelligent server 230 according to an embodiment may transmit a result according to the generated plan to the user terminal 210 or may transmit the generated plan to the user terminal 210. According to an embodiment, the user terminal 210 may display the result according to the plan on the display 211. According to an embodiment, the user terminal 210 may display a result of executing an operation according to the plan on the display 211.
The intelligent server 230 according to an embodiment may include a front end 231, a natural language platform 232, a capsule database (DB) 238, an execution engine 233, an end user interface 234, a management platform 235, a big data platform 236, and/or an analytic platform 237.
The front end 231 according to an embodiment may receive a voice input received from the user terminal 210 via a network 240. The front end 231 may transmit a response corresponding to the voice input.
According to an embodiment, the natural language platform 232 may include an automatic speech recognition module (ASR module) 232a, a natural language understanding module (NLU module) 232b, a planner module 232c, a natural language generator module (NLG module) 232d, and/or a text-to-speech module (TTS module) 232e.
The ASR module 232a according to an embodiment may convert a voice input received from the user terminal 210 into text data. The NLU module 232b according to an embodiment may understand a user's intent using the text data of the voice input. For example, the NLU module 232b may understand the user's intent by performing a syntactic analysis or a semantic analysis. The NLU module 232b according to an embodiment may understand the meaning of a word extracted from the voice input using a linguistic feature (e.g., a syntactic element) of a morpheme or phrase and may determine the user's intent by matching the understood meaning of the word to intent.
The planner module 232c according to an embodiment may generate a plan using the intent determined by the NLU module 232b and a parameter. According to an embodiment, the planner module 232c may determine a plurality of domains necessary to perform a task based on the determined intent. The planner module 232c may determine a plurality of operations respectively included in the plurality of domains determined based on the intent. According to an embodiment, the planner module 232c may determine a parameter required to execute the plurality of determined operations or a result value output by executing the plurality of operations. The parameter and the result value may be defined as a concept in a designated format (or class). Accordingly, the plan may include the plurality of operations determined by the intent of the user and a plurality of concepts. The planner module 232c may determine a relationship between the plurality of operations and the plurality of concepts by stages (or hierarchically). For example, the planner module 232c may determine the execution order of the plurality of operations, determined based on the user's intent, based on the plurality of concepts. That is, the planner module 232c may determine the execution order of the plurality of operations, based on the parameter required to execute the plurality of operations and the result output by executing the plurality of operations. Accordingly, the planner module 232c may generate a plan including association information (e.g., ontology) between the plurality of operations and the plurality of concepts. The planner module 232c may generate a plan using information stored in a capsule database in which a set of relationships between concepts and operations is stored.
The NLG module 232d according to an embodiment may change designated information into a text form. The information changed into the text form may be in the form of a natural language utterance. The TTS module 232e according to an embodiment may change information in the text form into information in a voice form.
According to an embodiment, some or all functions of the natural language platform 232 may also be implemented in the user terminal 210.
The capsule database may store information about a relationship between a plurality of concepts and a plurality of operations corresponding to a plurality of domains. A capsule according to an embodiment may include a plurality of action objects (or pieces of action information) and a plurality of concept objects (or pieces concept information) included in a plan. According to an embodiment, the capsule database may store a plurality of capsules in the form of a concept action network (CAN). According to an embodiment, the plurality of capsules may be stored in a function registry included in the capsule database.
The capsule database may include a strategy registry that stores strategy information required to determine a plan corresponding to a voice input. The strategy information may include reference information for determining one plan when there is a plurality of plans corresponding to the voice input. According to an embodiment, the capsule database may include a follow-up registry that stores information about a follow-up for suggesting a follow-up to the user in a specified situation. The follow-up may include, for example, a following utterance. According to an embodiment, the capsule database may include a layout registry that stores layout information about information output through the user terminal 210. According to an embodiment, the capsule database may include a vocabulary registry that stores vocabulary information included in capsule information. According to an embodiment, the capsule database may include a dialog registry that stores information about a dialog (or interaction) with the user. The capsule database may update a stored object through a developer tool. The developer tool may include, for example, a function editor for updating an action object or a concept object. The developer tool may include a vocabulary editor for updating vocabulary. The developer tool may include a strategy editor for generating and registering a strategy for determining a plan. The developer tool may include a dialog editor that generates a dialog with the user. The developer tool may include a follow-up editor capable of activating a following target and editing a following utterance providing a hint. The following target may be determined based on a currently set target, user preference, or an environmental condition. In an embodiment, the capsule database can also be implemented in the user terminal 210.
The execution engine 233 according to an embodiment may produce a result using the generated plan. The end user interface 234 may transmit the produced result to the user terminal 210. Accordingly, the user terminal 210 may receive the result and may provide the received result to the user. The management platform 235 according to an embodiment may manage information used in the intelligent server 230. The big data platform 236 according to an embodiment may collect user data. The analytic platform 237 according to an embodiment may manage the quality of service (QoS) of the intelligent server 230. For example, the analytic platform 237 may manage a component and the processing speed (or efficiency) of the intelligent server 230.
The service server 250 according to an embodiment may provide a designated service (e.g., a food delivery service or a hotel reservation service) to the user terminal 210, including CP service A 251, CP service B 252, and/or CP service C 253, for example. According to an embodiment, the service server 250 may be a server operated by a third party. The service server 250 according to an embodiment may provide information for generating a plan corresponding to a received voice input to the intelligent server 230. The provided information may be stored in the capsule database. In addition, the service server 250 may provide result information according to the plan to the intelligent server 230.
In the foregoing integrated intelligent system, the user terminal 210 may provide various intelligent services to the user in response to a user input. The user input may include, for example, an input through a physical button, a touch input, or a voice input.
In an embodiment, the user terminal 210 may provide a voice recognition service through an intelligent application (or voice recognition application) stored therein. In this case, for example, the user terminal 210 may recognize a user utterance or a voice input received through the microphone 212 and may provide a service corresponding to the recognized voice input to the user.
In an embodiment, the user terminal 210 may perform a designated operation alone or together with the intelligent server 230 and/or the service server 250, based on the received voice input. For example, the user terminal 210 may execute an application corresponding to the received voice input and may perform the designated operation through the executed application.
In an embodiment, when the user terminal 210 provides a service together with the intelligent server 230 and/or the service server 250, the user terminal 210 may detect a user utterance using the microphone 212 and may generate a signal (or voice data) corresponding to the detected user speech. The user terminal 210 may transmit the voice data to the intelligent server 230 using the communication interface 213.
The intelligent server 230 according to an embodiment may generate, as a voice input received from the user terminal 210, a plan for performing a task corresponding to the voice input or a result of performing an operation according to the plan. The plan may include, for example, a plurality of operations for performing the task corresponding to the user's voice input and a plurality of concepts related to the plurality of operations. The concepts may define a parameter input to execute the plurality of operations or a result value output by executing the plurality of operations. The plan may include information about an association between the plurality of operations and the plurality of concepts.
The user terminal 210 according to an embodiment may receive the response using the communication interface 213. The user terminal 210 may output an audio signal generated inside the user terminal 210 to the outside using the speaker 216 or may output an image generated inside the user terminal 210 to the outside using the display 211.
Although
A capsule database (e.g., the capsule database 238 of
Referring to
A natural language platform (e.g., the natural language platform 232 of
Referring to
According to various embodiments, with an intelligent service application (e.g., a voice assistant or a chatbot) executed, the electronic device 410 may obtain an instruction according to an input from a user 490. For example, the user 490 may input text through a touch input on a display of the electronic device 410 or may input a voice through a microphone.
According to various embodiments, the electronic device 410 or the intelligent server 420 may identify the intent of the user 490 from the instruction of the user 490, may determine parameters for performing an operation corresponding to the intent, and may perform the operation corresponding to the intent on a domain in which the intent is executed.
According to various embodiments, a domain is an agent that performs an operation corresponding to an instruction and may include an application, a subtask, a player included in a platform, or a service. Intent may include an intention as to which operation the user 490 inputting an instruction requires.
A parameter may be the value of at least one variable required to perform an operation of designated intent. For example, when the user 490 of the electronic device 410 utters “Please order coffee from shop A,” a domain may be an ordering application of shop A to perform a corresponding operation, intent may be an order for a coffee, or a parameter may be a coffee. In another example, when the user 490 utters “Display the last text message,” a domain may be a contact application that manages a text message, and intent may be text message output. A domain, intent, and a parameter are not limited to the foregoing definitions and may be replaced with different terms available in an intelligent service.
Hereinafter, a set of hardware and/or software components processing a function, such as determining intent, a parameter, and a domain and/or performing an operation, will be defined as an artificial intelligence engine (AI). The AI engine may be configured in the intelligent server 420 (e.g., an intelligent server 750 of
According to various embodiments, there may be insufficient parameters to perform an operation of intent in an instruction input by the user 490 through the electronic device 410. For example, when parameters for performing the operation of the designated intent are a date, a time, and a place but the user 490 inputs only a date and a place through text or a voice, a time parameter may be further needed to perform the operation.
Referring to
For example, the AI engine 580 may identify a soccer match result retrieval as intent corresponding to the utterance, and a team name (Team Name) and date information (Date) as required parameters. In this case, since neither a team name nor date information exists in a parameter extracted from the utterance of the user 590 and the intent cannot be executed due to a lack of parameters, the AI engine 580 may determine a team name and date information as additionally required parameters 512.
According to an embodiment, the AI engine 580 may output a query 513 for obtaining the additionally required parameters 512 through a display (e.g., the display module 160 of
The user 590 may additionally utter “Team Samsung” as information relating to the team name in response to the query 513 of the electronic device (521). The AI engine 580 may additionally obtain a team name parameter by analyzing the additional utterance of the user 590. However, the AI engine 580 may identify that the date information is further needed among the parameters required for the intent of the soccer match result retrieval in the initial utterance 511 and the additional utterance 521 of the user 590 (522). The AI engine 580 may further output a query 523 for obtaining the additionally required parameter.
The user 590 may utter “May 5th game” with information related to the date in response to the query 523 of the electronic device (531). The AI engine 580 may additionally obtain a date information parameter by analyzing the additional utterance 531 of the user 590. The AI engine 580 may identify that all parameters required for the intent of the soccer match result retrieval are obtained (532) and may identify the soccer match result of Team Samsung on May 5th on a domain (e.g., Internet retrieval) corresponding to the intent.
The AI engine 580 may output a message 533 indicating that an operation corresponding to the intent is in progress, and when a resulting value of performing the operation is obtained, the AI engine 580 may output the result through a display or a speaker (534).
Referring to
According to various embodiments, in the example of
Referring to
According to various embodiments, the display 620 may display various images under control of the at least one processor 610. For example, the display 620 may be configured as one of a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, a micro-electro-mechanical systems (MEMS) display, or an electronic paper display but is not limited thereto. The display 620 may be configured as a touchscreen to detect a touch and/or proximity touch (or hovering) input using a body part (e.g., a finger) of a user or an input device (e.g., a stylus pen). The display 620 may include at least some components and/or functions of the display module 160 of
According to various embodiments, the microphone 630 may collect an external sound, such as the voice of the user, and may convert the external sound into a voice signal that is digital data. According to various embodiments, the electronic device 600 may include the microphone 630 in a part of a housing (not shown), or may receive a voice signal collected from an external microphone 630 connected by wire/wirelessly.
According to various embodiments, the communication module 640 may communicate with an external device (e.g., the intelligent server 420 of
According to various embodiments, the memory 650 may include a volatile memory and a nonvolatile memory and may temporarily or permanently store various types of data. The memory 650 may include at least some components and/or functions of the memory 130 of
The memory 650 may store various instructions that can be executed by the at least one processor 610. The instructions may include control commands for arithmetic and logical operations, data transfer, and/or input/output, which can be recognized by the at least one processor 610.
According to various embodiments, the at least one processor 610 is a component capable of performing an operation or data processing for control and/or communication of each component of the electronic device 600 and may include one or more processors. The at least one processor 610 may include at least some components and/or functions of the at least one processor 120 of
According to various embodiments, although operations and data processing functions that the at least one processor 610 can implement in the electronic device 600 are not limited, various embodiments for obtaining parameters required for an intelligent service from an application (or domain) are described hereinafter. The following operations of the at least one processor 610 may be performed by loading the instructions stored in the memory 650.
According to various embodiments, the at least one processor 610 may execute an application (e.g., a voice assistant or a chatbot) that provides an intelligent service. The at least one processor 610 may receive a user input using the executed application and may obtain an instruction based on the user input. For example, the at least one processor 610 may receive a voice input by the user through the microphone 630 or may obtain text input through a touch input on the display 620 (e.g., a touchscreen).
According to various embodiments, the at least one processor 610 may output a result value corresponding to the instruction input by the user through the display 620 and/or a speaker. The operation of generating the result value corresponding to the instruction of the user may be performed by an artificial intelligence (AI) engine, and the AI engine may be configured on the intelligent server, or may be embedded in the electronic device 600.
First, an embodiment in which the AI engine is configured in the electronic device 600 and accordingly the at least one processor 610 performs natural language processing and generation of a result for an instruction through the AI engine without depending on an external server (e.g., the intelligent server 230 of
According to an embodiment, the at least one processor 610 may obtain intent corresponding to an instruction input by the user. For example, the AI engine may identify the intent of the user by performing a syntactic or semantic analysis on the input instruction.
According to an embodiment, the at least one processor 610 may extract at least one parameter from the instruction. Here, the parameter may be at least one variable value required to perform a designated operation of the intent. In various embodiments of the disclosure, to distinguish parameters extracted or required during the operation of the AI engine, a parameter required to perform the designated operation of the intent may be defined as an intent execution parameter, a parameter extracted from words forming the instruction may be defined as an instruction extraction parameter, and a parameter additionally required to execute the intent may be defined as an additionally required parameter (or additional parameter).
According to an embodiment, the at least one processor 610 may identify at least one intent execution parameter required to perform the operation corresponding to the intent. The at least one processor 610 may receive and store information about intent execution parameters required to execute various intents from the external device (e.g., the intelligent server 420 of
According to an embodiment, the at least one processor 610 may identify at least one parameter additionally required to perform the operation corresponding to the intent. For example, the at least one processor 610 may determine, as an additionally required parameter, at least one parameter that cannot be obtained from an instruction extraction parameter obtained through the instruction among the identified intent execution parameters required for the intent. For example, when an intent execution parameter of the intent of the soccer match result retrieval includes a team name and date information and an instruction extraction parameter includes the team name by the user inputting information relating to the team name (e.g., a voice or text), the date information may be determined as an additionally required parameter.
According to an embodiment, the at least one processor 610 may identify the additionally required parameters from an application stored in the memory 650. Here, the application is an application that is distinguished from an intelligent service application and may include any application capable of being installed and executed in the electronic device 600.
According to an embodiment, the at least one processor 610 may transmit a parameter request including at least one of information about the determined intent and the type and the name of the additionally required parameter to the application being executed. For example, the at least one processor 610 may transmit the parameter request to all applications being executed in a broadcast manner or may transmit the parameter request to at least one predetermined application according to information received from an external server (e.g., an administrator server).
According to an embodiment, the at least one processor 610 may receive a parameter from the application in response to the parameter request. For example, the at least one processor 610 may receive date information corresponding to Team Samsung from an Internet application.
According to an embodiment, when the additionally required parameter is obtained from the application, the at least one processor 610 may verify the validity of the obtained additionally required parameter. For example, the at least one processor 610 may identify whether the parameter has been transmitted from the approved application or whether the received parameter is a type applicable to the intent.
According to an embodiment, when the additionally required parameter is obtained from the application and the validity thereof is verified, the at least one processor 610 may identify whether it is possible to execute the intent and, if impossible, may request an additionally required parameter from the application again.
According to an embodiment, when all intent execution parameters are obtained, the at least one processor 610 may perform the operation corresponding to the intent using the obtained parameters and may output a resulting value through the display 620 or the speaker.
The foregoing embodiment in which the AI engine is configured in the electronic device 600 will be described in more detail with reference to
Hereinafter, the operation of the at least one processor 610 where the AI engine is configured in the external server (e.g., the intelligent server 230 of
According to an embodiment, the at least one processor 610 may transmit a text or voice input entered using the communication module 640 to the external server.
According to an embodiment, when voice information is received from the electronic device 600, the external server may convert the voice information into text information using a voice recognition module (e.g., the ASR module 232a of
According to an embodiment, the external server may obtain intent corresponding to an instruction input by a user and may extract at least one parameter from the instruction. The external server may identify at least one intent execution parameter required to perform an operation corresponding to the intent and may transmit the intent execution parameter to the electronic device 600.
According to an embodiment, the at least one processor 610 may identify at least one parameter additionally required to perform the operation corresponding to the intent, based on information received from the external server, and may transmit a parameter request to an application.
According to an embodiment, when a parameter is obtained from the application, the at least one processor 610 may transmit the parameter to the external server using the communication module 640. The external server may perform the operation corresponding to the intent, based on the received parameter and may transmit a resulting value to the electronic device 600.
According to an embodiment, the at least one processor 610 may output the resulting value received from the external server through the display 620 or the speaker.
The foregoing embodiment in which the AI engine is configured in the external server will be described in more detail with reference to
According to various embodiments, when an additional parameter is obtained from an application, the at least one processor 610 may display a graphic object including the obtained additional parameter and/or information about the application on the display 620. The at least one processor 610 may use the selected additional parameter to perform the operation corresponding to the intent in response to a user input on the graphic object. This embodiment will be described in more detail with reference to
Referring to
According to various embodiments, the intelligent server 750 may include a natural language understanding (NLU) module 760, a dialog manager (DM) 770, and a response generator module 780, and the electronic device 700 may include various applications 720 and an AI client 710 that can be executed by a processor (e.g., the at least one processor 610 of
According to various embodiments, the NLU module 760 may perform natural language understanding on an instruction received from the electronic device 700. The NLU module 760 may understand a user's intent by performing a syntactic analysis or a semantic analysis. For example, the NLU module 760 may understand the meaning of a word extracted from a voice input using a linguistic feature (e.g., a syntactic element) of a morpheme or phrase and may determine the intent of the user by matching the understood meaning of the word to intent.
According to various embodiments, the dialog manager 770 that manages the state of a dialog may include a dialog state tracker 772 to track the state of a conversation message transmitted to and received from the electronic device 700, a slot resolver 774 to obtain and process a parameter (or slot) corresponding to intent of a user, and an action validator module 776 to verify the validity of performing an operation corresponding to intent.
According to various embodiments, the slot resolver 774 may compare a parameter for executing the intent determined by the NLU module 760 and a parameter extracted from the user's instruction and may identify a parameter additionally required to execute the intent. The slot resolver 774 may transmit a request for the additionally required parameter to the electronic device 700, and when the additional parameter is received from the electronic device 700, the slot resolver 774 may transmit the additional parameter to the action validator module 776 and/or the response generator module 780.
According to various embodiments, the action validator module 776 may identify whether an operation corresponding to the intent can be performed using an obtained parameter. For example, the action validator module 776 may identify whether the operation corresponding to the intent can be performed using the parameter extracted from the instruction of the user and the additional parameter received from the electronic device 700. When it is identified that the intent can be executed, the action validator module 776 may provide the intent and/or the obtained parameters to the response generator module 780, and when there is an additional parameter required to execute the intent, the action validator module 776 may request the additional parameter from the slot resolver 774.
According to various embodiments, the response generator module 780 may determine a domain required to perform a task based on the intent of the user, may perform the operation using the parameters in the domain, and may generate a resulting value. The response generator module 780 may transmit the resulting value to the electronic device 700. For example, the response generator module 780 may transmit the resulting value to the electronic device 700 in the form of text. According to various embodiments, the electronic device 700 may include the AI client 710 that obtains an input from the user and performs an operation relating to an intelligent service. The AI client 710 may include a provider collector module 712, a broadcast sender module 714, and a validation checker module 716.
According to various embodiments, the provider collector module 712 may collect a list of applications from which a parameter required to execute intent is requested. For example, the provider collector module 712 may request an intent name and a parameter name from a manager server to collect the list of applications.
According to an embodiment, the manager server may be included as a part of the intelligent server 750 or may be configured as a separate external server (e.g., the server 108 of
According to various embodiments, the manager server may identify an application that can respond to the parameter and may identify whether the identified application is installed or is running in the electronic device 700 or has been previously approved by the manager server or the user of the electronic device 700. Application information may include a package name, and there may be a plurality of retrieved and approved applications. The manager server may transmit the collected list of applications to the provider collector module 712 of the electronic device 700.
According to various embodiments, the broadcast sender module 714 may request an additional parameter required to execute the intent from the applications included in the application list received from the provider collector module 712. For example, the broadcast sender module 714 may substantially simultaneously (or sequentially) transmit a parameter request to the plurality of applications 720 in a broadcast manner, and the parameter request may include a package name to refer to a designated application. When transmitting the parameter request, the broadcast sender module 714 may also transmit at least some of a sender ID, an intent name, a parameter type, and a parameter name to guide the plurality of applications 720 to find a value suitable for the parameter. Here, the sender ID may refer to an identifier of an agent or a domain executing the intent.
According to various embodiments, when an additional parameter is received from the plurality of applications 720, the validation checker module 716 may verify whether the additional parameter is a parameter suitable for use in the AI engine (e.g., the NLU module 760, the dialog manager 770, or the response generator module 780) of the intelligent server 750.
The AI client 710 may transmit a parameter verified to be valid to the intelligent server 750, excluding a parameter verified to be invalid (e.g., a parameter that cannot be used for executing the intent or a parameter transmitted from an unregistered or unapproved application). When there is a plurality of parameters verified to be valid, the AI client 710 may transmit at least one parameter selected according to a user selection to the intelligent server 750.
According to an embodiment, an AI engine 850 that performs an operation of generating a resulting value in response to a user's instruction may be configured in an electronic device 800.
According to an embodiment, the electronic device 800 may include at least some components and/or functions of the electronic device 101 of
Referring to
According to an embodiment, the AI client 810 and the applications 820 may include at least some components and/or functions of the AI client 710 and the plurality of applications 720 of
According to an embodiment, the AI client 810 may transmit an instruction according to an input from the user to the AI engine 850. The AI engine 850 may include components corresponding to the NLU module 760, the dialog manager 770, and the response generator module 780 of
For example, the NLU module 860 may perform natural language understanding of the instruction and may generate the intent of the user. The dialog manager 870 may perform dialog tracking, parameter acquisition and processing, and validity verification of performing an operation, and the response generator module 880 may generate a resulting value using a domain, intent, and a parameter.
Referring to
According to various embodiments, the AI engine 950 may transmit the destination parameter as an additionally required parameter to an AI client 910, and a broadcast sender module (e.g., the broadcast sender module 714 of
Referring to
According to various embodiments, the parameter policy manager 1030 may identify whether there is an additional parameter required to execute the intent from the AI engine 1050.
According to various embodiments, when there is an additionally required parameter, the parameter policy manager 1030 may determine whether to request the additional parameter from a plurality of applications 1020.
According to various embodiments, when a request for the additional parameter is determined, a broadcast sender module 1014 may obtain information about an application that is registered and approved through a provider collector module 1012. Here, the provider collector module 1012 may transmit the intent obtained from the instruction and information about the additionally required parameter to an external server (e.g., an administrator server 1070) and may receive a list of applications that can provide the additional parameter.
According to various embodiments, the broadcast sender module 1014 may transmit the request for the additional parameter to the plurality of applications 1020 in the list received from the external server and may receive the additional parameter from the plurality of applications 1020.
According to various embodiments, a validation checker module 1016 may check the validity of the additional parameter received from the plurality of applications 1020. The AI client 1010 may provide at least one additional parameter determined to be a valid value to the user through a display (e.g., the display module 160 of
For example, when the user utters “Book a hotel to stay during the trip,” the AI engine 1050 may transmit a current dialog state to the AI client 1010. The transmitted dialog state may include information indicating that a parameter for a hotel location is omitted. The parameter policy manager 1030 may identify the omitted parameter and may request the parameter from the plurality of applications 1020 that is preapproved through the broadcast sender module 1014. When there is an application including information relating to flight booking among the plurality of applications 1020 receiving the request for the parameter and a place recently booked by the user as a destination in the application 1020 is Jeju Island, the application 1020 may transmit a corresponding value (e.g., Jeju Island) to the AI client 1010. The AI client 1010 may determine that destination information, which is a lacking parameter in an instruction “Book a hotel to stay during the trip,” is Jeju Island obtained from the application 1020. The AI client 1010 may display a graphic object indicating Jeju Island and the application on the display and may provide the parameter to the AI engine 1050 according to a selection by the user.
The illustrated method may be performed by the foregoing AI engine and the foregoing AI client, and a description of the foregoing technical features will be omitted.
Referring to
According to various embodiments, in operation 1120, the AI engine of an intelligent server (e.g., the intelligent server 750 of
According to various embodiments, in operation 1130, the AI engine may determine whether parameter information for executing the intent is satisfied. For example, the AI engine may identify whether the intent can be performed using an instruction extraction parameter extracted from the instruction among the intent execution parameters required to execute the obtained intent.
According to various embodiments, when the intent cannot be performed, the AI client may identify an application from which an additionally required parameter is requested in operation 1140. For example, the AI client may receive information about the application that can respond to the parameter from an external server (e.g., an administrator server).
According to various embodiments, in operation 1150, the AI client may request the additional parameter required to execute the intent from the identified application. For example, the AI client may substantially simultaneously (or sequentially) transmit a parameter request to a plurality of applications in a broadcast manner and may use a package name to refer to a designated application.
According to various embodiments, when the additional parameter is received from the application, the AI client may verify whether the additional parameter is a parameter suitable for use in the AI engine of the intelligent server in operation 1160. The AI client may transmit a parameter verified to be valid to the AI engine, excluding a parameter verified to be invalid (e.g., a parameter that cannot be used for executing the intent or a parameter transmitted from an unregistered application).
According to various embodiments, when the parameter information for executing the intent is satisfied in operation 1130, the AI engine may perform an operation of the intent using the parameter extracted from the instruction in operation 1170.
For example, when the intent can be performed using the instruction extraction parameter extracted from the instruction among the intent execution parameters required to execute the obtained intent in operation 1130, the AI engine may perform the operation of the intent using the parameter extracted from the instruction in operation 1170.
Referring to
The AI engine 1250 may include an NLU module 1252 (e.g., the NLU module 760 of
The electronic device 1200 may include an AI client 1210, and the operation of the AI client 1210 may be the same as the operation of the AI client 710 of
According to various embodiments, the AI portal server 1270 is a component that preregisters and approves an application to provide a lacking (or additionally required) parameter to perform an operation of intent to the AI engine 1250 in the integrated intelligent system and may include a plurality of devices. As illustrated, the AI portal server 1270 may include an administrator server 1280 and a developer website server 1290. The administrator server 1280 and the developer website server 1290 may be configured as separate server devices, or functions of the administrator server 1280 and the developer website server 1290 may be performed within one server device.
According to various embodiments, the administrator server 1280 may include a request information manager 1282 and a provider manager 1284. The request information manager 1282 may be a module that registers parameter information required for an intelligent service administrator to perform a designated task (or intent) of an intelligent service (e.g., a voice assistant). For example, the request information manager 1282 may store information about intent for which a parameter is used, a parameter type, a parameter name, or a sample parameter. An application developer may identify parameter information registered by the request information manager 1282 and may identify whether an application developed by the application developer can provide the parameter information.
According to various embodiments, the provider manager 1284 may be a module that approves an application registered by the intelligent service administrator. For example, when a parameter of a registered application can be used for an operation of intent, the intelligent service administrator may approve the application. Information about the application approved by the provider manager 1284 may be transmitted to the AI client 1210 (e.g., the provider collector module 1212).
According to various embodiments, the developer website server 1290 may provide a register form module 1292 so that the application developer can register an application developed by the application developer. The application developer may identify parameter information registered by the intelligent service administrator on a website provided by the developer website server 1290 and may determine whether an application developed by the application developer can provide a corresponding parameter. The parameter information of the developer website server 1290 may be received from the request information manager 1282. When an application is registered by the application developer, registered information may be transmitted to the provider manager 1284 and may be approved by the intelligent service administrator. The information about the registered application may include an application name, a download address, and a package name.
Referring to
According to various embodiments, an AI client 1310 and provider collector 1312 may include at least some functions and/or components of the AI client 710 of
According to various embodiments, an intelligent service administrator (e.g., an AI developer) may register request information, such as parameter information required to perform a designated task (or intent) of an intelligent service (e.g., a voice assistant or a chatbot) through a request information manager 1382. For example, the request information manager 1382 may store information about intent for which a parameter input by the administrator is used, a parameter type, a parameter name, or a sample parameter.
According to various embodiments, the request information manager 1382 may provide a list of request information including registered intent and required parameter information through a developer website server 1390, and a developer may identify the list through a website provided by the developer website server 1390.
According to various embodiments, an application developer may register an application developed by the application developer through a register form module 1392 of the developer website server 1390. For example, information about the registered application (or provider) may include an application name, a download address, and a package name.
According to various embodiments, the information about the application registered by the application developer on the developer website may be registered in a provider manager 1384. The provider manager 1384 may store information about each application.
According to various embodiments, when a parameter of the registered application can be used for an operation of the intent, the intelligent service administrator may approve the application. The information about the registered and approved application may be stored and managed by the provider manager 1384.
According to various embodiments, the AI client 1310 may request a provider (or application) list. The request for the provider list may include an intent type and a parameter type. The provider manager 1384 may provide the AI client 1310 with a list of an application from which an additional parameter can be obtained. Here, the provider manager 1384 may provide a package name of the application to the AI client 1310.
According to various embodiments, when an additional parameter is obtained from an application, an electronic device 1400 (e.g., the at least one processor 610 of
Referring to
Referring to
Referring to
An embodiment of recommending a parameter is not limited to
According to various embodiments, an intelligent service administrator may register information required for registration of an application on a developer website (e.g., the developer website 1290 of
According to an embodiment, for intent order_food, food_type as a required parameter provided by an application, string as a parameter type, and Korean food, snack, dessert, Japanese food, fast food, and lunchbox as sample parameter values may be registered. The application developer may identify this information, and may register an application when the application developed by the application developer can provide a string type of food type (food_type) information.
According to various embodiments, an application developer may identify information registered in a developer website (e.g., the developer website 1290 of
Referring to
An electronic device according to various embodiments may include a display including a touchscreen, a microphone configured to receive a voice input from a user, a memory, and at least one processor configured to be operatively connected to the display, the microphone, and the memory, wherein the at least one processor may be configured to obtain an instruction based on text that is input through a touch input on the display or a voice input that is input through the microphone, obtain intent corresponding to the instruction, identify at least one parameter additionally required to perform an operation corresponding to the intent, and obtain the at least one additionally required parameter from at least one application stored in the memory.
According to various embodiments, the at least one processor may be configured to determine the intent from the instruction, and determine at least one intent execution parameter required to perform the operation corresponding to the identified intent.
According to various embodiments, the at least one processor may be configured to extract at least one instruction extraction parameter related to the intent from the instruction, and determine at least one parameter that is impossible to be obtained from the instruction extraction parameter of the intent execution parameter as the additionally required parameter.
According to various embodiments, the at least one processor may be configured to transmit a parameter request including at least one of information about the determined intent, a type of the additionally required parameter, and a name of the parameter to the at least one application.
According to various embodiments, the at least one processor may be configured to transmit the parameter request to a predetermined application of the application stored in the memory.
According to various embodiments, when the additionally required parameter is obtained from the application, the at least one processor may be configured to perform the operation corresponding to the intent using the instruction extraction parameter and the additionally required parameter.
According to various embodiments, the electronic device may further include a communication module configured to communicate with an external device, wherein the at least one processor may be configured to transmit the input text or the voice input to an external server using the communication module, and receive information relating to the at least one parameter additionally required to perform the operation corresponding to the intent from the external server.
According to various embodiments, the at least one processor may be configured to transmit the additionally required parameter obtained from the application to the external server through the communication module, and receive a resulting value of performing the intent from the external server.
According to various embodiments, the at least one processor may be configured to verify validity of the additionally required parameter obtained from the application.
According to various embodiments, when the application transmitting the additionally required parameter is a preregistered application, the at least one processor may be configured to determine that the additionally required parameter is valid.
According to various embodiments, when the additionally required parameter is obtained from the application, the at least one processor may be configured to display a graphic object including the obtained additionally required parameter and information about the application on the display.
According to various embodiments, the at least one processor may be configured to use the additionally required parameter obtained from the application to perform the operation corresponding to the intent in response to a user input for the graphic object.
According to various embodiments, when the additionally required parameter is not obtained from the application stored in the memory, the at least one processor may be configured to display a query for obtaining the additionally required parameter on the display.
The illustrated method may be performed by the electronic device described with reference to
Referring to
According to various embodiments, in operation 1820, the electronic device may obtain intent corresponding to the instruction. According to an embodiment, the electronic device may identify the intent of the user by performing a syntactic analysis or a semantic analysis on the input instruction through an AI engine. According to another embodiment, the electronic device may transmit the instruction to an external server (e.g., the intelligent server 750 of
According to various embodiments, in operation 1830, the electronic device may identify an additionally required parameter to perform an operation corresponding to the intent. For example, the electronic device (or intelligent server) may determine, as an additionally required parameter, at least one parameter that cannot be obtained from an instruction extraction parameter obtained through the instruction among the identified intent execution parameters required for the intent. For example, when an intent execution parameter of the intent of the soccer match result retrieval includes a team name and date information and an instruction extraction parameter includes the team name by the user inputting information relating to the team name (e.g., a voice or text), the date information may be determined as an additionally required parameter.
According to various embodiments, in operation 1840, the electronic device may obtain the additionally required parameter from an application of the electronic device. For example, the electronic device may transmit a parameter request including at least one of information about the determined intent and the type and the name of the additionally required parameter to the application being executed. When the additional parameter is transmitted from the application, the electronic device may verify validity and may display a graphic object including the obtained additional parameter and/or information about the application on the display. The electronic device may use the selected additional parameter to perform the operation corresponding to the intent in response to a user input on the graphic object.
A method for obtaining a parameter for natural language understanding by an electronic device according to various embodiments may include obtaining an instruction based on a touch input or a voice input from a user, obtaining intent corresponding to the instruction, identifying at least one parameter additionally required to perform an operation corresponding to the intent, and obtaining the at least one additionally required parameter from at least one application.
According to various embodiments, the obtaining of the intent may include determining, by the electronic device, the intent from the instruction, and determine at least one intent execution parameter required to perform the operation corresponding to the identified intent.
According to various embodiments, the identifying of the at least one additionally required parameter may include extracting, by the electronic device, at least one instruction extraction parameter related to the intent from the instruction, and determining at least one parameter that is impossible to be obtained from the instruction extraction parameter of the intent execution parameter as the additionally required parameter.
According to various embodiments, the method may further include transmitting a parameter request including at least one of information about the determined intent, a type of the additionally required parameter, and a name of the parameter to the at least one application.
According to various embodiments, the obtaining of the intent may include transmitting the input text or the voice input to an external server, and receiving information relating to the at least one parameter additionally required to perform the operation corresponding to the intent from the external server.
According to various embodiments, the method may further include verifying validity of the additionally required parameter obtained from the application.
According to various embodiments, the method may further include displaying a graphic object including the obtained additionally required parameter and information about the application when the additionally required parameter is obtained from the application.
While the disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2020-0129133 | Oct 2020 | KR | national |
This application is a continuation application, claiming priority under § 365(c), of an International application No. PCT/KR2021/013716, filed on Oct. 6, 2021, which is based on and claims the benefit of a Korean patent application of a Korean patent application number 10-2020-0129133, filed on Oct. 7, 2020, in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/KR2021/013716 | Oct 2021 | US |
Child | 17506193 | US |