KR20240045031A - Electronic device, operating method, and storage medium for processing utterance not including a predicate - Google Patents

Electronic device, operating method, and storage medium for processing utterance not including a predicate Download PDF

Info

Publication number
KR20240045031A
KR20240045031A KR1020220136773A KR20220136773A KR20240045031A KR 20240045031 A KR20240045031 A KR 20240045031A KR 1020220136773 A KR1020220136773 A KR 1020220136773A KR 20220136773 A KR20220136773 A KR 20220136773A KR 20240045031 A KR20240045031 A KR 20240045031A
Authority
KR
South Korea
Prior art keywords
electronic device
entity name
information
domain
category
Prior art date
Application number
KR1020220136773A
Other languages
Korean (ko)
Inventor
김동규
김경태
송가진
신호선
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2023/015103 priority Critical patent/WO2024072142A1/en
Publication of KR20240045031A publication Critical patent/KR20240045031A/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/04Segmentation; Word boundary detection
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • G10L15/1822Parsing for meaning understanding
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

본 개시의 일 실시예에 따른 전자 장치는, 마이크, 통신 회로, 메모리, 및 프로세서를 포함할 수 있다. 상기 메모리는 인스트럭션들 저장할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 마이크를 통해 음성 명령을 수신하고, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하고, 상기 개체명에 기반하여 상기 음성 명령을 실행하기 위한 실행 정보를 획득하고, 상기 실행 정보를 이용하여 상기 음성 명령을 실행하도록 할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다.An electronic device according to an embodiment of the present disclosure may include a microphone, a communication circuit, memory, and a processor. The memory can store instructions. The instructions, when executed by the processor, cause the electronic device to receive a voice command through the microphone, determine whether text corresponding to the voice command consists of a named entity, and , execution information for executing the voice command can be obtained based on the entity name, and the voice command can be executed using the execution information. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command.

Description

서술어를 포함하지 않는 발화를 처리하는 전자 장치, 동작 방법 및 저장 매체{ELECTRONIC DEVICE, OPERATING METHOD, AND STORAGE MEDIUM FOR PROCESSING UTTERANCE NOT INCLUDING A PREDICATE}Electronic device, operating method, and storage medium for processing utterances not containing predicates {ELECTRONIC DEVICE, OPERATING METHOD, AND STORAGE MEDIUM FOR PROCESSING UTTERANCE NOT INCLUDING A PREDICATE}

본 개시는 서술어를 포함하지 않는 발화를 처리하는 전자 장치, 동작 방법 및 저장 매체에 관한 것이다.The present disclosure relates to an electronic device, operating method, and storage medium for processing utterances that do not contain predicates.

음성 인식 기술은 사용자의 발화를 분석하여 발화의 의미를 판별하는 기술이다. 음성 인식 기술은 발화를 처음으로 인식하는 웨이크업(wake-up) 기술, 발화를 식별 가능한 텍스트로 변환하는 자동 음성 인식(automatic speech recognition, ASR) 기술, 및 변환된 텍스트에서 의미를 추출하는 자연어 이해(natural language understanding) 기술을 포함할 수 있다. 음성 인식 기술을 이용하여 음성 명령에 기반하여 기기를 제어하는 음성 어시스턴트 기능을 탑재한 다양한 전자 장치들이 제공되고 있다.Voice recognition technology is a technology that analyzes the user's utterances and determines the meaning of the utterances. Speech recognition technology includes wake-up technology that recognizes speech for the first time, automatic speech recognition (ASR) technology that converts speech into identifiable text, and natural language understanding that extracts meaning from the converted text. (natural language understanding) skills may be included. Various electronic devices equipped with a voice assistant function that controls the device based on voice commands using voice recognition technology are being provided.

일 실시예에 따른, 전자 장치는, 마이크, 통신 회로, 메모리, 및 프로세서를 포함할 수 있다. 상기 메모리는 인스트럭션들을 저장할 수 있다. 상기 메모리는, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 마이크를 통해 음성 명령을 수신하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 개체명에 기반하여 상기 음성 명령을 실행하기 위한 실행 정보를 획득하도록 할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 실행 정보를 이용하여 상기 음성 명령을 실행하도록 할 수 있다.According to one embodiment, an electronic device may include a microphone, communication circuitry, memory, and a processor. The memory can store instructions. When executed by the processor, the memory may enable the electronic device to receive voice commands through the microphone. The instructions, when executed by the processor, may cause the electronic device to determine whether text corresponding to the voice command consists of a named entity. When executed by the processor, the instructions may cause the electronic device to obtain execution information for executing the voice command based on the entity name. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command. When executed by the processor, the instructions may cause the electronic device to execute the voice command using the execution information.

일 실시예에 따른, 전자 장치의 동작 방법은, 상기 전자 장치의 마이크를 통해 음성 명령을 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 개체명에 기반하여 음성 명령을 실행하기 위한 실행 정보를 획득하는 동작을 포함할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 상기 방법은 상기 실행 정보를 이용하여 상기 음성 명령을 실행하는 동작을 포함할 수 있다.According to one embodiment, a method of operating an electronic device may include receiving a voice command through a microphone of the electronic device. The method may include determining whether text corresponding to the voice command consists of one named entity. The method may include obtaining execution information for executing a voice command based on the entity name. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command. The method may include executing the voice command using the execution information.

일 실시예에 따른, 비일시적 컴퓨터 판독 가능한 저장 매체는 전자 장치의 동작 방법을 수행하기 위한 프로그램을 저장할 수 있다. 상기 전자 장치의 동작 방법은, 상기 전자 장치의 마이크를 통해 음성 명령을 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 개체명에 기반하여 음성 명령을 실행하기 위한 실행 정보를 획득하는 동작을 포함할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 상기 방법은 상기 실행 정보를 이용하여 상기 음성 명령을 실행하는 동작을 포함할 수 있다.According to one embodiment, a non-transitory computer-readable storage medium may store a program for performing a method of operating an electronic device. The method of operating the electronic device may include receiving a voice command through a microphone of the electronic device. The method may include determining whether text corresponding to the voice command consists of one named entity. The method may include obtaining execution information for executing a voice command based on the entity name. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command. The method may include executing the voice command using the execution information.

도 1은 일 예시에 따른 전자 장치의 구성을 나타낸 블록도이다.
도 2는 일 예시에 따른 전자 장치의 기능 블록도이다.
도 3은 일 예시에 따른 전자 장치가 획득한 실행 정보를 나타내는 도면이다.
도 4는 일 예시에 따른 전자 장치가 획득한 실행 정보를 나타내는 도면이다.
도 5는 일 예시에 따른 전자 장치의 동작을 나타낸 흐름도이다.
도 6은 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면이다.
도 7은 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면이다.
도 8은 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면이다.
도 9는 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면이다.
도 10은 일 예시에 따른 전자 장치의 동작을 나타낸 흐름도이다.
도 11은 일 예시에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 12는 일 예시에 따른 통합 지능(integrated intelligence) 시스템을 나타낸 블록도이다.
도 13은 일 예시에 따른, 컨셉과 액션의 관계 정보가 데이터베이스에 저장된 형태를 나타낸 도면이다.
도 14는 일 예시에 따라, 지능형 앱을 통해 수신된 음성 입력을 처리하는 화면을 표시하는 사용자 단말을 도시하는 도면이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 is a block diagram showing the configuration of an electronic device according to an example.
Figure 2 is a functional block diagram of an electronic device according to an example.
FIG. 3 is a diagram illustrating execution information acquired by an electronic device according to an example.
FIG. 4 is a diagram illustrating execution information acquired by an electronic device according to an example.
Figure 5 is a flowchart showing the operation of an electronic device according to an example.
FIG. 6 is a diagram illustrating a graphical user interface provided by an electronic device according to an example.
FIG. 7 is a diagram illustrating a graphical user interface provided by an electronic device according to an example.
FIG. 8 is a diagram illustrating a graphical user interface provided by an electronic device according to an example.
FIG. 9 is a diagram illustrating a graphical user interface provided by an electronic device according to an example.
Figure 10 is a flowchart showing the operation of an electronic device according to an example.
Figure 11 is a block diagram of an electronic device in a network environment according to an example.
Figure 12 is a block diagram showing an integrated intelligence system according to an example.
Figure 13 is a diagram showing how relationship information between concepts and actions is stored in a database, according to an example.
FIG. 14 is a diagram illustrating a user terminal displaying a screen for processing voice input received through an intelligent app, according to an example.
In relation to the description of the drawings, identical or similar reference numerals may be used for identical or similar components.

이하에서는 도면을 참조하여 본 개시의 실시예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다. 도면의 설명과 관련하여, 동일하거나 유사한 구성요소에 대해서는 동일하거나 유사한 참조 부호가 사용될 수 있다. 또한, 도면 및 관련된 설명에서는, 잘 알려진 기능 및 구성에 대한 설명이 명확성과 간결성을 위해 생략될 수 있다.Hereinafter, with reference to the drawings, embodiments of the present disclosure will be described in detail so that those skilled in the art can easily practice them. However, the present disclosure may be implemented in many different forms and is not limited to the embodiments described herein. In relation to the description of the drawings, identical or similar reference numerals may be used for identical or similar components. Additionally, in the drawings and related descriptions, descriptions of well-known functions and configurations may be omitted for clarity and brevity.

도 1은 일 예시에 따른 전자 장치(101)의 구성을 나타낸 블록도(100)이다.FIG. 1 is a block diagram 100 showing the configuration of an electronic device 101 according to an example.

도 1을 참조하면, 전자 장치(101)는 마이크(110), 통신 회로(120), 메모리(130), 및 프로세서(140)를 포함할 수 있으나, 이에 한정되는 것은 아니다. 전자 장치(101)는 도 1에 도시되지 않은 다른 구성요소(예: 입력 장치 및/또는 디스플레이)를 더 포함할 수 있다.Referring to FIG. 1, the electronic device 101 may include a microphone 110, a communication circuit 120, a memory 130, and a processor 140, but is not limited thereto. The electronic device 101 may further include other components (eg, an input device and/or a display) not shown in FIG. 1 .

마이크(110)는 전자 장치(101) 외부의 소리를 수신할 수 있다. 예를 들어, 마이크(110)는 전자 장치(101)의 사용자의 음성 명령을 수신할 수 있다. 예를 들어, 마이크(110)는 사용자 발화를 수신할 수 있다.The microphone 110 can receive sound from outside the electronic device 101. For example, the microphone 110 may receive a voice command from the user of the electronic device 101. For example, the microphone 110 may receive user speech.

통신 회로(120)는 전자 장치(101)와 외부 전자 장치(예: 서버)의 통신을 지원할 수 있다. 통신 회로(120)는 전자 장치(101)와 외부 전자 장치 간의 데이터 또는 신호의 송수신을 지원할 수 있다. 예를 들어, 통신 회로(120)는 전자 장치(101)의 마이크(110)를 통해 수신된 음성 명령을 음성 어시스턴트 서버로 송신할 수 있다. 통신 회로(120)는 음성 어시스턴트 서버로부터 음성 명령을 실행하기 위한 응답을 수신할 수 있다. 본 개시에서, 음성 명령을 실행하기 위한 응답은, 음성 명령을 실행하기 위한 실행 정보로 참조될 수 있다. 실행 정보는, 예를 들어, 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 및 음성 명령이 요청하는 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다.The communication circuit 120 may support communication between the electronic device 101 and an external electronic device (eg, a server). The communication circuit 120 may support transmission and reception of data or signals between the electronic device 101 and an external electronic device. For example, the communication circuit 120 may transmit a voice command received through the microphone 110 of the electronic device 101 to the voice assistant server. Communication circuitry 120 may receive a response for executing a voice command from a voice assistant server. In the present disclosure, a response for executing a voice command may be referred to as execution information for executing a voice command. Execution information may include, for example, domain information indicating the application executing the voice command and intent information indicating the function of the application requested by the voice command.

메모리(130)는 전자 장치(101)를 작동시키기 위한 하나 이상의 인스트럭션들을 저장할 수 있다. 메모리(130)는 전자 장치(101)의 작동에 필요한 데이터 또는 정보를 저장할 수 있다. 예를 들어, 메모리(130)는 적어도 하나의 애플리케이션을 저장할 수 있다. 예를 들어, 메모리(130)는 적어도 하나의 애플리케이션에서의 개체명(named entity) 사용 이력 정보를 저장할 수 있다. 예를 들어, 개체명 사용 이력 정보는, 개체명이 사용된 횟수 및/또는 시점을 포함할 수 있다.The memory 130 may store one or more instructions for operating the electronic device 101. The memory 130 may store data or information necessary for the operation of the electronic device 101. For example, memory 130 may store at least one application. For example, the memory 130 may store usage history information of a named entity in at least one application. For example, entity name usage history information may include the number of times and/or time at which the entity name was used.

프로세서(140)는 마이크(110), 통신 회로(120), 및 메모리(130)와 작동적으로(operatively) 연결될 수 있다. 구성요소 간에 작동적으로(operatively) 연결된다는 의미는 구성요소들이 기능적으로 연결되거나, 통신적으로 연결된 것을 의미할 수 있다. 예를 들어, 작동적으로 연결된 구성요소들은 서로 데이터를 주고받을 수 있다.Processor 140 may be operatively connected to microphone 110, communication circuit 120, and memory 130. Being operatively connected between components may mean that the components are functionally connected or communicatively connected. For example, operationally connected components can exchange data with each other.

프로세서(140)는 메모리(130)에 저장된 하나 이상의 인스트럭션들을 실행할 수 있다. 예를 들어, 프로세서(140)는 메모리(130)에 저장된 하나 이상의 인스트럭션들을 실행함으로써 음성 어시스턴트 기능을 제공할 수 있다. 음성 어시스턴트 기능은, 음성 명령에 포함된 사용자의 요청에 대한 응답을 제공할 수 있다. 다시 말해, 프로세서(140)는 메모리(130)에 저장된 하나 이상의 인스트럭션들을 실행함으로써 음성 어시스턴트 서버가 수행하는 기능의 적어도 일부(예: 자동 음성 인식(automatic speech recognition, ASR) 및 자연어 이해(natural language understanding, NLU))를 구현할 수 있다.The processor 140 may execute one or more instructions stored in the memory 130. For example, processor 140 may provide a voice assistant function by executing one or more instructions stored in memory 130. The voice assistant function may provide responses to user requests included in voice commands. In other words, the processor 140 executes at least some of the functions performed by the voice assistant server (e.g., automatic speech recognition (ASR) and natural language understanding) by executing one or more instructions stored in the memory 130. , NLU)) can be implemented.

프로세서(140)는 마이크(110)를 통해 사용자의 음성 명령을 수신할 수 있다. 프로세서(140)는 마이크(110)를 통해 수신된 음성 명령을 자동 음성 인식에 기반하여 텍스트로 변환할 수 있다. 일 실시예에서, 프로세서(140)는 변환된 텍스트를 자연어 이해에 기반하여 분석하여 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 및 음성 명령이 요청하는 애플리케이션의 기능을 나타내는 의도를 결정할 수 있다.The processor 140 may receive a user's voice command through the microphone 110. The processor 140 may convert a voice command received through the microphone 110 into text based on automatic voice recognition. In one embodiment, the processor 140 may analyze the converted text based on natural language understanding to determine the domain representing the application executing the voice command and the intent representing the function of the application requested by the voice command.

프로세서(140)는 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정할 수 있다. 예를 들어, 프로세서(140)는 음성 명령에 대응하는 텍스트가 서술어를 포함하지 않고, 하나의 개체명을 포함하는 경우, 텍스트가 하나의 개체명으로 구성된 것으로 결정할 수 있다.The processor 140 may determine whether the text corresponding to the voice command consists of one named entity. For example, if the text corresponding to the voice command does not include a predicate but includes one entity name, the processor 140 may determine that the text consists of one entity name.

일 실시예에서, 프로세서(140)는 텍스트가 하나의 개체명으로 구성된 경우, 개체명에 기반하여 데이터베이스를 검색할 수 있다. 데이터베이스는 공중 데이터(public data) 및 개인 데이터(personal data)를 포함할 수 있다. 공중 데이터는 미디어 컨텐츠(media contents), 위치(location), 조직(organization), 또는 도메인 특정 정보(domain specific information)(예: IoT(internet of things) 모드)의 개체명과 같이 공중이 이용하는 개체명을 포함할 수 있다. 예를 들어, 공중 데이터는 외부 서버를 통해 지정된 시점에 반복적으로 최신 데이터로 업데이트될 수 있다.In one embodiment, when the text consists of one entity name, the processor 140 may search the database based on the entity name. Databases may contain public data and personal data. Public data refers to entity names used by the public, such as entity names of media contents, locations, organizations, or domain specific information (e.g., Internet of Things (IoT) mode). It can be included. For example, public data can be repeatedly updated with the latest data at specified times through an external server.

개인 데이터는 활동(activity), 애완동물 이름(pet name), IoT 기기명(IoT device name), 연락처 정보, 또는 개인 미디어 컨텐츠 정보와 같이 개인(예: 전자 장치(101)의 사용자)에 특화된 데이터를 포함할 수 있다. 일 실시예에서, 프로세서(140)는 전자 장치(101)의 입력 장치(예: 마이크(110)를 포함)를 통해 수신된 사용자 입력에 기반하여 등록된 개체명을 개인 데이터로서 수집할 수 있다.Personal data includes data specific to an individual (e.g., user of electronic device 101), such as activity, pet name, IoT device name, contact information, or personal media content information. It can be included. In one embodiment, the processor 140 may collect a registered entity name as personal data based on a user input received through an input device (eg, including the microphone 110) of the electronic device 101.

공중 데이터 및 개인 데이터는 개체명과 관련된 카테고리 정보, 도메인 정보, 및/또는 의도 정보를 포함할 수 있다.Public data and personal data may include category information, domain information, and/or intent information associated with the entity name.

일 실시예에서, 프로세서(140)는 적어도 하나의 애플리케이션 각각에서의 개체명 사용 이력에 기반하여, 각 애플리케이션에서의 개체명 사용 이력으로부터 추출된 개체명과 각 애플리케이션에 대응하는 도메인 또는 추출된 개체명이 사용된 의도를 연관시켜 데이터베이스에 저장할 수 있다. 이하, 각 애플리케이션에서의 개체명 사용 이력으로부터 추출된 개체명 및 그와 연관되어 저장된 도메인 또는 의도는 지정된 개체명 정보로 참조될 수도 있다. 지정된 개체명 정보는, 예를 들어, 개인 데이터로 취급될 수 있다. 예를 들어, 프로세서(140)는 텍스트에 포함된 개체명이 지정된 개체명 정보에 포함된 개체명에 해당하는 경우, 지정된 개체명 정보에 포함된 도메인 정보 또는 의도 정보를 획득할 수 있다.In one embodiment, the processor 140 uses the entity name extracted from the entity name usage history in each application and the domain or extracted entity name corresponding to each application, based on the entity name usage history in each of the at least one application. The intent can be associated and stored in the database. Hereinafter, the entity name extracted from the entity name use history in each application and the domain or intent stored in connection with it may be referred to as designated entity name information. Designated entity name information may be treated as personal data, for example. For example, if the entity name included in the text corresponds to the entity name included in the specified entity name information, the processor 140 may obtain domain information or intent information included in the specified entity name information.

예를 들어, 데이터베이스에 저장된 데이터는 개체명의 문자열 정보뿐만 아니라, 발음열 정보도 함께 저장될 수 있다. 일 실시예에서, 프로세서(140)는 개체명에 기반하여 데이터베이스를 검색 시에, 개체명의 문자열뿐만 아니라, 발음열에 기반하여 검색을 수행할 수 있다. 프로세서(140)는 검색하고자 하는 개체명과 유사한 발음열을 가진 개체명도 검색할 수 있다.For example, data stored in a database may store not only string information of the entity name but also pronunciation string information. In one embodiment, when searching a database based on an entity name, the processor 140 may perform a search based on not only a string of the entity name but also a pronunciation sequence. The processor 140 can also search for entity names that have a pronunciation sequence similar to the entity name to be searched.

일 실시예에서, 프로세서(140)는 개체명에 기반하여 데이터베이스를 검색하여 음성 명령을 실행하기 위한 실행 정보를 획득할 수 있다. 실행 정보는 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 음성 명령이 요청하는 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 예를 들어, 실행 정보는 개체명이 속하는 카테고리 정보를 포함할 수 있다. 예를 들어, 프로세서(140)는 개체명에 기반하여 데이터베이스를 검색하여, 개체명에 대응하는 적어도 하나의 카테고리, 적어도 하나의 도메인, 및/또는 적어도 하나의 의도를 획득할 수 있다.In one embodiment, the processor 140 may search a database based on an entity name to obtain execution information for executing a voice command. The execution information may include domain information indicating the application executing the voice command or intent information indicating the function of the application requested by the voice command. For example, execution information may include category information to which the entity name belongs. For example, the processor 140 may search a database based on the entity name to obtain at least one category, at least one domain, and/or at least one intent corresponding to the entity name.

일 실시예에서, 프로세서(140)는 공중 데이터에 기반하여 개체명에 대응하는 카테고리가 복수 개 검색되는 경우, 각 카테고리에 대한 비율 정보를 획득할 수 있다. 각 카테고리에 대한 비율 정보는, 예를 들어, 개체명이 복수의 카테고리 중 각 카테고리로 사용되는 비율을 나타낼 수 있다. 각 카테고리에 대한 비율 정보는, 예를 들어, 개체명이 복수의 카테고리 중 각 카테고리로 사용될 확률을 나타낼 수 있다. 예를 들어, 제1 개체명에 대해, 공중 데이터에 기반하여 'TV shows'와 'Music'의 두 가지 카테고리가 검색될 수 있다. 예를 들어, 프로세서(140)는 제1 개체명에 대해 'TV shows' 카테고리로 사용되는 비율과 'Music' 카테고리로 사용되는 비율을 획득할 수 있다.In one embodiment, when a plurality of categories corresponding to an entity name are searched based on public data, the processor 140 may obtain ratio information for each category. For example, the ratio information for each category may indicate the ratio at which an entity name is used in each category among a plurality of categories. Ratio information for each category may, for example, indicate the probability that an entity name will be used in each category among a plurality of categories. For example, for the first entity name, two categories of 'TV shows' and 'Music' may be searched based on public data. For example, the processor 140 may obtain the ratio of the first entity name used in the 'TV shows' category and the ratio used in the 'Music' category.

일 실시예에서, 프로세서(140)는 획득된 비율 정보에 기반하여 개체명에 대응하는 카테고리를 결정할 수 있다. 예를 들어, 프로세서(140)는 가장 높은 비율의 카테고리를 개체명에 대응하는 카테고리로 결정할 수 있다. 예를 들어, 제1 개체명에 대해, 'TV shows' 카테고리로 사용되는 비율이 약 60%이고, 'Music' 카테고리로 사용되는 비율이 약 40%인 경우, 프로세서(140)는 제1 개체명에 대응하는 카테고리를 'TV shows' 카테고리로 결정할 수 있다.In one embodiment, the processor 140 may determine a category corresponding to the entity name based on the obtained ratio information. For example, the processor 140 may determine that the category with the highest ratio is the category corresponding to the entity name. For example, for the first entity name, if the proportion used in the 'TV shows' category is about 60% and the proportion used in the 'Music' category is about 40%, the processor 140 selects the first entity name The category corresponding to can be determined as the 'TV shows' category.

일 실시예에서, 프로세서(140)는 결정된 카테고리에 대응하는 실행 정보를 획득할 수 있다. 예를 들어, 제1 개체명의 카테고리가 'TV shows'인 경우에는 제1 도메인(예: 제1 앱(app))이 음성 명령을 실행하고, 제1 개체명의 카테고리가 'Music'인 경우에는 제1 도메인과는 다른 제2 도메인(예: 제2 앱)이 음성 명령을 실행할 수 있다. 예를 들어, 프로세서(140)는 제1 개체명의 카테고리를 'TV shows'로 결정함에 따라, 제1 도메인을 나타내는 도메인 정보 및 제1 도메인의 기능을 나타내는 의도 정보를 획득할 수 있다. 예를 들어, 프로세서(140)는 제1 개체명의 카테고리를 'Music'으로 결정함에 따라, 제2 도메인을 나타내는 도메인 정보 및 제2 도메인의 기능을 나타내는 의도 정보를 획득할 수 있다.In one embodiment, the processor 140 may obtain execution information corresponding to the determined category. For example, if the category of the first entity name is 'TV shows', the first domain (e.g., the first app) executes the voice command, and if the category of the first entity name is 'Music', the first domain (e.g., the first app) executes the voice command. A second domain (e.g., a second app) that is different from the first domain can execute voice commands. For example, by determining the category of the first entity name as 'TV shows', the processor 140 may obtain domain information indicating the first domain and intent information indicating the function of the first domain. For example, as the processor 140 determines the category of the first entity name as 'Music', the processor 140 may obtain domain information indicating the second domain and intent information indicating the function of the second domain.

일 실시예에서, 프로세서(140)는 공중 데이터에 기반하여 개체명에 대응하는 카테고리가 복수 개 검색되는 경우, 복수 개의 카테고리 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 사용자 인터페이스를 제공할 수 있다. 예를 들어, 프로세서(140)는 전자 장치(101)의 디스플레이에 그래픽 사용자 인터페이스를 표시함으로써 사용자 인터페이스를 제공할 수 있다. 예를 들어, 제1 개체명에 대해, 공중 데이터에 기반하여 'TV shows'와 'Music'의 두 가지 카테고리가 검색될 수 있다. 예를 들어, 프로세서(140)는 제1 개체명에 대하여 'TV shows' 또는 'Music' 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 사용자 인터페이스를 제공할 수 있다.In one embodiment, when a plurality of categories corresponding to an entity name are searched based on public data, the processor 140 may provide a user interface that asks the user which category among the plurality of categories he or she wants information belonging to. . For example, the processor 140 may provide a user interface by displaying a graphical user interface on the display of the electronic device 101. For example, for the first entity name, two categories of 'TV shows' and 'Music' may be searched based on public data. For example, the processor 140 may provide a user interface that asks the user which category of 'TV shows' or 'Music' the first entity name belongs to.

일 실시예에서, 프로세서(140)는 개체명에 대응하는 카테고리가 복수 개 검색되고, 각 카테고리에 대한 비율 정보에 기반하여 개체명에 대응하는 카테고리를 하나로 결정할 수 없는 경우, 사용자 인터페이스를 통해 사용자가 의도한 카테고리를 확인할 수 있다. 예를 들어, 제1 개체명에 대해 'TV shows' 카테고리로 사용되는 비율이 약 52%이고, 'Music' 카테고리로 사용되는 비율이 약 48%일 수 있다. 이 경우, 프로세서(140)는 두 카테고리의 사용되는 비율 차이가 지정된 범위(예: 5%) 이내이므로, 사용자가 의도한 카테고리를 결정할 수 없을 수 있다. 예를 들어, 프로세서(140)는'TV shows' 또는 'Music' 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 사용자 인터페이스를 제공할 수 있다. 프로세서(140)는 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 카테고리에 대응하는 실행 정보를 획득할 수 있다.In one embodiment, if a plurality of categories corresponding to the entity name are searched and the category corresponding to the entity name cannot be determined as one based on ratio information for each category, the processor 140 allows the user to use the user interface through the user interface. You can check the intended category. For example, the proportion of the first entity name used in the 'TV shows' category may be about 52%, and the proportion used in the 'Music' category may be about 48%. In this case, the processor 140 may not be able to determine the category intended by the user because the difference in percentages used between the two categories is within a specified range (eg, 5%). For example, the processor 140 may provide a user interface that asks the user which category of 'TV shows' or 'Music' the user wants. The processor 140 may obtain execution information corresponding to the category selected by user input on the user interface.

일 실시예에서, 프로세서(140)는 공중 데이터에 기반하여 개체명에 대응하는 카테고리가 복수 개 검색되고, 개인 데이터에 기반하여 복수 개의 카테고리 중 하나의 카테고리를 특정 가능한 경우, 특정된 하나의 카테고리에 대응하는 실행 정보를 획득할 수 있다. 예를 들어, 프로세서(140)는 개인 데이터에 기반하여 검색한 결과 개체명에 대응하는 카테고리가 한 개인 경우, 해당 카테고리를 개체명에 대응하는 카테고리로 특정할 수 있다. 예를 들어, 제1 개체명에 대해, 공중 데이터에 기반하여 'TV shows'와 'Music'의 두 가지 카테고리가 검색되고, 개인 데이터에 기반하여 'TV shows' 카테고리만 검색될 수 있다. 이 경우, 프로세서(140)는 제1 개체명에 대응하는 카테고리를 'TV shows'로 특정하고, 'TV shows'에 대응하는 실행 정보를 획득할 수 있다.In one embodiment, the processor 140 searches for a plurality of categories corresponding to the entity name based on public data, and if it is possible to specify one category among the plurality of categories based on personal data, it selects the specified category Corresponding execution information can be obtained. For example, if there is one category corresponding to the entity name as a result of a search based on personal data, the processor 140 may specify the category as the category corresponding to the entity name. For example, for the first entity name, two categories of 'TV shows' and 'Music' may be searched based on public data, and only the 'TV shows' category may be searched based on personal data. In this case, the processor 140 may specify the category corresponding to the first entity name as 'TV shows' and obtain execution information corresponding to 'TV shows'.

예를 들어, 프로세서(140)는 개인 데이터에 기반하여 검색한 결과 개체명에 대응하는 카테고리가 복수 개인 경우, 복수 개의 카테고리 중 사용 횟수가 가장 많은 카테고리를 개체명에 대응하는 카테고리로 특정할 수 있다. 예를 들어, 제1 개체명에 대해, 개인 데이터에 기반하여 TV shows'와 'Music'의 두 가지 카테고리가 검색되고, 'TV shows' 카테고리의 사용 횟수가 2회, 'Music' 카테고리의 사용 횟수가 1회일 수 있다. 이 경우, 프로세서(140)는 제1 개체명에 대응하는 카테고리를 'TV shows'로 특정하고, 'TV shows'에 대응하는 실행 정보를 획득할 수 있다.For example, if there are a plurality of categories corresponding to the entity name as a result of a search based on personal data, the processor 140 may specify the most frequently used category among the plurality of categories as the category corresponding to the entity name. . For example, for the first entity name, two categories, 'TV shows' and 'Music', are searched based on personal data, the number of uses of the 'TV shows' category is 2, and the number of uses of the 'Music' category are 2. It may be once. In this case, the processor 140 may specify the category corresponding to the first entity name as 'TV shows' and obtain execution information corresponding to 'TV shows'.

