Electronic device for correcting utterance including named entity using knowledge graph, operation method, and storage medium
The electronic device employs a knowledge graph to correct entity names in voice commands by representing them as vertices and edges, addressing the challenge of misrecognition and improving the success rate of user intention recognition in voice recognition systems.
Patent Information
- Application Number
- PCT/KR2024/005699
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-16
- Filing Date
- 2024-04-26
- Publication Date
- 2024-10-31
AI Technical Summary
Existing voice recognition systems face challenges in accurately identifying entity names in user utterances, leading to misrecognition and reduced success rates in interpreting user intentions, especially when entity names are not frequently used or have similar pronunciations.
An electronic device uses a knowledge graph to represent entity names as vertices and their relationships as edges, generating a graph query to search for and correct entity name candidates based on their relationships, thereby improving the accuracy of entity name identification and user intention recognition.
The approach enhances the accuracy of entity name correction and user intention recognition, reducing misrecognition and improving the success rate of interpreting voice commands by leveraging the relationships between entity names in the knowledge graph.
Smart Images

Figure KR2024005699_31102024_PF_FP_ABST
Abstract
Description
Electronic device, operating method, and storage medium for correcting utterances containing entity names using a knowledge graph
[0001] The present disclosure relates to an electronic device, an operating method, and a storage medium for correcting an utterance including an entity name using a knowledge graph.
[0002] Electronic devices can perform actions in response to a user's voice commands through speech recognition and natural language processing. These utterances may contain multiple named entities (NEs), which are words or phrases with specific meanings, such as the name of a singer, song, device, or device mode.
[0003] For example, an electronic device can recognize named entities from utterances using a speech recognizer trained with training data containing frequently used named entities.
[0004] For example, to improve the success rate of identifying utterance intent, the electronic device may calibrate the candidate named entities within the utterance by comparing them to a dictionary of named entities prepared in advance.
[0005] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above-described matters constitute prior art related to the present disclosure.
[0006] An electronic device according to one embodiment may include a microphone, a memory, and a processor. The memory may store instructions. The instructions, when executed by the processor, may cause the electronic device to receive speech through the microphone. The instructions, when executed by the processor, may cause the electronic device to obtain text corresponding to the speech through voice recognition. The instructions, when executed by the processor, may cause the electronic device to extract a plurality of named entity (NE) candidates from the text. The instructions, when executed by the processor, may cause the electronic device to generate a graph query based on the plurality of named entity candidates. The instructions, when executed by the processor, may cause the electronic device to perform a search on a named entity knowledge graph, which represents named entities as vertices and relationships between named entities as edges, using the graph query. The instructions, when executed by the processor, may cause the electronic device to correct the plurality of named entity candidates based on the search results. The instructions, when executed by the processor, may cause the electronic device to perform an operation corresponding to the corrected plurality of named entity candidates.
[0007] A method of operating an electronic device according to one embodiment may include receiving a speech through a microphone of the electronic device. The method may include obtaining a text corresponding to the speech through voice recognition. The method may include extracting a plurality of named entity (NE) candidates from the text. The method may include generating a graph query based on the plurality of named entity candidates. The method may include performing a search on a named entity knowledge graph, which represents named entities as vertices and relationships between named entities as edges, using the graph query. The method may include correcting the plurality of named entity candidates based on a search result. The method may include performing an operation corresponding to the corrected plurality of named entity candidates.
[0008] 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 speech through a microphone of the electronic device. The method may include obtaining a text corresponding to the speech through voice recognition. The method may include extracting a plurality of named entity (NE) candidates from the text. The method may include generating a graph query based on the plurality of named entity candidates. The method may include performing a search on a named entity knowledge graph, which represents named entities as vertices and relationships between named entities as edges, using the graph query. The method may include correcting the plurality of named entity candidates based on a search result. The method may include performing an operation corresponding to the corrected plurality of named entity candidates.
[0009] Figure 1 is a block diagram showing the configuration of an electronic device according to an example.
[0010] Figure 2 is a block diagram showing the configuration of a voice recognition device according to an example.
[0011] Figure 3 is a diagram showing an example of an entity name table.
[0012] Figure 4 is a diagram showing an example of an entity name knowledge graph.
[0013] Figure 5 is a diagram showing an example of a device-related entity name table and a list of devices owned by a user.
[0014] Figure 6 is a diagram illustrating an example of an entity-named knowledge graph for a user of an electronic device.
[0015] Figure 7 is a diagram showing an example of category information corresponding to a command and label information of a category-specific edge.
[0016] Figure 8 is a diagram illustrating an example of a method for generating a graph query.
[0017] Figures 9a, 9b, 9c, 9d, 9e, and 9f are diagrams showing examples of a graph search process.
[0018] Figure 10 is a flowchart showing the operation of an electronic device according to an example.
[0019] Figure 11 is a block diagram of an electronic device within a network environment according to an example.
[0020] Figure 12 is a block diagram illustrating an integrated intelligence system according to an example.
[0021] Figure 13 is a diagram showing the form in which relationship information between concepts and actions is stored in a database according to an example.
[0022] Figure 14 is a diagram showing a screen in which a user terminal processes voice input received through an intelligent app according to an example.
[0023] In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components.
[0024] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein. In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components. Furthermore, in the drawings and related descriptions, descriptions of well-known functions and configurations may be omitted for clarity and conciseness.
[0025] Figure 1 is a block diagram (100) showing the configuration of an electronic device according to an example.
[0026] Referring to FIG. 1, an electronic device (101) according to an example may include a microphone (110), a memory (120), and / or a processor (130). For example, the electronic device (101) may further include other components (e.g., communication circuits) not shown in FIG. 1.
[0027] The microphone (110) can receive user speech. The microphone (110) can generate voice data corresponding to the received user speech.
[0028] The memory (120) can store one or more instructions for operating the electronic device (101). The memory (120) can store data or information necessary for the operation of the electronic device (101). For example, the memory (120) can store entity data. The entity data can be stored in a table or graph form. For example, the entity data can include public entity data that is not personalized for a specific user and is commonly used, and user entity data that is personalized for a specific user. For example, the memory (120) can store an entity knowledge graph generated based on the entity data. The entity knowledge graph can be entity data in the form of a graph that represents entity names as vertices and represents relationships between entity names as edges. For example, the memory (120) can store category information corresponding to a verb (hereinafter referred to as a “command”) requesting a specified action, and label information for edges for each category.
[0029] For example, the memory (120) can store a list of devices owned by a user of the electronic device (101). The list of devices owned may include at least one device registered to the account of the user of the electronic device (101). Here, the device may include an IoT (Internet of Things) device that is connected to the electronic device (101) in communication.
[0030] The processor (130) may be operatively connected to the microphone (110) and the memory (120). "Operatively connected" between components may mean that the components are functionally connected or communicatively connected. For example, operatively connected components may exchange data with each other. The processor (130) may execute one or more instructions stored in the memory (120).
[0031] The processor (130) can receive speech through the microphone (110). The processor (130) can obtain text corresponding to the speech through voice recognition. For example, the processor (130) can convert speech data corresponding to the speech into text data. For example, the text corresponding to the speech may include multiple entity names and / or verbs requesting a specified action (hereinafter referred to as "commands").
[0032] The processor (130) can extract multiple named entity candidates from the text corresponding to the utterance. The named entity candidates may be words or phrases recognized as named entities in the text. For example, the processor (130) can extract the named entity candidates through natural language processing (NLP) on the text corresponding to the utterance.
[0033] The processor (130) can generate a graph query based on a plurality of named entity candidates. For example, the processor (130) can generate a graph query in which each of the plurality of named entity candidates serves as a vertex and the relationships between the named entity candidates serve as edges.
[0034] For example, the processor (130) may identify a category corresponding to a command included in an utterance. For example, category information corresponding to a command may be stored in the memory (120). The category information corresponding to a command may include information about a category associated with a specified command or a category in which the specified command is primarily used. The processor (130) may identify a category corresponding to a command included in an utterance based on the category information corresponding to the command stored in the memory (120).
[0035] For example, the processor (130) may determine the label of the edge corresponding to the identified category based on the label information of the edge by category. For example, the label information of the edge by category may be stored in the memory (120). The label information of the edge by category may be information indicating a possible relationship between entity names included in a specified category.
[0036] The processor (130) may generate a graph query that includes the label of the determined edge. For example, the processor (130) may designate the label of the determined edge as the label of the edge connecting two candidate named entities predicted to have a relationship corresponding to the label.
[0037] For example, if the utterance does not contain a command, the category corresponding to the command is not identified, or the edge corresponding to the category is not labeled, the processor (130) may generate a graph query that does not specify the edge label. If the edge label is not specified, the processor (130) may search for all edges of a vertex. In other words, if the edge label is not specified, the processor may search for all vertices connected to the vertex.
[0038] For example, a graph query may include a first function that searches for vertices with a specified entity name and a second function that searches for vertices connected by edges with a specified label. For example, the first function may specify a similarity search distance based on a characteristic of the specified entity name. Here, the characteristic may include the transcription accuracy of an utterance for the specified entity. For example, the higher the transcription accuracy of an utterance for the specified entity name, the shorter the similarity search distance may be set. The lower the transcription accuracy of an utterance for the entity name, the longer the similarity search distance may be set. For example, the similarity search distance may include an edit distance used in an edit distance (Levenshtein distance) algorithm. When the edit distance is set to n (n is a natural number), the processor (130) may search for strings that become identical when n or fewer characters are changed in the specified string.
[0039] For example, a graph query may alternately include the first function and the second function. For example, the processor (130) may perform a search step-by-step, function-by-function, included in the graph query. For example, the processor (130) may sequentially perform the search according to the order of the functions included in the graph query.
[0040] The processor (130) can perform a search on a named entity knowledge graph using a graph query. Before performing a search, the processor (130) can create a named entity knowledge graph and store it in the memory (120). For example, the processor (130) can convert named entity data stored in the memory (120) in a table format into a graph format to create a named entity knowledge graph. For example, the processor (130) can sequentially search each named entity table and convert at least one named entity table into a named entity knowledge graph. For example, the processor (130) can create a named entity knowledge graph in which the named entities included in the first column of the named entity table and the named entities included in the second column are vertices, and the relationships between the first and second columns are labels of edges.
[0041] For example, the processor (130) can generate an entity knowledge graph corresponding to a user based on a list of devices owned by a user of the electronic device (101) stored in the memory (120). For example, in the case of a device control utterance, only a user who owns the corresponding device can attempt the relevant utterance. Accordingly, even if the electronic device (101) stores entity names (e.g., device names or mode names of the devices) related to devices that the user does not own, the processor (130) can generate an entity knowledge graph for entity names related to devices included in the list of devices owned by the user of the electronic device (101).
[0042] The processor (130) can perform a search using a graph query on an entity knowledge graph that has been previously generated and stored in the memory (120). For example, the entity knowledge graph can include an entity knowledge graph for all users and an entity knowledge graph for a specific user (the user of the electronic device (101)). For example, when the received utterance is a device control utterance, the processor (130) can narrow the search range and improve search efficiency by performing a search on an entity knowledge graph generated based on a list of devices owned by the user.
[0043] For example, the processor (130) may sequentially perform searches corresponding to each of the first and second functions included in the graph query. The processor (130) may sequentially perform searches and maintain subgraphs of the entity-named knowledge graph. For example, the graph query may alternately include the first and second functions. The processor (130) may alternately perform searches corresponding to the first function and searches corresponding to the second function.
[0044] For example, the processor (130) may search for a vertex having an entity name that has a distance less than or equal to a specified distance with respect to a specified entity name (or entity name candidate), in response to the first function. For example, the processor (130) may perform a similarity search to find a vertex having an entity name that has a distance less than or equal to a set edit distance n (where n is a natural number) with respect to a specified entity name (or entity name candidate).
[0045] For example, the processor (130) may search for vertices connected by edges with a specified label to vertices included in the search results prior to the second function in response to the second function. For example, the processor (130) may search for vertices connected by edges with a specified label to vertices of the current subgraph.
[0046] For example, the processor (130) may obtain, as a search result, a plurality of entity names included in a subgraph maintained after a search corresponding to the last function included in the graph query. For example, the search result may include a set of entity names including a plurality of entity names that are connected on the entity name knowledge graph. For example, the search result may not be an entity name that is close (or similar) to each of the m (where m is a natural number greater than or equal to 2) entity candidates included in the utterance, but may be a plurality of connected entity names on the entity knowledge graph that are close to all of the m entity candidates. The relationship information of the plurality of entities included in the search result may be the same as the relationship information of the plurality of entity candidates included in the user utterance.
[0047] The processor (130) can correct multiple named entity candidates included in the utterance based on the search results. The processor (130) can perform operations corresponding to the corrected multiple named entity candidates. For example, the processor (130) can use text including the corrected named entity candidates to determine the user's intent and perform (or execute) an operation of the electronic device (101) corresponding to the user's intent.
[0048] In the above-described embodiment, the electronic device (101) can perform voice recognition on its own, but is not limited thereto, and at least a portion of the voice recognition operation may be processed through an external server capable of communicating with the electronic device (101). For example, the electronic device (101) can transmit a user utterance received through a microphone (110) to a server (not shown) through a communication circuit (not shown), and correct a plurality of named entity candidates included in the utterance through the server. The electronic device (101) can receive a response to the utterance based on the corrected named entity candidates, and perform an operation according to the received response.
[0049] According to the above-described embodiment, the electronic device (101) can increase the likelihood of finding the entity name intended by the user and reduce misrecognition of the entity name by performing a name search by referring to the relationships between the entity name candidates included in the utterance. The electronic device (101) can improve the success rate of understanding the user's intention for the utterance and perform an action that matches the user's intention by correcting the entity name candidates included in the utterance with the entity names searched from the entity name knowledge graph.
[0050]
[0051] Fig. 2 is a block diagram (200) showing the configuration of a voice recognizer according to an example. The operations of the voice recognizer (210) or the components included in the voice recognizer (210) described below may be performed by, for example, the electronic device (101) of Fig. 1 or the processor (130) of the electronic device (101).
[0052] Referring to FIG. 2, the speech recognizer (210) may include an automatic speech recognition module (ASR) (211), a named entity recognizer (NE) (212), a named entity service module (NES) (213), a named entity database (NE DB) (214), a named entity corrector (NE corrector) (215), and / or a natural language understanding module (NLU) (216).
[0053] The ASR module (211) can convert voice input into text data. The ASR module (211) can convert voice data corresponding to a utterance into text data. For example, the ASR module (211) can obtain the text "Turn on all the air conditioners in the living room" as text corresponding to the utterance.
[0054] The NE recognizer (212) can recognize named entity candidates from text corresponding to an utterance. For example, the NE recognizer (212) can recognize 'living room', 'air conditioner', and 'ventilation mode' as named entity candidates in the text 'Turn on all the air conditioners in the living room'. According to one embodiment, the NE recognizer (212) can recognize multiple named entity candidates from text representing one entity (e.g., one word and / or phrase). For example, the NE recognizer (212) can recognize named entity candidates 'ventilation mode' and 'ventilation mode' from text corresponding to the utterance 'ventilation mode'.
[0055] The NES module (213) can generate a graph query based on the named entity candidates. For example, the NES module (213) can generate a graph query with 'living room', 'air conditioner', and 'ventilation mode' as vertices, respectively. For example, the NES module (213) can identify 'IoT (internet of things)', which is a category corresponding to 'turn on', which is a verb requesting a specified action included in an utterance (hereinafter referred to as a 'command'). For example, the label of an edge for the category 'IoT' may be designated as 'mode'. The NES module (213) can determine the label of the edge corresponding to the category 'IoT' as 'mode'. For example, the NES module (213) can generate a graph query with the label of the edge between 'air conditioner' and 'ventilation mode' as 'mode'. In one embodiment, the NES module (213) may generate a plurality of graph queries corresponding to a plurality of named entity candidates. For example, if the NE recognizer (212) recognizes a plurality of named entity candidates from text representing a single entity (e.g., a single word and / or phrase), the NES module (213) may generate a plurality of graph queries each including the plurality of named entity candidates.
[0056] According to one embodiment, the NES module (213) can generate a plurality of graph queries and use them to perform a plurality of graph searches on a named entity knowledge graph (e.g., a public NE graph and / or a user NE graph).
[0057] The NES module (213) can convert the table-type entity name data stored in the NE DB (214) into a graph-type to generate an entity name knowledge graph. For example, the NE DB (214) can include a public NE table (214-1) and / or a user NE table (214-2). The public NE table (214-1) can include entity names that all users are likely to utter. The user NE table (214-2) can include entity names that a specific user is likely to utter (e.g., a list of user-specific contact information (e.g., a contact name), user-specific device information (e.g., a device name), or user-specific contents (e.g., a video, an image, or a music)). For example, the user NE table (214-2) can include an entity name table generated based on a list of devices owned by a user of the electronic device (101). For example, the NES module (213) can generate a public NE graph from the public NE table (214-1). For example, the NES module (213) can generate a user NE graph from the user NE table (214-2). The public NE graph and the user NE graph may be collectively referred to as an entity-named knowledge graph.
[0058] The NES module (213) can perform a search on a public NE graph and / or a user NE graph using a graph query. For example, the NES module (213) can search for a vertex in an entity name knowledge graph that has an entity name corresponding to a vertex of a graph query. The entity name corresponding to a vertex of a graph query may, for example, include an entity name whose distance from the entity name corresponding to the vertex of the graph query is less than or equal to a specified similarity search distance. For example, the NES module (213) can search for a vertex connected by an edge in an entity name knowledge graph that has a label of an edge of a graph query.
[0059] The NES module (213) can obtain a set of named entities including a plurality of named entities as a result of a graph search. The plurality of named entities can correspond to a plurality of named entity candidates included in an utterance, respectively. For example, the NES module (213) can obtain 'living room', 'air conditioner', and 'ventilation mode'. According to one embodiment, when performing a graph search using a plurality of graph queries, the NES module (213) can determine the most suitable named entities for a stored named entity knowledge graph based on a plurality of search evaluation values (e.g., score, distance, and / or cost) for the plurality of graph queries, and obtain a set of named entities including the determined named entities.
[0060] The NE corrector (215) can correct the entity candidates included in the utterance based on the graph search results of the NES module (213). For example, the NE corrector (215) can correct the entity candidates 'living room', 'air conditioner', and 'ventilation mode' included in the utterance to 'living room', 'air conditioner', and 'ventilation mode'. For example, the NE corrector (215) can obtain the text 'Turn on the living room air conditioner ventilation mode', which includes the corrected entity candidates.
[0061] The NLU module (216) can identify the user's intention using text data corresponding to the utterance. For example, the NLU module (216) can identify the user's intention by performing syntactic analysis and / or semantic analysis on the text data. For example, the NLU module (216) can identify the user's intention from text including corrected named entity candidates. For example, the NLU module (216) can identify the user's intention to activate the ventilation mode of the air conditioner in the living room from the text "Turn on the ventilation mode of the living room air conditioner." The electronic device (101) can perform an action corresponding to the user's intention identified by the NLU module (216). For example, the electronic device (101) can control the air conditioner in the living room to activate the ventilation mode.
[0062] According to various embodiments, at least some of the operations of the above-described speech recognizer (210) may be performed by a server communicating with the electronic device (101). For example, at least some of the components included in the speech recognizer (210) may be implemented in the server communicating with the electronic device (101). For example, the electronic device (101) may receive a user utterance and then transmit the received utterance to the server. The server may correct a plurality of named entity candidates included in the utterance and transmit a response corresponding to the corrected utterance including the corrected named entity candidates to the electronic device (101). The electronic device (101) may perform an operation corresponding to the user's intention based on the received response.
[0063]
[0064] FIG. 3 is a drawing (300) illustrating an example of a named entity table. FIG. 4 is a drawing (400) illustrating an example of a named entity knowledge graph. For example, the named entity knowledge graph illustrated in FIG. 4 may be generated based on the named entity table illustrated in FIG. 3. The operations described below may be performed, for example, by the electronic device (101) of FIG. 1 or the processor (130) of the electronic device (101).
[0065] Referring to FIG. 3, the electronic device may store a plurality of entity names in a memory (e.g., memory (120) of FIG. 1) in the form of a table (e.g., entity table) based on relationships between the entity names. According to one embodiment, the entity table may be information that is referenced when the NE recognizer (212) recognizes (or determines) entity candidates. For example, the electronic device may include a first entity table (310) that includes entities having a relationship between a singer and a song. For example, the electronic device may include a second entity table (320) that includes entities having a relationship between a featuring singer and a song. For example, the electronic device may include a third entity table (330) that includes entities having a relationship between a singer and a featuring song. For example, the electronic device may include a fourth entity table (340) that includes entities having a relationship between an actor and a drama. For example, the electronic device may include a fifth entity table (350) that includes entities having a relationship between an actor and a movie.
[0066] Referring to FIG. 4, the electronic device can generate an entity name knowledge graph based on the entity name tables (310, 320, 330, 340, and 350) of FIG. 3. The electronic device can generate an entity name knowledge graph in which the entity names included in the first and second columns of the entity name tables (310, 320, 330, 340, and 350) are each vertices, and the relationship between the first and second columns is a label of an edge. The electronic device can sequentially convert each entity name table (310, 320, 330, 340, or 350) into a graph form.
[0067] For example, the electronic device can generate a graph in which the entity name (e.g., IU) included in the first column of the first entity name table (310) and the entity name (e.g., the meaning of you) included in the second column of the first entity name table (310) are vertices, and 'singer' indicating the relationship between singer and song in the first and second columns is the label of the edge connecting the two vertices.
[0068] For example, after completing the graph transformation for the first entity table (310), the electronic device may move on to the graph transformation for the second entity table (310). For example, the electronic device may generate a graph using the entity name (e.g., Kim Chang-wan) included in the first column of the second entity table (320) and the entity name (e.g., Your Meaning) included in the second column of the second entity table (320) as vertices, and using 'feat', which represents the relationship between the featuring singer and the song in the first and second columns, as the label of the edge connecting the two vertices.
[0069] For example, after completing the graph transformation for the second entity table (320), the electronic device may move on to the graph transformation for the third entity table (330). For example, the electronic device may generate a graph using the entity name (e.g., Kim Chang-wan) included in the first column of the third entity table (330) and the entity name (e.g., Your Meaning) included in the second column of the third entity table (330) as vertices, and using 'fsong', which represents the relationship between the singer and the featured song in the first and second columns, as the label of the edge connecting the two vertices.
[0070] For example, after completing the graph transformation for the third entity table (330), the electronic device can move on to the graph transformation for the fourth entity table (340). For example, the electronic device can generate a graph using the entity name (e.g., IU) included in the first column of the fourth entity table (340) and the entity name (e.g., Dream High) included in the second column of the fourth entity table (340) as vertices, and using 'actor', which represents the relationship between the actor and the drama in the first and second columns, as the label of the edge connecting the two vertices.
[0071] For example, after completing the graph transformation for the fourth entity table (340), the electronic device may move on to the graph transformation for the fifth entity table (350). For example, the electronic device may generate a graph in which the entity name (e.g., IU) included in the first column of the fifth entity table (350) and the entity name (e.g., broker) included in the second column of the fifth entity table (350) are vertices, and the label of the edge connecting the two vertices is 'actor' indicating the relationship between actor and movie in the first and second columns. For example, the label of the edge indicating the relationship between actor and drama and the label of the edge indicating the relationship between actor and movie may be the same as 'actor'.
[0072] An electronic device can maintain a single vertex for the same entity name. Instead of creating multiple vertices with the same entity name, the electronic device can connect vertices with different entity names by simply adding edges to the existing vertices. For example, the same entity name "IU" can have relationships with different entity names, "Marshmallow" and "Broker." The electronic device can connect the vertex corresponding to "IU" to the vertex corresponding to "Marshmallow" and the vertex corresponding to "Broker." The electronic device can connect the vertex corresponding to "IU" and the vertex corresponding to "Marshmallow" with an edge labeled "singer." The electronic device can connect the vertex corresponding to "IU" and the vertex corresponding to "Broker" with an edge labeled "actor."
[0073]
[0074] FIG. 5 is a diagram (500) illustrating an example of a device-related entity name table and a list of devices owned by a user. FIG. 6 is a diagram (600) illustrating an example of an entity name knowledge graph for a user of an electronic device. For example, the entity name knowledge graph illustrated in FIG. 6 may be generated based on the device-related entity name table (510) and the list of devices owned by the user (520) illustrated in FIG. 5. The operations described below may be performed, for example, by the electronic device (101) of FIG. 1 or the processor (130) of the electronic device (101).
[0075] Referring to FIG. 5, the electronic device may store a device-related entity name table (510) including entity names having a relationship between a device name and a mode in a memory (e.g., memory (120) of FIG. 1). For example, the device-related entity name table (510) may include entity names that are likely to be uttered by all users (or unspecified users).
[0076] An electronic device may store in its memory a list of devices owned by the user (or a specific user) of the electronic device (520), which includes information about at least one device owned by the user. The list of devices owned by the user (520) may include, for example, an entity name, which is the device name of a device owned by the user, and an entity name indicating the location of the device owned by the user.
[0077] For example, in the case of a device control utterance, only the user who owns the corresponding device can attempt the relevant utterance. For example, if an electronic device receives a device control utterance, the received utterance may be a utterance that controls an air conditioner, a shoe dresser, or an air purifier, which are devices included in the user's device list (520). The electronic device may not need to perform an entity name search for entity names related to devices not owned by the user.
[0078] According to one embodiment, the electronic device may weight named entities associated with a device held by the user (e.g., named entities referring to a device held by the user) when recognizing named entities in received device control utterances and / or when calculating transcription accuracy (e.g., confidence) for a named entity knowledge graph of named entity candidates or combinations of named entity candidates.
[0079] Referring to FIG. 6, the electronic device can generate an entity name knowledge graph for a user of the electronic device based on the device-related entity name table (510) of FIG. 5 and the user's device list (520). For example, the electronic device can generate an entity name knowledge graph having as vertices an entity name indicating the location of a device included in a first column of the user's device list (520) and an entity name that is a device name included in a second column of the user's device list (520). The electronic device can generate an entity name knowledge graph having 'pos(position)' indicating the relationship between the device location and the device name as a label of an edge connecting a vertex corresponding to the device location and a vertex corresponding to the device name.
[0080] For example, the electronic device may perform filtering on the device-related entity name table (510) based on the user's device-owned list (520). For example, the electronic device may identify entity names related to devices included in the user's device-owned list (520) (or devices owned by the user) in the device-related entity name table (510). The electronic device may generate an entity name knowledge graph only for the identified entity names. Referring to FIG. 6, the electronic device may generate an entity name knowledge graph only for entity names related to air conditioners, shoe dressers, and air purifiers, which are devices included in the user's device-owned list (520), among the entity names included in the device-related entity name table (510).
[0081] For example, an electronic device may generate an entity name knowledge graph having as vertices the device name entity names and mode entity names related to air conditioners, shoe dressers, and air purifiers included in the device-related entity name table (510). The electronic device may generate an entity name knowledge graph having 'mode', which represents the device name and mode relationship, as a label of an edge connecting a vertex corresponding to a device name and a vertex corresponding to a mode.
[0082] The entity name knowledge graph illustrated in Figure 6 may only include entity names associated with the device owned by the user of the electronic device. When receiving a device control utterance, the electronic device can narrow the search scope and improve search efficiency by performing a search on the entity name knowledge graph for the user.
[0083]
[0084] FIG. 7 is a drawing (700) illustrating an example of category information corresponding to a command and label information of a category-specific trunk line. The operations described below may be performed, for example, by the electronic device (101) of FIG. 1 or the processor (130) of the electronic device (101).
[0085] Referring to FIG. 7, the electronic device may store category information (710) corresponding to a verb (hereinafter referred to as a “command”) requesting a specified action and label information (720) of a category-specific edge in a memory (e.g., memory (120) of FIG. 1). For example, the category information (710) corresponding to a command may include information on a category associated with the specified command or a category in which the specified command is mainly used. For example, the category corresponding to the command “Turn it on” may include “IoT,” “Music,” and “Movie.”
[0086] For example, the label information (720) of a category-specific edge may be information indicating a possible relationship between entity names included in a specified category. For example, the label of an edge corresponding to the category "IoT" may include "mode," a label indicating the relationship between an IoT device name and the mode name of the IoT device.
[0087] The electronic device can identify a category corresponding to a command included in an utterance based on category information (710) corresponding to the command. For example, if the command included in the utterance is 'Turn it on', the electronic device can identify any one of 'IoT', 'Music', or 'Movie' based on the category information (710) corresponding to the command. For example, if multiple categories corresponding to the command are identified, at least one category among the multiple categories can be identified based on the type of the named entity candidate included in the utterance. The identified at least one category can be a category related to (or most related to) the type of the named entity candidate. For example, if the type of the named entity candidate included in the utterance is a device name, the electronic device can identify 'IoT' as the category corresponding to 'Turn it on'.
[0088] The electronic device can determine the label of the edge corresponding to the identified category based on the label information (720) of the edge for each category. For example, if the 'IoT' category is identified, the electronic device can determine 'mode' as the label of the edge based on the label information (720) of the edge for each category. The electronic device can determine the vertices connected by the edge with the determined label based on the type of entity candidate included in the utterance. For example, the electronic device can determine that the edge with the label 'mode' connects the vertices corresponding to the entity name determined to be the device name and the entity name determined to be the mode name of the device.
[0089] For example, if the identified category is 'Music', the electronic device can identify either 'singer' or 'feat' based on the label information (720) of the edge for each category. For example, if multiple labels for edges according to a category are identified, one of the multiple labels can be identified based on the type of the named entity candidate included in the utterance. The identified single label can be a label associated with (or most associated with) the type of the named entity candidate. For example, if the type of the named entity candidate included in the utterance is a featured singer, the electronic device can determine 'feat' as the label for the edge. According to one embodiment, if multiple labels are identified, the electronic device can generate multiple graph queries for each label, and determine graph transcription accuracy (e.g., reliability) for each graph query.
[0090] An electronic device can generate a graph query using the labels of edges determined for commands included in an utterance. The generation of a graph query by an electronic device is described in detail below with reference to FIG. 8.
[0091]
[0092] FIG. 8 is a diagram (800) illustrating an example of a method for generating a graph query. The operations described below may be performed, for example, by the electronic device (101) of FIG. 1 or the processor (130) of the electronic device (101).
[0093] An electronic device can receive speech through a microphone (e.g., a microphone (110) of FIG. 1). The electronic device can convert the speech into text. For example, the converted text can be “Turn on all the air conditioners in the living room.” The electronic device can extract a plurality of candidate entities and a verb (e.g., a command) requesting a specified action from the text corresponding to the speech. For example, the electronic device can extract a first candidate entity (NE1) ‘living room,’ a second candidate entity (NE2) ‘air conditioner,’ and a third candidate entity (NE3) ‘wind vents.’ For example, the electronic device can extract a command ‘Turn it on’ from the text corresponding to the speech.
[0094] An electronic device can identify a category corresponding to a command included in an utterance based on the category information corresponding to the command. For example, the electronic device can identify "IoT" as the category corresponding to "Turn it on." Based on the label information for each category's edge, the electronic device can determine the edge label corresponding to the identified category. For example, the electronic device can determine "mode" as the edge label corresponding to the category "IoT."
[0095] An electronic device can determine a graph component based on multiple extracted named entity candidates and a command. For example, the electronic device can determine a named entity knowledge graph as the search target graph. For example, the electronic device can determine multiple named entity candidates as vertices. For example, if there is a label for an edge determined in response to a command, the electronic device can determine the label of the edge as one of the graph components.
[0096] An electronic device can draft a graph query using graph components. The graph query may include a first function (e.g., 'has') that retrieves vertices with a specified entity name and a second function (e.g., 'out') that retrieves vertices connected by edges with a specified label. The graph query may include a class (e.g., 'G') that specifies a graph to be searched. In the graph query, the class may be placed first. In the graph query, the first and second functions may be placed alternately. In the graph query, '.' is an identifier that calls a sub-property or function (object, method / function) of the previous object, and the search may be performed on a function-by-function basis. For example, if there are n candidate entities (n is a natural number greater than or equal to 2), the graph query may include n first functions and (n-1) second functions. For example, if there are three candidate entities, 'living room', 'air conditioner', and 'ventilation all', the electronic device can draft a graph query in the form of G.has().out().has().out().has().
[0097] In the first function, the entity name to be searched and the similarity search distance may be specified. In the second function, the label to be searched may be specified. For example, the similarity search distance may include an edit distance used in the Levenshtein distance algorithm. If the edit distance is set to n (where n is a natural number), the electronic device may search for strings that become identical when n or fewer characters are changed in the specified string. For example, in the first function, the similarity search distance may be specified based on a characteristic of the entity name to be searched. Here, the characteristic may include the transcription accuracy of an utterance for the specified entity. The higher the transcription accuracy of the utterance for the entity name, the shorter the similarity search distance may be set. The lower the transcription accuracy of the utterance for the entity, the longer the similarity search distance may be set. For example, the electronic device may set the similarity search distance for the first named entity candidate (NE1) 'living room' to 0, the similarity search distance for the second named entity candidate (NE2) 'air conditioner' to 1, and the similarity search distance for the third named entity candidate (NE3) 'songpungmodu' to 2. For example, the electronic device may write the first function for the first named entity candidate as has(NE1,0) or has(NE1). For example, the electronic device may write the first function for the second named entity candidate as has(NE2, 1). For example, the electronic device may write the first function for the third named entity candidate as has(NE3, 2). According to one embodiment, the electronic device may set the similarity search distance by considering the recognition confidence level and / or recognition probability (likelihood or probability) of the result of performing speech recognition (e.g., ASR) on a target word (e.g., named entity) from an utterance.For example, the electronic device may set the similarity search distance to a relatively large value (e.g., has(NE1, 4)) when the recognition confidence level and / or recognition probability of the target word is relatively low. The electronic device may set the similarity search distance to a relatively small value (e.g., has(NE1, 0)) when the recognition confidence level and / or recognition probability of the target word is relatively high.
[0098] The electronic device can determine the position of a second function on a graph query, based on the types of multiple candidate entity names, to which an edge label (e.g., 'mode') determined in response to a command is assigned. For example, the electronic device can determine the position of the second function to which the label 'mode' is assigned, between a first function to which a second candidate entity name ('air conditioner') determined to be a device name is assigned and a first function to which a third candidate entity name ('ventilation mode') determined to be a device mode name is assigned. For example, the electronic device can determine the position of out(mode) to be between has(NE2, 1) and has(NE3, 2).
[0099] The electronic device can search for all vertices connected by edges corresponding to a second unlabeled function. For example, a second function located between a first function with a first named entity candidate and a first function with a second named entity candidate may not be labeled. For example, the electronic device can write the second function between has(NE1) and has(NE2, 1) as out(ALL). 'ALL' can indicate a search for all edges.
[0100] According to the above example, the electronic device can draft a graph query as G.has(NE1).out(All).has(NE2, 1).out(mode).has(NE3, 2).
[0101] An electronic device can generate a text-based graph query by inserting text corresponding to the entity candidate into the draft graph query. For example, the electronic device can insert "living room" into NE1, "air conditioner" into NE2, and "ventilation mode" into NE3. For example, the electronic device can generate a text-based graph query like G.has(living room).out(all).has(air conditioner, 1).out(mode).has(ventilation mode, 2).
[0102] An electronic device can convert a text-based graph query into a graph-based graph query. For example, the electronic device can generate a graph-based graph query by converting a first function into vertices and a second function into edges. For example, the electronic device can display a specified entity name (or entity name candidate) and a similarity search distance for the first function within the vertices. For example, the electronic device can display a specified label for the second function adjacent to the edges.
[0103] An electronic device can perform a search on a graph using the generated graph query. A search using a graph query on an electronic device is described in detail below with reference to FIGS. 9a, 9b, 9c, 9d, 9e, and 9f.
[0104]
[0105] Figures 9a, 9b, 9c, 9d, 9e, and 9f are diagrams (900, 910, 920, 930, 940, and 950) showing examples of a graph search process. The operations described below may be performed, for example, by the electronic device (101) of Figure 1 or the processor (130) of the electronic device (101). Figures 9a, 9b, 9c, 9d, 9e, and 9f show the search process and search results for the graph query “G.has(living room).out(all).has(air conditioner, 1).out(mode).has(all blowers, 2)” generated in Figure 8, for example.
[0106] The electronic device can perform a sequential search based on the order of the functions included in the graph query.
[0107] Referring to FIG. 9A, the electronic device may obtain (or return) search result 1 as a search result for query 1. Query 1 may include at least a part of a graph query, up to a class or function for which a search is performed. Query 1 may include a class 'G' included in the graph query in the first order. The electronic device may perform a search corresponding to class 'G'. Class 'G' may be a value that designates a search target graph as an entity name knowledge graph. Search result 1 may correspond to the entire entity name knowledge graph. Search result 1 may include entity names included in the entire entity name knowledge graph.
[0108] If the utterance is a device-controlled utterance, the electronic device can perform a named entity search using an entity-named knowledge graph corresponding to the user of the electronic device. The named entity knowledge graph corresponding to the user of the electronic device may be, for example, an entity-named knowledge graph generated based on a list of devices owned by the user of the electronic device. For example, if the graph query generated in FIG. 8 is generated based on a device-controlled utterance, the electronic device can designate the search target graph as the entity-named knowledge graph corresponding to the user of the electronic device, corresponding to class 'G'.
[0109] Electronic devices can perform a step-by-step search for each function included in a graph query. For example, an electronic device can perform a search for the next function based on the search results for the previous function.
[0110] Referring to FIG. 9B, the electronic device may obtain (or return) search result 2 as a search result for query 2. Query 2 may include at least a part of a graph query, up to a function for which a search is performed. Query 2 may include a class 'G' included in the graph query in the first order and a function 'has(living room)' in the second order. The electronic device may further perform a search corresponding to the function 'has(living room)'. The function 'has(living room)' may be identical to 'has(living room, 0)'. The function 'has(living room)' may be a function that searches for a vertex having the same entity name as 'living room' (an entity name with an edit distance of 0). Search result 2 may correspond to a subgraph of the entity name knowledge graph consisting of vertices whose entity name is 'living room'. Search result 2 may include 'living room'.
[0111] Referring to FIG. 9c, the electronic device may obtain (or return) search result 3 as a search result for query 3. Query 3 may include, as at least a part of a graph query, a function for which a search is performed. Query 3 may include a class 'G' included in the graph query in the first order, a function 'has(living room)' in the second order, and a function 'out(all)' in the third order. The electronic device may further perform a search corresponding to the function 'out(all)'. The function 'out(all)' may be a function that searches for all vertices connected by edges to vertices included in the search result of the previous function ('has(living room)') of the corresponding function. The electronic device may search for all vertices connected by edges to vertices whose entity name is 'living room' included in the search result of 'has(living room)'. For example, a vertex whose entity name is 'living room' may be connected to a vertex whose entity name is 'air conditioner' and a vertex whose entity name is 'air purifier'. Search result 3 may correspond to a subgraph of the entity-named knowledge graph, consisting of a vertex whose entity name is "living room" and all vertices connected by edges to the vertex whose entity name is "living room" (vertices whose entity name is "air conditioner" and vertices whose entity name is "air purifier"). Search result 3 may include "living room," "air conditioner," and "air purifier."
[0112] Referring to FIG. 9D, the electronic device can obtain (or return) search result 4 as a search result for query 4. Query 4 may include up to a function for which a search is performed, as at least a part of a graph query. Query 4 may include a class 'G' included in the graph query in the first order, a function 'has(living room)' in the second order, a function 'out(all)' in the third order, and a function 'has(air conditioner, 1)' in the fourth order. The electronic device may further perform a search corresponding to the function 'has(air conditioner, 1)'. The function 'has(air conditioner, 1)' may be a function that searches for a vertex having an entity name that has an edit distance of 1 or less from 'air conditioner'. The electronic device may search for a vertex that has an edit distance of 1 or less from 'air conditioner' among the vertices included in the search result of the previous function ('out(all)') of the function 'has(air conditioner, 1)'. For example, an electronic device can search for a vertex whose entity name is 'air conditioner' among the vertices searched by the previous function 'out(all)', and whose entity name is the same as 'air conditioner' by changing one or less characters. Search result 4 can correspond to a subgraph of the entity name knowledge graph consisting of a vertex whose entity name is 'living room' and a vertex whose entity name is 'air conditioner' and whose entity name is within an edit distance of 1 (a vertex whose entity name is 'air conditioner') connected to the vertex whose entity name is 'living room'. Search result 4 can include 'living room' and 'air conditioner'.
[0113] Referring to FIG. 9E, the electronic device may obtain (or return) search result 5 as a search result for query 5. Query 5 may include at least a part of a graph query and a function for which a search is performed. Query 5 may include a class 'G' included in the graph query in the first order, a function 'has(living room)' in the second order, a function 'out(all)' in the third order, a function 'has(air conditioner, 1)' in the fourth order, and a function 'out(mode)' in the fifth order. The electronic device may further perform a search corresponding to the function 'out(mode)'. The function 'out(mode)' may be a function that searches for a vertex included in the search result of a previous function ('has(air conditioner, 1)') of the corresponding function and a vertex connected by an edge labeled 'mode'. The electronic device can search for a vertex whose entity name is 'air conditioner' and a vertex connected by an edge labeled 'mode' in the search result of 'has(air conditioner, 1)'. For example, a vertex whose entity name is 'air conditioner' may be connected to a vertex whose entity name is 'power cooling mode', a vertex whose entity name is 'cooling mode', and a vertex whose entity name is 'fan mode' by an edge labeled 'mode'. Search result 5 may correspond to a subgraph of the entity name knowledge graph, which is composed of a vertex whose entity name is 'living room', a vertex whose entity name is 'air conditioner', and a vertex whose entity name is 'air conditioner' and a vertex connected by an edge labeled 'mode' (a vertex whose entity name is 'power cooling mode', a vertex whose entity name is 'cooling mode', and a vertex whose entity name is 'fan mode'). Search results 5 may include 'living room', 'air conditioner', 'power cooling mode', 'cooling mode', and 'fan mode'.
[0114] Referring to FIG. 9F, the electronic device may obtain (or return) search result 6 as a search result for query 6. Query 6 may include, as at least a part of a graph query, up to a function for which a search is performed. Query 6 may include a class 'G' included in the graph query in the first order, a function 'has(living room)' in the second order, a function 'out(all)' in the third order, a function 'has(air conditioner, 1)' in the fourth order, a function 'out(mode)' in the fifth order, and a function 'has(ventilation all, 2)' in the sixth order. The electronic device may further perform a search corresponding to the function 'has(ventilation all, 2)'. The function 'has(ventilation all, 2)' may be a function that searches for a vertex having an entity name that has an edit distance of 2 or less from 'ventilation all'. The electronic device can search for a vertex that has an edit distance of 2 or less from 'Songpungmodoo' among the vertices included in the search result of the previous function ('out(mode)') of the function 'has(Songpungmodoo, 2)'. For example, the electronic device can search for a vertex whose entity name is 'Songpungmodoo' among the vertices searched by the previous function 'out(mode)', and whose entity name is the same as 'Songpungmodoo' by changing 2 or less characters. Search result 6 may correspond to a subgraph of the entity name knowledge graph, which is composed of a vertex whose entity name is 'living room', a vertex whose entity name is 'air conditioner', and a vertex whose entity name is 'air conditioner' and which is connected to the vertex whose entity name is 'air conditioner' by an edge labeled 'mode' and has an entity name of 2 or less from 'Songpungmodoo' (a vertex whose entity name is 'Songpungmodoo'). Search result 6 may include 'living room', 'air conditioner', and 'Songpungmodoo'.
[0115] Query 6 in Figure 9f corresponds to the entire graph query, and search result 6 may be the final search result after the entire graph query has been searched. The relationship information between the multiple entity names "living room," "air conditioner," and "ventilation mode" included in the search result may be identical to the relationship information between the multiple entity candidates "living room," "air conditioner," and "ventilation mode" included in the utterance. Accordingly, the multiple entity names included in the search result may be entity names that better match the user's intent for the utterance.
[0116] An electronic device can refine multiple candidate entities based on multiple entity names included in the search results. For example, the electronic device can refine multiple candidate entities, such as "living room," "air conditioner," and "ventilation mode," to "living room," "air conditioner," and "ventilation mode," respectively, included in the search results.
[0117] Electronic devices can correct text corresponding to an utterance based on multiple corrected named entity candidates. For example, the electronic device can correct "Turn on all fans in the living room air conditioner" to "Turn on the living room air conditioner in fan mode." The electronic device can then determine the user's intent from the corrected text (e.g., "Turn on the living room air conditioner in fan mode") and perform an action corresponding to the user's intent.
[0118] An electronic device stores named entities in a graph format based on relationship information between named entities, converts the named entity candidates into graph queries based on the relationship information between the named entity candidates included in an utterance, and performs a search on the named entity graph using the graph queries. This allows for more efficient retrieval of named entities corresponding to the named entity candidates and refines the named entity candidates to match the user's intent. Accordingly, the electronic device can more accurately determine the user's intent regarding the utterance and perform actions consistent with the user's intent.
[0119]
[0120] Fig. 10 is a flowchart (1000) illustrating the operation of an electronic device according to an example. The operations of the electronic device described below may be performed, for example, by the electronic device (101) of Fig. 1 or the processor (130) of the electronic device (101).
[0121] In the following examples, the operations may be performed sequentially, but are not necessarily sequential. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.
[0122] In operation 1001, an electronic device according to an embodiment may receive a speech signal. The electronic device may receive the speech signal via a microphone (e.g., microphone (110) of FIG. 1).
[0123] In operation 1003, an electronic device according to an embodiment may obtain text corresponding to a utterance. The electronic device may obtain the text corresponding to the utterance through voice recognition. For example, the electronic device may convert voice data corresponding to the utterance into text data.
[0124] In operation 1005, an electronic device according to an embodiment may extract multiple named entity candidates from text. The named entity candidates may be words or phrases recognized as named entities in the text. For example, the electronic device may extract the named entity candidates through natural language processing of the text corresponding to the utterance.
[0125] In operation 1007, an electronic device according to an embodiment may generate a graph query based on a plurality of named entity candidates. For example, the electronic device may generate a graph query with each of the plurality of named entity candidates as a vertex and the relationships between the named entity candidates as edges.
[0126] For example, an electronic device may identify a category corresponding to a command included in an utterance based on category information corresponding to a verb (hereinafter referred to as a "command") requesting a specified action stored in a memory (e.g., memory (120) of FIG. 1). The category information corresponding to the command may include information about a category associated with the specified command or a category in which the specified command is primarily used.
[0127] For example, an electronic device may determine the label of an edge corresponding to an identified category based on the label information of the category-specific edges stored in memory. The label information of the category-specific edges may indicate possible relationships between named entities within the specified category. The electronic device may generate a graph query that includes the label of the determined edge. For example, the electronic device may designate the label of the determined edge as the label of the edge connecting two named entity candidates predicted to have a relationship corresponding to that label.
[0128] For example, an electronic device may generate a graph query that does not specify the label of an edge if the utterance does not contain a command, the category corresponding to the command is not identified, or the edge corresponding to the category is not labeled. For example, if the label of an edge is not specified, the electronic device may search for all edges of a vertex. Searching for all edges of a vertex can be referred to as searching for all vertices connected to the vertex.
[0129] For example, a graph query may include a first function that searches for a low point with a specified entity name and a second function that searches for vertices connected by edges with a specified label. The graph query may alternately include the first function and the second function. The first function may specify a similarity search distance based on a characteristic of the specified entity name. The characteristic may include, for example, the transcription accuracy of an utterance for the specified entity. The higher the transcription accuracy of an utterance for the specified entity, the shorter the similarity search distance may be set. The lower the transcription accuracy of an utterance for the entity, the longer the similarity search distance may be set. For example, the similarity search distance may include an edit distance used in an edit distance algorithm. When the edit distance is set to n (n is a natural number), the processor (130) may search for strings that become identical when n or fewer characters are changed in the specified string.
[0130] In operation 1009, an electronic device according to an embodiment may perform a search for a named entity knowledge graph using a graph query. The named entity knowledge graph may represent named entities as vertices and represent relationships between named entities as edges. The electronic device may convert named entity data stored in a memory in a table format into a graph format to generate the named entity knowledge graph. For example, the electronic device may generate an named entity knowledge graph in which the named entities included in the first column of the named entity table and the named entities included in the second column are vertices, and the relationships between the first and second columns are labels of edges.
[0131] For example, an electronic device can generate a user-specific entity knowledge graph based on a list of the user's devices stored in memory. For example, when a device control utterance is received, the electronic device can perform a search for the user-specific entity knowledge graph.
[0132] For example, the electronic device may sequentially perform searches corresponding to the first function and the second function included in the graph query. For example, in response to the first function, the electronic device may search for vertices having entity names that are at a distance less than or equal to a specified distance from a specified entity name. For example, in response to the second function, the electronic device may search for vertices connected by edges having a specified label to vertices included in search results prior to the second function (e.g., search results of the first function prior to the second function).
[0133] In operation 1011, an electronic device according to an embodiment may correct a plurality of named entity candidates based on search results. For example, the search results may be a set of named entities including a plurality of named entities linked in a named entity knowledge graph. The relationship information of the plurality of named entities may be identical to the relationship information of the plurality of named entity candidates. For example, the electronic device may correct a plurality of named entity candidates based on a plurality of named entities included in the search results.
[0134] In operation 1013, an electronic device according to an embodiment may perform an operation corresponding to a plurality of calibrated candidate named entities. For example, the electronic device may determine the user's intent using text including the plurality of calibrated candidate named entities. The electronic device may perform an operation corresponding to the user's intent.
[0135]
[0136] Hereinafter, the electronic device (1101) of FIG. 11 may correspond to the electronic device (101) of FIG. 1.
[0137] FIG. 11 is a block diagram of an electronic device (1101) within a network environment (1100), according to an example. Referring to FIG. 11, in the network environment (1100), the electronic device (1101) may communicate with the electronic device (1102) via a first network (1198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (1104) or the server (1108) via a second network (1199) (e.g., a long-range wireless communication network). In one example, the electronic device (1101) may communicate with the electronic device (1104) via the server (1108). According to one example, the electronic device (1101) may include a processor (1120), a memory (1130), an input module (1150), an audio output module (1155), a display module (1160), an audio module (1170), a sensor module (1176), an interface (1177), a connection terminal (1178), a haptic module (1179), a camera module (1180), a power management module (1188), a battery (1189), a communication module (1190), a subscriber identification module (1196), or an antenna module (1197). In some examples, the electronic device (1101) may omit at least one of these components (e.g., the connection terminal (1178)), or may have one or more other components added. 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)).
[0138] The processor (1120) may, for example, execute software (e.g., a program (1140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (1101) connected to the processor (1120) and perform various data processing or operations. In one example, as at least a part of the data processing or operations, the processor (1120) may store commands or data received from other components (e.g., a sensor module (1176) or a communication module (1190)) in a volatile memory (1132), process the commands or data stored in the volatile memory (1132), and store result data in a non-volatile memory (1134). In one example, the processor (1120) may include a main processor (1121) (e.g., a central processing unit or an application processor) or an auxiliary processor (1123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (1121). For example, when the electronic device (1101) includes the main processor (1121) and the auxiliary processor (1123), the auxiliary processor (1123) may be configured to use less power than the main processor (1121) or to be specialized for a given function. The auxiliary processor (1123) may be implemented separately from the main processor (1121) or as a part thereof.
[0139] The auxiliary processor (1123) may control at least a portion of functions or states associated with at least one component (e.g., the display module (1160), the sensor module (1176), or the communication module (1190)) of the electronic device (1101), for example, on behalf of the main processor (1121) while the main processor (1121) is in an inactive (e.g., sleep) state, or together with the main processor (1121) while the main processor (1121) is in an active (e.g., application execution) state. In one example, the auxiliary processor (1123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (1180) or a communication module (1190)). In one example, the auxiliary processor (1123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (1101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (1108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.
[0140] The memory (1130) can store various data used by at least one component (e.g., the processor (1120) or the sensor module (1176)) of the electronic device (1101). The data can include, for example, software (e.g., the program (1140)) and input data or output data for commands related thereto. The memory (1130) can include a volatile memory (1132) or a non-volatile memory (1134).
[0141] The program (1140) may be stored as software in memory (1130) and may include, for example, an operating system (1142), middleware (1144), or an application (1146).
[0142] The input module (1150) can receive commands or data to be used in a component of the electronic device (1101) (e.g., a processor (1120)) from an external source (e.g., a user) of the electronic device (1101). The input module (1150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0143] The audio output module (1155) can output audio signals to the outside of the electronic device (1101). The audio output module (1155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one example, the receiver can be implemented separately from the speaker or as part of the speaker.
[0144] The display module (1160) can visually provide information to an external party (e.g., a user) of the electronic device (1101). The display module (1160) may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling the device. In 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 a force generated by the touch.
[0145] The audio module (1170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. In one example, the audio module (1170) can acquire sound through the input module (1150), output sound through the sound output module (1155), or an external electronic device (e.g., electronic device (1102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (1101).
[0146] The sensor module (1176) can detect the operating status (e.g., power or temperature) of the electronic device (1101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to an example, the sensor module (1176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0147] The interface (1177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (1101) with an external electronic device (e.g., the electronic device (1102)). In 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.
[0148] The connection terminal (1178) may include a connector through which the electronic device (1101) may be physically connected to an external electronic device (e.g., the electronic device (1102)). In one example, the connection terminal (1178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0149] The haptic module (1179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. In one example, the haptic module (1179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0150] The camera module (1180) can capture still images and videos. In one example, the camera module (1180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0151] The power management module (1188) can manage the power supplied to the electronic device (1101). In one example, the power management module (1188) can be implemented as at least a part of, for example, a power management integrated circuit (PMIC).
[0152] A battery (1189) may power at least one component of the electronic device (1101). In one example, the battery (1189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0153] The communication module (1190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (1101) and an external electronic device (e.g., electronic device (1102), electronic device (1104), or server (1108)), and the performance of communication through the established communication channel. The communication module (1190) may operate independently from the processor (1120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. In one example, the communication module (1190) may include 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., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, a corresponding communication module can communicate with an external electronic device (1104) via 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., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (1192) can verify or authenticate the electronic device (1101) within a communication network such as the first network (1198) or the second network (1199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (1196).
[0154] The wireless communication module (1192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (1192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (1192) may support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-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., the electronic device (1104)), or a network system (e.g., the second network (1199)). For example, the wireless communication module (1192) may support peak data rate (e.g., 20 Gbps or more) for eMBB realization, loss coverage (e.g., 164 dB or less) for mMTC realization, or U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.
[0155] The antenna module (1197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one example, the antenna module (1197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one example, the antenna module (1197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (1198) or the second network (1199), may be selected from the plurality of antennas by, for example, the communication module (1190). A signal or power may be transmitted or received between the communication module (1190) and the external electronic device via the at least one selected antenna. In some examples, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (1197).
[0156] According to various examples, the antenna module (1197) may form a mmWave antenna module. According to one example, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band.
[0157] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0158] In one example, commands or data may be transmitted or received between the electronic device (1101) and an external electronic device (1104) via a server (1108) connected to a second network (1199). Each of the external electronic devices (1102 or 1104) may be the same or a different type of device as the electronic device (1101). In one example, all or part of the operations executed 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) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (1101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion 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 a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (1101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another example, the external electronic device (1104) may include an Internet of Things (IoT) device. The server (1108) may be an intelligent server utilizing machine learning and / or a neural network.In one example, an external electronic device (1104) or server (1108) may be included in the second network (1199). The electronic device (1101) may be applied to intelligent services (e.g., smart homes, smart cities, smart cars, or healthcare) based on 5G communication technology and IoT-related technology.
[0159]
[0160] Figure 12 is a block diagram illustrating an integrated intelligence system according to an example.
[0161] Referring to FIG. 12, an example integrated intelligence system may include a user terminal (1201), an intelligent server (1300), and a service server (1400).
[0162] An example user terminal (1201) (e.g., electronic device (1101) of FIG. 11) may be a terminal device (or electronic device) that can connect to the Internet, and may be, for example, a mobile phone, a smart phone, a personal digital assistant (PDA), a laptop computer, a television, white goods, a wearable device, an HMD (head mounted device), or a smart speaker.
[0163] According to the illustrated example, 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 above-listed components may be operatively or electrically connected to each other.
[0164] A communication interface (1290) (e.g., a communication module (1190) of FIG. 11) may be configured to connect to an external device and transmit and receive data. A microphone (1270) (e.g., an audio module (1170) of FIG. 11) may receive sound (e.g., a user's speech) and convert it into an electrical signal. A speaker (1255) (e.g., an audio output module (1155) of FIG. 11) may output an electrical signal as sound (e.g., a voice). A display (1260) (e.g., a display module (1160) of FIG. 11) may be configured to display an image or video. An example display (1260) may also display a graphical user interface (GUI) of a running app (or application program).
[0165] An example memory (1230) (e.g., memory (1130) of FIG. 11) may store a client module (1231), a software development kit (SDK) (1233), and multiple applications. The client module (1231) and SDK (1233) may constitute a framework (or solution program) for performing general-purpose functions. In addition, the client module (1231) or SDK (1233) may constitute a framework for processing user input (e.g., voice input, text input, touch input).
[0166] The plurality of applications (e.g., 1235a, 1235b) stored in the memory (1230) may be programs for performing a specified function. In one example, the plurality of applications may include a first app (1235a) and / or a second app (1235b). In one example, each of the plurality of applications may include a plurality of operations for performing a specified function. For example, the applications may include an alarm app, a message app, and / or a schedule app. In one example, the plurality of applications may be executed by the processor (1220) to sequentially execute at least some of the plurality of operations.
[0167] An example processor (1220) may control the overall operation of a user terminal (1201). For example, the processor (1220) may be electrically connected to a communication interface (1290), a microphone (1270), a speaker (1255), and a display (1260) to perform a designated operation. For example, the processor (1220) may include at least one processor.
[0168] An 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) to perform the following operations for processing user input. The processor (1220) may control the operations of multiple applications, for example, through the SDK (1233). The following operations described as operations of the client module (1231) or the SDK (1233) may be operations performed by the execution of the processor (1220).
[0169] An example client module (1231) can receive user input. For example, the client module (1231) can receive a voice signal corresponding to a user utterance detected through a microphone (1270). Alternatively, the client module (1231) can receive a touch input detected through a display (1260). Alternatively, the client module (1231) can receive a text input detected through a keyboard or a video keyboard. In addition, the client module (1231) can receive 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). The client module (1231) can transmit the received user input (e.g., a voice signal, a text input, a touch input) to the intelligent server (1300). The client module (1231) can transmit status information of the user terminal (1201) to the intelligent server (1300) together with the received user input. The above status information may be, for example, the execution status information of the app.
[0170] An example client module (1231) may receive a result corresponding to a received user input from an intelligent server (1300). For example, the client module (1231) may receive a result corresponding to a received voice input when the intelligent server (1300) can produce a result corresponding to the received user input. The client module (1231) may display the received result on a display (1260). In addition, the client module (1231) may output the received result as audio through a speaker (1255).
[0171] An example client module (1231) may receive a plan corresponding to a received user input. The client module (1231) may display the results of executing multiple operations of the app according to the plan on the display (1260). For example, the client module (1231) may sequentially display the results of executing multiple operations on the display and output audio through the speaker (1255). The user terminal (1201) may, for example, display only some results of executing multiple operations (e.g., the result of the last operation) on the display and output audio through the speaker (1255).
[0172] In one example, the client module (1231) may receive a request from the intelligent server (1300) to obtain information necessary to produce a result corresponding to a user input. In one example, the client module (1231) may transmit the necessary information to the intelligent server (1300) in response to the request.
[0173] An example client module (1231) can transmit result information of executing multiple operations according to a plan to an intelligent server (1300). The intelligent server (1300) can use the result information to confirm that the received user input has been processed correctly.
[0174] An example client module (1231) may include a voice recognition module. In one example, the client module (1231) may recognize voice inputs that perform limited functions via the voice recognition module. For example, the client module (1231) may execute an intelligent app to process voice inputs by performing organic actions in response to a specified voice input (e.g., "Wake up!").
[0175] An example intelligent server (1300) may receive information related to a user voice input from a user terminal (1201) via a network (1299) (e.g., the first network (1198) and / or the second network (1199) of FIG. 11). According to an example, the intelligent server (1300) may convert data related to the received voice input into text data. According to an example, the intelligent server (1300) may generate at least one plan for performing a task corresponding to the user voice input based on the text data.
[0176] In one example, the plan may be generated by an artificial intelligence (AI) system. The AI 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 (RNN)), or a combination of the foregoing or another AI system. In one example, the plan may be selected from a set of predefined plans or may be generated in real time in response to a user request. For example, the AI system may select at least one plan from a plurality of predefined plans.
[0177] An example intelligent server (1300) may transmit results according to a generated plan to a user terminal (1201), or may transmit the generated plan to the user terminal (1201). In one example, the user terminal (1201) may display results according to the plan on a display (1260). In one example, the user terminal (1201) may display results of executing an operation according to the plan on a display (1260).
[0178] An example intelligent server (1300) may include a front end (1310), a natural language platform (1320), a capsule database (1330), an execution engine (1340), an end user interface (1350), a management platform (1360), a big data platform (1370), or an analytic platform (1380).
[0179] An example front end (1310) may receive user input from the user terminal (1201). The front end (1310) may transmit a response corresponding to the user input to the user terminal (1201).
[0180] According to one example, the natural language platform (1320) may include an automatic speech recognition module (ASR module) (1321), a natural language understanding module (NLU module) (1323), a planner module (1325), a natural language generator module (NLG module) (1327), and / or a text to speech module (TTS module) (1329).
[0181] An example automatic speech recognition module (1321) can convert voice input received from a user terminal (1201) into text data. An example natural language understanding module (1323) can use the text data of the voice input to determine the user's intention. For example, the natural language understanding module (1323) can perform syntactic analysis and / or semantic analysis on user input in the form of text data to determine the user's intention. An example natural language understanding module (1323) can use linguistic features (e.g., grammatical elements) of morphemes or phrases to determine the meaning of words extracted from user input, and can match the meaning of the determined words to the intent to determine the user's intent. The natural language understanding module (1323) can obtain intent information corresponding to the user's utterance. The intent information may be information indicating the user's intent determined by interpreting text data. The intent information may include information indicating an action or function that the user intends to execute using the device.
[0182] An example planner module (1325) can generate a plan using the intent and parameters determined by the natural language understanding module (1323). In one example, the planner module (1325) can determine a plurality of domains necessary to perform a task based on the determined intent. The planner module (1325) can determine a plurality of operations included in each of the plurality of domains determined based on the intent. In one example, the planner module (1325) can determine parameters necessary to execute the determined plurality of operations or result values output by the execution of the plurality of operations. The parameters and the result values can be defined as concepts of a specified format (or class). Accordingly, the plan can include a plurality of operations and / or a plurality of concepts determined by the user's intent. The planner module (1325) can determine the relationships between the plurality of operations and the plurality of concepts in a stepwise (or hierarchical) manner. For example, the planner module (1325) can determine the execution order of a plurality of actions based on the user's intention based on a plurality of concepts. In other words, the planner module (1325) can determine the execution order of a plurality of actions based on parameters required for the execution of the plurality of actions and results output by the execution of the plurality of actions. Accordingly, the planner module (1325) can generate a plan including association information (e.g., ontology) between the plurality of actions and the plurality of concepts. The planner module (1325) can generate the plan using information stored in a capsule database (1330) in which a set of relationships between concepts and actions is stored.
[0183] An example natural language generation module (1327) can convert specified information into text format. The information converted into text format may be in the form of natural language speech. An example text-to-speech module (1329) can convert information in text format into information in speech format.
[0184] 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 a user voice command, it may 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 conversion module. The user terminal (1201) may receive text information from the intelligent server (1300) and output the received text information as voice.
[0185] The capsule database (1330) may store information on the relationships between multiple concepts and actions corresponding to multiple domains. According to an example, a capsule may include multiple action objects (or action information) and / or concept objects (or concept information) included in a plan. According to an example, the capsule database (1330) may store multiple capsules in the form of a concept action network (CAN). According to an example, the multiple capsules may be stored in a function registry included in the capsule database (1330).
[0186] The capsule database (1330) may include a strategy registry that stores strategy information necessary for determining a plan corresponding to a voice input. The strategy information may include reference information for determining a single plan when there are multiple plans corresponding to a user input. According to one example, the capsule database (1330) may include a follow-up registry that stores information on follow-up actions for suggesting follow-up actions to a user in a given situation. The follow-up actions may include, for example, follow-up utterances. 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 that stores vocabulary information included in capsule information. According to one example, the capsule database (1330) may include a dialog registry that stores information on dialogue (or interaction) with a user. The capsule database (1330) may update stored objects through a developer tool. The developer tool may include, for example, a function editor for updating an action object or a concept object. The developer tool may include a vocabulary editor for updating a vocabulary. The developer tool may include a strategy editor for creating and registering a strategy that determines a plan. The developer tool may include a dialog editor for creating a dialogue with a user.The developer tool may include a follow-up editor that activates follow-up goals and allows editing of follow-up utterances that provide hints. These follow-up goals 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).
[0187] An example execution engine (1340) can use the generated plan to produce a result. An end user interface (1350) can transmit the produced result to a 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) can manage information used in an intelligent server (1300). An example big data platform (1370) can collect user data. An example analysis platform (1380) can manage the quality of service (QoS) of an intelligent server (1300). For example, the analysis platform (1380) can manage the components and processing speed (or efficiency) of the intelligent server (1300).
[0188] An example service server (1400) may provide a designated service (e.g., food ordering or hotel reservation) to a user terminal (1201). In one example, the service server (1400) may be a server operated by a third party. An example service server (1400) may provide information for generating a plan corresponding to received user input to an intelligent server (1300). The provided information may be stored in a capsule database (1330). In addition, 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) via a network (1299). The service server (1400) may communicate with the intelligent server (1300) via a separate connection. Although the service server (1400) is depicted as a single 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.
[0189] 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 via a physical button, touch input, or voice input.
[0190] In one example, the user terminal (1201) may provide a voice recognition service through an intelligent app (or voice recognition app) stored internally. In this case, for example, the user terminal (1201) may recognize a user utterance or voice input received through the microphone (1270) and provide the user with a service corresponding to the recognized voice input.
[0191] In one example, the user terminal (1201) may perform a designated action based on the received voice input, either alone or together with the intelligent server (1300) and / or the service server (1400). For example, the user terminal (1201) may execute an app corresponding to the received voice input and perform a designated action through the executed app.
[0192] In one example, when a user terminal (1201) provides a service together with an intelligent server (1300) and / or a service server (1400), the user terminal (1201) can detect user speech using the microphone (1270) and generate a signal (or voice data) corresponding to the detected user speech. The user terminal (1201) can transmit the voice data to the intelligent server (1300) using a communication interface (1290).
[0193] According to an example, an intelligent server (1300) may generate a plan for performing a task corresponding to a voice input received from a user terminal (1201), or a result of performing an operation according to the plan, in response to a voice input. The plan may include, for example, a plurality of operations for performing a task corresponding to the 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 the plurality of operations and / or the plurality of concepts.
[0194] An example user terminal (1201) can receive the response using a communication interface (1290). The user terminal (1201) can output a voice signal generated within the user terminal (1201) to the outside using the speaker (1255), or can output an image generated within the user terminal (1201) to the outside using the display (1260).
[0195]
[0196] Figure 13 is a diagram showing the form in which relationship information between concepts and actions is stored in a database according to an example.
[0197] The capsule database (e.g., the capsule database (1330) of FIG. 12) of the intelligent server (e.g., the intelligent server (1300) of FIG. 12) may store capsules in the form of a CAN (concept action network). The capsule database may store operations for processing tasks corresponding to a user's voice input and parameters necessary for the operations in the form of a CAN (concept action network).
[0198] The capsule database may store a plurality of capsules (e.g., Capsule A (1331), Capsule B (1334)) corresponding to each of a plurality of domains (e.g., applications). In one example, one capsule (e.g., Capsule A (1331)) may correspond to one domain (e.g., location (geo), application). In addition, one capsule may correspond to at least one service provider's capsule (e.g., CP 1 (1332), CP 2 (1333), CP3 (1335), and / or CP4 (1336)) for performing a function for a domain related to the capsule. In one example, one capsule may include at least one operation (1330a) and at least one concept (1330b) for performing a specified function.
[0199] The above natural language platform (e.g., the natural language platform (1320) of FIG. 12) can generate a plan for performing a task corresponding to a received voice input using capsules stored in a capsule database (1330). For example, the planner module of the natural language platform (e.g., the platter module (1325) of FIG. 12) can generate a plan using capsules stored in the capsule database. For example, a plan (1337) can be generated using actions (1331a, 1332a) and concepts (1331b, 1332b) of capsule A (1331) and actions (1334a) and concepts (1334b) of capsule B (1334).
[0200]
[0201] Figure 14 is a diagram showing a screen in which a user terminal processes voice input received through an intelligent app according to an example.
[0202] The user terminal (1201) can execute an intelligent app to process user input through an intelligent server (e.g., the intelligent server (1300) of FIG. 12).
[0203] For example, in the first screen (1210), when the user terminal (1201) recognizes a designated voice input (e.g., wake up!) or receives an input via a hardware key (e.g., a dedicated hardware key), the user terminal (1201) may execute an intelligent app for processing the voice input. For example, the user terminal (1201) may execute the intelligent app while the schedule app is running. For example, the user terminal (1201) may display an object (e.g., an icon) (1411) corresponding to the intelligent app on a display (e.g., the display (1260) of FIG. 12). For example, the user terminal (1201) may receive a voice input by a user's speech. For example, the user terminal (1201) may receive a voice input such as "Tell me my schedule for this week!" According to an example, the user terminal (1201) can display a user interface (UI) (1213) (e.g., an input window) of an intelligent app on which text data of a received voice input is displayed.
[0204] For 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.
[0205]
[0206] Electronic devices can recognize named entities from spoken speech using a voice recognition system. For example, a typical voice recognition system can be trained with training data containing frequently used named entities. While frequently used named entities are recognized well, the recognition rate for less frequently used named entities may be relatively low.
[0207] Electronic devices can compare named entity candidates within an utterance with a named entity dictionary and calibrate them. For example, the electronic device can identify named entity candidates within the utterance and calibrate each identified named entity candidate with the entity in the named entity dictionary that has the closest pronunciation or string distance. However, the entity with the closest pronunciation or string distance to the named entity candidate may not be the entity intended by the user.
[0208] As another example, an electronic device can recognize the intent of a utterance before correcting the entity name and limit the search scope of the entity dictionary based on the intent. However, the result of synthesizing the entities searched within the limited search scope for each entity candidate may deviate from the user's intent.
[0209] An embodiment of the present disclosure can provide an electronic device, an operating method, and a storage medium that can search for a name of an entity that matches a user's utterance intention and reduce misrecognition of the name of an entity by searching for a name of an entity corresponding to a plurality of name candidates included in an utterance using a relationship between the names of entities.
[0210] In addition, the embodiment of the present disclosure can improve the success rate of identifying the speech intention of an electronic device and improve operability by voice command.
[0211]
[0212] An electronic device (101; 1101; 1201) according to an embodiment of the present disclosure may include a microphone (110; 1150; 1270), a memory (120; 1130; 1230), and a processor (130; 1120; 1220). The memory may store instructions. The instructions, when executed by the processor, may cause the electronic device to receive speech through the microphone. The instructions, when executed by the processor, may cause the electronic device to obtain text corresponding to the speech through voice recognition. The instructions, when executed by the processor, may cause the electronic device to extract a plurality of named entity (NE) candidates from the text. The instructions, when executed by the processor, may cause the electronic device to generate a graph query based on the plurality of named entity candidates. The instructions, when executed by the processor, may cause the electronic device to perform a search for a named entity knowledge graph in which named entities are represented as vertices and relationships between named entities are represented as edges, using the graph query. The instructions, when executed by the processor, may cause the electronic device to correct the plurality of named entity candidates based on the search results. The instructions, when executed by the processor, may cause the electronic device to perform an operation corresponding to the corrected plurality of named entity candidates.
[0213] According to one embodiment of the present disclosure, the memory may store entity name data in a table-like entity name table. The instructions, when executed by the processor, may cause the electronic device to generate an entity name knowledge graph, with the entity names included in the first column of the entity name table and the entity names included in the second column as vertices, and the relationships between the first column and the second column as labels of edges.
[0214] According to one embodiment of the present disclosure, the instructions, when executed by the processor, may cause the electronic device to extract the plurality of named entity candidates from the text using the named entity table.
[0215] According to one embodiment of the present disclosure, the memory may store a list of devices owned by a user of the electronic device. The instructions, when executed by the processor, may cause the electronic device to generate an entity-named knowledge graph corresponding to the user based on the list of devices owned.
[0216] According to one embodiment of the present disclosure, the instructions, when executed by the processor, may cause the electronic device to generate the graph query with each of the plurality of named entity candidates as a vertex and the relationships between the named entity candidates as labels of edges.
[0217] According to one embodiment of the present disclosure, the instructions, when executed by the processor, may cause the electronic device to determine a label of an edge corresponding to a verb requesting a specified action included in the utterance. The instructions, when executed by the processor, may cause the electronic device to generate the graph query including the label of the determined edge.
[0218] According to one embodiment of the present disclosure, the instructions, when executed by the processor, may cause the electronic device to identify a category corresponding to a verb requesting a specified action included in the utterance. The instructions, when executed by the processor, may cause the electronic device to determine a label of an edge corresponding to the identified category based on label information of the edge for each category. The instructions, when executed by the processor, may cause the electronic device to generate the graph query including the label of the determined edge.
[0219] According to one embodiment of the present disclosure, the instructions, when executed by the processor, may cause the electronic device to generate the graph query without specifying a label of an edge if the utterance does not include a command, a category corresponding to the command is not identified, or a label of an edge corresponding to the category is not specified.
[0220] According to one embodiment of the present disclosure, the graph query may include a first function for retrieving a vertex having a specified entity name and a second function for retrieving a vertex connected by an edge having a specified label.
[0221] According to one embodiment of the present disclosure, the first function may specify a similarity search distance based on characteristics of the specified entity name. The characteristics may include a confidence level when converting the specified entity name into text.
[0222] According to one embodiment of the present disclosure, the instructions, when executed by the processor, may cause the electronic device to sequentially perform searches corresponding to each of the first function and the second function included in the graph query. The instructions, when executed by the processor, may cause the electronic device to search, in response to the first function, for a vertex having an entity name whose distance is less than or equal to the specified distance to the specified entity name. The instructions, when executed by the processor, may cause the electronic device to search, in response to the second function, for a vertex connected by an edge having the specified label to a vertex included in a search result prior to the second function.
[0223] According to one embodiment of the present disclosure, the search result may include a set of entity names including a plurality of entity names connected on the entity name knowledge graph. The relationship information of the plurality of entity names may be identical to the relationship information of the plurality of entity candidate names.
[0224] A method for operating an electronic device (101; 1101; 1201) according to an embodiment of the present disclosure may include receiving a speech through a microphone (110; 1150; 1270) of the electronic device. The method may include obtaining a text corresponding to the speech through voice recognition. The method may include extracting a plurality of named entity (NE) candidates from the text. The method may include generating a graph query based on the plurality of named entity candidates. The method may include performing a search on a named entity knowledge graph, which represents named entities as vertices and relationships between named entities as edges, using the graph query. The method may include correcting the plurality of named entity candidates based on a search result. The method may include performing an operation corresponding to the corrected plurality of named entity candidates.
[0225] According to one embodiment of the present disclosure, the memory (120; 1130; 1230) of the electronic device can store entity name data in the form of a table. The method can include an operation of generating an entity name knowledge graph using entity names included in a first column of the entity name table and entity names included in a second column as vertices, and using the relationships between the first column and the second column as labels of edges.
[0226] According to one embodiment of the present disclosure, the operation of extracting the plurality of named entity candidates may include an operation of extracting the plurality of named entity candidates from the text using the named entity table.
[0227] According to one embodiment of the present disclosure, the memory (120; 1130; 1230) of the electronic device may store a list of devices owned by a user of the electronic device. The operation of generating the entity-named knowledge graph may include an operation of generating an entity-named knowledge graph corresponding to the user based on the list of owned devices.
[0228] According to one embodiment of the present disclosure, the operation of generating the graph query may include an operation of generating a graph query in which each of the plurality of named entity candidates is a vertex and the relationship between the named entity candidates is a label of an edge.
[0229] According to one embodiment of the present disclosure, the operation of generating the graph query may include determining a label of an edge corresponding to a verb requesting a specified action included in the utterance. The operation of generating the graph query may include generating a graph query including the label of the determined edge.
[0230] According to one embodiment of the present disclosure, the operation of generating the graph query may include an operation of identifying a category corresponding to a verb requesting a specified action included in the utterance. The operation of generating the graph query may include an operation of determining a label of an edge corresponding to the identified category based on label information of the edge for each category. The operation of generating the graph query may include an operation of generating a graph query including the label of the determined edge.
[0231] According to one embodiment of the present disclosure, the operation of generating the graph query may include an operation of generating a graph query that does not specify a label of an edge if the utterance does not include a command, a category corresponding to the command is not identified, or a label of an edge corresponding to the category is not specified.
[0232] According to one embodiment of the present disclosure, the graph query may include a first function for retrieving a vertex having a specified entity name and a second function for retrieving a vertex connected by an edge having a specified label.
[0233] According to one embodiment of the present disclosure, the first function may specify a similarity search distance based on characteristics of the specified entity name. The characteristics may include a confidence level when converting the specified entity name into text.
[0234] According to one embodiment of the present disclosure, the operation of performing the search may include sequentially performing searches corresponding to each of the first function and the second function included in the graph query. The search corresponding to the first function may be searching for a vertex having an entity name whose distance is less than or equal to the specified distance with respect to the specified entity name. The search corresponding to the second function may be searching for a vertex connected by an edge having the specified label to a vertex included in a search result prior to the second function.
[0235] According to one embodiment of the present disclosure, the search result may include a set of entity names including a plurality of entity names connected on the entity name knowledge graph. The relationship information of the plurality of entity names may be identical to the relationship information of the plurality of entity candidates.
[0236] A non-transitory computer-readable storage medium according to one embodiment of the present disclosure may store a program for performing an operating method of an electronic device (101; 1101; 1201). The operating method of the electronic device may include an operation of receiving a speech through a microphone (110; 1150; 1270) of the electronic device. The method may include an operation of obtaining a text corresponding to the speech through voice recognition. The method may include an operation of extracting a plurality of named entity (NE) candidates from the text. The method may include an operation of generating a graph query based on the plurality of named entity candidates. The method may include an operation of performing a search on a named entity knowledge graph, which represents named entities as vertices and relationships between named entities as edges, using the graph query. The method may include an operation of correcting the plurality of named entity candidates based on a search result. The method may include an operation of performing an operation corresponding to the corrected plurality of named entity candidates.
[0237]
[0238] Electronic devices according to the various embodiments disclosed in this document may take various forms. 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 the embodiments of this document are not limited to the aforementioned devices.
[0239] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals 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 items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another component (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0240] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0241] Various embodiments of the present document may be implemented as software (e.g., a program (1140)) including one or more instructions stored in a storage medium (e.g., an internal memory (1136) or an external memory (1138)) readable by a machine (e.g., an electronic device (1101)). For example, a processor (e.g., a processor (1120)) of the machine (e.g., an electronic device (1101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0242] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). ™ ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). 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 an intermediary server.
[0243] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and arranged in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the 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, omitted, or one or more other operations may be added.
Claims
1. In electronic devices, mike; memory; and Contains a processor, The above memory stores instructions, The above instructions, when executed by the processor, cause the electronic device to: Receive speech through the above microphone, Obtain text corresponding to said utterance through speech recognition, Extract multiple named entity (NE) candidates from the above text, Generate a graph query based on the above multiple entity name candidates, Using the above graph query, a search is performed on an entity name knowledge graph in which entity names are represented as vertices and relationships between entity names are represented as edges. Based on the search results, the above multiple entity name candidates are corrected, An electronic device that performs an action corresponding to the above-mentioned multiple entity name candidates.
2. In claim 1, The above memory stores entity name data in the form of an entity name table. The above instructions, when executed by the processor, cause the electronic device to: An electronic device that generates an entity name knowledge graph in which the entity names included in the first column of the entity name table and the entity names included in the second column are used as vertices, and the relationships between the first column and the second column are used as labels of edges.
3. In claim 2, The above instructions, when executed by the processor, cause the electronic device to: An electronic device for extracting a plurality of named entity candidates from the text using the named entity table.
4. In claim 1, The above memory stores a list of devices owned by the user of the above electronic device, The above instructions, when executed by the processor, cause the electronic device to: An electronic device that generates an entity name knowledge graph corresponding to the user based on the list of the above-mentioned possessed devices.
5. In claim 1, The above instructions, when executed by the processor, cause the electronic device to: An electronic device that generates a graph query in which each of the plurality of named entity candidates is a vertex and the relationships between the named entity candidates are labels of edges.
6. In claim 1, The above instructions, when executed by the processor, cause the electronic device to: Determine the label of the edge corresponding to the verb requesting the specified action included in the above utterance, An electronic device for generating a graph query including the labels of the edges determined above.
7. In claim 1, The above instructions, when executed by the processor, cause the electronic device to: Identify the category corresponding to the verb requesting the specified action included in the above utterance, Based on the label information of the edge by category, the label of the edge corresponding to the identified category is determined, An electronic device configured to generate a graph query including the labels of the determined edges.
8. In claim 1, An electronic device, wherein the graph query comprises a first function for retrieving a vertex having a specified entity name and a second function for retrieving a vertex connected by an edge having a specified label.
9. In claim 8, The above first function specifies a similar search distance based on the characteristics of the above-mentioned entity name, An electronic device, wherein the above characteristics include a confidence level when converting the specified entity name into text.
10. In claim 8, The above instructions, when executed by the processor, cause the electronic device to: Sequentially performing searches corresponding to each of the first function and the second function included in the above graph query, In response to the first function, search for a vertex having an entity name with a distance less than or equal to the specified distance for the specified entity name, An electronic device, which, in response to the second function, searches for a vertex connected by an edge having the specified label to a vertex included in a search result before the second function.
11. In claim 1, The above search result includes a set of entity names including multiple entity names connected on the entity name knowledge graph, An electronic device in which the relationship information of the plurality of entity names is identical to the relationship information of the plurality of entity name candidates.
12. In the method of operating an electronic device, An action of receiving speech through a microphone of said electronic device; An action of obtaining text corresponding to said utterance through speech recognition; An operation of extracting multiple named entity (NE) candidates from the above text; An operation of generating a graph query based on the above multiple named entity candidates; An operation of performing a search on an entity name knowledge graph in which entity names are represented as vertices and relationships between entity names are represented as edges using the above graph query; An operation of correcting the plurality of entity name candidates based on the search results; and A method comprising an action of performing an action corresponding to the above-mentioned multiple named entity candidates.
13. In claim 12, The memory of the above electronic device stores entity name data in table form, The above method, A method further comprising an operation of generating an entity name knowledge graph using entity names included in a first column of an entity name table and entity names included in a second column as vertices, and using the relationships between the first column and the second column as labels of edges.
14. In claim 12, The memory of the electronic device stores a list of devices owned by a user of the electronic device, The operation of generating the above entity name knowledge graph is: A method comprising the action of generating an entity knowledge graph corresponding to the user based on the list of the possessed devices.
15. In claim 12, The action of generating the above graph query is: A method comprising the operation of generating a graph query in which each of the plurality of named entity candidates is a vertex and the relationships between the named entity candidates are labels of edges.
Citation Information
Patent Citations
Method and apparatus for channel state information reporting in wireless communication systems
KR1020210019827A
Strainer and pressing device
KR1020220071082A
Server for controlling home network based on sleeping state and method of operating the same
KR1020230119566A
Proportional resonant control apparatus based on stationary reference frame of 3 phase 4 wire inverter
KR102726955B1
KR20190017619A
