Natural language processing apparatus and natural language processing method
AssigneesHyundai Motor Company, Kia Corporation
InventorChang Woo Chun
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a natural language processing apparatus and a natural language processing method that may determine whether a user's speech command is a compound sentence or a complex sentence based on an output of a natural language understanding module, and when the user's speech command is a compound sentence or a complex sentence, recursively call the natural language understanding module, thereby executing all of the plurality of functions expressed as a single sentence.
Claims20
A natural language processing apparatus comprising:
- at least one memory storing computer-executable instructions;
- a processor coupled with the at least one memory, wherein the processor is configured to execute the computer-executable instructions;
- a speech recognition module executed by the processor, the speech recognition module configured to convert a speech command of a user to a text;
- a natural language understanding module executed by the processor, the natural language understanding module configured to classify an intent corresponding to the speech command and extract a slot included in the speech command based on the text;
- and
- a control module executed by the processor, the control module configured to determine whether the speech command includes a compound sentence or a complex sentence based on the intent classified by the natural language understanding module, and when the speech command includes the compound sentence or the complex sentence, re-input the text corresponding to the speech command to the natural language understanding module again,
- wherein a sentence including a plurality of intents is defined as the compound sentence or the complex sentence, and a sentence including a single intent is defined as a single sentence, and
- among the plurality of intents, when two or more intents have different actions, the sentence is determined to be the complex sentence, and when actions of the plurality of intents are the same but slots are different, the sentence is determined to be the compound sentence.
A natural language processing apparatus comprising:
- at least one memory storing computer-executable instructions;
- a processor coupled with the at least one memory, wherein the processor is configured to execute the computer-executable instructions;
- a speech recognition module executed by the processor, the speech recognition module configured to convert a speech command of a user to a text;
- a natural language understanding module executed by the processor, the natural language understanding module configured to classify an intent corresponding to the speech command and extract a slot included in the speech command based on the text;
- and
- a control module executed by the processor, the control module configured to re-input a functional speech corresponding to the speech command, the functional speech indicating a function to be registered that matches a personal command to the natural language understanding module again, when the intent classified by the natural language understanding module is registration of the personal command,
- wherein the natural language understanding module is re-invoked to perform intent classification and slot extraction for the functional speech,
- wherein the control module is configured to determine whether the functional speech is a single sentence, a compound sentence, or a complex sentence,
- wherein a sentence including a plurality of intents is defined as the compound sentence or the complex sentence, and a sentence including a single intent is defined as a single sentence, and
- among the plurality of intents, when two or more intents have different actions, the sentence is determined to be the complex sentence, and when actions of the plurality of intents are the same but slots are different, the sentence is determined to be the compound sentence.
A natural language processing method comprising:
- converting, by a speech recognition module executed by a processor, a speech command of a user to a text;
- classifying, by a natural language understanding module executed by the processor, an intent corresponding to the speech command and extracting a slot included in the speech command based on the text;
- determining, by a control module executed by the processor, whether the speech command includes a compound sentence or a complex sentence based on the classified intent;
- and
- when the speech command includes the compound sentence or the complex sentence, re-inputting, by the control module, the text corresponding to the speech command to the natural language understanding module again,
- wherein a sentence including a plurality of intents is defined as the compound sentence or the complex sentence, and a sentence including a single intent is defined as a single sentence, and
- among the plurality of intents, when two or more intents have different actions, the sentence is determined to be the complex sentence, and when actions of the plurality of intents are the same but slots are different, the sentence is determined to be the compound sentence.
Dependencies are inferred from the claim text.