일 실시예에서, 프로세서(140)는 획득된 실행 정보를 이용하여 음성 명령을 실행할 수 있다. 예를 들어, 프로세서(140)는 획득된 도메인 정보가 나타내는 도메인을 이용하여 음성 명령을 실행할 수 있다. 예를 들어, 프로세서(140)는 획득된 의도 정보가 나타내는 특정 도메인의 기능을 실행함으로써 음성 명령을 실행할 수 있다. 본 개시에서, 전자 장치(101) 또는 프로세서(140)가 음성 명령을 실행하는 것은, 음성 명령에 대응하는 동작(action)을 수행하는 것, 또는 사용자의 의도에 대응하는 기능을 수행하는 것으로 참조될 수 있다.In one embodiment, the processor 140 may execute a voice command using the obtained execution information. For example, the processor 140 may execute a voice command using the domain indicated by the acquired domain information. For example, the processor 140 may execute a voice command by executing the function of a specific domain indicated by the acquired intent information. In the present disclosure, executing a voice command by the electronic device 101 or the processor 140 may be referred to as performing an action corresponding to the voice command or performing a function corresponding to the user's intention. You can.

일 실시예에서, 프로세서(140)는 음성 명령의 실행에 의해 수행된 동작(action)이 전자 장치(101)의 사용자의 의도에 대응되는지 결정할 수 있다. 예를 들어, 프로세서(140)는 사용자로부터 부정적인 피드백(예: '취소' 또는 '뒤로 가기' 버튼 입력, 또는 동일한 음성 명령 재 발화)을 수신한 경우, 음성 명령의 실행에 의해 전자 장치(101)가 수행한 동작이 사용자의 의도에 대응되지 않는 것으로 결정할 수 있다. 예를 들어, 프로세서(140)는 사용자로부터 긍정적인 피드백(예: 수행된 동작에 연속되는 동작을 수행하도록 하는 음성 명령 발화, 동작이 수행된 상태를 유지하도록 하는 무응답, 또는 "고마워" 또는 "잘했어"와 같은 긍정적인 단어를 포함하는 발화)을 수신한 경우, 음성 명령의 실행에 의해 전자 장치(101)가 수행한 동작이 사용자의 의도에 대응되는 것으로 결정할 수 있다.In one embodiment, the processor 140 may determine whether an action performed by executing a voice command corresponds to the intention of the user of the electronic device 101. For example, when the processor 140 receives negative feedback from the user (e.g., inputting a 'cancel' or 'back' button, or re-uttering the same voice command), the processor 140 may control the electronic device 101 by executing the voice command. It may be determined that the action performed does not correspond to the user's intention. For example, processor 140 may receive positive feedback from the user (e.g., uttering a voice command to perform an action subsequent to the performed action, no response to keep the action performed, or a "thank you" or "well done"). When an utterance containing a positive word such as "I did it" is received, the action performed by the electronic device 101 by executing the voice command may be determined to correspond to the user's intention.

일 실시예에서, 프로세서(140)는 음성 명령의 실행에 의해 수행된 동작(action)이 전자 장치(101)의 사용자의 의도에 대응되는 경우, 음성 명령의 실행에 사용된 정보를 개인 데이터로서 데이터베이스에 저장할 수 있다. 예를 들어, 음성 명령의 실행에 사용된 정보는, 음성 명령에 포함된 개체명, 개체명에 대응하는 카테고리, 개체명이 발화된 횟수, 동작을 수행한 도메인, 또는 도메인에서의 수행된 동작에 대응하는 의도 중 적어도 하나를 포함할 수 있다. 예를 들어, 음성 명령의 실행에 사용된 정보는, 개체명과 그 외 정보가 연관되어 저장될 수 있다. 이에 따라, 프로세서(140)는 동일한 개체명을 포함하는 음성 명령을 수신한 경우, 데이터베이스에 저장된 개체명과 연관된 정보(예: 카테고리, 발화 횟수, 도메인, 및/또는 의도)를 획득할 수 있다. 예를 들어, 프로세서(140)는 획득된 도메인 정보 또는 의도 정보에 기반하여 음성 명령에 대응하는 동작을 수행할 수 있다.In one embodiment, if the action performed by executing the voice command corresponds to the intention of the user of the electronic device 101, the processor 140 stores the information used in executing the voice command as personal data. It can be saved in . For example, the information used to execute a voice command may include the entity name included in the voice command, the category corresponding to the entity name, the number of times the entity name was uttered, the domain in which the action was performed, or the action performed in the domain. It may include at least one of the following intentions: For example, information used to execute a voice command may be stored in association with the entity name and other information. Accordingly, when the processor 140 receives a voice command including the same entity name, the processor 140 may obtain information (eg, category, number of utterances, domain, and/or intent) associated with the entity name stored in the database. For example, the processor 140 may perform an operation corresponding to a voice command based on the acquired domain information or intent information.

예를 들어, 개체명에 기반하여 데이터베이스에서 검색되는 데이터가 없을 수 있다. 이 경우, 프로세서(140)는 대중적으로(popularly) 사용되는 의도 리스트를 포함하는 사용자 인터페이스를 제공할 수 있다. 의도 리스트는 적어도 하나의 의도를 포함할 수 있다. 의도 리스트에 포함된 적어도 하나의 의도는 적어도 하나의 도메인의 기능에 대응될 수 있다. 의도 리스트에 포함된 적어도 하나의 의도는, 개체명과는 관련 없을 수 있다. 의도 리스트에 포함된 적어도 하나의 의도는, 예를 들어, 전자 장치(101)가 지원하는 도메인 또는 의도 중에서 음성 어시스턴트 서비스 사용자들(또는, 음성 어시스턴트 서비스를 제공하는 전자 장치들)에 의해 가장 많이 사용되는 도메인 또는 의도가 추출된 것일 수 있다. 프로세서(140)는 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작(action)을 수행할 수 있다.For example, there may be no data retrieved from a database based on the entity name. In this case, the processor 140 may provide a user interface that includes a list of commonly used intents. The intent list may contain at least one intent. At least one intent included in the intent list may correspond to the function of at least one domain. At least one intent included in the intent list may be unrelated to the entity name. At least one intent included in the intent list is, for example, the most used by voice assistant service users (or electronic devices providing the voice assistant service) among the domains or intents supported by the electronic device 101. The domain or intention may be extracted. The processor 140 may perform an action corresponding to the intention selected by user input on the user interface.

예를 들어, 개체명에 기반하여 데이터베이스에서 검색되는 데이터가 복수의 의도를 포함할 수 있다. 이 경우, 프로세서(140)는 개체명과 연관된 의도 리스트를 포함하는 사용자 인터페이스를 제공할 수 있다. 의도 리스트는 개체명과 연관된 적어도 하나의 의도를 포함할 수 있다. 의도 리스트에 포함된 적어도 하나의 의도는 개체명과 연관된 적어도 하나의 도메인의 기능에 대응될 수 있다. 프로세서(140)는 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작을 수행할 수 있다.For example, data retrieved from a database based on an entity name may contain multiple intents. In this case, processor 140 may provide a user interface that includes an intent list associated with the entity name. The intent list may include at least one intent associated with the entity name. At least one intent included in the intent list may correspond to the function of at least one domain associated with the entity name. The processor 140 may perform an operation corresponding to the intention selected by the user input to the user interface.

일 실시예에서, 프로세서(140)는 수신된 음성 명령에 대응하는 텍스트가 하나의 개체명으로 구성된 경우, 텍스트에 기반하여 도메인 또는 의도를 특정할 수 있는지 결정할 수 있다. 예를 들어, 텍스트에 포함된 개체명에 대응하는 도메인 또는 의도가 한 개인 경우, 프로세서(140)는 텍스트에 기반하여 도메인 또는 의도를 특정할 수 있는 것으로 결정할 수 있다. 예를 들어, 텍스트에 포함된 개체명에 대응하는 도메인 또는 의도가 복수 개인 경우, 프로세서(140)는 텍스트에 기반하여 도메인 또는 의도를 특정할 수 없는 것으로 결정할 수 있다. In one embodiment, when the text corresponding to the received voice command consists of one entity name, the processor 140 may determine whether the domain or intention can be specified based on the text. For example, when there is only one domain or intent corresponding to an entity name included in the text, the processor 140 may determine that the domain or intent can be specified based on the text. For example, when there are multiple domains or intents corresponding to an entity name included in the text, the processor 140 may determine that the domain or intent cannot be specified based on the text.

일 실시예에서, 프로세서(140)는 텍스트에 기반하여 도메인 또는 의도를 특정할 수 있는 경우, 특정된 도메인 또는 의도에 기반하여 음성 명령에 대응하는 동작(action)을 수행할 수 있다. 일 실시예에서, 프로세서(140)는 텍스트에 기반하여 도메인 또는 의도를 특정할 수 없는 경우, 텍스트에 포함된 개체명에 기반하여 데이터베이스를 검색하여 획득된 실행 정보를 이용하여 도메인 또는 의도를 특정할 수 있다. 일 실시예에서, 프로세서(140)는 실행 정보를 이용하여 특정된 도메인 또는 의도에 기반하여 음성 명령에 대응하는 동작(action)을 수행할 수 있다.In one embodiment, when the processor 140 can specify a domain or intent based on text, the processor 140 may perform an action corresponding to a voice command based on the specified domain or intent. In one embodiment, if the domain or intent cannot be specified based on the text, the processor 140 may specify the domain or intent using execution information obtained by searching the database based on the entity name included in the text. You can. In one embodiment, the processor 140 may perform an action corresponding to a voice command based on a specified domain or intention using execution information.

일 실시예에서, 프로세서(140)는 전자 장치(101)의 입력 장치를 통해 적어도 하나의 개체명에 대해 동작(action)을 수행할 도메인 또는 도메인에서의 의도를 지정하는 사용자 입력을 수신할 수 있다. 프로세서(140)는 수신된 사용자 입력에 기반하여, 적어도 하나의 개체명 중 어느 하나를 포함하는 음성 명령이 수신되는 경우 지정된 도메인 또는 지정된 의도에 따라 음성 명령에 대응하는 동작을 수행하도록 설정할 수 있다. 상기 설정 이후, 프로세서(140)는 마이크(110)를 통해 도메인 또는 의도가 지정된 하나의 개체명으로 구성된 음성 명령을 수신한 경우, 개체명에 대하여 지정된 도메인 또는 의도에 따라 음성 명령에 대응하는 동작을 수행할 수 있다.In one embodiment, the processor 140 may receive a user input specifying the domain or intention in the domain to perform an action on at least one entity name through the input device of the electronic device 101. . Based on the received user input, the processor 140 may be set to perform an operation corresponding to the voice command according to a designated domain or designated intent when a voice command including one of at least one entity name is received. After the above setting, when the processor 140 receives a voice command consisting of an entity name with a specified domain or intent through the microphone 110, the processor 140 performs an operation corresponding to the voice command according to the domain or intent specified for the entity name. It can be done.

예를 들어, 프로세서(140)는 적어도 하나의 개체명에 대하여 동작을 수행할 도메인을 지정하는 사용자 인터페이스를 제공할 수 있다. 적어도 하나의 개체명은 제1 개체명 및 제2 개체명을 포함할 수 있다. 예를 들어, 프로세서(140)는 제1 개체명에 대해 음성 명령에 대응하는 동작을 수행할 도메인을 제1 도메인(예: 제1 앱)으로 지정하는 제1 사용자 입력을 수신할 수 있다. 예를 들어, 프로세서(140)는 제2 개체명에 대해 음성 명령에 대응하는 동작을 수행할 도메인을 제2 도메인(예: 제2 앱)으로 지정하는 제2 사용자 입력을 수신할 수 있다. 프로세서(140)는 제1 사용자 입력 및 제2 사용자 입력에 기반하여 제1 개체명 및 제2 개체명에 대해 음성 명령에 대응하는 동작을 수행할 도메인을 각각 설정할 수 있다. 이후, 프로세서(140)는 제1 개체명을 포함하는 음성 명령을 수신하는 경우, 제1 도메인을 이용하여 음성 명령에 대응하는 동작을 수행할 수 있다. 또한, 프로세서(140)는 제2 개체명을 포함하는 음성 명령을 수신하는 경우, 제2 도메인을 이용하여 음성 명령에 대응하는 동작을 수행할 수 있다.For example, the processor 140 may provide a user interface that specifies a domain in which to perform an operation for at least one entity name. At least one entity name may include a first entity name and a second entity name. For example, the processor 140 may receive a first user input designating a domain to perform an operation corresponding to a voice command for a first entity name as a first domain (eg, a first app). For example, the processor 140 may receive a second user input designating a domain to perform an operation corresponding to a voice command for a second entity name as a second domain (eg, a second app). The processor 140 may set domains to perform operations corresponding to voice commands for the first entity name and the second entity name based on the first user input and the second user input, respectively. Thereafter, when the processor 140 receives a voice command including the first entity name, the processor 140 may perform an operation corresponding to the voice command using the first domain. Additionally, when the processor 140 receives a voice command including a second entity name, the processor 140 may perform an operation corresponding to the voice command using the second domain.

예를 들어, 프로세서(140)는 적어도 하나의 개체명에 대하여 사용자 입력에 의해 지정된 도메인 또는 의도에 대한 정보를 데이터베이스에 저장할 수 있다. 예를 들어, 프로세서(140)는 개체명과, 개체명에 대응하여 지정된 도메인 또는 의도를 연관시켜 데이터베이스에 저장할 수 있다.For example, the processor 140 may store information about the domain or intent specified by user input for at least one entity name in a database. For example, the processor 140 may associate an entity name with a domain or intention designated corresponding to the entity name and store the associated entity name in a database.

일 실시예에 따른 전자 장치(101)는 개체명에 대응하는 카테고리, 도메인 및/또는 의도를 탐지(detect)할 수 있는 데이터베이스를 구축하고, 개체명에 기반한 데이터베이스 검색을 통해 서술어가 없는 사용자 발화에 대하여도 사용자가 원하는 도메인 또는 의도를 파악하여 사용자의 의도에 대응하는 동작을 수행할 수 있다. 일 실시예에 따른 전자 장치(101)는 사용자의 의도가 불명확한 경우에도 사용자 발화와 관련된 의도 정보를 파악하여 사용자에게 제공할 수 있다. 일 실시예에 따른 전자 장치(101)는 사용자 발화에 대응하는 카테고리가 복수 개인 경우에도 개인 데이터를 이용하여 사용자가 원하는 도메인 또는 의도를 파악하여 사용자의 의도에 대응하는 동작을 수행할 수 있다.The electronic device 101 according to one embodiment builds a database capable of detecting categories, domains, and/or intentions corresponding to entity names, and searches the database based on entity names to identify user utterances without predicates. Also, by identifying the user's desired domain or intention, an operation corresponding to the user's intention can be performed. The electronic device 101 according to one embodiment may identify intention information related to the user's utterance and provide it to the user even when the user's intention is unclear. The electronic device 101 according to one embodiment can identify the user's desired domain or intention using personal data and perform an operation corresponding to the user's intention, even when there are multiple categories corresponding to the user's utterance.

도 2는 일 예시에 따른 전자 장치의 기능 블록도(200)이다.FIG. 2 is a functional block diagram 200 of an electronic device according to an example.

일 예시에 따른 전자 장치(예: 도 1의 전자 장치(101))는 도 2에 도시된 모듈들(또는, 유닛들)의 적어도 일부를 포함할 수 있다. 도 2에 도시된 각 모듈(또는, 유닛)은 각 기능을 구현하기 위한 인스트럭션들의 집합일 수 있다. 이하에서 설명되는 각 모듈의 동작들은 적어도 도 1에 도시된 전자 장치(101)의 하드웨어 구성요소(예: 도 1의 프로세서(140))에 의해 수행될 수 있다. 예를 들어, 전자 장치(101)는 ASR 모듈(210), NLU 모듈(220), 실행 정보 탐지 모듈(230), 서술어 유무 판단부(240), 사용자 데이터 수집부(241), 및/또는 사용자 데이터 전달부(243)를 포함할 수 있다.An electronic device (eg, the electronic device 101 of FIG. 1) according to an example may include at least some of the modules (or units) shown in FIG. 2. Each module (or unit) shown in FIG. 2 may be a set of instructions to implement each function. The operations of each module described below may be performed by at least a hardware component (eg, the processor 140 of FIG. 1) of the electronic device 101 shown in FIG. 1. For example, the electronic device 101 includes an ASR module 210, an NLU module 220, an execution information detection module 230, a predicate presence/absence determination unit 240, a user data collection unit 241, and/or a user It may include a data transmission unit 243.

ASR 모듈(210)은 전자 장치(101)의 마이크(예: 도 1의 마이크(110))를 통해 수신된 사용자의 음성 명령을 텍스트로 변환할 수 있다.The ASR module 210 may convert the user's voice command received through the microphone of the electronic device 101 (e.g., the microphone 110 of FIG. 1) into text.

NLU 모듈(220)은 변환된 텍스트에 기반하여 도메인 또는 의도를 결정할 수 있다. 도메인은 음성 명령을 실행하는 애플리케이션을 나타낼 수 있다. 의도는 음성 명령이 요청하는 애플리케이션의 기능을 나타낼 수 있다. NLU 모듈(220)은 개인화된 의도 처리부(221), 도메인 분류기(domain classifier)(223), 카테고리 해결자(category resolver)(225), 또는 의도 분류기(intent classifier)(227)를 포함할 수 있다.The NLU module 220 may determine the domain or intent based on the converted text. A domain may represent an application that executes voice commands. The intent may indicate the functionality of the application that the voice command is requesting. The NLU module 220 may include a personalized intent processor 221, a domain classifier 223, a category resolver 225, or an intent classifier 227. .

개인화된 의도 처리부(221)는 서술어 유무 판단부(240)를 호출하여 사용자의 발화가 서술어 없는 발화인지 판단할 수 있다. 서술어 유무 판단부(240)는 수신된 음성 명령으로부터 변환된 텍스트가 서술어를 포함하는지 여부를 판단할 수 있다. 서술어 유무 판단부(240)는 수신된 음성 명령으로부터 변환된 텍스트가 서술어 없이 개체명만으로 구성되는지 여부를 판단할 수 있다. 개인화된 의도 처리부(221)는 음성 명령에 대응하는 텍스트가 서술어 없이 단일 개체명으로 구성된 경우에 한하여 실행 정보 탐지 모듈(230)을 통해 음성 명령을 실행하기 위한 실행 정보를 획득할 수 있다. 개인화된 의도 처리부(221)는 실행 정보 탐지 모듈(230) 또는 실행 정보 탐지 모듈(230)의 실행 정보 판별부(232)에 질의하여 음성 명령을 실행하기 위한 실행 정보를 획득할 수 있다. 실행 정보는, 예를 들어, 카테고리 정보, 도메인 정보, 의도 정보, 및/또는 동작 정보를 포함할 수 있다. 동작 정보는 의도 또는 의도가 나타내는 도메인(예: 애플리케이션)의 기능에 대응하는 동작을 나타낸 정보일 수 있다. 개인화된 의도 처리부(221)는 실행 정보 탐지 모듈(230) 또는 실행 정보 판별부(232)에 질의 시에 텍스트에 포함된 개체명을 전달할 수 있다.The personalized intent processing unit 221 may call the predicate presence/absence determination unit 240 to determine whether the user's utterance is an utterance without a predicate. The predicate presence/absence determination unit 240 may determine whether the text converted from the received voice command includes the predicate. The predicate presence/absence determination unit 240 may determine whether the text converted from the received voice command consists of only the entity name and no predicate. The personalized intention processing unit 221 can obtain execution information for executing a voice command through the execution information detection module 230 only when the text corresponding to the voice command consists of a single entity name without a predicate. The personalized intention processing unit 221 may query the execution information detection module 230 or the execution information determination unit 232 of the execution information detection module 230 to obtain execution information for executing the voice command. Execution information may include, for example, category information, domain information, intent information, and/or action information. Operation information may be information indicating an operation corresponding to the intention or the function of the domain (e.g., application) indicated by the intention. The personalized intent processing unit 221 may transmit the entity name included in the text to the execution information detection module 230 or the execution information determination unit 232 when making a query.

개인화된 의도 처리부(221)는 사용자의 발화가 서술어 없이 하나의 개체명만을 포함하고, 음성 명령을 실행할 도메인이 명확한 경우(예: 개체명 에 대응하는 도메인이 1개로 결정(또는, 특정)된 경우), 전자 장치(101)가 해당 도메인을 이용하여 음성 명령을 실행하도록 할 수 있다. 개인화된 의도 처리부(221)는 사용자의 발화가 서술어 없이 하나의 개체명만을 포함하고, 음성 명령을 실행할 도메인이 불명확한 경우(예: 개체명에 대응하는 도메인이 복수 개인 경우), 개체명을 실행 정보 탐지 모듈(230)에 전달하고, 실행 정보 탐지 모듈(230)로부터 음성 명령을 실행하기 위한 실행 정보를 획득할 수 있다. 전자 장치(101)는 획득된 실행 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행할 수 있다.The personalized intent processing unit 221 operates when the user's utterance includes only one entity name without a predicate and the domain to execute the voice command is clear (e.g. entity name If the domain corresponding to is determined (or specified) to be one, the electronic device 101 can execute a voice command using the corresponding domain. The personalized intent processing unit 221 executes the entity name when the user's utterance includes only one entity name without a predicate and the domain to execute the voice command is unclear (e.g., when there are multiple domains corresponding to the entity name). It can be transmitted to the information detection module 230 and the execution information for executing the voice command can be obtained from the execution information detection module 230. The electronic device 101 may perform an operation corresponding to the user's intention using the acquired execution information.

개인화된 의도 처리부(221)는 사용자의 발화가 서술어를 포함하더라도, 실행 정보 탐지 모듈(230) 또는 실행 정보 판별부(232)로부터 획득한 실행 정보가 있는 경우, 실행 정보를 도메인 분류기(223), 카테고리 해결자(225), 및/또는 의도 분류기(227)에 전달하여 이용하도록 할 수 있다.Even if the user's utterance includes a predicate, the personalized intention processing unit 221, if there is execution information obtained from the execution information detection module 230 or the execution information determination unit 232, sends the execution information to the domain classifier 223, It can be used by passing it to the category resolver 225 and/or the intent classifier 227.

도메인 분류기(223)는 NLU 모듈(220)의 서브 모듈이다. 도메인 분류기(223)는 각 도메인 처리기로 발화 또는 발화에 대응하는 텍스트를 전달할 수 있다. 도메인은, 예를 들어, 전화(phone), 메시지(message) 또는 갤러리(gallery)와 같은 애플리케이션, 또는 미디어 컨텐츠(media contents)와 같은 애플리케이션 영역으로 참조될 수 있다.The domain classifier 223 is a sub-module of the NLU module 220. The domain classifier 223 can deliver the utterance or text corresponding to the utterance to each domain processor. A domain may be referred to, for example, as an application area such as a phone, message, or gallery, or an application area such as media contents.

카테고리 해결자(225)는 도메인 분류기(223)에 의해 세부 도메인(예: 애플리케이션)이 결정될 수도 있지만, 예를 들어, 도메인 분류기(223)에 의해 미디어 컨텐츠와 같이 애플리케이션 영역으로 결정된 것과 같이 세부 도메인이 결정되지 않을 수 있다. 이 경우, 카테고리 해결자(225)는 발화가 어떤 세부 도메인에서 처리되어야 하는지 결정해야 할 수 있다. 이 결정을 위해 카테고리 해결자(225)는 개인화된 의도 처리부(221)를 통해 획득한 카테고리 정보, 또는 도메인 정보를 이용할 수 있다.The category resolver 225 may determine the detailed domain (e.g., application) by the domain classifier 223, but the detailed domain may be determined by the domain classifier 223 to be an application area, such as media content. may not be decided. In this case, the category resolver 225 may need to determine in which detailed domain the utterance should be processed. For this decision, the category resolver 225 may use category information or domain information obtained through the personalized intent processing unit 221.

의도 분류기(227)는 발화를 분석하여 사용자의 의도를 분류할 수 있다. 의도 분류기(227)는, 예를 들어, 발화에 대응하는 텍스트에 대하여 문법적 분석 및/또는 의미적 분석을 수행하여 사용자의 의도를 파악할 수 있다. 의도 분류기(227)는 개인화된 의도 처리부(221)에서 의도가 파악되지 않은 발화에 대하여 의도를 판별할 수 있다. 예를 들어, 개체명이 실행 정보 탐지 모듈(230)을 통해 실행 정보가 탐지되는 지정된 개체명이 아닌 경우, 해당 개체명을 포함하는 발화는 개인화된 의도 처리부(221)에서 의도가 파악되지 않을 수 있다. 의도 분류기(227)는 개인화된 의도 처리부(221)에서 사용되는 분류 알고리즘보다 복잡하고 규모가 큰 연산을 처리할 수 있는 알고리즘을 이용할 수 있다.The intent classifier 227 can classify the user's intent by analyzing the utterance. For example, the intention classifier 227 may determine the user's intention by performing grammatical analysis and/or semantic analysis on the text corresponding to the utterance. The intent classifier 227 can determine the intent of an utterance whose intent is not identified in the personalized intent processing unit 221. For example, if the entity name is not a designated entity name whose execution information is detected through the execution information detection module 230, the intent of the utterance containing the entity name may not be recognized by the personalized intent processing unit 221. The intent classifier 227 may use an algorithm that can process more complex and larger-scale operations than the classification algorithm used in the personalized intent processing unit 221.

의도 분류기(227)는 사용자의 발화에 응답하여 수행된 동작이 사용자의 의도에 대응하는 경우, 발화 사용성 정보를 실행 정보 탐지 모듈(230) 또는 데이터 수집부(234)에 전달할 수 있다. 발화 사용성 정보는, 음성 명령의 실행에 사용된 정보로, 음성 명령에 포함된 개체명, 개체명에 대응하는 카테고리, 개체명이 발화된 횟수, 동작을 수행한 도메인, 또는 도메인에서의 수행된 동작에 대응하는 의도 중 적어도 하나를 포함할 수 있다.If the action performed in response to the user's utterance corresponds to the user's intention, the intent classifier 227 may transmit the utterance usability information to the execution information detection module 230 or the data collection unit 234. Utterance usability information is information used in the execution of a voice command, and includes the entity name included in the voice command, the category corresponding to the entity name, the number of times the entity name was uttered, the domain in which the action was performed, or the action performed in the domain. May contain at least one of the corresponding intents.

실행 정보 탐지 모듈(230)은 처리부(231), 검색부(233), 및 DB(235)를 포함할 수 있다. 처리부(231)는 실행 정보 판별부(232) 및 데이터 수집부(234)를 포함할 수 있다. 실행 정보 판별부(232)는 개인화된 의도 처리부(221)로부터 전달된 개체명에 기반하여 검색부(233)를 통해 DB(235)를 검색할 수 있다. 검색부(233)는 개체명의 문자열 정보 및 발음열 정보를 이용하여 검색할 수 있다. DB(235)는 개인 데이터(235-1) 및 공중 데이터(235-2)를 포함할 수 있다. 개인 데이터(235-1) 및 공중 데이터(235-2)는 데이터 수집부(234)에 의해 각각 다른 방식으로 수집될 수 있다. DB(235)에 저장되는 데이터는 개체명의 발음열 정보도 포함할 수 있다.The execution information detection module 230 may include a processing unit 231, a search unit 233, and a DB 235. The processing unit 231 may include an execution information determination unit 232 and a data collection unit 234. The execution information determination unit 232 may search the DB 235 through the search unit 233 based on the entity name transmitted from the personalized intention processing unit 221. The search unit 233 can search using string information and pronunciation string information of the entity name. DB 235 may include personal data 235-1 and public data 235-2. Personal data 235-1 and public data 235-2 may be collected by the data collection unit 234 in different ways. Data stored in the DB 235 may also include pronunciation sequence information of the entity name.

데이터 수집부(234)는 공중 데이터(235-2)를 지정된 시점에 반복적으로 최신 데이터로 업데이트할 수 있다. 공중 데이터(235-2)는 미디어 컨텐츠, 위치(location), 조직(organization), 및/또는 도메인 특정 정보(domain specific information)(예: IoT 모드)의 개체명과 같이 공중이 이용하는 개체명을 포함할 수 있다. 예를 들어, 공중 데이터(235-2)는 개체명, 개체명의 발음열 정보, 및/또는 카테고리 정보를 포함할 수 있다.The data collection unit 234 can repeatedly update the public data 235-2 with the latest data at a designated point in time. Public data 235-2 may include entity names used by the public, such as entity names of media content, location, organization, and/or domain specific information (e.g., IoT mode). You can. For example, the public data 235-2 may include an entity name, pronunciation sequence information of the entity name, and/or category information.

데이터 수집부(234)는 NLU 모듈(220), 또는 사용자 데이터 전달부(243)로부터 개인 데이터(235-1)를 수집할 수 있다. 개인 데이터(235-1)는 활동(activity), 애완동물 이름(pet name), IoT 기기명(IoT device name), 연락처 정보, 또는 개인 미디어 컨텐츠 정보와 같이 개인(예: 전자 장치(101)의 사용자)에 특화된 데이터를 포함할 수 있다. 개인 데이터(235-1)는 사용자의 앱 사용 이력, 또는 시간별 및/또는 장소별 사용자의 앱 사용 이력을 포함할 수 있다. 예를 들어, 개인 데이터(235-1)는 전자 장치(101) 내의 사용자 데이터 수집부(241)에 의해 수집될 수 있다. 사용자 데이터 전달부(243)는 사용자 데이터 수집부(241)에 의해 수집된 개인 데이터(235-1)를 데이터 수집부(234)에 전달할 수 있다. 예를 들어, 데이터 수집부(234)는 NLU 모듈(220)로부터 발화 사용성 정보를 전달 받음으로써 개인 데이터(235-1)를 수집할 수 있다. 예를 들어, 개인 데이터(235-1)는 사용자 식별자, 개체명, 개체명의 발음열 정보, 카테고리 정보, 발화 횟수 정보, 선호도 정보, 도메인 정보, 및/또는 의도 정보를 포함할 수 있다.The data collection unit 234 may collect personal data 235-1 from the NLU module 220 or the user data transmission unit 243. Personal data 235-1 may be personal (e.g., user of electronic device 101), such as activity, pet name, IoT device name, contact information, or personal media content information. ) may include specialized data. Personal data 235-1 may include the user's app usage history, or the user's app usage history by time and/or location. For example, personal data 235-1 may be collected by the user data collection unit 241 within the electronic device 101. The user data transmission unit 243 may transmit the personal data 235-1 collected by the user data collection unit 241 to the data collection unit 234. For example, the data collection unit 234 may collect personal data 235-1 by receiving speech usability information from the NLU module 220. For example, the personal data 235-1 may include a user identifier, entity name, pronunciation sequence information of the entity name, category information, utterance count information, preference information, domain information, and/or intent information.

사용자 데이터 수집부(241)는, 예를 들어, 데이터를 등록 또는 변경하는 사용자 입력을 수신한 경우 데이터를 수집할 수 있다. 예를 들어, IoT 애완동물 서비스(IoT pet service)에서 애완동물 이름을 등록하거나 변경하는 사용자 입력을 수신한 경우, 사용자 데이터 수집부(241)는 애완동물 이름 정보를 수집할 수 있다.For example, the user data collection unit 241 may collect data when receiving a user input for registering or changing data. For example, when a user input for registering or changing a pet name is received in an IoT pet service, the user data collection unit 241 may collect pet name information.

사용자 데이터 수집부(241)는, 예를 들어, 컨텐츠에 선호를 표시하는 사용자 입력을 수신한 경우 컨텐츠에 대한 정보를 수집할 수 있다. 예를 들어, 컨텐츠가 장시간(예: 임계 시간 이상) 재생된 경우, 사용자 데이터 수집부(241)는 재생된 컨텐츠에 대한 정보를 수집할 수 있다.For example, the user data collection unit 241 may collect information about the content when receiving a user input indicating a preference for the content. For example, when content is played for a long time (eg, longer than a threshold time), the user data collection unit 241 may collect information about the played content.

사용자 데이터 수집부(241)는, 예를 들어, 음성 어시스턴트가 제공한 복수의 의도 정보를 포함하는 의도 리스트에서 하나를 선택하는 사용자 입력을 수신한 경우 선택된 의도 정보를 수집할 수 있다. 예를 들어, 실행 정보 판별부(232)에서 개체명에 대응하는 카테고리를 특정하더라도, 개인화된 의도 처리부(221)는 어떤 동작을 수행해야 할지 모호할 수 있다. 이 경우, 개인화된 의도 처리부(221)는 사용자에게 원하는 동작을 선택하도록 하는 사용자 인터페이스를 제공할 수 있다. 예를 들어, 사용자가 “강남역”이라고 발화한 경우, 실행 정보 판별부(232)는 '강남역'이라는 개체명이 'location' 카테고리에 속함을 인지할 수 있다. 실행 정보 판별부(232)는 '강남역'이 'location' 카테고리에 속함을 나타내는 정보를 개인화된 의도 처리부(221)에 전달할 수 있다. 개인화된 의도 처리부(221)는 “강남역”이라는 'location' 카테고리의 정보를 이용하여 수행 가능한 동작이 복수 개이므로, 복수의 동작의 후보들을 사용자 인터페이스를 통해 제공할 수 있다. 예를 들어, 개인화된 의도 처리부(221)는 '제1 앱에서 “강남역” 근처 맛집 알려줘', '제2 앱에서 “강남역”까지 길 안내 해줘', 및 '제2 앱에서 “강남역” 근처 맛집 알려줘'를 포함하는 사용자 인터페이스를 제공할 수 있다. 개인화된 의도 처리부(221)는 제공된 복수의 동작의 후보들 중 하나를 선택하는 사용자 입력을 수신함에 응답하여 선택된 동작을 수행할 수 있다. 사용자 데이터 수집부(241)는 제공된 복수의 동작의 후보들 중 하나를 선택하는 사용자 입력을 수신함에 응답하여 선택된 동작에 대한 정보(예: 선택된 동작을 실행하기 위한 도메인 정보 또는 의도 정보)를 수집할 수 있다.For example, the user data collection unit 241 may collect the selected intention information when receiving a user input for selecting one from an intention list including a plurality of intention information provided by a voice assistant. For example, even if the execution information determination unit 232 specifies the category corresponding to the entity name, the personalized intention processing unit 221 may be ambiguous as to what operation to perform. In this case, the personalized intent processing unit 221 may provide a user interface that allows the user to select a desired action. For example, when the user utters “Gangnam Station,” the execution information determination unit 232 may recognize that the entity name “Gangnam Station” belongs to the “location” category. The execution information determination unit 232 may transmit information indicating that 'Gangnam Station' belongs to the 'location' category to the personalized intention processing unit 221. Since there are a plurality of actions that can be performed using information in the 'location' category of “Gangnam Station,” the personalized intention processing unit 221 can provide candidates for a plurality of actions through the user interface. For example, the personalized intention processing unit 221 may say, ‘Tell me a restaurant near “Gangnam Station” in the first app,’ ‘Give me directions to “Gangnam Station” in the second app,’ and ‘A restaurant near “Gangnam Station” in the second app. A user interface including 'Tell me' may be provided. The personalized intention processing unit 221 may perform the selected action in response to receiving a user input for selecting one of the plurality of provided action candidates. The user data collection unit 241 may collect information about the selected action (e.g., domain information or intention information for executing the selected action) in response to receiving a user input for selecting one of the plurality of provided action candidates. there is.

사용자 데이터 수집부(241)는, 예를 들어, 개체명에 대응하여 도메인을 지정하는 사용자 입력을 수신한 경우, 개체명과 그에 대응하는 실행 정보를 수집할 수 있다. 사용자 데이터 수집부(241)는, 예를 들어, 시간별 장소별 앱 사용 이력에 기반하여 지정된 개체명에 대응하는 실행 정보를 수집할 수 있다. 실행 정보는 도메인 정보, 의도 정보, 또는 동작 정보를 포함할 수 있다. 예를 들어, 사용자 데이터 수집부(241)는 지정된 개체명-실행 정보 쌍을 데이터 수집부(234)로 전달하고, 데이터 수집부(234)는 지정된 개체명-실행 정보 쌍을 DB(235)에 저장할 수 있다. 지정된 개체명-실행 정보 쌍은 개인 데이터(235-1)로 저장되거나, 별도의 데이터로 저장될 수 있다.For example, when receiving a user input specifying a domain corresponding to an entity name, the user data collection unit 241 may collect the entity name and execution information corresponding thereto. For example, the user data collection unit 241 may collect execution information corresponding to a designated entity name based on app usage history by time and location. Execution information may include domain information, intent information, or operation information. For example, the user data collection unit 241 transmits the designated entity name-execution information pair to the data collection unit 234, and the data collection unit 234 transmits the designated entity name-execution information pair to the DB 235. You can save it. The designated entity name-execution information pair may be stored as personal data 235-1 or may be stored as separate data.

실행 정보 판별부(232)는 개인화된 의도 처리부(221)에 의해 호출될 수 있다. 실행 정보 판별부(232)는 검색부(233)를 통해 사용자의 발화에 대응하는 텍스트에 포함된 단어 또는 절을 기반으로 DB(235)를 검색할 수 있다. 예를 들어, 실행 정보 판별부(232)는 검색부(233)를 통해 텍스트에 포함된 개체명을 기반으로 DB(235)를 검색할 수 있다. 예를 들어, 실행 정보 판별부(232)는 개체명이 어떤 카테고리에 포함되는지를 나타내는 태깅 정보(예: 카테고리 정보)뿐만 아니라, 발화에 대응하는 동작을 수행할 도메인 또는 의도를 결정함으로써, 발화에 대응하는 동작을 수행하기 위한 실행 정보를 결정할 수 있다. 실행 정보 판별부(232)는 결정된 실행 정보를 개인화된 의도 처리부(221)에 전달하여, 개인화된 의도 처리부(221)로 하여금 실행 정보를 이용하여 발화에 대응하는 동작을 수행하도록 할 수 있다.The execution information determination unit 232 may be called by the personalized intention processing unit 221. The execution information determination unit 232 may search the DB 235 through the search unit 233 based on words or phrases included in the text corresponding to the user's utterance. For example, the execution information determination unit 232 may search the DB 235 based on the entity name included in the text through the search unit 233. For example, the execution information determination unit 232 responds to an utterance by determining not only tagging information (e.g., category information) indicating which category the entity name is included in, but also a domain or intention to perform an operation corresponding to the utterance. Execution information for performing an action can be determined. The execution information determination unit 232 may transmit the determined execution information to the personalized intention processing unit 221, allowing the personalized intention processing unit 221 to perform an operation corresponding to the utterance using the execution information.

예를 들어, DB(235)에서 검색되는 개체명에 대응하는 카테고리가 2개 이상인 경우, 실행 정보 판별부(232)는 발화가 어떤 카테고리에 속하는지 판단 불가능할 수 있다. 이 경우, 실행 정보 판별부(232)는 각 카테고리에 대한 비율 정보를 개인화된 의도 처리부(221)에 반환할 수 있다. 각 카테고리에 대한 비율 정보는, 예를 들어, 개체명이 복수의 카테고리 중 각 카테고리로 사용되는 비율을 나타낼 수 있다. 예를 들어, 개인화된 의도 처리부(221)는 각 카테고리에 대한 비율 정보에 기반하여 카테고리를 특정할 수 없는 경우, 사용자에게 복수의 카테고리 중 어떤 카테고리의 정보를 원하는지 질의하는 사용자 인터페이스를 제공할 수 있다.For example, if there are two or more categories corresponding to the entity name searched in the DB 235, the execution information determination unit 232 may be unable to determine which category the utterance belongs to. In this case, the execution information determination unit 232 may return ratio information for each category to the personalized intention processing unit 221. For example, the ratio information for each category may indicate the ratio at which an entity name is used in each category among a plurality of categories. For example, if the personalized intent processing unit 221 cannot specify a category based on ratio information for each category, it may provide a user interface that asks the user which category of the plurality of categories he or she wants information about. .

예를 들어, 사용자 인터페이스를 통해, 특정 도메인을 선택하는 입력 또는 “제1 앱에서 A 틀어줘”와 같이 명확하게 도메인을 포함하는 발화 입력이 수신된 경우, 사용자 데이터 수집부(241)는 개체명 'A'에 대한 사용성 정보를 수집할 수 있다. 예를 들어, 개체명 'A'에 대한 사용성 정보는 '제1 앱'이라는 도메인 정보 및 'play'라는 의도 정보를 포함할 수 있다. 사용자 데이터 수집부(241)에 의해 수집된 개인(전자 장치(101)의 사용자)의 사용성 정보는 데이터 수집부(234)를 통해 DB(235)의 개인 데이터(235-1)로 저장될 수 있다. 개인 데이터(235-1)가 추가된 이후, 실행 정보 판별부(232)는 동일한 개체명에 대하여 추가된 개인 데이터(235-1)를 이용하여 사용자의 의도를 판단할 수 있다.For example, when an input for selecting a specific domain or an utterance input clearly including a domain such as “Play A in the first app” is received through the user interface, the user data collection unit 241 determines the entity name. Usability information about 'A' can be collected. For example, usability information for entity name 'A' may include domain information called 'first app' and intent information called 'play'. The usability information of an individual (user of the electronic device 101) collected by the user data collection unit 241 may be stored as personal data 235-1 of the DB 235 through the data collection unit 234. . After the personal data 235-1 is added, the execution information determination unit 232 can determine the user's intention using the added personal data 235-1 for the same entity name.

예를 들어, 개체명에 대한 개인의 사용성 정보가 없는 경우, 실행 정보 판별부(232)는 공중 데이터(235-2)에 기반하여 검색된 복수의 가능성 있는 카테고리 정보와 각 카테고리에 대한 비율 정보를 개인화된 의도 처리부(221)로 반환할 수 있다. 예를 들어, 개체명에 대한 개인의 사용성 정보가 추가된 경우, 실행 정보 판별부(232)는 공중 데이터(235-2) 및 개인 데이터(235-1)를 조합하여 사용자가 원하는 도메인 또는 의도를 결정할 수 있다. 실행 정보 판별부(232)는 결정된 도메인 또는 의도 정보와 함께 발화에 대응하는 동작 수행을 위한 메타 정보를 포함하는 실행 정보를 개인화된 의도 처리부(221)로 반환할 수 있다. 개인화된 의도 처리부(221)는 실행 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행할 수 있다.For example, when there is no personal usability information for an entity name, the execution information determination unit 232 personalizes a plurality of possible category information searched based on the public data 235-2 and ratio information for each category. It can be returned to the intention processing unit 221. For example, when personal usability information for an entity name is added, the execution information determination unit 232 combines the public data 235-2 and the personal data 235-1 to determine the user's desired domain or intent. You can decide. The execution information determination unit 232 may return execution information including meta information for performing an action corresponding to the utterance along with the determined domain or intent information to the personalized intent processing unit 221. The personalized intention processing unit 221 may perform an operation corresponding to the user's intention using execution information.

상술한 예시에서는 전자 장치(101)가 도 2에 도시된 모듈들을 전부 포함하는 경우를 예로 들었으나, 이에 한정되는 것은 아니다. 다양한 예시에 따라, 전자 장치(101)는 도 2에 도시된 모듈듈의 일부만을 포함할 수 있다.In the above example, the electronic device 101 includes all of the modules shown in FIG. 2, but the present invention is not limited thereto. According to various examples, the electronic device 101 may include only a portion of the modules shown in FIG. 2 .

일 예로, ASR 모듈(210), NLU 모듈(220), 서술어 유무 판단부(240), 사용자 데이터 수집부(241), 및 사용자 데이터 전달부(243)는 전자 장치(101)에 구현되고, 실행 정보 탐지 모듈(230)은 전자 장치(101) 외부의 서버로 구현될 수 있다. 이 경우, 전자 장치(101)는 통신 회로(120)를 통해 실행 정보 탐지 모듈(230)과 통신할 수 있다. 전자 장치(101)의 개인화된 의도 처리부(221)는 통신 회로(120)를 통해 실행 정보 탐지 모듈(230)에 질의하고 응답을 수신할 수 있다.As an example, the ASR module 210, NLU module 220, predicate presence/absence determination unit 240, user data collection unit 241, and user data transmission unit 243 are implemented and executed in the electronic device 101. The information detection module 230 may be implemented as a server external to the electronic device 101. In this case, the electronic device 101 may communicate with the execution information detection module 230 through the communication circuit 120. The personalized intent processing unit 221 of the electronic device 101 may query the execution information detection module 230 through the communication circuit 120 and receive a response.

다른 예로, 사용자 데이터 수집부(241), 및 사용자 데이터 전달부(243)는 전자 장치(101)에 구현되고, ASR(210), NLU(220), 및 서술어 유무 판단부(240)는 전자 장치(101) 외부의 제1 서버로 구현되고, 실행 정보 탐지 모듈(230)은 전자 장치(101) 외부의 제2 서버로 구현될 수 있다. 이 경우, 전자 장치(101)는 통신 회로(120)를 통해 제1 서버와 통신할 수 있으며, 통신 회로(120)를 통해 제1 서버에 마이크(110)를 통해 수신된 음성 명령을 송신할 수 있다. 전자 장치(101)는 통신 회로(120)를 통해 제2 서버와 직접 통신하거나, 제1 서버를 통해 간접적으로 통신할 수 있다. 제1 서버의 개인화된 의도 처리부(221)는 실행 정보 탐지 모듈(230)에 질의하고 응답을 수신하여 전자 장치(101)에 제공할 응답을 처리할 수 있다. 전자 장치(101)는 제1 서버로부터 처리된 응답을 수신하고, 수신된 응답에 기반하여 음성 명령을 실행할 수 있다.As another example, the user data collection unit 241 and the user data transmission unit 243 are implemented in the electronic device 101, and the ASR 210, NLU 220, and predicate presence determination unit 240 are implemented in the electronic device 101. (101) may be implemented as an external first server, and the execution information detection module 230 may be implemented as a second server external to the electronic device 101. In this case, the electronic device 101 may communicate with the first server through the communication circuit 120 and transmit a voice command received through the microphone 110 to the first server through the communication circuit 120. there is. The electronic device 101 may communicate directly with the second server through the communication circuit 120 or indirectly through the first server. The personalized intent processing unit 221 of the first server may query the execution information detection module 230, receive a response, and process the response to be provided to the electronic device 101. The electronic device 101 may receive a processed response from the first server and execute a voice command based on the received response.

도 3은 일 예시에 따른 전자 장치가 획득한 실행 정보를 나타내는 도면(300)이다. 후술하는 전자 장치(예: 도 1의 전자 장치(101))의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다. 도 3의 공중 데이터(310)는 도 2의 공중 데이터(235-2)에 대응될 수 있다. 도 3의 응답(320)은 실행 정보 판별부(예: 도 2의 실행 정보 판별부(232))가 개인화된 의도 처리부(예: 도 2의 개인화된 의도 처리부(221))로 반환하는 응답일 수 있다.FIG. 3 is a diagram 300 showing execution information acquired by an electronic device according to an example. The operation of an electronic device described later (eg, the electronic device 101 of FIG. 1) may be performed by, for example, a processor (eg, the processor 140 of FIG. 1). Public data 310 of FIG. 3 may correspond to public data 235-2 of FIG. 2. The response 320 in FIG. 3 is a response date returned by the execution information determination unit (e.g., the execution information determination unit 232 in FIG. 2) to the personalized intention processing unit (e.g., the personalized intention processing unit 221 in FIG. 2). You can.

예를 들어, 전자 장치(101)는 제1 개체명을 포함하고 서술어를 포함하지 않는 음성 명령을 수신할 수 있다. 전자 장치(101)는 제1 개체명에 기반하여 DB(예: 도 2의 DB(235))를 검색할 수 있다. 예를 들어, DB(235)에는 제1 개체명과 관련된 공중 데이터(310)가 존재하고, 제1 개체명과 관련된 개인 데이터는 존재하지 않을 수 있다. 공중 데이터(310)에 따르면, 제1 개체명에 대응하는 카테고리는 'TV shows' 카테고리와 'Music' 카테고리로 2개일 수 있다.For example, the electronic device 101 may receive a voice command that includes a first entity name and does not include a predicate. The electronic device 101 may search a DB (eg, DB 235 in FIG. 2) based on the first entity name. For example, public data 310 related to the first entity name may exist in the DB 235, but personal data related to the first entity name may not exist. According to the public data 310, there may be two categories corresponding to the first entity name, the 'TV shows' category and the 'Music' category.

전자 장치(101)는 사용자가 제1 개체명과 관련하여 'TV shows' 카테고리와 'Music' 카테고리 중 어떤 카테고리의 정보를 원하는지 결정하지 못할 수 있다. 이 경우, 전자 장치(101)는 각 카테고리에 대한 사용 비율 정보를 획득할 수 있다. 예를 들어, 전자 장치(101)는 제1 개체명이 'TV shows' 카테고리로 사용되는 비율과 제1 개체명이 'Music' 카테고리로 사용되는 비율을 나타내는, 각 카테고리에 대한 비율 정보를 획득할 수 있다. 예를 들어, 전자 장치(101)는 제1 개체명에 대한 실행 정보로서 응답(320)을 획득할 수 있다. 응답(320)은 제1 개체명에 대응하는 카테고리 정보를 포함할 수 있다. 응답(320)은 제1 개체명에 대응하는 카테고리가 복수인 경우, 각 카테고리에 대한 비율 정보를 더 포함할 수 있다. 응답(320)은 각 카테고리에 따른 도메인 정보 또는 의도 정보를 포함할 수 있다.The electronic device 101 may not be able to determine which category of information the user wants among the 'TV shows' category and the 'Music' category in relation to the first entity name. In this case, the electronic device 101 can obtain usage ratio information for each category. For example, the electronic device 101 may obtain rate information for each category, indicating the rate at which the first entity name is used in the 'TV shows' category and the rate at which the first entity name is used in the 'Music' category. . For example, the electronic device 101 may obtain the response 320 as execution information for the first entity name. The response 320 may include category information corresponding to the first entity name. If there are multiple categories corresponding to the first entity name, the response 320 may further include ratio information for each category. The response 320 may include domain information or intent information for each category.

전자 장치(101)는 각 카테고리에 대한 비율 정보에 기반하여 사용자의 의도를 판단할 수 있다. 도 3의 예시와 같이 제1 개체명이 'TV shows' 카테고리로 사용되는 비율과 제1 개체명이 'Music' 카테고리로 사용되는 비율이 동일한 경우, 전자 장치(101)는 제1 개체명에 대해 'TV shows' 카테고리와 'Music' 카테고리 중 어떤 카테고리의 정보를 원하는지 질의하는 사용자 인터페이스를 제공할 수 있다. 예를 들어, 전자 장치(101)는 'TV shows' 카테고리 또는 'Music' 카테고리를 선택하는 사용자 입력을 수신할 수 있다. 전자 장치(101)는 사용자 입력에 의해 선택된 카테고리를 제1 개체명에 대응하는 카테고리로 결정할 수 있다. 전자 장치(101)는 결정된 카테고리에 따른 도메인 정보 및 의도 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행할 수 있다.The electronic device 101 may determine the user's intention based on ratio information for each category. As in the example of FIG. 3, when the rate at which the first entity name is used in the 'TV shows' category and the rate at which the first entity name is used in the 'Music' category are the same, the electronic device 101 displays 'TV' for the first entity name. You can provide a user interface to query which category of information you want between the 'shows' category and the 'Music' category. For example, the electronic device 101 may receive a user input for selecting the 'TV shows' category or the 'Music' category. The electronic device 101 may determine the category selected by the user input as the category corresponding to the first entity name. The electronic device 101 may perform an operation corresponding to the user's intention using domain information and intention information according to the determined category.

도 4는 일 예시에 따른 전자 장치가 획득한 실행 정보를 나타내는 도면(400)이다. 후술하는 전자 장치(예: 도 1의 전자 장치(101))의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다. 도 4의 공중 데이터(410)는 도 2의 공중 데이터(235-2)에 대응될 수 있다. 도 4의 개인 데이터(420)는 도 2의 개인 데이터(235-1)에 대응될 수 있다. 도 4의 응답(430)은 실행 정보 판별부(예: 도 2의 실행 정보 판별부(232))가 개인화된 의도 처리부(예: 도 2의 개인화된 의도 처리부(221))로 반환하는 응답일 수 있다.FIG. 4 is a diagram 400 showing execution information acquired by an electronic device according to an example. The operation of an electronic device described later (eg, the electronic device 101 of FIG. 1) may be performed by, for example, a processor (eg, the processor 140 of FIG. 1). The public data 410 of FIG. 4 may correspond to the public data 235-2 of FIG. 2. Personal data 420 in FIG. 4 may correspond to personal data 235-1 in FIG. 2. The response 430 in FIG. 4 is a response date returned by the execution information determination unit (e.g., the execution information determination unit 232 in FIG. 2) to the personalized intention processing unit (e.g., the personalized intention processing unit 221 in FIG. 2). You can.

예를 들어, 전자 장치(101)는 제1 개체명을 포함하고 서술어를 포함하지 않는 음성 명령을 수신할 수 있다. 전자 장치(101)는 제1 개체명에 기반하여 DB(예: 도 2의 DB(235))를 검색할 수 있다. 예를 들어, DB(235)에는 제1 개체명과 관련된 공중 데이터(410) 및 개인 데이터(420)가 존재할 수 있다. 공중 데이터(410)에 따르면, 제1 개체명에 대응하는 카테고리는 'TV shows' 카테고리와 'Music' 카테고리로 2개이며, 각 카테고리에 대한 비율 정보는 'TV shows' 카테고리 약 50%, 'Music' 카테고리 약 50%일 수 있다. 각 카테고리에 대한 비율 정보는, 예를 들어, 개체명이 복수의 카테고리 중 각 카테고리로 사용될 확률을 나타낼 수 있다. 개인 데이터(420)에 따르면, 제1 개체명에 대해 'TV shows' 카테고리로 사용되었으며, 제1 개체명이 'TV shows' 카테고리로 발화(또는, 사용)된 횟수가 1번이고, 앱 A에서 제1 개체명을 검색어로 검색(search)을 수행한 적이 있다.For example, the electronic device 101 may receive a voice command that includes a first entity name and does not include a predicate. The electronic device 101 may search a DB (eg, DB 235 in FIG. 2) based on the first entity name. For example, public data 410 and personal data 420 related to the first entity name may exist in the DB 235. According to the public data 410, there are two categories corresponding to the first entity name, the 'TV shows' category and the 'Music' category, and the ratio information for each category is about 50% for the 'TV shows' category and 'Music' category. ' Category may be about 50%. Ratio information for each category may, for example, indicate the probability that an entity name will be used in each category among a plurality of categories. According to the personal data 420, the 'TV shows' category was used for the first entity name, the number of times the first entity name was uttered (or used) in the 'TV shows' category was 1, and the number of times the first entity name was uttered (or used) in the 'TV shows' category was 1. 1 I have performed a search using the entity name as a search term.

전자 장치(101)는 제1 개체명에 대한 실행 정보로서 응답(430)을 획득할 수 있다. 응답(430)은 공중 데이터(410)와 개인 데이터(420)가 조합되어 결정될 수 있다. 공중 데이터(410)에 따르면, 제1 개체명에 대응하는 카테고리는 하나로 특정되지 않을 수 있다. 공중 데이터(410)와 개인 데이터(420)를 조합하면, 제1 개체명에 대응하는 카테고리는 'TV shows'로 특정될 수 있다. 응답(430)은 제1 개체명에 대응하는 카테고리 정보를 포함할 수 있다. 응답(430)은 제1 개체명에 대응하는 카테고리가 개인 데이터(420)에 기반하여 결정되는 경우, 제1 개체명이 결정된 카테고리로 발화된 횟수 정보와, 제1 개체명을 포함하는 음성 명령을 실행한 도메인 정보 및 의도 정보를 포함할 수 있다. 전자 장치(101)는 응답(430)에 포함된 도메인 정보 및 의도 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행할 수 있다. 예를 들어, 전자 장치(101)는 앱 A에서 제1 개체명을 검색어로 하여 검색을 수행할 수 있다.The electronic device 101 may obtain a response 430 as execution information for the first entity name. Response 430 may be determined by combining public data 410 and personal data 420. According to the public data 410, the category corresponding to the first entity name may not be specified as one. When the public data 410 and the personal data 420 are combined, the category corresponding to the first entity name can be specified as 'TV shows'. The response 430 may include category information corresponding to the first entity name. When the category corresponding to the first entity name is determined based on the personal data 420, the response 430 executes a voice command including information on the number of times the first entity name was uttered in the determined category and the first entity name. It may contain domain information and intent information. The electronic device 101 may perform an operation corresponding to the user's intention using the domain information and intention information included in the response 430. For example, the electronic device 101 may perform a search in App A using the first entity name as a search word.

도 5는 일 예시에 따른 전자 장치의 동작을 나타낸 흐름도(500)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 후술하는 전자 장치(예: 도 1의 전자 장치(101))의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다.FIG. 5 is a flowchart 500 showing the operation of an electronic device according to an example. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. The operation of an electronic device described later (eg, the electronic device 101 of FIG. 1) may be performed by, for example, a processor (eg, the processor 140 of FIG. 1).

동작 501에서, 전자 장치(101)는 마이크(예: 도 1의 마이크(110))를 통해 사용자 발화를 수신할 수 있다.In operation 501, the electronic device 101 may receive a user's speech through a microphone (eg, the microphone 110 of FIG. 1).

동작 503에서, 전자 장치(101)는 수신된 발화를 텍스트로 변환할 수 있다. 예를 들어, 동작 503은 도 2의 ASR 모듈(210)에 의해 수행될 수 있다.In operation 503, the electronic device 101 may convert the received utterance into text. For example, operation 503 may be performed by ASR module 210 of FIG. 2 .

동작 505에서, 전자 장치(101)는 변환된 텍스트가 하나의 개체명으로 구성되는지 판단할 수 있다. 예를 들어, 전자 장치(101)는 텍스트가 서술어 없이 개체명만을 포함하는지 판단할 수 있다. 예를 들어, 동작 505는 도 2의 개인화된 의도 처리부(221) 또는 개인화된 의도 처리부(221)에 의해 호출되는 서술어 유무 판단부(240)에 의해 수행될 수 있다. 전자 장치(101)는 텍스트가 하나의 개체명으로 구성되지 않는 것으로 판단한 경우 동작 521, 동작 523, 및 동작 525를 수행할 수 있다. 전자 장치(101)는 텍스트가 하나의 개체명으로 구성된 것으로 판단한 경우 동작 507을 수행할 수 있다.In operation 505, the electronic device 101 may determine whether the converted text consists of one entity name. For example, the electronic device 101 may determine whether the text includes only an entity name without a predicate. For example, operation 505 may be performed by the personalized intent processing unit 221 of FIG. 2 or the predicate presence/absence determination unit 240 called by the personalized intent processing unit 221. When the electronic device 101 determines that the text does not consist of one entity name, it may perform operations 521, 523, and 525. If the electronic device 101 determines that the text consists of one entity name, it may perform operation 507.

동작 507에서, 전자 장치(101)는 텍스트를 구성하는 개체명이 지정된 개체명인지 판단할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보 판별부에 텍스트를 구성하는 개체명이 지정된 개체명인지 질의할 수 있다. 실행 정보 판별부는 도 2의 실행 정보 판별부(232)일 수 있다. 지정된 개체명은, 실행 정보 판별부(232)에 의해 대응되는 실행 정보를 획득 가능한 개체명으로 참조될 수 있다. 실행 정보는 발화(또는, 음성 명령)를 실행하는 애플리케이션을 나타내는 도메인 정보 또는 발화가 요청하는 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 전자 장치(101)는 텍스트를 구성하는 개체명이 지정된 개체명인 것으로 판단한 경우 동작 509를 수행할 수 있다. 전자 장치(101)는 텍스트를 구성하는 개체명이 지정된 개체명이 아닌 것으로 판단한 경우 동작 521, 동작 523, 및 동작 525를 수행할 수 있다.In operation 507, the electronic device 101 may determine whether the entity name constituting the text is a designated entity name. For example, the electronic device 101 may query the execution information determination unit whether the entity name constituting the text is a designated entity name. The execution information determination unit may be the execution information determination unit 232 of FIG. 2 . The designated entity name may be referenced by the execution information determination unit 232 as an entity name for which corresponding execution information can be obtained. Execution information may include domain information indicating the application executing the utterance (or voice command) or intent information indicating the function of the application requested by the utterance. When the electronic device 101 determines that the entity name constituting the text is a designated entity name, operation 509 may be performed. When the electronic device 101 determines that the entity name constituting the text is not the designated entity name, it may perform operations 521, 523, and 525.

동작 521에서, 전자 장치(101)는 텍스트 분석을 통해 텍스트에 대응하는 도메인을 결정할 수 있다. 동작 523에서, 전자 장치(101)는 텍스트 분석을 통해 텍스트에 대응하는 의도를 결정할 수 있다. 예를 들어, 전자 장치(101)는 변환된 텍스트에 포함된 개체명 및/또는 서술어를 종합하여 문법적 분석 및/또는 의미적 분석을 수행할 수 있다. 동작 521은, 예를 들어, 도 2의 도메인 분류기(223) 및 카테고리 해결자(225)에 의해 수행될 수 있다. 동작 523은, 예를 들어, 도 2의 의도 분류기(227)에 의해 수행될 수 있다. 동작 525에서, 전자 장치(101)는 동작 523에서 결정된 의도에 대응되는 동작을 실행할 수 있다.In operation 521, the electronic device 101 may determine a domain corresponding to the text through text analysis. In operation 523, the electronic device 101 may determine the intent corresponding to the text through text analysis. For example, the electronic device 101 may perform grammatical analysis and/or semantic analysis by synthesizing entity names and/or predicates included in the converted text. Operation 521 may be performed, for example, by domain classifier 223 and category solver 225 of FIG. 2 . Operation 523 may be performed, for example, by intent classifier 227 of FIG. 2 . In operation 525, the electronic device 101 may execute an operation corresponding to the intention determined in operation 523.

예를 들어, 동작 509 및 그에 후행되는 동작들은 도 2의 개인화된 의도 처리부(221)에 의해 수행될 수 있다.For example, operation 509 and subsequent operations may be performed by the personalized intent processor 221 of FIG. 2 .

동작 509에서, 전자 장치(101)는 실행 정보 판별부(232)로부터 실행 정보를 획득할 수 있다. 예를 들어, 실행 정보 판별부(232)는 지정된 개체명에 기반하여 데이터베이스(예: 도 2의 DB(235))로부터 검색된 지정된 개체명에 대응하는 실행 정보를 획득할 수 있다.In operation 509, the electronic device 101 may obtain execution information from the execution information determination unit 232. For example, the execution information determination unit 232 may obtain execution information corresponding to the specified entity name searched from a database (eg, DB 235 in FIG. 2) based on the specified entity name.

동작 511에서, 전자 장치(101)는 획득된 실행 정보를 이용하여 사용자의 의도가 파악되는지 여부를 판단할 수 있다. 전자 장치(101)는 실행 정보를 이용하여 사용자의 의도가 파악되는 경우 동작 519를 수행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보를 이용하여 도메인 및 의도를 특정할 수 있는 경우 사용자의 의도가 파악되는 것으로 판단할 수 있다. 예를 들어, 실행 정보에 포함된 도메인 정보 또는 의도 정보가 하나의 도메인 또는 하나의 의도를 포함하는 경우, 전자 장치(101)는 도메인 또는 의도를 특정할 수 있다.In operation 511, the electronic device 101 may determine whether the user's intention is identified using the obtained execution information. The electronic device 101 may perform operation 519 when the user's intention is identified using execution information. For example, the electronic device 101 may determine that the user's intention is identified if the domain and intention can be specified using execution information. For example, when domain information or intent information included in execution information includes one domain or one intent, the electronic device 101 may specify the domain or intent.

전자 장치(101)는 실행 정보를 이용하여 사용자의 의도가 파악되지 않는 경우 동작 513을 수행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보를 이용하여 도메인 및 의도를 특정할 수 없는 경우 사용자의 의도가 파악되지 않는 것으로 판단할 수 있다. 예를 들어, 실행 정보에 포함된 도메인 정보 또는 의도 정보가 복수의 도메인을 포함하거나, 하나의 도메인을 포함하더라도 해당 도메인의 복수의 의도를 포함하는 경우, 전자 장치(101)는 도메인 또는 의도를 특정하지 못할 수 있다.The electronic device 101 may perform operation 513 when the user's intention is not identified using execution information. For example, if the electronic device 101 cannot specify the domain and intention using execution information, it may determine that the user's intention is not understood. For example, if the domain information or intent information included in the execution information includes multiple domains or includes multiple intents of the domain even if it includes one domain, the electronic device 101 specifies the domain or intent. You may not be able to do it.

동작 513에서, 전자 장치(101)는 실행 정보를 이용하여 발화와 연관된 의도 리스트를 획득 가능한지 여부를 판단할 수 있다. 예를 들어, 실행 정보에 포함된 의도 정보가 개체명과 관련된 경우, 전자 장치(101)는 발화와 연관된 의도 리스트를 획득 가능한 것으로 판단할 수 있다. 예를 들어, 실행 정보에 포함된 의도 정보가 개체명과 관련되지 않는 경우, 전자 장치(101)는 발화와 연관된 의도 리스트를 획득 불가능한 것으로 판단할 수 있다. 전자 장치(101)는 발화와 연관된 의도 리스트를 획득 가능한 경우 동작 515를 수행할 수 있다. 전자 장치(101)는 발화와 연관된 의도 리스트를 획득 불가능한 경우 동작 517을 수행할 수 있다.In operation 513, the electronic device 101 may determine whether it is possible to obtain an intent list associated with the utterance using execution information. For example, when the intent information included in the execution information is related to the entity name, the electronic device 101 may determine that an intent list related to the utterance can be obtained. For example, if the intent information included in the execution information is not related to the entity name, the electronic device 101 may determine that it is impossible to obtain the intent list associated with the utterance. The electronic device 101 may perform operation 515 if it is possible to obtain an intent list associated with the utterance. The electronic device 101 may perform operation 517 when it is impossible to obtain the intent list associated with the utterance.

동작 515에서, 전자 장치(101)는 발화와 연관된 의도 리스트를 사용자에게 반환(또는, 제공)하고, 사용자의 피드백을 수신할 수 있다. 예를 들어, 사용자의 피드백은, 발화와 연관된 의도 리스트에 포함된 적어도 하나의 의도 중 하나를 선택하는 사용자 입력을 포함할 수 있다. 전자 장치(101)는 사용자 입력에 의해 선택된 의도를 사용자의 의도로 판단할 수 있다.In operation 515, the electronic device 101 may return (or provide) a list of intentions associated with the utterance to the user and receive feedback from the user. For example, the user's feedback may include a user input for selecting one of at least one intent included in the intent list associated with the utterance. The electronic device 101 may determine the intention selected by the user input as the user's intention.

동작 517에서, 전자 장치(101)는 대중적으로(popularly) 사용되는 의도 리스트를 사용자에게 반환(또는, 제공)하고, 사용자의 피드백을 수신할 수 있다. 예를 들어, 사용자의 피드백은, 대중적으로(popularly) 사용되는 의도 리스트에 포함된 적어도 하나의 의도 중 하나를 선택하는 사용자 입력을 포함할 수 있다. 예를 들어, 사용자의 피드백은, 특정 도메인 및/또는 특정 의도를 포함하는 발화 입력을 포함할 수 있다. 전자 장치(101)는 사용자 입력에 의해 선택된 의도, 또는 발화 입력에 의해 특정된 도메인 또는 의도를 이용하여 사용자의 의도를 결정할 수 있다.In operation 517, the electronic device 101 may return (or provide) a list of commonly used intentions to the user and receive feedback from the user. For example, the user's feedback may include user input for selecting one of at least one intention included in a list of popularly used intentions. For example, the user's feedback may include speech input that includes a specific domain and/or specific intent. The electronic device 101 may determine the user's intention using the intention selected by the user input, or the domain or intention specified by the speech input.

동작 519에서, 전자 장치(101)는 사용자의 의도에 대응하는 동작을 실행할 수 있다. 예를 들어, 전자 장치(101)는 도 5의 프로세스에 따라 결정된 도메인 및/또는 의도에 기반하여 사용자의 의도에 대응하는 동작을 실행할 수 있다.In operation 519, the electronic device 101 may execute an operation corresponding to the user's intention. For example, the electronic device 101 may execute an operation corresponding to the user's intention based on the domain and/or intention determined according to the process of FIG. 5.

도 6은 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면(600)이다. 도 6에 도시된 제2 전자 장치(602)는 도 1의 전자 장치(101)에 대응될 수 있으며, 후술하는 제2 전자 장치(602)의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다. 도 6에 도시된 제1 전자 장치(601)는 제2 전자 장치(602)와 비교하기 위한 예시적인 전자 장치일 수 있다.FIG. 6 is a diagram 600 showing a graphical user interface provided by an electronic device according to an example. The second electronic device 602 shown in FIG. 6 may correspond to the electronic device 101 in FIG. 1, and the operation of the second electronic device 602, which will be described later, may be performed by, for example, a processor (e.g., the processor of FIG. 1). (140)). The first electronic device 601 shown in FIG. 6 may be an example electronic device for comparison with the second electronic device 602.

예를 들어, 제1 전자 장치(601) 및 제2 전자 장치(602)는 사용자로부터 "XXX" 라는 동일한 발화를 수신할 수 있다. 제1 전자 장치(601) 및 제2 전자 장치(602)로 수신된 발화는, 예를 들어, 서술어 없이 개체명으로만 이루어진 발화일 수 있다. 예를 들어, "XXX"는 컨텐츠명일 수 있다. 도 6을 참조하면, 제1 전자 장치(601) 및 제2 전자 장치(602)는 동일한 발화를 수신하더라도 서로 다른 정보를 제공할 수 있다.For example, the first electronic device 601 and the second electronic device 602 may receive the same utterance “XXX” from the user. For example, the utterance received by the first electronic device 601 and the second electronic device 602 may be an utterance consisting of only an entity name without a predicate. For example, “XXX” may be a content name. Referring to FIG. 6, the first electronic device 601 and the second electronic device 602 may provide different information even if they receive the same utterance.

예를 들어, 제1 전자 장치(601)는 서술어가 없는 발화인 경우 발화의 의도, 도메인, 또는 카테고리를 판단하지 못할 수 있다. 예를 들어, 제1 전자 장치(601)는 "XXX"이 'Media Contents' 카테고리에 포함됨을 판단하지 못할 수 있다. 이에 따라, 제1 전자 장치(601)는 수신된 발화와 관련 없는 대중적인(popular) 발화 힌트 리스트(또는, 의도 리스트)를 포함하는 제1 그래픽 사용자 인터페이스(610)를 제공할 수 밖에 없다. 예를 들어, 제1 그래픽 사용자 인터페이스(610)는 적어도 하나의 도메인에 의해 실행 가능한 발화(또는, 의도)를 나타내는 정보를 포함할 수 있다. 예를 들어, 제1 그래픽 사용자 인터페이스(610)에 포함된 정보가 나타내는 적어도 하나의 도메인 또는 의도는 "XXX"라는 개체명 또는 'Media Contents' 카테고리와 관련 없을 수 있다.For example, in the case of an utterance without a predicate, the first electronic device 601 may not be able to determine the intention, domain, or category of the utterance. For example, the first electronic device 601 may not determine that “XXX” is included in the ‘Media Contents’ category. Accordingly, the first electronic device 601 has no choice but to provide the first graphical user interface 610 including a popular utterance hint list (or intent list) unrelated to the received utterance. For example, the first graphical user interface 610 may include information indicating an utterance (or intention) that can be executed by at least one domain. For example, at least one domain or intent indicated by information included in the first graphical user interface 610 may be unrelated to the entity name “XXX” or the ‘Media Contents’ category.

예를 들어, 제2 전자 장치(602)는 서술어가 없는 발화이더라도 발화에 포함된 개체명에 기반하여 공중 데이터 및 개인 데이터를 포함하는 데이터베이스를 검색하여 실행 정보를 획득하고, 실행 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행할 수 있다. 예를 들어, 제2 전자 장치(602)는 개체명 "XXX"이 'Media Contents' 카테고리에 포함되며, 앱 'G'에 의해 "XXX"를 검색어로 하는 '검색'동작이 수행될 수 있음을 나타내는 실행 정보를 획득할 수 있다. 제2 전자 장치(602)는 이러한 실행 정보를 이용하여 앱 'G'에서 "XXX"를 검색할 수 있다.For example, even if the second electronic device 602 is an utterance without a predicate, the second electronic device 602 searches a database containing public data and personal data based on the entity name included in the utterance to obtain execution information, and uses the execution information to obtain execution information for the user. An operation corresponding to the intention can be performed. For example, the second electronic device 602 recognizes that the entity name "XXX" is included in the 'Media Contents' category, and that a 'search' operation using "XXX" as a search term can be performed by app 'G'. The execution information indicated can be obtained. The second electronic device 602 can search for “XXX” in app ‘G’ using this execution information.

제2 전자 장치(602)는 실행 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행한 결과를 나타내는 제2 그래픽 사용자 인터페이스(620)를 제공할 수 있다. 예를 들어, 제2 그래픽 사용자 인터페이스(620)는 앱 'G'에서 "XXX"를 검색한 결과를 나타낼 수 있다.The second electronic device 602 may provide a second graphic user interface 620 that displays the result of performing an operation corresponding to the user's intention using execution information. For example, the second graphical user interface 620 may display the results of searching “XXX” in app ‘G’.

도 7은 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면(700)이다. 도 7에 도시된 제2 전자 장치(702)는 도 1의 전자 장치(101)에 대응될 수 있으며, 후술하는 제2 전자 장치(702)의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다. 도 7에 도시된 제1 전자 장치(701)는 제2 전자 장치(702)와 비교하기 위한 예시적인 전자 장치일 수 있다.FIG. 7 is a diagram 700 showing a graphical user interface provided by an electronic device according to an example. The second electronic device 702 shown in FIG. 7 may correspond to the electronic device 101 of FIG. 1, and the operation of the second electronic device 702, which will be described later, may be performed by, for example, a processor (e.g., the processor of FIG. 1). (140)). The first electronic device 701 shown in FIG. 7 may be an example electronic device for comparison with the second electronic device 702.

예를 들어, 제1 전자 장치(701) 및 제2 전자 장치(702)는 사용자로부터 "XXX" 라는 동일한 발화를 수신할 수 있다. 제1 전자 장치(701) 및 제2 전자 장치(702)로 수신된 발화는, 예를 들어, 서술어 없이 개체명으로만 이루어진 발화일 수 있다. 예를 들어, "XXX"는 컨텐츠명일 수 있다. 도 7을 참조하면, 제1 전자 장치(701) 및 제2 전자 장치(702)는 동일한 발화를 수신하더라도 서로 다른 정보를 제공할 수 있다.For example, the first electronic device 701 and the second electronic device 702 may receive the same utterance “XXX” from the user. For example, the utterance received by the first electronic device 701 and the second electronic device 702 may be an utterance consisting of only an entity name without a predicate. For example, “XXX” may be a content name. Referring to FIG. 7, the first electronic device 701 and the second electronic device 702 may provide different information even if they receive the same utterance.

예를 들어, 제1 전자 장치(701)는 개체명에 대응하는 카테고리가 복수 개인 경우 개인(전자 장치의 사용자)의 선호도와 상관 없이 기 정해진 우선순위(또는, 오더링(ordering))에 따라 개체명에 대응하는 카테고리를 결정하고, 결정된 카테고리에 따라 도메인 또는 의도를 결정할 수 있다. 예를 들어, 제1 전자 장치(701)는 개체명 "XXX"에 대해 'TV shows' 카테고리와 'Music' 카테고리가 존재하는 경우, 제1 전자 장치(701)의 선호도와 상관 없이 개체명에 대응하는 카테고리를 'Music' 카테고리로 결정할 수 있다. 예를 들어, 제1 전자 장치(701)는 'Music' 카테고리로 결정함에 따라, 도메인을 음악 스트리밍 앱인 App 'A'으로, 의도를 "XXX"를 제목으로 하는 노래를 '재생(play)'하는 것으로 결정할 수 있다. 예를 들어, 제1 전자 장치(701)는 제1 전자 장치(701)의 사용자의 선호도와 상관 없이 결정된, 개체명 "XXX"에 대한 도메인 및 의도에 기반하여 동작을 수행한 결과를 나타내는 제1 그래픽 사용자 인터페이스(710)를 제공할 수 있다. 예를 들어, 사용자의 의도는 "XXX"를 제목으로 하는 TV 프로그램을 재생하는 것일 수 있다. 이 경우, 제1 그래픽 사용자 인터페이스(710)는 사용자의 의도에 대응하지 않는 결과를 포함할 수 있다.For example, when there are multiple categories corresponding to an entity name, the first electronic device 701 selects the entity name according to a predetermined priority (or ordering) regardless of the preference of the individual (user of the electronic device). The category corresponding to can be determined, and the domain or intent can be determined according to the determined category. For example, if a 'TV shows' category and a 'Music' category exist for the entity name "XXX", the first electronic device 701 responds to the entity name regardless of the preference of the first electronic device 701. You can decide the category to be 'Music'. For example, as the first electronic device 701 determines the 'Music' category, the domain is set to App 'A', a music streaming app, and the intention is to 'play' a song with "XXX" as the title. It can be decided that For example, the first electronic device 701 may display a first electronic device 701 that represents the result of performing an operation based on the domain and intention for the entity name “XXX”, which is determined regardless of the preference of the user of the first electronic device 701. A graphical user interface 710 may be provided. For example, the user's intention may be to play a TV program with “XXX” as the title. In this case, the first graphical user interface 710 may include results that do not correspond to the user's intention.

예를 들어, 제2 전자 장치(702)는 개체명에 대응하는 카테고리가 복수 개인 경우 개인(전자 장치의 사용자)의 선호도를 참조하여 개체명에 대응하는 카테고리를 결정하고, 결정된 카테고리에 따라 도메인 및 의도를 결정할 수 있다. 예를 들어, 제2 전자 장치(702)는 개체명 "XXX"를 제목으로 하는 TV 프로그램을 임계 시간 이상 재생한 이력을 저장하고 있을 수 있다. 이러한 이력 정보는, 제2 전자 장치(702)의 사용자가 개체명 "XXX"를 제목으로 하는 TV 프로그램을 선호함을 나타낼 수 있다. 예를 들어, 개체명 "XXX"에 대한 특정 카테고리(예: TV shows) 선호 정보는 제2 전자 장치(702)의 사용자의 개인 데이터로서 제2 전자 장치(702)에 수집될 수 있다. 예를 들어, 제2 전자 장치(702)는 공중 데이터에 기반하여 개체명 "XXX"에 대해 검색된 'TV shows' 카테고리와 'Music' 카테고리 중, 상기 수집된 개인 데이터에 기반하여 사용자의 의도에 대응하는 카테고리는 'TV shows' 카테고리인 것으로 결정할 수 있다. 예를 들어, 제2 전자 장치(702)는 'TV shows' 카테고리로 결정함에 따라, 도메인을 TV 프로그램을 재생 가능한 앱인 App 'G'로, 의도를 "XXX"를 제목으로 하는 TV 프로그램을 '재생(play)'하는 것으로 결정할 수 있다. 예를 들어, 제2 전자 장치(702)는 제2 전자 장치(702)의 사용자의 선호도를 참조하여 결정된, 개체명 "XXX"에 대한 도메인 및 의도에 기반하여 동작을 수행한 결과를 나타내는 제2 그래픽 사용자 인터페이스(720)를 제공할 수 있다. 제2 그래픽 사용자 인터페이스(720)는 사용자의 의도에 대응하는 결과를 포함할 수 있다.For example, when there are multiple categories corresponding to an entity name, the second electronic device 702 determines the category corresponding to the entity name by referring to the preferences of the individual (user of the electronic device), and determines the domain and domain according to the determined category. You can determine your intention. For example, the second electronic device 702 may store a history of playing a TV program with the entity name “XXX” as the title for more than a threshold time. This history information may indicate that the user of the second electronic device 702 prefers a TV program with the entity name “XXX” as the title. For example, specific category (eg, TV shows) preference information for the entity name “XXX” may be collected in the second electronic device 702 as personal data of the user of the second electronic device 702. For example, the second electronic device 702 responds to the user's intention based on the collected personal data among the 'TV shows' category and 'Music' category searched for the entity name "XXX" based on public data. The category may be determined to be the 'TV shows' category. For example, as the second electronic device 702 determines the 'TV shows' category, the domain is set to App 'G', an app capable of playing TV programs, and the intention is set to 'Play' a TV program with "XXX" as the title. You can decide to ‘play’. For example, the second electronic device 702 may display a second electronic device 702 that represents the result of performing an operation based on the domain and intention for the entity name “XXX”, which is determined with reference to the user's preference. A graphical user interface 720 may be provided. The second graphical user interface 720 may include results corresponding to the user's intent.

도 8은 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면(800)이다. 도 8에 도시된 제2 전자 장치(802)는 도 1의 전자 장치(101)에 대응될 수 있으며, 후술하는 제2 전자 장치(802)의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다. 도 8에 도시된 제1 전자 장치(801)는 제2 전자 장치(802)와 비교하기 위한 예시적인 전자 장치일 수 있다.FIG. 8 is a diagram 800 showing a graphical user interface provided by an electronic device according to an example. The second electronic device 802 shown in FIG. 8 may correspond to the electronic device 101 in FIG. 1, and the operation of the second electronic device 802, which will be described later, may be performed by, for example, a processor (e.g., the processor of FIG. 1). (140)). The first electronic device 801 shown in FIG. 8 may be an example electronic device for comparison with the second electronic device 802.

예를 들어, 제1 전자 장치(801) 및 제2 전자 장치(802)는 사용자로부터 "강남역"이라는 동일한 발화를 수신할 수 있다. 제1 전자 장치(801) 및 제2 전자 장치(802)로 수신된 발화는, 예를 들어, 서술어 없이 개체명으로만 이루어진 발화일 수 있다. 도 8을 참조하면, 제1 전자 장치(801) 및 제2 전자 장치(802)는 동일한 발화를 수신하더라도 서로 다른 정보를 제공할 수 있다.For example, the first electronic device 801 and the second electronic device 802 may receive the same utterance, “Gangnam Station” from the user. For example, the utterance received by the first electronic device 801 and the second electronic device 802 may be an utterance consisting of only an entity name without a predicate. Referring to FIG. 8, the first electronic device 801 and the second electronic device 802 may provide different information even if they receive the same utterance.

예를 들어, 제1 전자 장치(801)는 서술어가 없는 발화인 경우 발화의 카테고리, 도메인, 또는 의도를 판단하지 못할 수 있다. 예를 들어, 제1 전자 장치(801)는 "강남역"이 'Location' 카테고리에 포함됨을 판단하지 못할 수 있다. 이에 따라, 제1 전자 장치(601)는 수신된 발화와 관련 없는 대중적인(popular) 발화 힌트 리스트(또는, 의도 리스트)를 포함하는 제1 그래픽 사용자 인터페이스(810)를 제공할 수 밖에 없다. 예를 들어, 제1 그래픽 사용자 인터페이스(810)는 적어도 하나의 도메인에 의해 실행 가능한 발화(또는, 의도)를 나타내는 정보를 포함할 수 있다. 예를 들어, 제1 그래픽 사용자 인터페이스(810)에 포함된 정보가 나타내는 적어도 하나의 도메인 또는 의도는 "강남역"이라는 개체명 또는 'Location' 카테고리와 관련 없을 수 있다.For example, in the case of an utterance without a predicate, the first electronic device 801 may not be able to determine the category, domain, or intent of the utterance. For example, the first electronic device 801 may not determine that “Gangnam Station” is included in the ‘Location’ category. Accordingly, the first electronic device 601 has no choice but to provide the first graphical user interface 810 including a popular utterance hint list (or intent list) unrelated to the received utterance. For example, the first graphical user interface 810 may include information indicating an utterance (or intention) that can be executed by at least one domain. For example, at least one domain or intent indicated by the information included in the first graphical user interface 810 may be unrelated to the entity name “Gangnam Station” or the ‘Location’ category.

예를 들어, 제2 전자 장치(802)는 서술어가 없는 발화이더라도 발화에 포함된 개체명에 기반하여 공중 데이터 및 개인 데이터를 포함하는 데이터베이스를 검색하여 실행 정보를 획득하고, 실행 정보를 이용하여 사용자의 의도에 대응하는 동작을 수행할 수 있다. 예를 들어, 제2 전자 장치(802)는 공중 데이터에 기반하여 개체명 "강남역"이 'Location' 카테고리에 포함되며, 앱 'B', 앱 'C', 앱 'D', 및 앱 'E'에 의해 각각 지정된 동작이 수행될 수 있음을 나타내는 실행 정보를 획득할 수 있다. 제2 전자 장치(802)는 이러한 실행 정보를 이용하여 "강남역"과 관련된 의도 리스트를 포함하는 제2 그래픽 사용자 인터페이스(820)를 제공할 수 있다. 의도 리스트는, 예를 들어, 앱 'B', 앱 'C', 앱 'D', 및 앱 'E' 각각에 의해 실행 가능한 의도 정보를 포함할 수 있다.For example, even if the second electronic device 802 is an utterance without a predicate, the second electronic device 802 searches a database containing public data and personal data based on the entity name included in the utterance to obtain execution information, and uses the execution information to obtain execution information for the user. An operation corresponding to the intention can be performed. For example, the second electronic device 802 includes the entity name "Gangnam Station" in the 'Location' category, app 'B', app 'C', app 'D', and app 'E' based on public data. ', execution information indicating that each specified operation can be performed can be obtained. The second electronic device 802 may use this execution information to provide a second graphical user interface 820 including an intent list related to “Gangnam Station.” The intent list may include, for example, intent information executable by each of app 'B', app 'C', app 'D', and app 'E'.

제2 전자 장치(802)는 의도 리스트에 포함된 복수의 의도 중 하나를 선택하는 사용자 입력(825)을 수신할 수 있다. 제2 전자 장치(802)는 사용자 입력(825)을 수신함에 응답하여 제3 그래픽 사용자 인터페이스(830)를 제공할 수 있다. 예를 들어, 사용자 입력(825)에 의해 선택된 의도는, 앱 'B'에 의해 "강남역"까지 가는 길 안내 동작을 수행하는 것일 수 있다. 제2 전자 장치(802)는 사용자 입력(825)을 수신함에 응답하여 앱 'B'에서 "강남역"까지 가는 길 안내 동작을 수행할 수 있다. 예를 들어, 제3 그래픽 사용자 인터페이스(830)는 앱 'B'에서 "강남역"까지 가는 길 안내를 수행하는 화면을 나타낼 수 있다.The second electronic device 802 may receive a user input 825 for selecting one of a plurality of intentions included in the intention list. The second electronic device 802 may provide a third graphical user interface 830 in response to receiving the user input 825. For example, the intention selected by the user input 825 may be to perform a route guidance operation to “Gangnam Station” by app ‘B’. The second electronic device 802 may perform a route guidance operation from app 'B' to "Gangnam Station" in response to receiving the user input 825. For example, the third graphical user interface 830 may display a screen that provides route guidance from app 'B' to "Gangnam Station."

예를 들어, 제2 전자 장치(802)는 사용자 입력(825)을 수신함에 응답하여, 개체명 "강남역"에 대하여 앱'B'에서 "강남역"을 목적지로 하여 길 안내 동작을 수행한 이력을 저장할 수 있다. 예를 들어, 개체명 "강남역"에 대하여 동작을 수행한 도메인 정보 또는 수행된 동작에 대응하는 의도 정보는 제2 전자 장치(802)의 사용자의 개인 데이터로서 제2 전자 장치(802)에 수집될 수 있다. 예를 들어, 제2 전자 장치(802)는 공중 데이터에 기반하여 개체명 "강남역"에 대해 검색된 앱 'B', 앱 'C', 앱 'D', 및 앱 'E' 중, 상기 수집된 개인 데이터에 기반하여 사용자의 의도에 대응하는 도메인은 앱 'B'이고, 사용자의 의도는 앱 'B'를 이용한 길 안내 동작을 수행하는 것임을 결정할 수 있다. 예를 들어, 제2 전자 장치(802)는 상기 개인 데이터 수집 이후에 개체명 "강남역"을 포함하고 서술어가 없는 발화를 수신한 경우, 제2 그래픽 사용자 인터페이스(820)를 제공하지 않고, 사용자의 의도에 대응하는 동작을 수행하는 화면을 나타내는 제3 그래픽 사용자 인터페이스(830)를 제공할 수 있다.For example, in response to receiving the user input 825, the second electronic device 802 records a history of performing a navigation operation with “Gangnam Station” as the destination in app ‘B’ for the entity name “Gangnam Station”. You can save it. For example, domain information on which an action was performed for the entity name “Gangnam Station” or intent information corresponding to the performed action may be collected in the second electronic device 802 as personal data of the user of the second electronic device 802. You can. For example, the second electronic device 802 may select the collected apps among apps 'B', app 'C', app 'D', and app 'E' searched for the entity name "Gangnam Station" based on public data. Based on personal data, it can be determined that the domain corresponding to the user's intention is app 'B', and that the user's intention is to perform a navigation operation using app 'B'. For example, when the second electronic device 802 receives an utterance containing the entity name “Gangnam Station” and no predicate after collecting the personal data, the second electronic device 802 does not provide the second graphic user interface 820 and allows the user to A third graphical user interface 830 may be provided that displays a screen that performs an operation corresponding to the intention.

도 9는 일 예시에 따른 전자 장치가 제공하는 그래픽 사용자 인터페이스를 나타낸 도면(900)이다. 도 9에 도시된 전자 장치(901)는 도 1의 전자 장치(101)에 대응될 수 있으며, 후술하는 전자 장치(901)의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다.FIG. 9 is a diagram 900 showing a graphical user interface provided by an electronic device according to an example. The electronic device 901 shown in FIG. 9 may correspond to the electronic device 101 in FIG. 1, and the operation of the electronic device 901 described later may be performed by, for example, a processor (e.g., processor 140 in FIG. 1). It can be performed by .

도 9를 참조하면, 전자 장치(901)는 적어도 하나의 개체명에 대하여 동작을 수행할 도메인을 지정하는 그래픽 사용자 인터페이스(910)를 제공할 수 있다. 예를 들어, 그래픽 사용자 인터페이스(910)는 특정 카테고리에 포함되는 개체명들의 리스트 및 리스트에 포함된 적어도 하나의 개체명에 대해 도메인을 지정 또는 변경할 수 있는 버튼을 포함하는 제1 UI(user interface) 요소(911)를 포함할 수 있다. 예를 들어, 제1 UI 요소(911)는 'Media Contents' 카테고리에 포함되는 개체명들의 리스트를 포함할 수 있다. 예를 들어, 개체명들은 컨텐츠의 종류별로 구분되어 리스트에 포함될 수 있다.Referring to FIG. 9 , the electronic device 901 may provide a graphical user interface 910 that specifies a domain in which to perform an operation for at least one entity name. For example, the graphical user interface 910 is a first UI (user interface) that includes a list of entity names included in a specific category and a button for specifying or changing the domain for at least one entity name included in the list. It may contain element 911. For example, the first UI element 911 may include a list of entity names included in the 'Media Contents' category. For example, entity names may be classified by type of content and included in the list.

예를 들어, 그래픽 사용자 인터페이스(910)는 도메인을 지정하고 싶은 개체명을 추가할 수 있는 버튼을 포함하는 제2 UI 요소(912)를 포함할 수 있다. 도 9에 도시된 예시에서는, 제2 UI 요소(912)는 'Media Contents' 카테고리에 포함되는 개체명을 추가할 수 있는 버튼일 수 있다.For example, the graphical user interface 910 may include a second UI element 912 that includes a button for adding an entity name for which a domain is to be specified. In the example shown in FIG. 9, the second UI element 912 may be a button for adding an entity name included in the 'Media Contents' category.

예를 들어, 그래픽 사용자 인터페이스(910)는 의도가 지정된 상태에서 도메인만을 지정하는 사용자 인터페이스일 수 있다. 예를 들어, 그래픽 사용자 인터페이스(910)는 동일 또는 유사한 의도를 실행할 수 있는 도메인들 중에서 각 개체명에 대응하는 도메인을 선택하는 사용자 인터페이스일 수 있다. 도 9에 도시된 예시에서, 그래픽 사용자 인터페이스(910)는, 컨텐츠와 관련된 개체명 별로 '컨텐츠 재생'이라는 의도를 실행하기 위한 도메인을 지정(또는, 선택)하는 사용자 인터페이스일 수 있다.For example, the graphical user interface 910 may be a user interface that specifies only a domain while the intent is specified. For example, the graphical user interface 910 may be a user interface that selects a domain corresponding to each entity name among domains that can execute the same or similar intent. In the example shown in FIG. 9 , the graphical user interface 910 may be a user interface that specifies (or selects) a domain for executing the intention of ‘playing content’ for each entity name related to content.

도 10은 일 예시에 따른 전자 장치의 동작을 나타낸 흐름도(1000)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 후술하는 전자 장치(예: 도 1의 전자 장치(101))의 동작은 예를 들어 프로세서(예: 도 1의 프로세서(140))에 의해 수행될 수 있다.FIG. 10 is a flowchart 1000 showing the operation of an electronic device according to an example. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. The operation of an electronic device described later (eg, the electronic device 101 of FIG. 1) may be performed by, for example, a processor (eg, the processor 140 of FIG. 1).

동작 1001에서, 전자 장치(101)는 음성 명령을 수신할 수 있다. 예를 들어, 전자 장치(101)는 마이크(예: 도 1의 마이크(110))를 통해 음성 명령을 수신할 수 있다. 예를 들어, 음성 명령은 사용자 발화로 참조될 수 있다. 예를 들어, 전자 장치(101)는 마이크(110)를 통해 수신된 음성 명령을 자동 음성 인식에 기반하여 텍스트로 변환할 수 있다.In operation 1001, the electronic device 101 may receive a voice command. For example, the electronic device 101 may receive a voice command through a microphone (eg, microphone 110 in FIG. 1). For example, voice commands may be referred to as user utterances. For example, the electronic device 101 may convert a voice command received through the microphone 110 into text based on automatic voice recognition.

동작 1003에서, 전자 장치(101)는 음성 명령에 대응하는 텍스트가 하나의 개체명으로 구성되는지 여부를 결정할 수 있다. 예를 들어, 전자 장치(101)는 음성 명령에 대응하는 텍스트가 서술어를 포함하지 않고, 하나의 개체명을 포함하는 경우, 텍스트가 하나의 개체명으로 구성된 것으로 결정할 수 있다.In operation 1003, the electronic device 101 may determine whether the text corresponding to the voice command consists of one entity name. For example, if the text corresponding to the voice command does not include a predicate but includes one entity name, the electronic device 101 may determine that the text is composed of one entity name.

동작 1005에서, 전자 장치(101)는 텍스트가 하나의 개체명으로 구성된 경우, 개체명에 기반하여 음성 명령을 실행하기 위한 실행 정보를 획득할 수 있다. 예를 들어, 실행 정보는 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 및 음성 명령이 요청하는 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 예를 들어, 전자 장치(101)는 개체명에 기반하여 데이터베이스(예: 도 2의 DB(235))를 검색하여 실행 정보를 획득할 수 있다. 예를 들어, 전자 장치(101)는 개체명의 문자열 및 발음열을 기반으로 데이터베이스를 검색할 수 있다. 예를 들어, 데이터베이스는 공중 데이터(예: 도 2의 공중 데이터(235-2)) 및 개인 데이터(예: 도 2의 개인 데이터(235-1))를 포함할 수 있다.In operation 1005, when the text consists of one entity name, the electronic device 101 may obtain execution information for executing a voice command based on the entity name. For example, the execution information may include domain information indicating the application executing the voice command and intent information indicating the function of the application requested by the voice command. For example, the electronic device 101 may search a database (eg, DB 235 in FIG. 2) based on the entity name to obtain execution information. For example, the electronic device 101 may search the database based on the string and pronunciation string of the entity name. For example, the database may include public data (e.g., public data 235-2 in FIG. 2) and personal data (e.g., personal data 235-1 in FIG. 2).

예를 들어, 공중 데이터는 공중이 이용하는 개체명을 포함할 수 있다. 예를 들어, 공중 데이터는 외부 서버를 통해 지정된 시점에 반복적으로 최신 데이터로 업데이트될 수 있다. 예를 들어, 개인 데이터는 개인(예: 전자 장치(101)의 사용자)에 특화된 데이터를 포함할 수 있다. 예를 들어, 전자 장치(101)는 전자 장치(101)의 입력 장치(예: 도 1의 마이크(110)를 포함)를 통해 수신된 사용자 입력에 기반하여 등록된 개체명을 개인 데이터로서 수집할 수 있다. 공중 데이터 및 개인 데이터는 개체명과 관련된 카테고리 정보, 도메인 정보, 및/또는 의도 정보를 포함할 수 있다.For example, public data may include entity names used by the public. For example, public data can be repeatedly updated with the latest data at specified times through an external server. For example, personal data may include data specific to an individual (e.g., a user of electronic device 101). For example, the electronic device 101 may collect registered entity names as personal data based on user input received through an input device (e.g., including the microphone 110 in FIG. 1) of the electronic device 101. You can. Public data and personal data may include category information, domain information, and/or intent information associated with the entity name.

예를 들어, 전자 장치(101)는 공중 데이터에 기반하여 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 각 카테고리에 대한 사용 비율 정보를 획득할 수 있다. 각 카테고리에 대한 사용 비율 정보는, 예를 들어, 개체명이 복수의 카테고리 중 각 카테고리로 사용되는 비율을 나타낼 수 있다. 각 카테고리에 대한 사용 비율 정보는, 예를 들어, 개체명이 복수의 카테고리 중 각 카테고리로 사용될 확률을 나타낼 수 있다. 전자 장치(101)는 비율 정보에 기반하여 개체명에 대응하는 카테고리를 결정할 수 있다. 전자 장치(101)는 결정된 카테고리에 대응하는 실행 정보를 획득할 수 있다.For example, when a plurality of categories corresponding to an entity name are searched based on public data, the electronic device 101 may obtain usage ratio information for each category. For example, the usage rate information for each category may indicate the rate at which an entity name is used in each category among a plurality of categories. For example, the usage rate information for each category may indicate the probability that an entity name will be used in each category among a plurality of categories. The electronic device 101 may determine a category corresponding to the entity name based on ratio information. The electronic device 101 may obtain execution information corresponding to the determined category.

예를 들어, 전자 장치(101)는 공중 데이터에 기반하여 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 복수 개의 카테고리 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 제1 사용자 인터페이스를 제공할 수 있다. 예를 들어, 전자 장치(101)는 전자 장치(101)의 디스플레이에 그래픽 사용자 인터페이스를 표시함으로써 제1 사용자 인터페이스를 제공할 수 있다. 예를 들어, 전자 장치(101)는 개체명에 대응하는 카테고리가 복수 개 검색되고, 각 카테고리에 대한 사용 비율 정보에 기반하여 개체명에 대응하는 카테고리를 하나로 결정할 수 없는 경우, 제1 사용자 인터페이스를 통해 사용자가 의도한 카테고리를 확인할 수 있다. 전자 장치(101)는 제1 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 카테고리에 대응하는 실행 정보를 획득할 수 있다.For example, when a plurality of categories corresponding to an entity name are searched based on public data, the electronic device 101 may provide a first user interface that asks the user which category of the plurality of categories he or she wants information belonging to. there is. For example, the electronic device 101 may provide a first user interface by displaying a graphical user interface on the display of the electronic device 101. For example, when a plurality of categories corresponding to an entity name are searched and the electronic device 101 cannot determine one category corresponding to the entity name based on usage ratio information for each category, the electronic device 101 displays the first user interface. You can check the category the user intended. The electronic device 101 may obtain execution information corresponding to the category selected by user input on the first user interface.

예를 들어, 전자 장치(101)는 공중 데이터에 기반하여 개체명에 대응하는 카테고리가 복수 개 검색되고, 개인 데이터에 기반하여 복수 개의 카테고리 중 하나의 카테고리를 특정 가능한 경우, 특정된 하나의 카테고리에 대응하는 실행 정보를 획득할 수 있다. 예를 들어, 전자 장치(101)는 개인 데이터에 기반하여 검색한 결과 개체명에 대응하는 카테고리가 한 개인 경우, 해당 카테고리를 개체명에 대응하는 카테고리로 특정할 수 있다. 예를 들어, 전자 장치(101)는 개인 데이터에 기반하여 검색한 결과 개체명에 대응하는 카테고리가 복수 개인 경우, 복수 개의 카테고리 중 사용 횟수가 가장 많은 카테고리 또는 선호도가 가장 높은 카테고리를 개체명에 대응하는 카테고리로 특정할 수 있다.For example, the electronic device 101 searches for a plurality of categories corresponding to an entity name based on public data, and if it is possible to specify one category among the plurality of categories based on personal data, the electronic device 101 searches for a plurality of categories corresponding to the entity name, and selects one category among the plurality of categories based on personal data. Corresponding execution information can be obtained. For example, if there is one category corresponding to the entity name as a result of a search based on personal data, the electronic device 101 may specify the category as the category corresponding to the entity name. For example, if there are a plurality of categories corresponding to the entity name as a result of a search based on personal data, the electronic device 101 matches the most frequently used category or the category with the highest preference among the plurality of categories to the entity name. It can be specified by category.

예를 들어, 전자 장치(101)는 개체명에 기반하여 상기 데이터베이스에서 검색되는 데이터가 없는 경우, 대중적으로(popularly) 사용되는 의도 리스트를 포함하는 제2 사용자 인터페이스를 제공할 수 있다. 예를 들어, 전자 장치(101)는 전자 장치(101)의 디스플레이에 그래픽 사용자 인터페이스를 표시함으로써 제2 사용자 인터페이스를 제공할 수 있다.For example, when there is no data to be searched from the database based on an entity name, the electronic device 101 may provide a second user interface including a list of popularly used intents. For example, the electronic device 101 may provide a second user interface by displaying a graphical user interface on the display of the electronic device 101.

예를 들어, 전자 장치(101)는 음성 명령에 대응하는 텍스트가 하나의 개체명으로 구성되지 않은 경우, 텍스트에 대한 자연어 처리를 통해 의도를 결정할 수 있다. 전자 장치(101)는 텍스트를 자연어 이해에 기반하여 분석(예: 문법적 분석 및/또는 의미적 분석)하여 도메인 및 의도를 결정할 수 있다. 전자 장치(101)는 결정된 의도에 대응하는 기능을 수행할 수 있다.For example, if the text corresponding to the voice command does not consist of a single entity name, the electronic device 101 may determine the intent through natural language processing of the text. The electronic device 101 may determine the domain and intent by analyzing the text (e.g., grammatical analysis and/or semantic analysis) based on natural language understanding. The electronic device 101 may perform a function corresponding to the determined intention.

예를 들어, 전자 장치(101)는 텍스트가 하나의 개체명으로 구성되고, 개체명에 대응하는 도메인이 두 개 이상인 경우에만 동작 1005를 수행할 수 있다. 예를 들어, 전자 장치(101)는 텍스트가 하나의 개체명으로 구성되고, 개체명에 대응하는 도메인이 한 개인 경우, 텍스트에 대한 자연어 처리를 통해 도메인에서의 의도를 결정하고, 결정된 의도에 대응하는 기능을 수행할 수 있다.For example, the electronic device 101 can perform operation 1005 only when the text consists of one entity name and there are two or more domains corresponding to the entity name. For example, when the text consists of one entity name and there is one domain corresponding to the entity name, the electronic device 101 determines the intent in the domain through natural language processing of the text and responds to the determined intent. It can perform the function:

동작 1007에서, 전자 장치(101)는 실행 정보를 이용하여 음성 명령을 실행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보에 포함된 도메인 정보가 나타내는 도메인을 이용하여 음성 명령을 실행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보에 포함된 의도 정보가 나타내는 도메인의 기능을 실행함으로써 음성 명령을 실행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보에 포함된 도메인 정보 또는 의도 정보가 나타내는 도메인 및/또는 의도에 기반하여 음성 명령에 대응하는 동작(action)을 수행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보를 이용하여 특정된 도메인 또는 의도에 기반하여 음성 명령에 대응하는 동작을 수행할 수 있다. 예를 들어, 전자 장치(101)는 실행 정보를 이용하여 제공된 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작을 수행할 수 있다.In operation 1007, the electronic device 101 may execute a voice command using execution information. For example, the electronic device 101 may execute a voice command using the domain indicated by domain information included in execution information. For example, the electronic device 101 may execute a voice command by executing the function of the domain indicated by the intent information included in the execution information. For example, the electronic device 101 may perform an action corresponding to a voice command based on the domain and/or intent indicated by domain information or intent information included in execution information. For example, the electronic device 101 may perform an operation corresponding to a voice command based on a specified domain or intention using execution information. For example, the electronic device 101 may use execution information to perform an operation corresponding to the intention selected by user input on the provided user interface.

예를 들어, 전자 장치(101)는 음성 명령의 실행에 의해 수행된 동작이 전자 장치의 사용자의 의도에 대응되는 경우, 음성 명령의 실행에 사용된 정보를 개인 데이터로서 저장할 수 있다. 음성 명령의 실행에 사용된 정보는, 개체명, 개체명에 대응하는 카테고리, 개체명이 발화된 횟수, 동작을 수행한 도메인, 또는 도메인에서의 수행된 동작에 대응하는 의도 중 적어도 하나를 포함할 수 있다. 예를 들어, 전자 장치(101)는 음성 명령의 실행에 사용된 정보를 개체명과 그 외 정보가 연관시켜 저장할 수 있다. 이후, 전자 장치(101)는 동일한 개체명을 포함하는 음성 명령을 수신한 경우, 데이터베이스에 저장된 개체명과 연관된 정보(예: 카테고리, 발화 횟수, 도메인, 및/또는 의도)를 획득할 수 있다. 예를 들어, 전자 장치(101)는 획득된 도메인 정보 및/또는 의도 정보에 기반하여 음성 명령에 대응하는 동작을 수행할 수 있다.For example, if the action performed by executing the voice command corresponds to the intention of the user of the electronic device, the electronic device 101 may store the information used in executing the voice command as personal data. The information used to execute the voice command may include at least one of the entity name, the category corresponding to the entity name, the number of times the entity name was uttered, the domain in which the action was performed, or the intention corresponding to the action performed in the domain. there is. For example, the electronic device 101 may store information used to execute a voice command by associating the entity name with other information. Thereafter, when the electronic device 101 receives a voice command including the same entity name, it may obtain information (e.g., category, number of utterances, domain, and/or intent) associated with the entity name stored in the database. For example, the electronic device 101 may perform an operation corresponding to a voice command based on the acquired domain information and/or intent information.

예를 들어, 전자 장치(101)는 전자 장치(101)에 저장(또는, 설치)된 적어도 하나의 애플리케이션 각각에서의 개체명 사용 이력에 기반하여, 각 애플리케이션에서의 개체명 사용 이력으로부터 추출된 개체명과 각 애플리케이션에 대응하는 도메인 또는 추출된 개체명이 사용된 의도를 연관시켜 데이터베이스에 저장할 수 있다. 예를 들어, 전자 장치(101)는 음성 명령에 포함된 개체명이 이전에 사용된 이력이 있는 개체명에 해당하는 경우, 사용 이력에 기반하여 결정된 도메인 또는 의도에 따라 동작을 수행할 수 있다.For example, the electronic device 101 may generate an entity extracted from the entity name usage history in each application, based on the entity name usage history in each of at least one application stored (or installed) in the electronic device 101. The name and the domain corresponding to each application or the intent in which the extracted entity name was used can be linked and stored in the database. For example, if the entity name included in the voice command corresponds to an entity name that has previously been used, the electronic device 101 may perform an operation according to the domain or intention determined based on the usage history.

예를 들어, 전자 장치(101)는 전자 장치(101)의 입력 장치를 통해 적어도 하나의 개체명에 대해 동작을 수행할 도메인 또는 도메인에서의 의도를 지정하는 사용자 입력을 수신할 수 있다. 전자 장치(101)는 수신된 사용자 입력에 기반하여, 적어도 하나의 개체명을 포함하는 음성 명령이 수신되는 경우 지정된 도메인 또는 의도에 따라 동작을 수행하도록 설정할 수 있다. 예를 들어, 전자 장치(101)는 개체명과 그에 대응하여 지정된 도메인 또는 의도를 연관시켜 데이터베이스에 저장할 수 있다. 예를 들어, 전자 장치(101)는 음성 명령에 포함된 개체명이 사용자 입력에 의해 도메인 또는 의도가 지정된 개체명에 해당하는 경우, 지정된 도메인 또는 의도에 따라 동작을 수행할 수 있다.For example, the electronic device 101 may receive a user input that specifies the domain or intention in the domain to perform an operation on at least one entity name through the input device of the electronic device 101. Based on the received user input, the electronic device 101 may be set to perform an operation according to a designated domain or intent when a voice command including at least one entity name is received. For example, the electronic device 101 may associate an entity name with a correspondingly designated domain or intention and store it in a database. For example, if an entity name included in a voice command corresponds to an entity name whose domain or intent is specified by a user input, the electronic device 101 may perform an operation according to the specified domain or intent.

이하, 도 11의 전자 장치(1101)는 도 1의 전자 장치(101)에 대응될 수 있다. 도 1의 마이크(110)는 도 11의 입력 모듈(1150)에 대응될 수 있다. 도 1의 통신 회로(120)는 도 11의 통신 모듈(1190)에 대응될 수 있다. 도 1의 메모리(130)는 도 11의 메모리(1130)에 대응될 수 있다. 도 1의 프로세서(940)는 도 11의 프로세서(1120)에 대응될 수 있다. 예를 들어, 도 1의 전자 장치(101)는 도 11의 전자 장치(1101)의 구성요소(예: 디스플레이 모듈(1160))를 더 포함할 수 있다.Hereinafter, the electronic device 1101 of FIG. 11 may correspond to the electronic device 101 of FIG. 1. The microphone 110 in FIG. 1 may correspond to the input module 1150 in FIG. 11 . The communication circuit 120 of FIG. 1 may correspond to the communication module 1190 of FIG. 11 . The memory 130 of FIG. 1 may correspond to the memory 1130 of FIG. 11 . The processor 940 of FIG. 1 may correspond to the processor 1120 of FIG. 11 . For example, the electronic device 101 of FIG. 1 may further include components (eg, a display module 1160) of the electronic device 1101 of FIG. 11 .

도 11은, 다양한 예들에 따른, 네트워크 환경(1100) 내의 전자 장치(1101)의 블록도이다. 도 11을 참조하면, 네트워크 환경(1100)에서 전자 장치(1101)는 제 1 네트워크(1198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(1102)와 통신하거나, 또는 제 2 네트워크(1199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(1104) 또는 서버(1108) 중 적어도 하나와 통신할 수 있다. 일 예에 따르면, 전자 장치(1101)는 서버(1108)를 통하여 전자 장치(1104)와 통신할 수 있다. 일 예에 따르면, 전자 장치(1101)는 프로세서(1120), 메모리(1130), 입력 모듈(1150), 음향 출력 모듈(1155), 디스플레이 모듈(1160), 오디오 모듈(1170), 센서 모듈(1176), 인터페이스(1177), 연결 단자(1178), 햅틱 모듈(1179), 카메라 모듈(1180), 전력 관리 모듈(1188), 배터리(1189), 통신 모듈(1190), 가입자 식별 모듈(1196), 또는 안테나 모듈(1197)을 포함할 수 있다. 어떤 예에서는, 전자 장치(1101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(1178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(1176), 카메라 모듈(1180), 또는 안테나 모듈(1197))은 하나의 구성요소(예: 디스플레이 모듈(1160))로 통합될 수 있다.FIG. 11 is a block diagram of an electronic device 1101 in a network environment 1100, according to various examples. Referring to FIG. 11, in the network environment 1100, the electronic device 1101 communicates with the electronic device 1102 through a first network 1198 (e.g., a short-range wireless communication network) or a second network 1199. It is possible to communicate with at least one of the electronic device 1104 or the server 1108 through (e.g., a long-distance wireless communication network). According to one example, the electronic device 1101 may communicate with the electronic device 1104 through the server 1108. According to one example, the electronic device 1101 includes a processor 1120, a memory 1130, an input module 1150, an audio output module 1155, a display module 1160, an audio module 1170, and a sensor module 1176. ), interface 1177, connection terminal 1178, haptic module 1179, camera module 1180, power management module 1188, battery 1189, communication module 1190, subscriber identification module 1196, Alternatively, it may include an antenna module 1197. In some examples, at least one of these components (eg, the connection terminal 1178) may be omitted, or one or more other components may be added to the electronic device 1101. In some examples, some of these components (e.g., sensor module 1176, camera module 1180, or antenna module 1197) may be integrated into one component (e.g., display module 1160). You can.

프로세서(1120)는, 예를 들면, 소프트웨어(예: 프로그램(1140))를 실행하여 프로세서(1120)에 연결된 전자 장치(1101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(1120)는 다른 구성요소(예: 센서 모듈(1176) 또는 통신 모듈(1190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(1132)에 저장하고, 휘발성 메모리(1132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(1134)에 저장할 수 있다. 일 예에 따르면, 프로세서(1120)는 메인 프로세서(1121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(1123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(1101)가 메인 프로세서(1121) 및 보조 프로세서(1123)를 포함하는 경우, 보조 프로세서(1123)는 메인 프로세서(1121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(1123)는 메인 프로세서(1121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 1120, for example, executes software (e.g., program 1140) to operate at least one other component (e.g., hardware or software component) of the electronic device 1101 connected to the processor 1120. It can be controlled and various data processing or calculations can be performed. According to one example, as at least part of data processing or computation, processor 1120 stores commands or data received from another component (e.g., sensor module 1176 or communication module 1190) in volatile memory 1132. The commands or data stored in the volatile memory 1132 may be stored and processed, and the resulting data may be stored in the non-volatile memory 1134. According to one example, the processor 1120 is a main processor 1121 (e.g., a central processing unit or an application processor) or an auxiliary processor 1123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit (NPU) : neural processing unit), image signal processor, sensor hub processor, or communication processor). For example, if the electronic device 1101 includes a main processor 1121 and a auxiliary processor 1123, the auxiliary processor 1123 may be set to use lower power than the main processor 1121 or be specialized for a designated function. You can. The auxiliary processor 1123 may be implemented separately from the main processor 1121 or as part of it.

보조 프로세서(1123)는, 예를 들면, 메인 프로세서(1121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(1121)를 대신하여, 또는 메인 프로세서(1121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(1121)와 함께, 전자 장치(1101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(1160), 센서 모듈(1176), 또는 통신 모듈(1190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 예에 따르면, 보조 프로세서(1123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(1180) 또는 통신 모듈(1190))의 일부로서 구현될 수 있다. 일 예에 따르면, 보조 프로세서(1123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(1101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(1108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 1123 may, for example, act on behalf of the main processor 1121 while the main processor 1121 is in an inactive (e.g., sleep) state, or while the main processor 1121 is in an active (e.g., application execution) state. ), together with the main processor 1121, at least one of the components of the electronic device 1101 (e.g., the display module 1160, the sensor module 1176, or the communication module 1190) At least some of the functions or states related to can be controlled. According to one example, coprocessor 1123 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 1180 or communication module 1190). . According to one example, the auxiliary processor 1123 (e.g., neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 1101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 1108). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software structures.

메모리(1130)는, 전자 장치(1101)의 적어도 하나의 구성요소(예: 프로세서(1120) 또는 센서 모듈(1176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(1140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(1130)는, 휘발성 메모리(1132) 또는 비휘발성 메모리(1134)를 포함할 수 있다. The memory 1130 may store various data used by at least one component (eg, the processor 1120 or the sensor module 1176) of the electronic device 1101. Data may include, for example, input data or output data for software (e.g., program 1140) and instructions related thereto. Memory 1130 may include volatile memory 1132 or non-volatile memory 1134.

프로그램(1140)은 메모리(1130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(1142), 미들 웨어(1144) 또는 어플리케이션(1146)을 포함할 수 있다. The program 1140 may be stored as software in the memory 1130 and may include, for example, an operating system 1142, middleware 1144, or application 1146.

입력 모듈(1150)은, 전자 장치(1101)의 구성요소(예: 프로세서(1120))에 사용될 명령 또는 데이터를 전자 장치(1101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(1150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 1150 may receive commands or data to be used in a component of the electronic device 1101 (e.g., the processor 1120) from outside the electronic device 1101 (e.g., a user). The input module 1150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).

음향 출력 모듈(1155)은 음향 신호를 전자 장치(1101)의 외부로 출력할 수 있다. 음향 출력 모듈(1155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 1155 may output sound signals to the outside of the electronic device 1101. The sound output module 1155 may include, for example, a speaker or receiver. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one example, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(1160)은 전자 장치(1101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(1160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 예에 따르면, 디스플레이 모듈(1160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 1160 can visually provide information to the outside of the electronic device 1101 (eg, a user). The display module 1160 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device. According to one example, the display module 1160 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(1170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 예에 따르면, 오디오 모듈(1170)은, 입력 모듈(1150)을 통해 소리를 획득하거나, 음향 출력 모듈(1155), 또는 전자 장치(1101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(1102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 1170 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one example, the audio module 1170 acquires sound through the input module 1150, the sound output module 1155, or an external electronic device (e.g., electronic device) directly or wirelessly connected to the electronic device 1101. Sound may be output through a device 1102 (e.g., speaker or headphone).

센서 모듈(1176)은 전자 장치(1101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 예에 따르면, 센서 모듈(1176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 1176 detects the operating state (e.g., power or temperature) of the electronic device 1101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one example, the sensor module 1176 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, and a temperature sensor. It may include a sensor, humidity sensor, or light sensor.

인터페이스(1177)는 전자 장치(1101)가 외부 전자 장치(예: 전자 장치(1102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 예에 따르면, 인터페이스(1177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 1177 may support one or more designated protocols that can be used to directly or wirelessly connect the electronic device 1101 to an external electronic device (eg, the electronic device 1102). According to one example, the interface 1177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(1178)는, 그를 통해서 전자 장치(1101)가 외부 전자 장치(예: 전자 장치(1102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 예에 따르면, 연결 단자(1178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 1178 may include a connector through which the electronic device 1101 can be physically connected to an external electronic device (eg, the electronic device 1102). According to one example, the connection terminal 1178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(1179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 예에 따르면, 햅틱 모듈(1179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 1179 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one example, the haptic module 1179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(1180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 예에 따르면, 카메라 모듈(1180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 1180 can capture still images and moving images. According to one example, the camera module 1180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(1188)은 전자 장치(1101)에 공급되는 전력을 관리할 수 있다. 일 예에 따르면, 전력 관리 모듈(1188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 1188 can manage power supplied to the electronic device 1101. According to one example, the power management module 1188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(1189)는 전자 장치(1101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 예에 따르면, 배터리(1189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 1189 may supply power to at least one component of the electronic device 1101. According to one example, the battery 1189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(1190)은 전자 장치(1101)와 외부 전자 장치(예: 전자 장치(1102), 전자 장치(1104), 또는 서버(1108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(1190)은 프로세서(1120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 예에 따르면, 통신 모듈(1190)은 무선 통신 모듈(1192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(1194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(1198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(1199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(1104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(1192)은 가입자 식별 모듈(1196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(1198) 또는 제 2 네트워크(1199)와 같은 통신 네트워크 내에서 전자 장치(1101)를 확인 또는 인증할 수 있다. Communication module 1190 provides a direct (e.g., wired) communication channel or wireless communication channel between the electronic device 1101 and an external electronic device (e.g., electronic device 1102, electronic device 1104, or server 1108). It can support establishment and communication through established communication channels. Communication module 1190 operates independently of processor 1120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one example, the communication module 1190 may be a wireless communication module 1192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 1194 (e.g., It may include a local area network (LAN) communication module, or a power line communication module. Among these communication modules, the corresponding communication module is a first network 1198 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 1199 (e.g., legacy It may communicate with an external electronic device 1104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 1192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 1196 within a communication network such as the first network 1198 or the second network 1199. The electronic device 1101 can be confirmed or authenticated.

무선 통신 모듈(1192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(1192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(1192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(1192)은 전자 장치(1101), 외부 전자 장치(예: 전자 장치(1104)) 또는 네트워크 시스템(예: 제 2 네트워크(1199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 예에 따르면, 무선 통신 모듈(1192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 1192 may support 5G networks and next-generation communication technologies after 4G networks, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 1192 may support high frequency bands (e.g., mmWave bands), for example, to achieve high data rates. The wireless communication module 1192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 1192 may support various requirements specified in the electronic device 1101, an external electronic device (e.g., electronic device 1104), or a network system (e.g., second network 1199). According to one example, the wireless communication module 1192 supports peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC. : Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(1197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 예에 따르면, 안테나 모듈(1197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 예에 따르면, 안테나 모듈(1197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(1198) 또는 제 2 네트워크(1199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(1190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(1190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(1197)의 일부로 형성될 수 있다. The antenna module 1197 may transmit or receive signals or power to or from the outside (e.g., an external electronic device). According to one example, the antenna module 1197 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one example, the antenna module 1197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for the communication method used in the communication network, such as the first network 1198 or the second network 1199, is connected to the plurality of antennas by, for example, the communication module 1190. can be selected Signals or power may be transmitted or received between the communication module 1190 and an external electronic device through the selected at least one antenna. According to some examples, other components (eg, radio frequency integrated circuit (RFIC)) in addition to the radiator may be additionally formed as part of the antenna module 1197.

다양한 예에 따르면, 안테나 모듈(1197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various examples, antenna module 1197 may form a mmWave antenna module. According to one example, a mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band), and It may include a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. You can.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (e.g. commands or data) can be exchanged with each other.

일 예에 따르면, 명령 또는 데이터는 제 2 네트워크(1199)에 연결된 서버(1108)를 통해서 전자 장치(1101)와 외부의 전자 장치(1104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(1102, 또는 1104) 각각은 전자 장치(1101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 예에 따르면, 전자 장치(1101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(1102, 1104, 또는 1108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(1101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(1101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(1101)로 전달할 수 있다. 전자 장치(1101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(1101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 예에 있어서, 외부의 전자 장치(1104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(1108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 예에 따르면, 외부의 전자 장치(1104) 또는 서버(1108)는 제 2 네트워크(1199) 내에 포함될 수 있다. 전자 장치(1101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one example, commands or data may be transmitted or received between the electronic device 1101 and the external electronic device 1104 through the server 1108 connected to the second network 1199. Each of the external electronic devices 1102 or 1104 may be of the same or different type as the electronic device 1101. According to one example, all or part of the operations performed in the electronic device 1101 may be executed in one or more of the external electronic devices 1102, 1104, or 1108. For example, when the electronic device 1101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 1101 does not execute the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 1101. The electronic device 1101 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 1101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another example, the external electronic device 1104 may include an Internet of Things (IoT) device. Server 1108 may be an intelligent server using machine learning and/or neural networks. According to one example, an external electronic device 1104 or a server 1108 may be included in the second network 1199. The electronic device 1101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

이하, 도 12의 사용자 단말(1201)은 도 1의 전자 장치(101) 및/또는 도 11의 전자 장치(1101)에 대응될 수 있다. 도 1의 마이크(110) 는 도 12의 마이크(1270)에 대응될 수 있다. 도 1의 통신 회로(120)는 도 12의 통신 인터페이스(1290)에 대응될 수 있다. 도 1의 메모리(130)는 도 12의 메모리(1230)에 대응될 수 있다. 도 1의 프로세서(140)는 도 12의 프로세서(1220)에 대응될 수 있다. 예를 들어, 도 1의 전자 장치(101)는 도 12의 사용자 단말(1201)의 구성요소(예: 디스플레이(1260)를 더 포함할 수 있다. 도 12의 자동 음성 인식 모듈(1321)은 도 2의 ASR 모듈(210)에 대응될 수 있다. 도 12의 자연어 이해 모듈(1323)은 도 2의 NLU 모듈(220)에 대응될 수 있다. 도 1의 전자 장치(101)는 도 12의 지능형 서버(1300)의 모듈 전체 또는 적어도 일부(예: 자동 음성 인식 모듈(1321) 및/또는 자연어 이해 모듈(1323))가 전자 장치(101)에 구현된 예일 수 있다. 도 1의 전자 장치(101)는 도 12의 지능형 서버(1300)(예: 도 11의 서버(1108))의 전체 또는 일부 기능을 전자 장치(101) 자체적으로 수행할 수 있다.Hereinafter, the user terminal 1201 of FIG. 12 may correspond to the electronic device 101 of FIG. 1 and/or the electronic device 1101 of FIG. 11. The microphone 110 in FIG. 1 may correspond to the microphone 1270 in FIG. 12 . The communication circuit 120 of FIG. 1 may correspond to the communication interface 1290 of FIG. 12 . Memory 130 of FIG. 1 may correspond to memory 1230 of FIG. 12 . The processor 140 of FIG. 1 may correspond to the processor 1220 of FIG. 12 . For example, the electronic device 101 of FIG. 1 may further include components (e.g., a display 1260) of the user terminal 1201 of FIG. 12. The automatic voice recognition module 1321 of FIG. 12 is shown in FIG. It may correspond to the ASR module 210 of Figure 2. The natural language understanding module 1323 of Figure 12 may correspond to the NLU module 220 of Figure 2. The electronic device 101 of Figure 1 may correspond to the intelligent All or at least part of the modules of the server 1300 (e.g., the automatic voice recognition module 1321 and/or the natural language understanding module 1323) may be implemented in the electronic device 101. The electronic device 101 in FIG. ) may perform all or part of the functions of the intelligent server 1300 of FIG. 12 (e.g., server 1108 of FIG. 11) by the electronic device 101 itself.

도 12는 일 예에 따른 통합 지능 (integrated intelligence) 시스템을 나타낸 블록도이다.Figure 12 is a block diagram showing an integrated intelligence system according to an example.

도 12를 참조하면, 일 예의 통합 지능 시스템은 사용자 단말(1201), 지능형 서버(1300), 및 서비스 서버(1400)(예: 도 11의 서버(1108))를 포함할 수 있다. Referring to FIG. 12, an example integrated intelligence system may include a user terminal 1201, an intelligent server 1300, and a service server 1400 (eg, server 1108 in FIG. 11).

일 예의 사용자 단말(1201)(예: 도 11의 전자 장치(1101))은, 인터넷에 연결 가능한 단말 장치(또는, 전자 장치)일 수 있으며, 예를 들어, 휴대폰, 스마트폰, PDA(personal digital assistant), 노트북 컴퓨터, TV(television), 백색 가전, 웨어러블 장치, HMD (head mounted device), 또는 스마트 스피커일 수 있다.The user terminal 1201 (e.g., the electronic device 1101 in FIG. 11) may be a terminal device (or electronic device) capable of connecting to the Internet, for example, a mobile phone, a smartphone, or a personal digital assistant (PDA). assistant), a laptop computer, a television (TV), a white appliance, a wearable device, a head mounted device (HMD), or a smart speaker.

도시된 예에 따르면, 사용자 단말(1201)은 통신 인터페이스(1290), 마이크(1270), 스피커(1255), 디스플레이(1260), 메모리(1230), 및/또는 프로세서(1220)를 포함할 수 있다. 상기 열거된 구성요소들은 서로 작동적으로 또는 전기적으로 연결될 수 있다.According to the example shown, the user terminal 1201 may include a communication interface 1290, a microphone 1270, a speaker 1255, a display 1260, a memory 1230, and/or a processor 1220. . The components listed above may be operatively or electrically connected to each other.

일 예의 통신 인터페이스(1290)(예: 도 11의 통신 모듈(1190))는 외부 장치와 연결되어 데이터를 송수신하도록 구성될 수 있다. 마이크(1270)(예: 도 11의 오디오 모듈(1170))는 소리(예: 사용자 발화)를 수신하여, 전기적 신호로 변환할 수 있다. 스피커(1255)(예: 도 11의 음향 출력 모듈(1155))는 전기적 신호를 소리(예: 음성)로 출력할 수 있다. An example communication interface 1290 (e.g., communication module 1190 in FIG. 11) may be connected to an external device and configured to transmit and receive data. The microphone 1270 (e.g., the audio module 1170 in FIG. 11) may receive sound (e.g., a user's speech) and convert it into an electrical signal. The speaker 1255 (e.g., the sound output module 1155 of FIG. 11) may output an electrical signal as sound (e.g., voice).

일 예의 디스플레이(1260)(예: 도 11의 디스플레이 모듈(1160))는 이미지 또는 비디오를 표시하도록 구성될 수 있다. 일 예의 디스플레이(1260)는 또한 실행되는 앱(app)(또는, 어플리케이션 프로그램(application program))의 그래픽 사용자 인터페이스(graphic user interface, GUI)를 표시할 수 있다.One example display 1260 (e.g., display module 1160 of FIG. 11) may be configured to display images or video. The example display 1260 may also display a graphic user interface (GUI) of an app (or application program) being executed.

일 실시예의 디스플레이(1260)는 터치 센서를 통해 터치 입력을 수신할 수 있다. 예를 들어, 디스플레이(1260)는 디스플레이(1260) 내에 표시되는 화상 키보드 영역의 터치 센서를 통해 텍스트 입력을 수신할 수 있다.The display 1260 in one embodiment may receive a touch input through a touch sensor. For example, the display 1260 may receive text input through a touch sensor in the on-screen keyboard area displayed within the display 1260.

일 예의 메모리(1230)(예: 도 11의 메모리(1130))는 클라이언트 모듈(1231), SDK(software development kit)(1233), 및 복수의 어플리케이션들을 저장할 수 있다. 상기 클라이언트 모듈(1231), 및 SDK(1233)는 범용적인 기능을 수행하기 위한 프레임워크(framework)(또는, 솔루션 프로그램)를 구성할 수 있다. 또한, 클라이언트 모듈(1231) 또는 SDK(1233)는 사용자 입력(예: 음성 입력, 텍스트 입력, 또는 터치 입력)을 처리하기 위한 프레임워크를 구성할 수 있다.An example memory 1230 (e.g., memory 1130 of FIG. 11) may store a client module 1231, a software development kit (SDK) 1233, and a plurality of applications. The client module 1231 and SDK 1233 may form a framework (or solution program) for performing general functions. Additionally, the client module 1231 or SDK 1233 may configure a framework for processing user input (eg, voice input, text input, or touch input).

상기 복수의 어플리케이션들(예: 1235a, 1235b)은 지정된 기능을 수행하기 위한 프로그램일 수 있다. 일 예에 따르면, 복수의 어플리케이션들은 제1 앱(1235a), 및/또는 제2 앱(1235b)을 포함할 수 있다. 일 예에 따르면, 복수의 어플리케이션들 각각은 지정된 기능을 수행하기 위한 복수의 동작들을 포함할 수 있다. 예를 들어, 상기 어플리케이션들은, 알람 앱, 메시지 앱, 및/또는 스케줄 앱을 포함할 수 있다. 일 예에 따르면, 복수의 어플리케이션들은 프로세서(1220)에 의해 실행되어 상기 복수의 동작들 중 적어도 일부를 순차적으로 실행할 수 있다. The plurality of applications (eg, 1235a, 1235b) may be programs for performing designated functions. According to one example, the plurality of applications may include a first app 1235a and/or a second app 1235b. According to one example, each of a plurality of applications may include a plurality of operations to perform a designated function. For example, the applications may include an alarm app, a messaging app, and/or a schedule app. According to one example, a plurality of applications may be executed by the processor 1220 to sequentially execute at least some of the plurality of operations.

일 예의 프로세서(1220)는 사용자 단말(1201)의 전반적인 동작을 제어할 수 있다. 예를 들어, 프로세서(1220)는 통신 인터페이스(1290), 마이크(1270), 스피커(1255), 및 디스플레이(1260)와 전기적으로 연결되어 연결되어 지정된 동작을 수행할 수 있다. 예를 들어, 프로세서(1220)는 적어도 하나의 프로세서를 포함할 수 있다.In one example, the processor 1220 may control the overall operation of the user terminal 1201. For example, the processor 1220 may be electrically connected to the communication interface 1290, the microphone 1270, the speaker 1255, and the display 1260 to perform a designated operation. For example, processor 1220 may include at least one processor.

일 예의 프로세서(1220)는 또한 상기 메모리(1230)에 저장된 프로그램을 실행하여 지정된 기능을 수행할 수 있다. 예를 들어, 프로세서(1220)는 클라이언트 모듈(1231) 또는 SDK(1233) 중 적어도 하나를 실행하여, 사용자 입력을 처리하기 위한 이하의 동작을 수행할 수 있다. 프로세서(1220)는, 예를 들어, SDK(1233)를 통해 복수의 어플리케이션들의 동작을 제어할 수 있다. 클라이언트 모듈(1231) 또는 SDK(1233)의 동작으로 설명된 이하의 동작들은 프로세서(1220)의 실행에 의하여 수행되는 동작일 수 있다.The example processor 1220 may also execute a program stored in the memory 1230 to perform a designated function. For example, the processor 1220 may execute at least one of the client module 1231 or the SDK 1233 and perform the following operations to process user input. The processor 1220 may control the operation of multiple applications through, for example, the SDK 1233. The following operations described as operations of the client module 1231 or SDK 1233 may be operations performed by execution of the processor 1220.

일 예의 클라이언트 모듈(1231)은 사용자 입력을 수신할 수 있다. 예를 들어, 클라이언트 모듈(1231)은 마이크(1270)를 통해 감지된 사용자 발화에 대응되는 음성 신호를 수신할 수 있다. 또는, 클라이언트 모듈(1231)은 디스플레이(1260)를 통해 감지된 터치 입력을 수신할 수 있다. 또는, 클라이언트 모듈(1231)은 키보드 또는 화상 키보드를 통해 감지된 텍스트 입력을 수신할 수 있다. 이 외에도, 사용자 단말(1201)에 포함된 입력 모듈 또는 사용자 단말(1201)에 연결된 입력 모듈을 통해 감지되는 다양한 형태의 사용자 입력을 수신할 수 있다. 상기 클라이언트 모듈(1231)은 수신된 사용자 입력(예: 음성 신호)을 지능형 서버(1300)로 송신할 수 있다. 클라이언트 모듈(1231)은 수신된 사용자 입력과 함께, 사용자 단말(1201)의 상태 정보를 지능형 서버(1300)로 송신할 수 있다. 상기 상태 정보는, 예를 들어, 앱의 실행 상태 정보일 수 있다.One example client module 1231 can receive user input. For example, the client module 1231 may receive a voice signal corresponding to a user utterance detected through the microphone 1270. Alternatively, the client module 1231 may receive a touch input detected through the display 1260. Alternatively, the client module 1231 may receive text input detected through a keyboard or visual keyboard. In addition, various types of user input detected through an input module included in the user terminal 1201 or an input module connected to the user terminal 1201 can be received. The client module 1231 may transmit the received user input (eg, voice signal) to the intelligent server 1300. The client module 1231 may transmit status information of the user terminal 1201 to the intelligent server 1300 along with the received user input. The status information may be, for example, execution status information of an app.

일 예의 클라이언트 모듈(1231)은 수신된 사용자 입력에 대응되는 결과를 지능형 서버(1300)로부터 수신할 수 있다. 예를 들어, 클라이언트 모듈(1231)은 지능형 서버(1300)에서 상기 수신된 사용자 입력에 대응되는 결과를 산출할 수 있는 경우, 수신된 사용자 입력에 대응되는 결과를 수신할 수 있다. 클라이언트 모듈(1231)은 상기 수신된 결과를 디스플레이(1260)에 표시할 수 있다. 또한, 클라이언트 모듈(1231)은 상기 수신된 결과를 스피커(1255)를 통해 오디오로 출력할 수 있다.As an example, the client module 1231 may receive a result corresponding to the received user input from the intelligent server 1300. For example, if the intelligent server 1300 can calculate a result corresponding to the received user input, the client module 1231 may receive a result corresponding to the received user input. The client module 1231 may display the received result on the display 1260. Additionally, the client module 1231 may output the received result as audio through the speaker 1255.

일 예의 클라이언트 모듈(1231)은 수신된 사용자 입력에 대응되는 플랜을 수신할 수 있다. 클라이언트 모듈(1231)은 플랜에 따라 앱의 복수의 동작들을 실행한 결과를 디스플레이(1260)에 표시할 수 있다. 클라이언트 모듈(1231)은, 예를 들어, 복수의 동작들의 실행 결과를 순차적으로 디스플레이에 표시할 수 있고, 스피커(1255)를 통해 오디오를 출력할 수 있다. 사용자 단말(1201)은, 다른 예를 들어, 복수의 동작들을 실행한 일부 결과(예: 마지막 동작의 결과)만을 디스플레이에 표시할 수 있으며, 스피커(1255)를 통해 오디오로 출력할 수 있다.The example client module 1231 may receive a plan corresponding to the received user input. The client module 1231 can display the results of executing a plurality of operations of the app according to the plan on the display 1260. For example, the client module 1231 may sequentially display execution results of a plurality of operations on a display and output audio through the speaker 1255. For another example, the user terminal 1201 may display only a partial result of executing a plurality of operations (e.g., the result of the last operation) on the display and output audio through the speaker 1255.

일 예에 따르면, 클라이언트 모듈(1231)은 지능형 서버(1300)로부터 사용자 입력에 대응되는 결과를 산출하기 위해 필요한 정보를 획득하기 위한 요청을 수신할 수 있다. 일 예에 따르면, 클라이언트 모듈(1231)은 상기 요청에 대응하여 상기 필요한 정보를 지능형 서버(1300)로 송신할 수 있다.According to one example, the client module 1231 may receive a request from the intelligent server 1300 to obtain information necessary to calculate a result corresponding to the user input. According to one example, the client module 1231 may transmit the necessary information to the intelligent server 1300 in response to the request.

일 예의 클라이언트 모듈(1231)은 플랜에 따라 복수의 동작들을 실행한 결과 정보를 지능형 서버(1300)로 송신할 수 있다. 지능형 서버(1300)는 상기 결과 정보를 이용하여 수신된 사용자 입력이 올바르게 처리된 것을 확인할 수 있다.As an example, the client module 1231 may transmit information as a result of executing a plurality of operations according to the plan to the intelligent server 1300. The intelligent server 1300 can use the result information to confirm that the received user input has been processed correctly.

일 예의 클라이언트 모듈(1231)은 음성 인식 모듈을 포함할 수 있다. 일 예에 따르면, 클라이언트 모듈(1231)은 상기 음성 인식 모듈을 통해 제한된 기능을 수행하는 음성 입력을 인식할 수 있다. 예를 들어, 클라이언트 모듈(1231)은 지정된 음성 입력(예: 웨이크 업!)에 대응하여 유기적인 동작을 수행함으로써 음성 입력을 처리하기 위한 지능형 앱을 실행할 수 있다. One example client module 1231 may include a voice recognition module. According to one example, the client module 1231 may recognize voice input performing a limited function through the voice recognition module. For example, the client module 1231 may execute an intelligent app for processing voice input by performing an organic action in response to a designated voice input (e.g., wake up!).

일 예의 지능형 서버(1300)는 네트워크(1299)(예: 도 11의 제1 네트워크(1198) 및/또는 제2 네트워크(1199))를 통해 사용자 단말(1201)로부터 사용자 음성 입력과 관련된 정보를 수신할 수 있다. 일 예에 따르면, 지능형 서버(1300)는 수신된 음성 입력과 관련된 데이터를 텍스트 데이터(text data)로 변경할 수 있다. 일 예에 따르면, 지능형 서버(1300)는 상기 텍스트 데이터에 기초하여 사용자 음성 입력과 대응되는 태스크(task)를 수행하기 위한 적어도 하나의 플랜(plan)을 생성할 수 있다The example intelligent server 1300 receives information related to the user's voice input from the user terminal 1201 through the network 1299 (e.g., the first network 1198 and/or the second network 1199 in FIG. 11). can do. According to one example, the intelligent server 1300 may change data related to the received voice input into text data. According to one example, the intelligent server 1300 may generate at least one plan for performing a task corresponding to a user's voice input based on the text data.

일 예에 따르면, 플랜은 인공 지능(artificial intelligent)(AI) 시스템에 의해 생성될 수 있다. 인공지능 시스템은 룰 베이스 시스템(rule-based system) 일 수도 있고, 신경망 베이스 시스템(neural network-based system)(예: 피드포워드 신경망(feedforward neural network(FNN)), 및/또는 순환 신경망(recurrent neural network(RNN))) 일 수도 있다. 또는, 전술한 것의 조합 또는 이와 다른 인공지능 시스템일 수도 있다. 일 예에 따르면, 플랜은 미리 정의된 플랜들의 집합에서 선택될 수 있거나, 사용자 요청에 응답하여 실시간으로 생성될 수 있다. 예를 들어, 인공지능 시스템은 미리 정의 된 복수의 플랜들 중 적어도 하나의 플랜을 선택할 수 있다.According to one example, the plan may be generated by an artificial intelligence (AI) system. An artificial intelligence system may be a rule-based system, a neural network-based system (e.g., a feedforward neural network (FNN)), and/or a recurrent neural network. network(RNN))). Alternatively, it may be a combination of the above or a different artificial intelligence system. According to one example, a 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, an artificial intelligence system can select at least one plan from a plurality of predefined plans.

일 예의 지능형 서버(1300)는 생성된 플랜에 따른 결과를 사용자 단말(1201)로 송신하거나, 생성된 플랜을 사용자 단말(1201)로 송신할 수 있다. 일 예에 따르면, 사용자 단말(1201)은 플랜에 따른 결과를 디스플레이(1260)에 표시할 수 있다. 일 예에 따르면, 사용자 단말(1201)은 플랜에 따른 동작을 실행한 결과를 디스플레이(1260)에 표시할 수 있다.As an example, the intelligent server 1300 may transmit a result according to the generated plan to the user terminal 1201 or transmit the generated plan to the user terminal 1201. According to one example, the user terminal 1201 may display results according to the plan on the display 1260. According to one example, the user terminal 1201 may display the results of executing an operation according to the plan on the display 1260.

일 예의 지능형 서버(1300)는 프론트 엔드(front end)(1310), 자연어 플랫폼(natural language platform)(1320), 캡슐 데이터베이스(capsule database)(1330), 실행 엔진(execution engine)(1340), 엔드 유저 인터페이스(end user interface)(1350), 매니지먼트 플랫폼(management platform)(1360), 빅 데이터 플랫폼(big data platform)(1370), 또는 분석 플랫폼(analytic platform)(1380)을 포함할 수 있다.An example intelligent server 1300 includes a front end 1310, a natural language platform 1320, a capsule database 1330, an execution engine 1340, an end It may include an end user interface (1350), a management platform (1360), a big data platform (1370), or an analytic platform (1380).

일 예의 프론트 엔드(1310)는 사용자 단말(1201)에 의하여 수신된 음성 입력을 사용자 단말(1201)로부터 수신할 수 있다. 프론트 엔드(1310)는 상기 음성 입력에 대응되는 응답을 사용자 단말(1201)로 송신할 수 있다.In one example, the front end 1310 may receive a voice input received by the user terminal 1201 from the user terminal 1201 . The front end 1310 may transmit a response corresponding to the voice input to the user terminal 1201.

일 예에 따르면, 자연어 플랫폼(1320)은 자동 음성 인식 모듈(automatic speech recognition module)(ASR module)(1321), 자연어 이해 모듈(natural language understanding module)(NLU module)(1323), 플래너 모듈(planner module)(1325), 자연어 생성 모듈(natural language generator module)(NLG module)(1327), 및/또는 텍스트 음성 변환 모듈(text to speech module)(TTS module)(1329)을 포함할 수 있다.According to one example, the natural language platform 1320 includes an automatic speech recognition module (ASR module) 1321, a natural language understanding module (NLU module) 1323, and a planner module. module) (1325), a natural language generator module (NLG module) (1327), and/or a text to speech module (TTS module) (1329).

일 예의 자동 음성 인식 모듈(1321)은 사용자 단말(1201)로부터 수신된 음성 입력을 텍스트 데이터로 변환할 수 있다. 일 예의 자연어 이해 모듈(1323)은 음성 입력의 텍스트 데이터를 이용하여 사용자의 의도를 파악할 수 있다. 예를 들어, 자연어 이해 모듈(1323)은 텍스트 데이터 형태의 사용자 입력에 대하여 문법적 분석(syntactic analyze) 및/또는 의미적 분석(semantic analyze)을 수행하여 사용자의 의도를 파악할 수 있다. 일 예의 자연어 이해 모듈(1323)은 형태소 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 사용자 입력으로부터 추출된 단어의 의미를 파악하고, 상기 파악된 단어의 의미를 의도에 매칭시켜 사용자의 의도를 결정할 수 있다. 자연어 이해 모듈(1323)은 사용자 발화에 대응되는 의도 정보(intent information)를 획득할 수 있다. 의도 정보는 텍스트 데이터를 해석하여 판단되는 사용자의 의도를 나타내는 정보일 수 있다. 의도 정보는 사용자가 디바이스를 이용하여 실행하고자 하는 동작 또는 기능을 나타내는 정보를 포함할 수 있다.As an example, the automatic voice recognition module 1321 may convert voice input received from the user terminal 1201 into text data. As an example, the natural language understanding module 1323 may determine the user's intention using text data of voice input. For example, the natural language understanding module 1323 may determine the user's intention by performing syntactic analysis and/or semantic analysis on user input in the form of text data. As an example, the natural language understanding module 1323 uses linguistic features (e.g., grammatical elements) of morphemes or phrases to determine the meaning of a word extracted from the user input, and matches the meaning of the identified word to the intention to determine the user's intention. can be decided. The natural language understanding module 1323 can acquire intent information corresponding to the user's utterance. Intention information may be information indicating the user's intention determined by interpreting text data. Intent information may include information indicating an action or function that the user wishes to perform using the device.

일 예의 플래너 모듈(1325)은 자연어 이해 모듈(1323)에서 결정된 의도 및 파라미터를 이용하여 플랜을 생성할 수 있다. 일 예에 따르면, 플래너 모듈(1325)은 상기 결정된 의도에 기초하여 태스크를 수행하기 위해 필요한 복수의 도메인들을 결정할 수 있다. 플래너 모듈(1325)은 상기 의도에 기초하여 결정된 복수의 도메인들 각각에 포함된 복수의 동작들을 결정할 수 있다. 일 예에 따르면, 플래너 모듈(1325)은 상기 결정된 복수의 동작들을 실행하는데 필요한 파라미터나, 상기 복수의 동작들의 실행에 의해 출력되는 결과 값을 결정할 수 있다. 상기 파라미터, 및 상기 결과 값은 지정된 형식(또는, 클래스)의 컨셉으로 정의될 수 있다. 이에 따라, 플랜은 사용자의 의도에 의해 결정된 복수의 동작들, 및/또는 복수의 컨셉들을 포함할 수 있다. 상기 플래너 모듈(1325)은 상기 복수의 동작들, 및 상기 복수의 컨셉들 사이의 관계를 단계적(또는, 계층적)으로 결정할 수 있다. 예를 들어, 플래너 모듈(1325)은 복수의 컨셉들에 기초하여 사용자의 의도에 기초하여 결정된 복수의 동작들의 실행 순서를 결정할 수 있다. 다시 말해, 플래너 모듈(1325)은 복수의 동작들의 실행에 필요한 파라미터, 및 복수의 동작들의 실행에 의해 출력되는 결과에 기초하여, 복수의 동작들의 실행 순서를 결정할 수 있다. 이에 따라, 플래너 모듈(1325)은 복수의 동작들 및 복수의 컨셉들 사이의 연관 정보(예: 온톨로지(ontology))가 포함된 플랜을 생성할 수 있다. 상기 플래너 모듈(1325)은 컨셉과 동작의 관계들의 집합이 저장된 캡슐 데이터베이스(1330)에 저장된 정보를 이용하여 플랜을 생성할 수 있다. As an example, the planner module 1325 may generate a plan using the intent and parameters determined by the natural language understanding module 1323. According to one example, the planner module 1325 may determine a plurality of domains necessary to perform a task based on the determined intention. The planner module 1325 may determine a plurality of operations included in each of the plurality of domains determined based on the intention. According to one example, the planner module 1325 may determine parameters required to execute the determined plurality of operations or result values output by executing the plurality of operations. The parameters and the result values may be defined as concepts of a specified type (or class). Accordingly, the plan may include a plurality of operations and/or a plurality of concepts determined by the user's intention. The planner module 1325 may determine the relationship between the plurality of operations and the plurality of concepts in a stepwise (or hierarchical) manner. For example, the planner module 1325 may determine the execution order of a plurality of operations determined based on the user's intention based on a plurality of concepts. In other words, the planner module 1325 may determine the execution order of the plurality of operations based on parameters required for execution of the plurality of operations and results output by executing the plurality of operations. Accordingly, the planner module 1325 may generate a plan that includes association information (eg, ontology) between a plurality of operations and a plurality of concepts. The planner module 1325 can create a plan using information stored in the capsule database 1330, which stores a set of relationships between concepts and operations.

일 예의 자연어 생성 모듈(1327)은 지정된 정보를 텍스트 형태로 변경할 수 있다. 상기 텍스트 형태로 변경된 정보는 자연어 발화의 형태일 수 있다. 일 예의 텍스트 음성 변환 모듈(1329)은 텍스트 형태의 정보를 음성 형태의 정보로 변경할 수 있다.As an example, the natural language generation module 1327 may change designated information into text form. The information changed to the text form may be in the form of natural language speech. As an example, the text-to-speech conversion module 1329 can change information in text form into information in voice form.

일 예에 따르면, 자연어 플랫폼(1320)의 기능의 일부 기능 또는 전체 기능은 사용자 단말(1201)에서도 구현가능 할 수 있다. 예를 들어, 사용자 단말(1201)이 자동 음성 인식 모듈 및/또는 자연어 이해 모듈을 포함할 수 있다. 사용자 단말(1201)이 사용자 음성 명령을 인식한 뒤, 인식된 음성 명령에 대응하는 텍스트 정보를 지능형 서버(1300)로 송신할 수 있다. 예를 들어, 사용자 단말(1201)이 텍스트 음성 변환 모듈을 포함할 수 있다. 사용자 단말(1201)이 지능형 서버(1300)로부터 텍스트 정보를 수신하고, 수신된 텍스트 정보를 음성으로 출력할 수 있다. According to one example, some or all of the functions of the natural language platform 1320 may also be implemented in the user terminal 1201. For example, the user terminal 1201 may include an automatic speech recognition module and/or a natural language understanding module. After the user terminal 1201 recognizes the user's voice command, it can transmit text information corresponding to the recognized voice command to the intelligent server 1300. For example, the user terminal 1201 may include a text-to-speech module. The user terminal 1201 may receive text information from the intelligent server 1300 and output the received text information as voice.

상기 캡슐 데이터베이스(1330)는 복수의 도메인들에 대응되는 복수의 컨셉들과 동작들의 관계에 대한 정보를 저장할 수 있다. 일 예에 따른 캡슐은 플랜에 포함된 복수의 동작 오브젝트(action object)(또는 동작 정보) 및/또는 컨셉 오브젝트(concept object)(또는 컨셉 정보)들을 포함할 수 있다. 일 예에 따르면, 캡슐 데이터베이스(1330)는 CAN(concept action network)의 형태로 복수의 캡슐들을 저장할 수 있다. 일 예에 따르면, 복수의 캡슐들은 캡슐 데이터베이스(1330)에 포함된 기능 저장소(function registry)에 저장될 수 있다.The capsule database 1330 may store information about the relationship between a plurality of concepts and operations corresponding to a plurality of domains. A capsule according to an example may include a plurality of action objects (or action information) and/or concept objects (or concept information) included in the plan. According to one example, the capsule database 1330 may store a plurality of capsules in the form of CAN (concept action network). According to one example, a plurality of capsules may be stored in a function registry included in the capsule database 1330.

상기 캡슐 데이터베이스(1330)는 사용자 입력에 대응되는 플랜을 결정할 때 필요한 전략 정보가 저장된 전략 레지스트리(strategy registry)를 포함할 수 있다. 상기 전략 정보는 사용자 입력에 대응되는 복수의 플랜들이 있는 경우, 하나의 플랜을 결정하기 위한 기준 정보를 포함할 수 있다. 일 예에 따르면, 캡슐 데이터베이스(1330)는 지정된 상황에서 사용자에게 후속 동작을 제안하기 위한 후속 동작의 정보가 저장된 후속 동작 레지스트리(follow up registry)를 포함할 수 있다. 상기 후속 동작은, 예를 들어, 후속 발화를 포함할 수 있다. 일 예에 따르면, 캡슐 데이터베이스(1330)는 사용자 단말(1201)을 통해 출력되는 정보의 레이아웃(layout) 정보를 저장하는 레이아웃 레지스트리(layout registry)를 포함할 수 있다. 일 예에 따르면, 캡슐 데이터베이스(1330)는 캡슐 정보에 포함된 어휘(vocabulary) 정보가 저장된 어휘 레지스트리(vocabulary registry)를 포함할 수 있다. 일 예에 따르면, 캡슐 데이터베이스(1330)는 사용자와의 대화(dialog)(또는, 인터렉션(interaction)) 정보가 저장된 대화 레지스트리(dialog registry)를 포함할 수 있다. 상기 캡슐 데이터베이스(1330)는 개발자 툴(developer tool)을 통해 저장된 오브젝트를 업데이트(update)할 수 있다. 상기 개발자 툴은, 예를 들어, 동작 오브젝트 또는 컨셉 오브젝트를 업데이트하기 위한 기능 에디터(function editor)를 포함할 수 있다. 상기 개발자 툴은 어휘를 업데이트하기 위한 어휘 에디터(vocabulary editor)를 포함할 수 있다. 상기 개발자 툴은 플랜을 결정하는 전략을 생성 및 등록 하는 전략 에디터(strategy editor)를 포함할 수 있다. 상기 개발자 툴은 사용자와의 대화를 생성하는 대화 에디터(dialog editor)를 포함할 수 있다. 상기 개발자 툴은 후속 목표를 활성화하고, 힌트를 제공하는 후속 발화를 편집할 수 있는 후속 동작 에디터(follow up editor)를 포함할 수 있다. 상기 후속 목표는 현재 설정된 목표, 사용자의 선호도 또는 환경 조건에 기초하여 결정될 수 있다. 일 예에서는 캡슐 데이터베이스(1330)가 사용자 단말(1201) 내에도 구현될 수 있다.The capsule database 1330 may include a strategy registry in which strategy information necessary for determining a plan corresponding to user input is stored. The strategy information may include standard information for determining one plan when there are multiple plans corresponding to user input. According to one example, the capsule database 1330 may include a follow up registry in which information on follow-up actions is stored to suggest follow-up actions to the user in a specified situation. The follow-up action may include, for example, follow-up speech. According to one example, the capsule database 1330 may include a layout registry that stores layout information of information output through the user terminal 1201. According to one example, the capsule database 1330 may include a vocabulary registry where vocabulary information included in capsule information is stored. According to one example, the capsule database 1330 may include a dialogue registry in which information about a dialogue (or interaction) with a user is stored. The capsule database 1330 can update stored objects through a developer tool. The developer tool may include, for example, a function editor for updating operation objects or concept objects. The developer tool may include a vocabulary editor for updating the vocabulary. The developer tool may include a strategy editor that creates and registers a strategy for determining the plan. The developer tool may include a dialogue editor that creates a dialogue with the user. The developer tool may include a follow up editor that can edit follow-up utterances to activate follow-up goals and provide hints. The subsequent goal may be determined based on currently set goals, user preferences, or environmental conditions. In one example, the capsule database 1330 may also be implemented within the user terminal 1201.

일 예의 실행 엔진(1340)은 상기 생성된 플랜을 이용하여 결과를 산출할 수 있다. 엔드 유저 인터페이스(1350)는 산출된 결과를 사용자 단말(1201)로 송신할 수 있다. 이에 따라, 사용자 단말(1201)은 상기 결과를 수신하고, 상기 수신된 결과를 사용자에게 제공할 수 있다. 일 예의 매니지먼트 플랫폼(1360)은 지능형 서버(1300)에서 이용되는 정보를 관리할 수 있다. 일 예의 빅 데이터 플랫폼(1370)은 사용자의 데이터를 수집할 수 있다. 일 예의 분석 플랫폼(1380)은 지능형 서버(1300)의 QoS(quality of service)를 관리할 수 있다. 예를 들어, 분석 플랫폼(1380)은 지능형 서버(1300)의 구성 요소 및 처리 속도(또는, 효율성)를 관리할 수 있다.The example execution engine 1340 may calculate a result using the generated plan. The end user interface 1350 may transmit the calculated result to the user terminal 1201. Accordingly, the user terminal 1201 can receive the result and provide the received result to the user. An example management platform 1360 may manage information used by the intelligent server 1300. One example big data platform 1370 may collect user data. An example analytics platform 1380 may manage quality of service (QoS) of the intelligent server 1300. For example, analytics platform 1380 may manage the components and processing speed (or efficiency) of intelligent server 1300.

일 예의 서비스 서버(1400)는 사용자 단말(1201)에 지정된 서비스(예: 음식 주문 또는 호텔 예약)를 제공할 수 있다. 일 예에 따르면, 서비스 서버(1400)는 제3 자에 의해 운영되는 서버일 수 있다. 일 예의 서비스 서버(1400)는 수신된 음성 입력에 대응되는 플랜을 생성하기 위한 정보를 지능형 서버(1300)에 제공할 수 있다. 상기 제공된 정보는 캡슐 데이터베이스(1330)에 저장될 수 있다. 또한, 서비스 서버(1400)는 플랜에 따른 결과 정보를 지능형 서버(1300)에 제공할 수 있다. 서비스 서버(1400)는 네트워크(1299)를 통하여 지능형 서버(1300) 및/또는 사용자 단말(1201)과 통신할 수 있다. 서비스 서버(1400)는 별도의 연결을 통하여 지능형 서버(1300)와 통신할 수 있다. 도 12에는 서비스 서버(1400)가 하나의 서버로 도시되어 있으나, 본 문서의 실시예들이 이에 제한되는 것은 아니다. 서비스 서버(1400)의 각각의 서비스(1401, 1402, 및 1403)들 중 적어도 하나는 별도의 서버로 구현될 수 있다. In one example, the service server 1400 may provide a designated service (eg, food ordering or hotel reservation) to the user terminal 1201. According to one example, the service server 1400 may be a server operated by a third party. As an example, the service server 1400 may provide the intelligent server 1300 with information for creating a plan corresponding to the received voice input. The provided information may be stored in the capsule database 1330. Additionally, the service server 1400 may provide result information according to the plan to the intelligent server 1300. The service server 1400 may communicate with the intelligent server 1300 and/or the user terminal 1201 through the network 1299. The service server 1400 can communicate with the intelligent server 1300 through a separate connection. Although the service server 1400 is shown as one server in FIG. 12, the embodiments of this document are not limited thereto. At least one of the services 1401, 1402, and 1403 of the service server 1400 may be implemented as a separate server.

위에 기술된 통합 지능 시스템에서, 상기 사용자 단말(1201)은, 사용자 입력에 응답하여 사용자에게 다양한 인텔리전트 서비스를 제공할 수 있다. 상기 사용자 입력은, 예를 들어, 물리적 버튼을 통한 입력, 터치 입력 또는 음성 입력을 포함할 수 있다.In the integrated intelligence system described above, the user terminal 1201 can provide various intelligent services to the user in response to user input. The user input may include, for example, input through a physical button, touch input, or voice input.

일 예에서, 상기 사용자 단말(1201)은 내부에 저장된 지능형 앱(또는, 음성 인식 앱)을 통해 음성 인식 서비스를 제공할 수 있다. 이 경우, 예를 들어, 사용자 단말(1201)은 상기 마이크(1270)를 통해 수신된 사용자 발화(utterance) 또는 음성 입력(voice input)을 인식하고, 인식된 음성 입력에 대응되는 서비스를 사용자에게 제공할 수 있다.In one example, the user terminal 1201 may provide a voice recognition service through an internally stored intelligent app (or voice recognition app). In this case, for example, the user terminal 1201 recognizes a user utterance or voice input received through the microphone 1270 and provides a service corresponding to the recognized voice input to the user. can do.

일 예에서, 사용자 단말(1201)은 수신된 음성 입력에 기초하여, 단독으로 또는 상기 지능형 서버(1300) 및/또는 서비스 서버(1400)와 함께 지정된 동작을 수행할 수 있다. 예를 들어, 사용자 단말(1201)은 수신된 음성 입력에 대응되는 앱을 실행시키고, 실행된 앱을 통해 지정된 동작을 수행할 수 있다. In one example, the user terminal 1201 may perform a designated operation alone or together with the intelligent server 1300 and/or the service server 1400 based on the received voice input. For example, the user terminal 1201 may run an app corresponding to a received voice input and perform a designated operation through the executed app.

일 예에서, 사용자 단말(1201)이 지능형 서버(1300) 및/또는 서비스 서버(1400)와 함께 서비스를 제공하는 경우에는, 상기 사용자 단말(1201)은, 상기 마이크(1270)를 이용하여 사용자 발화를 감지하고, 상기 감지된 사용자 발화에 대응되는 신호(또는, 음성 데이터)를 생성할 수 있다. 상기 사용자 단말(1201)은, 상기 음성 데이터를 통신 인터페이스(1290)를 이용하여 지능형 서버(1300)로 송신할 수 있다.In one example, when the user terminal 1201 provides a service together with the intelligent server 1300 and/or the service server 1400, the user terminal 1201 uses the microphone 1270 to make a user speech. may be detected, and a signal (or voice data) corresponding to the detected user utterance may be generated. The user terminal 1201 may transmit the voice data to the intelligent server 1300 using the communication interface 1290.

일 예에 따른 지능형 서버(1300)는 사용자 단말(1201)로부터 수신된 음성 입력에 대한 응답으로써, 음성 입력에 대응되는 태스크(task)를 수행하기 위한 플랜, 또는 상기 플랜에 따라 동작을 수행한 결과를 생성할 수 있다. 상기 플랜은, 예를 들어, 사용자의 음성 입력에 대응되는 태스크(task)를 수행하기 위한 복수의 동작들 및/또는 상기 복수의 동작들과 관련된 복수의 컨셉들을 포함할 수 있다. 상기 컨셉은 상기 복수의 동작들의 실행에 입력되는 파라미터나, 복수의 동작들의 실행에 의해 출력되는 결과 값을 정의한 것일 수 있다. 상기 플랜은 복수의 동작들 및/또는 복수의 컨셉들 사이의 연관 정보를 포함할 수 있다.The intelligent server 1300 according to one example is a response to a voice input received from the user terminal 1201, a plan for performing a task corresponding to the voice input, or a result of performing an operation according to the plan. can be created. For example, the plan may include a plurality of operations for performing a task corresponding to a user's voice input and/or a plurality of concepts related to the plurality of operations. The concept may define parameters input to the execution of the plurality of operations or result values output by the execution of the plurality of operations. The plan may include association information between a plurality of operations and/or a plurality of concepts.

일 예의 사용자 단말(1201)은, 통신 인터페이스(1290)를 이용하여 상기 응답을 수신할 수 있다. 사용자 단말(1201)은 상기 스피커(1255)를 이용하여 사용자 단말(1201) 내부에서 생성된 음성 신호를 외부로 출력하거나, 디스플레이(1260)를 이용하여 사용자 단말(1201) 내부에서 생성된 이미지를 외부로 출력할 수 있다.As an example, the user terminal 1201 may receive the response using the communication interface 1290. The user terminal 1201 outputs a voice signal generated inside the user terminal 1201 to the outside using the speaker 1255, or outputs an image generated inside the user terminal 1201 to the outside using the display 1260. It can be output as .

도 13은 일 예에 따른, 컨셉과 동작의 관계 정보가 데이터베이스에 저장된 형태를 나타낸 도면이다.Figure 13 is a diagram showing how relationship information between concepts and actions is stored in a database, according to an example.

상기 지능형 서버(예: 도 12의 지능형 서버(1300))의 캡슐 데이터베이스(예: 캡슐 데이터베이스(1330))는 CAN (concept action network) 형태로 캡슐을 저장할 수 있다. 상기 캡슐 데이터베이스는 사용자의 음성 입력에 대응되는 태스크를 처리하기 위한 동작, 및 상기 동작을 위해 필요한 파라미터를 CAN(concept action network) 형태로 저장될 수 있다.The capsule database (e.g., capsule database 1330) of the intelligent server (e.g., intelligent server 1300 of FIG. 12) may store capsules in CAN (concept action network) format. The capsule database may store operations for processing tasks corresponding to the user's voice input, and parameters necessary for the operations in CAN (concept action network) format.

상기 캡슐 데이터베이스는 복수의 도메인(예: 어플리케이션)들 각각에 대응되는 복수의 캡슐(캡슐A(1331), 캡슐B(1334))들을 저장할 수 있다. 일 예에 따르면, 하나의 캡슐(예: 캡슐A(1331))은 하나의 도메인(예: 위치(geo), 어플리케이션)에 대응될 수 있다. 또한, 하나의 캡슐에는 캡슐과 관련된 도메인에 대한 기능을 수행하기 위한 적어도 하나의 서비스 제공자의 캡슐(예: CP 1(1332), CP 2 (1333), CP3 (1335), 및/또는 CP4 (1336))이 대응될 수 있다. 일 예에 따르면, 하나의 캡슐은 지정된 기능을 수행하기 위한 적어도 하나 이상의 동작(1330a) 및 적어도 하나 이상의 컨셉(1330b)을 포함할 수 있다. The capsule database may store a plurality of capsules (capsule A 1331, capsule B 1334) corresponding to each of a plurality of domains (eg, applications). According to one example, one capsule (eg, capsule A 1331) may correspond to one domain (eg, location (geo), application). Additionally, one capsule contains at least one capsule of a service provider (e.g., CP 1 (1332), CP 2 (1333), CP3 (1335), and/or CP4 (1336) to perform functions for the domain associated with the capsule. )) can correspond. According to one example, one capsule may include at least one operation 1330a and at least one concept 1330b for performing a designated function.

상기, 자연어 플랫폼(예: 도 12의 자연어 플랫폼(1320))은 캡슐 데이터베이스(1330)에 저장된 캡슐을 이용하여 수신된 음성 입력에 대응하는 태스크를 수행하기 위한 플랜을 생성할 수 있다. 예를 들어, 자연어 플랫폼의 플래너 모듈(예: 도 12의 플래너 모듈(1325))은 캡슐 데이터베이스에 저장된 캡슐을 이용하여 플랜을 생성할 수 있다. 예를 들어, 캡슐 A(1331) 의 동작들(1331a, 1332a)과 컨셉들(1331b, 1332b) 및 캡슐 B(1334)의 동작(1334a)과 컨셉(1334b)을 이용하여 플랜(1337)을 생성할 수 있다.The natural language platform (e.g., natural language platform 1320 in FIG. 12) may generate a plan for performing a task corresponding to the received voice input using the capsule stored in the capsule database 1330. For example, the planner module of the natural language platform (e.g., planner module 1325 in FIG. 12) can create a plan using capsules stored in the capsule database. For example, create a plan 1337 using the operations 1331a, 1332a and concepts 1331b, 1332b of capsule A 1331 and the operations 1334a and concept 1334b of capsule B 1334. can do.

도 14는 일 예에 따른 사용자 단말이 지능형 앱을 통해 수신된 음성 입력을 처리하는 화면을 나타낸 도면이다.Figure 14 is a diagram illustrating a screen in which a user terminal processes voice input received through an intelligent app according to an example.

사용자 단말(1201)은 지능형 서버(예: 도 12의 지능형 서버(1300))를 통해 사용자 입력을 처리하기 위해 지능형 앱을 실행할 수 있다.The user terminal 1201 may run an intelligent app to process user input through an intelligent server (e.g., the intelligent server 1300 in FIG. 12).

일 예에 따르면, 제1 화면(1210)에서, 사용자 단말(1201)은 지정된 음성 입력(예: 웨이크 업!)을 인식하거나 하드웨어 키(예: 전용 하드웨어 키)를 통한 입력을 수신하면, 음성 입력을 처리하기 위한 지능형 앱을 실행할 수 있다. 사용자 단말(1201)은, 예를 들어, 스케줄 앱을 실행한 상태에서 지능형 앱을 실행할 수 있다. 일 예에 따르면, 사용자 단말(1201)은 지능형 앱에 대응되는 오브젝트(예: 아이콘)(1411)를 디스플레이(예: 도 12의 디스플레이(1260))에 표시할 수 있다. 일 예에 따르면, 사용자 단말(1201)은 사용자 발화에 의한 음성 입력을 수신할 수 있다. 예를 들어, 사용자 단말(1201)은 "이번주 일정 알려줘!"라는 음성 입력을 수신할 수 있다. 일 예에 따르면, 사용자 단말(1201)은 수신된 음성 입력의 텍스트 데이터가 표시된 지능형 앱의 UI(user interface)(1213)(예: 입력창)를 디스플레이에 표시할 수 있다.According to one example, in the first screen 1210, when the user terminal 1201 recognizes a designated voice input (e.g., wake up!) or receives an input through a hardware key (e.g., a dedicated hardware key), the user terminal 1201 inputs the voice input. You can run intelligent apps to process. For example, the user terminal 1201 may run an intelligent app while executing a schedule app. According to one example, the user terminal 1201 may display an object (e.g., an icon) 1411 corresponding to an intelligent app on a display (e.g., the display 1260 of FIG. 12). According to one example, the user terminal 1201 may receive voice input through a user's utterance. For example, the user terminal 1201 may receive a voice input saying “Tell me this week’s schedule!” According to one example, the user terminal 1201 may display a user interface (UI) 1213 (e.g., input window) of an intelligent app displaying text data of a received voice input on the display.

일 예에 따르면, 제2 화면(1215)에서, 사용자 단말(1201)은 수신된 음성 입력에 대응되는 결과를 디스플레이에 표시할 수 있다. 예를 들어, 사용자 단말(1201)은 수신된 사용자 입력에 대응되는 플랜을 수신하고, 플랜에 따라 '이번주 일정'을 디스플레이에 표시할 수 있다.According to one example, in the second screen 1215, the user terminal 1201 may display a result corresponding to the received voice input on the display. For example, the user terminal 1201 may receive a plan corresponding to the received user input and display 'this week's schedule' on the display according to the plan.

전자 장치는 음성 명령에 기반하여 기기를 제어하는 음성 어시스턴트 기능을 제공할 수 있다. 전자 장치가 음성 어시스턴트 기능을 제공하기 위해서는 사용자의 발화를 통해 수행하고자 하는 동작(action)에 대한 도메인 및 의도를 파악해야 한다. 예를 들어, 음성 어시스턴트 기능이 발화를 처리하는 범위가 늘어남에 따라 단순히 발화 내용만으로 사용자가 원하는 결과를 도출하는데 한계가 있을 수 있다. 예를 들어, 단순히 발화 내용만으로 도메인 및 의도가 특정되기 위해서는 서술어가 포함된 형태의 발화가 요구되거나, 특정 도메인을 포함하는 발화가 요구될 수 있다. 예를 들어, 서술어를 포함하지 않거나 특정 도메인을 포함하지 않는 발화를 수신한 경우 전자 장치는 사용자의 의도에 대응하는 동작을 수행하지 못할 수 있다.Electronic devices may provide a voice assistant function that controls devices based on voice commands. In order for an electronic device to provide a voice assistant function, it must identify the domain and intention of the action to be performed through the user's speech. For example, as the range of speech processing by the voice assistant function increases, there may be limitations in deriving the results desired by the user simply based on the content of the speech. For example, in order to specify the domain and intent simply based on the content of the utterance, an utterance containing a predicate may be required, or an utterance containing a specific domain may be required. For example, when receiving an utterance that does not include a predicate or a specific domain, the electronic device may not be able to perform an operation corresponding to the user's intention.

예를 들어, 전자 장치는 특정 도메인을 포함하지 않고 서술어와 개체명을 포함한 발화를 수신한 경우 규칙(rule)을 기반으로 사용자의 의도를 판단할 수 있다. 예를 들어, 개체명이 미디어 컨텐츠와 관련된 경우, 전자 장치는 개체명 검색 서버(named entity search server, NES sever)를 호출하여 개체명에 대응하는 카테고리를 결정함으로써 도메인을 추정할 수 있다. 그러나, 전자 장치는 서술어가 없는 발화를 수신하는 경우 개체명 검색 서버를 호출하지 않을 수 있다. 이 경우, 전자 장치는 사용자의 의도를 파악하지 못하므로, 발화 내용과 관계없는 대중적인(popular) 발화 힌트 리스트를 제공할 수 있을 뿐이다.For example, when an electronic device receives an utterance that does not include a specific domain but includes a predicate and an entity name, it can determine the user's intention based on a rule. For example, if the entity name is related to media content, the electronic device may estimate the domain by calling a named entity search server (NES server) to determine the category corresponding to the entity name. However, when the electronic device receives an utterance without a predicate, it may not call the entity name search server. In this case, since the electronic device cannot determine the user's intention, it can only provide a list of popular speech hints that are unrelated to the speech content.

예를 들어, 전자 장치는 서술어를 포함하는 발화를 수신하여 개체명 검색 서버를 통해 개체명에 대응하는 카테고리를 결정하더라도, 카테고리가 복수 개인 경우 여전히 사용자의 의도를 파악하지 못할 수 있다. 이 경우, 전자 장치는 음성 어시스턴트 기능의 자체 오더링(ordering)을 기반으로 동작을 수행할 수 있다. 동작 수행 결과는 사용자가 원하는 결과가 아닐 수 있다.For example, even if the electronic device receives an utterance containing a predicate and determines a category corresponding to the entity name through an entity name search server, it may still not be able to determine the user's intention if there are multiple categories. In this case, the electronic device may perform operations based on its own ordering of the voice assistant function. The result of performing the operation may not be what the user wants.

본 개시의 실시예는 서술어가 없는 발화에 대해서도 사용자가 원하는 도메인(애플리케이션 단의 도메인) 및 사용자의 의도를 파악할 수 있다.The embodiment of the present disclosure can identify the user's desired domain (application-level domain) and the user's intention even for utterances without predicates.

본 개시의 실시예는 사용자의 의도가 불명확한 발화에 대해서도 발화와 관련된 의도 정보를 파악하여 사용자에게 제공할 수 있다.Embodiments of the present disclosure can identify and provide intention information related to the utterance to the user even for utterances in which the user's intention is unclear.

본 개시의 실시예는 발화에 대응하는 카테고리가 복수 개이더라도 개인 데이터를 이용하여 사용자의 의도를 파악할 수 있다.An embodiment of the present disclosure can determine the user's intention using personal data even if there are multiple categories corresponding to the utterance.

본 개시의 일 실시예에 따른 전자 장치(101;602;702;802;901;1101;1201)는, 마이크(110;1150;1270), 통신 회로(120;1190;1290), 메모리(130;1130;1230), 및 프로세서(140;1120;1220)를 포함할 수 있다. 상기 메모리는 인스트럭션들을 저장할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 마이크를 통해 음성 명령을 수신하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 개체명에 기반하여 상기 음성 명령을 실행하기 위한 실행 정보를 획득하도록 할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 실행 정보를 이용하여 상기 음성 명령을 실행하도록 할 수 있다.An electronic device (101;602;702;802;901;1101;1201) according to an embodiment of the present disclosure includes a microphone (110;1150;1270), a communication circuit (120;1190;1290), a memory (130); 1130; 1230), and processors 140; 1120; 1220. The memory can store instructions. The instructions, when executed by the processor, may cause the electronic device to receive voice commands through the microphone. The instructions, when executed by the processor, may cause the electronic device to determine whether text corresponding to the voice command consists of a named entity. When executed by the processor, the instructions may cause the electronic device to obtain execution information for executing the voice command based on the entity name. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command. When executed by the processor, the instructions may cause the electronic device to execute the voice command using the execution information.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 두 개 이상인 경우, 상기 개체명에 기반하여 상기 실행 정보를 획득하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 한 개인 경우, 상기 도메인에서의 의도를 결정하고, 상기 결정된 의도에 대응하는 기능을 수행하도록 할 수 있다.According to an embodiment of the present disclosure, the instructions, when executed by the processor, cause the electronic device to: If the text consists of one entity name and there are two or more domains corresponding to the entity name, The execution information can be obtained based on the entity name. The instructions, when executed by the processor, cause the electronic device to, if the text consists of one entity name and there is one domain corresponding to the entity name, determine the intent in the domain, and It can be made to perform a function corresponding to the determined intention.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 텍스트가 하나의 개체명으로 구성되지 않은 경우, 상기 텍스트에 대한 자연어 처리를 통해 의도를 결정하고, 상기 결정된 의도에 대응하는 기능을 수행하도록 할 수 있다.According to an embodiment of the present disclosure, when the instructions are executed by the processor, the electronic device determines the intent through natural language processing of the text if the text does not consist of one entity name. And, the function corresponding to the determined intention can be performed.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 개체명의 문자열 및 발음열을 기반으로 공중 데이터(public data)(235-2) 및 개인 데이터(personal data)(235-1)를 포함하는 데이터베이스(235)를 검색하도록 할 수 있다.According to an embodiment of the present disclosure, when the instructions are executed by the processor, the electronic device collects public data 235-2 and personal data based on the string and pronunciation sequence of the entity name. The database 235 including (personal data) 235-1 can be searched.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 각 카테고리에 대한 비율 정보를 획득하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 비율 정보에 기반하여 상기 개체명에 대응하는 상기 카테고리를 결정하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 결정된 카테고리에 대응하는 상기 실행 정보를 획득하도록 할 수 있다.According to an embodiment of the present disclosure, when the instructions are executed by the processor, if the electronic device searches for a plurality of categories corresponding to the entity name based on the public data, the instructions determine the ratio for each category. Information can be obtained. When executed by the processor, the instructions may cause the electronic device to determine the category corresponding to the entity name based on the ratio information. When executed by the processor, the instructions may cause the electronic device to obtain the execution information corresponding to the determined category.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 복수 개의 카테고리 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 제1 사용자 인터페이스를 제공하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 제1 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 카테고리에 대응하는 상기 실행 정보를 획득하도록 할 수 있다.According to an embodiment of the present disclosure, when the instructions are executed by the processor, the electronic device selects one of the plurality of categories when a plurality of categories corresponding to the entity name are searched based on the public data. A first user interface may be provided to query the user whether he/she wants information belonging to the category. When executed by the processor, the instructions may cause the electronic device to obtain the execution information corresponding to the category selected by the user input on the first user interface.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색되고, 상기 개인 데이터에 기반하여 복수 개의 카테고리 중 하나의 카테고리를 특정 가능한 경우, 상기 특정된 하나의 카테고리에 대응하는 상기 실행 정보를 획득하도록 할 수 있다.According to an embodiment of the present disclosure, when the instructions are executed by the processor, the electronic device searches for a plurality of categories corresponding to the entity name based on the public data and searches for a plurality of categories corresponding to the entity name based on the personal data. Thus, when one category among a plurality of categories can be specified, the execution information corresponding to the specified one category can be obtained.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 개체명에 기반하여 상기 데이터베이스에서 검색되는 데이터가 없는 경우, 대중적으로(popularly) 사용되는 의도 리스트를 포함하는 제2 사용자 인터페이스를 제공하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 제2 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작(action)을 수행하도록 할 수 있다.According to an embodiment of the present disclosure, the instructions, when executed by the processor, are intended to be popularly used when the electronic device does not have data to be retrieved from the database based on the entity name. A second user interface including a list may be provided. When executed by the processor, the instructions may cause the electronic device to perform an action corresponding to the intention selected by the user input to the second user interface.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 텍스트가 하나의 개체명으로 구성된 경우, 상기 텍스트에 기반하여 도메인 또는 의도를 특정할 수 있는지 결정하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 도메인 또는 상기 의도를 특정할 수 없는 경우, 상기 획득된 실행 정보를 이용하여 상기 도메인 및 상기 의도를 특정하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 특정된 도메인 또는 의도에 기반하여 상기 음성 명령에 대응하는 동작(action)을 수행하도록 할 수 있다.According to an embodiment of the present disclosure, when executed by the processor, the instructions determine whether the electronic device can specify a domain or intent based on the text when the text consists of one entity name. You can decide. When the instructions are executed by the processor, if the electronic device cannot specify the domain or the intent, the instructions may be used to specify the domain and the intent using the obtained execution information. When executed by the processor, the instructions may cause the electronic device to perform an action corresponding to the voice command based on the specified domain or intent.

본 개시의 일 실시예에 따르면, 상기 전자 장치는 입력 장치(1150;1260;1270)를 더 포함할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 입력 장치를 통해, 적어도 하나의 개체명에 대해 동작(action)을 수행할 도메인 또는 상기 도메인에서의 의도를 지정하는 사용자 입력을 수신하도록 할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 수신된 사용자 입력에 기반하여, 상기 적어도 하나의 개체명 중 어느 하나를 포함하는 음성 명령이 수신되는 경우, 상기 지정된 도메인 또는 의도에 따라 상기 음성 명령에 대응하는 동작을 수행하도록 설정하도록 할 수 있다.According to an embodiment of the present disclosure, the electronic device may further include input devices (1150; 1260; 1270). The instructions, when executed by the processor, cause the electronic device to, through the input device, receive a user input specifying a domain to perform an action on at least one entity name or an intention in the domain. You can receive it. The instructions are, when executed by the processor, the electronic device, based on the received user input, when a voice command including any one of the at least one entity name is received, the specified domain or intent. Accordingly, it can be set to perform an operation corresponding to the voice command.

본 개시의 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 음성 명령의 실행에 의해 수행된 동작이 상기 전자 장치의 사용자의 의도에 대응되는 경우, 상기 음성 명령의 실행에 사용된 정보를 상기 개인 데이터로서 저장하도록 할 수 있다. 상기 음성 명령의 실행에 사용된 정보는, 상기 개체명, 상기 개체명에 대응하는 카테고리, 상기 개체명이 발화된 횟수, 상기 동작을 수행한 도메인, 또는 상기 도메인에서의 상기 동작에 대응하는 의도 중 적어도 하나를 포함할 수 있다.According to an embodiment of the present disclosure, the instructions, when executed by the processor, cause the electronic device to: Information used to execute voice commands can be stored as the personal data. The information used to execute the voice command is at least one of the entity name, the category corresponding to the entity name, the number of times the entity name is uttered, the domain that performed the operation, or the intention corresponding to the operation in the domain. It can contain one.

본 개시의 일 실시예에 따르면, 상기 메모리는 적어도 하나의 애플리케이션을 저장할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가, 상기 적어도 하나의 애플리케이션 각각에서의 개체명 사용 이력에 기반하여, 각 애플리케이션에서의 개체명 사용 이력으로부터 추출된 개체명과 각 애플리케이션에 대응하는 도메인 또는 상기 추출된 개체명이 사용된 의도를 연관시켜 상기 데이터베이스에 저장하도록 할 수 있다.According to one embodiment of the present disclosure, the memory may store at least one application. The instructions, when executed by the processor, cause the electronic device to correspond to each application with an entity name extracted from the entity name usage history in each application, based on the entity name usage history in each of the at least one application. The domain or the extracted entity name may be associated with the intent of use and stored in the database.

본 개시의 일 실시예에 따르면, 전자 장치(101;602;702;802;901;1101;1201)의 동작 방법은, 상기 전자 장치의 마이크(110;1150;1270)를 통해 음성 명령을 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 개체명에 기반하여 음성 명령을 실행하기 위한 실행 정보를 획득하는 동작을 포함할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 상기 방법은, 상기 실행 정보를 이용하여 상기 음성 명령을 실행하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, a method of operating an electronic device (101;602;702;802;901;1101;1201) includes receiving a voice command through a microphone (110;1150;1270) of the electronic device. Can include actions. The method may include determining whether text corresponding to the voice command consists of one named entity. The method may include obtaining execution information for executing a voice command based on the entity name. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command. The method may include executing the voice command using the execution information.

본 개시의 일 실시예에 따르면, 상기 실행 정보를 획득하는 동작은, 상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 두 개 이상인 경우에 수행될 수 있다. 상기 방법은, 상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 한 개인 경우, 상기 도메인에서의 의도를 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 결정된 의도에 대응하는 기능을 수행하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the operation of acquiring the execution information can be performed when the text consists of one entity name and there are two or more domains corresponding to the entity name. The method may include an operation of determining intent in the domain when the text consists of one entity name and there is only one domain corresponding to the entity name. The method may include an operation of performing a function corresponding to the determined intention.

본 개시의 일 실시예에 따르면, 상기 방법은, 상기 텍스트가 하나의 개체명으로 구성되지 않은 경우, 상기 텍스트에 대한 자연어 처리를 통해 의도를 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 결정된 의도에 대응하는 기능을 수행하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the method may include an operation of determining intent through natural language processing of the text when the text does not consist of a single entity name. The method may include an operation of performing a function corresponding to the determined intention.

본 개시의 일 실시예에 따르면, 상기 실행 정보를 획득하는 동작은, 상기 개체명의 문자열 및 발음열을 기반으로 공중 데이터(public data)(235-2) 및 개인 데이터(personal data)(235-1)를 포함하는 데이터베이스(235)를 검색하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the operation of acquiring the execution information includes collecting public data 235-2 and personal data 235-1 based on the string and pronunciation string of the entity name. ) may include an operation of searching the database 235 including.

본 개시의 일 실시예에 따르면, 상기 실행 정보를 획득하는 동작은, 상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 각 카테고리에 대한 비율 정보를 획득하는 동작을 ?마할 수 있다. 상기 실행 정보를 획득하는 동작은, 상기 비율 정보에 기반하여 상기 개체명에 대응하는 상기 카테고리를 결정하는 동작을 포함할 수 있다. 상기 실행 정보를 획득하는 동작은, 상기 결정된 카테고리에 대응하는 상기 실행 정보를 획득하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the operation of acquiring the execution information may include obtaining ratio information for each category when a plurality of categories corresponding to the entity name are searched based on the public data. You can. Obtaining the execution information may include determining the category corresponding to the entity name based on the ratio information. The operation of acquiring the execution information may include obtaining the execution information corresponding to the determined category.

본 개시의 일 실시예에 따르면, 상기 실행 정보를 획득하는 동작은, 상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 복수 개의 카테고리 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 제1 사용자 인터페이스를 제공하는 동작을 포함할 수 있다. 상기 실행 정보를 획득하는 동작은, 상기 제1 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 카테고리에 대응하는 상기 실행 정보를 획득하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the operation of obtaining the execution information includes, when a plurality of categories corresponding to the entity name are searched based on the public data, the user is asked which category among the plurality of categories he/she wants information belonging to. The method may include providing a first user interface for querying. The operation of acquiring the execution information may include obtaining the execution information corresponding to the category selected by the user input on the first user interface.

본 개시의 일 실시예에 따르면, 상기 실행 정보를 획득하는 동작은, 상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색되고, 상기 개인 데이터에 기반하여 복수 개의 카테고리 중 하나의 카테고리를 특정 가능한 경우, 상기 특정된 하나의 카테고리에 대응하는 상기 실행 정보를 획득하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the operation of obtaining the execution information includes searching for a plurality of categories corresponding to the entity name based on the public data, and searching for one category among the plurality of categories based on the personal data. If it is possible to specify, it may include an operation of acquiring the execution information corresponding to the specified one category.

본 개시의 일 실시예에 따르면, 상기 방법은, 상기 개체명에 기반하여 상기 데이터베이스에서 검색되는 데이터가 없는 경우, 대중적으로(popularly) 사용되는 의도 리스트를 포함하는 제2 사용자 인터페이스를 제공하는 동작을 포함할 수 있다. 상기 방법은, 상기 제2 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작(action)을 수행하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the method includes providing a second user interface including a popularly used intent list when there is no data to be retrieved from the database based on the entity name. It can be included. The method may include performing an action corresponding to the intention selected by user input on the second user interface.

본 개시의 일 실시예에 따르면, 상기 방법은, 상기 텍스트가 하나의 개체명으로 구성된 경우, 상기 텍스트에 기반하여 도메인 또는 의도를 특정할 수 있는지 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 도메인 또는 상기 의도를 특정할 수 없는 경우, 상기 획득된 실행 정보를 이용하여 상기 도메인 또는 상기 의도를 특정하는 동작을 포함할 수 있다. 상기 방법은, 상기 특정된 도메인 또는 의도에 기반하여 상기 음성 명령에 대응하는 동작(action)을 수행하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the method may include an operation of determining whether a domain or intention can be specified based on the text when the text consists of one entity name. The method may include an operation of specifying the domain or the intent using the obtained execution information when the domain or the intent cannot be specified. The method may include performing an action corresponding to the voice command based on the specified domain or intention.

본 개시의 일 실시예에 따르면, 상기 방법은, 상기 전자 장치의 입력 장치(1150;1260;1270)를 통해, 적어도 하나의 개체명에 대해 동작(action)을 수행할 도메인 또는 상기 도메인에서의 의도를 지정하는 사용자 입력을 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 수신된 사용자 입력에 기반하여, 상기 적어도 하나의 개체명 중 어느 하나를 포함하는 음성 명령이 수신되는 경우, 상기 지정된 도메인 또는 의도에 따라 상기 음성 명령에 대응하는 동작을 수행하도록 설정하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the method includes a domain or intention in the domain to perform an action on at least one entity name through an input device (1150; 1260; 1270) of the electronic device. It may include the action of receiving user input that specifies . The method is configured to perform an operation corresponding to the voice command according to the specified domain or intent when a voice command containing any one of the at least one entity name is received based on the received user input. It may include actions such as:

본 개시의 일 실시예에 따르면, 상기 방법은, 상기 음성 명령의 실행에 의해 수행된 동작이 상기 전자 장치의 사용자의 의도에 대응되는 경우, 상기 음성 명령의 실행에 사용된 정보를 상기 개인 데이터로서 저장하는 동작을 포함할 수 있다. 상기 음성 명령의 실행에 사용된 정보는, 상기 개체명, 상기 개체명에 대응하는 카테고리, 상기 개체명이 발화된 횟수, 상기 동작을 수행한 도메인, 또는 상기 도메인에서의 상기 동작에 대응하는 의도 중 적어도 하나를 포함할 수 있다.According to an embodiment of the present disclosure, the method includes, when the operation performed by executing the voice command corresponds to the intention of the user of the electronic device, the information used in executing the voice command is treated as the personal data. It may include a saving operation. The information used to execute the voice command is at least one of the entity name, the category corresponding to the entity name, the number of times the entity name is uttered, the domain that performed the operation, or the intention corresponding to the operation in the domain. It can contain one.

본 개시의 일 실시예에 따르면, 상기 방법은, 상기 전자 장치에 저장된 적어도 하나의 애플리케이션 각각에서의 개체명 사용 이력에 기반하여, 각 애플리케이션에서의 개체명 사용 이력으로부터 추출된 개체명과 각 애플리케이션에 대응하는 도메인 또는 상기 추출된 개체명이 사용된 의도를 연관시켜 상기 데이터베이스에 저장하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, the method is based on the entity name usage history in each of at least one application stored in the electronic device, and the entity name extracted from the entity name usage history in each application corresponds to each application. It may include an operation of associating the domain or the intention of using the extracted entity name and storing it in the database.

본 개시의 일 실시예에 따르면, 비일시적 컴퓨터 판독 가능한 저장 매체는 전자 장치의 동작 방법을 수행하기 위한 프로그램을 저장할 수 있다. 상기 전자 장치의 동작 방법은, 상기 전자 장치의 마이크(110;1150;1270)를 통해 음성 명령을 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 개체명에 기반하여 음성 명령을 실행하기 위한 실행 정보를 획득하는 동작을 포함할 수 있다. 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함할 수 있다. 상기 방법은, 상기 실행 정보를 이용하여 상기 음성 명령을 실행하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium may store a program for performing a method of operating an electronic device. The method of operating the electronic device may include receiving a voice command through a microphone (110; 1150; 1270) of the electronic device. The method may include determining whether text corresponding to the voice command consists of one named entity. The method may include obtaining execution information for executing a voice command based on the entity name. The execution information may include domain information indicating an application executing the voice command or intent information indicating a function of the application requested by the voice command. The method may include executing the voice command using the execution information.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be of various types. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments of this document are not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the above items, unless the relevant context clearly indicates otherwise. As used herein, “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 “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” When mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(1101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(1136) 또는 외장 메모리(1138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(1140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(1101))의 프로세서(예: 프로세서(1120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document are one or more instructions stored in a storage medium (e.g., built-in memory 1136 or external memory 1138) that can be read by a machine (e.g., electronic device 1101). It may be implemented as software (e.g., program 1140) including these. For example, a processor (e.g., processor 1120) of a device (e.g., electronic device 1101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. 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 through an application store (e.g. Play Store ) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is. According to various embodiments, one or more of the components or operations described above may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Alternatively, one or more other operations may be added.

Claims (20)

전자 장치(101;602;702;802;901;1101;1201)에 있어서,
마이크(110;1150;1270);
통신 회로(120;1190;1290);
인스트럭션들을 저장하는 메모리(130;1130;1230); 및
프로세서(140;1120;1220)를 포함하고,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 마이크를 통해 음성 명령을 수신하고,
상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하고,
상기 텍스트가 하나의 개체명으로 구성된 경우, 상기 개체명에 기반하여 상기 음성 명령을 실행하기 위한 실행 정보를 획득하고, 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함하고,
상기 실행 정보를 이용하여 상기 음성 명령을 실행하도록 하는, 전자 장치.
In the electronic device (101;602;702;802;901;1101;1201),
mic(110;1150;1270);
communication circuit (120;1190;1290);
a memory (130;1130;1230) for storing instructions; and
Includes a processor (140; 1120; 1220),
The instructions, when executed by the processor, cause the electronic device to:
Receive voice commands through the microphone,
Determine whether the text corresponding to the voice command consists of one named entity,
When the text consists of one entity name, execution information for executing the voice command is obtained based on the entity name, and the execution information is domain information indicating an application executing the voice command or the voice command. Contains intent information indicating the requested function of the application,
An electronic device that executes the voice command using the execution information.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 두 개 이상인 경우, 상기 개체명에 기반하여 상기 실행 정보를 획득하고,
상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 한 개인 경우, 상기 도메인에서의 의도를 결정하고, 상기 결정된 의도에 대응하는 기능을 수행하도록 하는, 전자 장치.
In claim 1,
The instructions, when executed by the processor, cause the electronic device to:
If the text consists of one entity name and there are two or more domains corresponding to the entity name, the execution information is obtained based on the entity name,
When the text consists of one entity name and there is one domain corresponding to the entity name, an electronic device determines the intent in the domain and performs a function corresponding to the determined intent.
청구항 1 내지 청구항 2 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 텍스트가 하나의 개체명으로 구성되지 않은 경우, 상기 텍스트에 대한 자연어 처리를 통해 의도를 결정하고, 상기 결정된 의도에 대응하는 기능을 수행하도록 하는, 전자 장치.
The method according to any one of claims 1 to 2,
The instructions, when executed by the processor, cause the electronic device to:
An electronic device that, when the text does not consist of one entity name, determines intent through natural language processing of the text and performs a function corresponding to the determined intent.
청구항 1 내지 청구항 3 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 개체명의 문자열 및 발음열을 기반으로 공중 데이터(public data)(235-2) 및 개인 데이터(personal data)(235-1)를 포함하는 데이터베이스(235)를 검색하도록 하는, 전자 장치.
The method according to any one of claims 1 to 3,
The instructions, when executed by the processor, cause the electronic device to:
An electronic device that searches a database 235 containing public data 235-2 and personal data 235-1 based on the string and pronunciation string of the entity name.
청구항 1 내지 청구항 4 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 각 카테고리에 대한 비율 정보를 획득하고,
상기 비율 정보에 기반하여 상기 개체명에 대응하는 상기 카테고리를 결정하고,
상기 결정된 카테고리에 대응하는 상기 실행 정보를 획득하도록 하는, 전자 장치.
The method according to any one of claims 1 to 4,
The instructions, when executed by the processor, cause the electronic device to:
If a plurality of categories corresponding to the entity name are searched based on the public data, obtain ratio information for each category,
Determine the category corresponding to the entity name based on the ratio information,
An electronic device configured to obtain the execution information corresponding to the determined category.
청구항 1 내지 청구항 5 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 복수 개의 카테고리 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 제1 사용자 인터페이스를 제공하고,
상기 제1 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 카테고리에 대응하는 상기 실행 정보를 획득하도록 하는, 전자 장치.
The method according to any one of claims 1 to 5,
The instructions, when executed by the processor, cause the electronic device to:
When a plurality of categories corresponding to the entity name are searched based on the public data, providing a first user interface that asks the user which category of the plurality of categories he or she wants information belonging to,
An electronic device configured to obtain the execution information corresponding to a category selected by a user input on the first user interface.
청구항 1 내지 청구항 6 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색되고, 상기 개인 데이터에 기반하여 복수 개의 카테고리 중 하나의 카테고리를 특정 가능한 경우, 상기 특정된 하나의 카테고리에 대응하는 상기 실행 정보를 획득하도록 하는, 전자 장치.
The method according to any one of claims 1 to 6,
The instructions, when executed by the processor, cause the electronic device to:
If a plurality of categories corresponding to the entity name are searched based on the public data, and one category among the plurality of categories can be specified based on the personal data, the execution information corresponding to the specified one category is retrieved. An electronic device that allows acquisition.
청구항 1 내지 청구항 7 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 개체명에 기반하여 상기 데이터베이스에서 검색되는 데이터가 없는 경우, 대중적으로(popularly) 사용되는 의도 리스트를 포함하는 제2 사용자 인터페이스를 제공하고,
상기 제2 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작(action)을 수행하도록 하는, 전자 장치.
The method according to any one of claims 1 to 7,
The instructions, when executed by the processor, cause the electronic device to:
If there is no data to be searched in the database based on the entity name, providing a second user interface including a list of popularly used intents,
An electronic device that performs an action corresponding to an intention selected by a user input to the second user interface.
청구항 1 내지 청구항 8 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 텍스트가 하나의 개체명으로 구성된 경우, 상기 텍스트에 기반하여 도메인 또는 의도를 특정할 수 있는지 결정하고,
상기 도메인 또는 상기 의도를 특정할 수 없는 경우, 상기 획득된 실행 정보를 이용하여 상기 도메인 또는 상기 의도를 특정하고,
상기 특정된 도메인 또는 의도에 기반하여 상기 음성 명령에 대응하는 동작(action)을 수행하도록 하는, 전자 장치.
The method according to any one of claims 1 to 8,
The instructions, when executed by the processor, cause the electronic device to:
If the text consists of one entity name, determine whether the domain or intention can be specified based on the text,
If the domain or the intention cannot be specified, the domain or the intention is specified using the obtained execution information,
An electronic device that performs an action corresponding to the voice command based on the specified domain or intent.
청구항 1 내지 청구항 9 중 어느 한 항에 있어서,
상기 전자 장치는 입력 장치(1150;1260;1270)를 더 포함하고,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 입력 장치를 통해, 적어도 하나의 개체명에 대해 동작(action)을 수행할 도메인 또는 상기 도메인에서의 의도를 지정하는 사용자 입력을 수신하고,
상기 수신된 사용자 입력에 기반하여, 상기 적어도 하나의 개체명 중 어느 하나를 포함하는 음성 명령이 수신되는 경우, 상기 지정된 도메인 또는 의도에 따라 상기 음성 명령에 대응하는 동작을 수행하도록 설정하도록 하는, 전자 장치.
The method according to any one of claims 1 to 9,
The electronic device further includes an input device (1150; 1260; 1270),
The instructions, when executed by the processor, cause the electronic device to:
Receiving, through the input device, a user input specifying a domain to perform an action on at least one entity name or an intention in the domain,
Based on the received user input, when a voice command including any one of the at least one entity name is received, the electronic device is set to perform an operation corresponding to the voice command according to the designated domain or intent. Device.
청구항 1 내지 청구항 10 중 어느 한 항에 있어서,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 음성 명령의 실행에 의해 수행된 동작이 상기 전자 장치의 사용자의 의도에 대응되는 경우, 상기 음성 명령의 실행에 사용된 정보를 상기 개인 데이터로서 저장하도록 하고,
상기 음성 명령의 실행에 사용된 정보는, 상기 개체명, 상기 개체명에 대응하는 카테고리, 상기 개체명이 발화된 횟수, 상기 동작을 수행한 도메인, 또는 상기 도메인에서의 상기 동작에 대응하는 의도 중 적어도 하나를 포함하는, 전자 장치.
The method according to any one of claims 1 to 10,
The instructions, when executed by the processor, cause the electronic device to:
If the operation performed by executing the voice command corresponds to the intention of the user of the electronic device, store the information used in executing the voice command as the personal data,
The information used to execute the voice command is at least one of the entity name, the category corresponding to the entity name, the number of times the entity name is uttered, the domain that performed the operation, or the intention corresponding to the operation in the domain. An electronic device, including one.
청구항 1 내지 청구항 11 중 어느 한 항에 있어서,
상기 메모리는 적어도 하나의 애플리케이션을 저장하고,
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시에, 상기 전자 장치가,
상기 적어도 하나의 애플리케이션 각각에서의 개체명 사용 이력에 기반하여, 각 애플리케이션에서의 개체명 사용 이력으로부터 추출된 개체명과 각 애플리케이션에 대응하는 도메인 또는 상기 추출된 개체명이 사용된 의도를 연관시켜 상기 데이터베이스에 저장하도록 하는, 전자 장치.
The method according to any one of claims 1 to 11,
The memory stores at least one application,
The instructions, when executed by the processor, cause the electronic device to:
Based on the entity name usage history in each of the at least one application, the entity name extracted from the entity name usage history in each application is associated with the domain corresponding to each application or the intention for using the extracted entity name and stored in the database. An electronic device that allows storage.
전자 장치(101;602;702;802;901;1101;1201)의 동작 방법에 있어서,
상기 전자 장치의 마이크(110;1150;1270)를 통해 음성 명령을 수신하는 동작;
상기 음성 명령에 대응하는 텍스트가 하나의 개체명(named entity)으로 구성되는지 여부를 결정하는 동작;
상기 텍스트가 하나의 개체명으로 구성된 경우, 상기 개체명에 기반하여 음성 명령을 실행하기 위한 실행 정보를 획득하고, 상기 실행 정보는 상기 음성 명령을 실행하는 애플리케이션을 나타내는 도메인 정보 또는 상기 음성 명령이 요청하는 상기 애플리케이션의 기능을 나타내는 의도 정보를 포함하는 동작; 및
상기 실행 정보를 이용하여 상기 음성 명령을 실행하는 동작을 포함하는, 방법.
In a method of operating an electronic device (101;602;702;802;901;1101;1201),
Receiving a voice command through a microphone (110; 1150; 1270) of the electronic device;
An operation of determining whether text corresponding to the voice command consists of one named entity;
When the text consists of one entity name, execution information for executing a voice command is obtained based on the entity name, and the execution information is domain information indicating an application executing the voice command or a request for the voice command. An operation including intent information indicating a function of the application to perform; and
A method comprising executing the voice command using the execution information.
청구항 13에 있어서,
상기 실행 정보를 획득하는 동작은, 상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 두 개 이상인 경우에 수행되고,
상기 방법은, 상기 텍스트가 하나의 개체명으로 구성되고, 상기 개체명에 대응하는 도메인이 한 개인 경우,
상기 도메인에서의 의도를 결정하는 동작; 및
상기 결정된 의도에 대응하는 기능을 수행하는 동작을 포함하는, 방법.
In claim 13,
The operation of obtaining the execution information is performed when the text consists of one entity name and there are two or more domains corresponding to the entity name,
In the method, when the text consists of one entity name and there is one domain corresponding to the entity name,
determining intent in the domain; and
A method comprising performing a function corresponding to the determined intent.
청구항 13 내지 청구항 14 중 어느 한 항에 있어서,
상기 방법은, 상기 텍스트가 하나의 개체명으로 구성되지 않은 경우, 상기 텍스트에 대한 자연어 처리를 통해 의도를 결정하고, 상기 결정된 의도에 대응하는 기능을 수행하는 동작을 포함하는, 방법.
The method of any one of claims 13 to 14,
The method includes the operation of determining intent through natural language processing for the text when the text does not consist of a single entity name, and performing a function corresponding to the determined intent.
청구항 13 내지 청구항 15 중 어느 한 항에 있어서,
상기 실행 정보를 획득하는 동작은, 상기 개체명의 문자열 및 발음열을 기반으로 공중 데이터(public data)(235-2) 및 개인 데이터(personal data)(235-1)를 포함하는 데이터베이스(235)를 검색하는 동작을 포함하는, 방법.
The method of any one of claims 13 to 15,
The operation of acquiring the execution information involves creating a database 235 containing public data 235-2 and personal data 235-1 based on the string and pronunciation string of the entity name. A method, including the operation of searching.
청구항 13 내지 청구항 16 중 어느 한 항에 있어서,
상기 실행 정보를 획득하는 동작은,
상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 각 카테고리에 대한 비율 정보를 획득하는 동작;
상기 비율 정보에 기반하여 상기 개체명에 대응하는 상기 카테고리를 결정하는 동작; 및
상기 결정된 카테고리에 대응하는 상기 실행 정보를 획득하는 동작을 포함하는, 방법.
The method of any one of claims 13 to 16,
The operation of obtaining the execution information is,
When a plurality of categories corresponding to the entity name are searched based on the public data, obtaining ratio information for each category;
determining the category corresponding to the entity name based on the ratio information; and
A method comprising obtaining the execution information corresponding to the determined category.
청구항 13 내지 청구항 17 중 어느 한 항에 있어서,
상기 실행 정보를 획득하는 동작은,
상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색된 경우, 복수 개의 카테고리 중 어떤 카테고리에 속하는 정보를 원하는지 사용자에게 질의하는 제1 사용자 인터페이스를 제공하는 동작; 및
상기 제1 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 카테고리에 대응하는 상기 실행 정보를 획득하는 동작을 포함하는, 방법.
The method of any one of claims 13 to 17,
The operation of obtaining the execution information is,
When a plurality of categories corresponding to the entity name are searched based on the public data, providing a first user interface to ask the user which of the plurality of categories information belongs to; and
A method comprising obtaining the execution information corresponding to a category selected by a user input on the first user interface.
청구항 13 내지 청구항 18 중 어느 한 항에 있어서,
상기 실행 정보를 획득하는 동작은,
상기 공중 데이터에 기반하여 상기 개체명에 대응하는 카테고리가 복수 개 검색되고, 상기 개인 데이터에 기반하여 복수 개의 카테고리 중 하나의 카테고리를 특정 가능한 경우, 상기 특정된 하나의 카테고리에 대응하는 상기 실행 정보를 획득하는 동작을 포함하는, 방법.
The method of any one of claims 13 to 18,
The operation of obtaining the execution information is,
If a plurality of categories corresponding to the entity name are searched based on the public data, and one category among the plurality of categories can be specified based on the personal data, the execution information corresponding to the specified one category is retrieved. A method, comprising the operation of acquiring.
청구항 13 내지 청구항 19 중 어느 한 항에 있어서,
상기 개체명에 기반하여 상기 데이터베이스에서 검색되는 데이터가 없는 경우, 대중적으로(popularly) 사용되는 의도 리스트를 포함하는 제2 사용자 인터페이스를 제공하는 동작; 및
상기 제2 사용자 인터페이스에 대한 사용자 입력에 의해 선택된 의도에 대응하는 동작(action)을 수행하는 동작을 더 포함하는, 방법.
The method of any one of claims 13 to 19,
If no data is retrieved from the database based on the entity name, providing a second user interface including a list of popularly used intents; and
The method further includes performing an action corresponding to the intention selected by the user input on the second user interface.
KR1020220136773A 2022-09-29 2022-10-21 Electronic device, operating method, and storage medium for processing utterance not including a predicate KR20240045031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/015103 WO2024072142A1 (en) 2022-09-29 2023-09-27 Electronic device, operating method and storage medium for processing speech not including predicate

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220124423 2022-09-29
KR20220124423 2022-09-29

Publications (1)

Publication Number Publication Date
KR20240045031A true KR20240045031A (en) 2024-04-05

Family

ID=90714313

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220136773A KR20240045031A (en) 2022-09-29 2022-10-21 Electronic device, operating method, and storage medium for processing utterance not including a predicate

Country Status (1)

Country Link
KR (1) KR20240045031A (en)

Similar Documents

Publication Publication Date Title
US11769489B2 (en) Electronic device and method for performing shortcut command in electronic device
US20220351719A1 (en) Electronic device and method for sharing execution information on user input having continuity
KR20220126544A (en) Apparatus for processing user commands and operation method thereof
KR20220108919A (en) Electronic device, and method for performing shortcut command in electronic device
KR20220118818A (en) Electronic device and operation method thereof
KR20240045031A (en) Electronic device, operating method, and storage medium for processing utterance not including a predicate
US20230154463A1 (en) Method of reorganizing quick command based on utterance and electronic device therefor
US20220284894A1 (en) Electronic device for processing user utterance and operation method therefor
US20230214397A1 (en) Server and electronic device for processing user utterance and operating method thereof
US20220358907A1 (en) Method for providing response of voice input and electronic device supporting the same
KR20240020141A (en) Method and electronic device for processing user utterance based on language model
KR20240045927A (en) Speech recognition device and operating method thereof
KR20240026811A (en) Method for analyzing user utterance and electronic device supporting the same
KR20240052579A (en) Electronic device and method for processing user utterance using location -based context in the electronic device
KR20230050849A (en) Electronic device for identifying value for parameter and operating mehtod thereof
KR20230136493A (en) Server, electronic device for processing user's utterance on synthetic vector and method of operation thereof
KR20240054836A (en) Electronic device and method for providing voice assistance service thereof
KR20240038525A (en) Electronic devices and methods of processing user utterances
KR20240038523A (en) Method for judging false-rejection and electronic device performing the same
KR20230016398A (en) Electronic device for managing improper answer and operating mehtod thereof
KR20230136494A (en) Method and electronic device for processing user utterance based on augmented sentence candidates
KR20230039423A (en) Electronic device and operation method thereof
KR20230072356A (en) Method of reorganizing quick command based on utterance and electronic device therefor
KR20220118754A (en) Electronic Device and Method for Analyzing Speech Recognition Results
KR20240006401A (en) Method of determining end point detection time and electronic device performing the method