KR20220153852A - Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method - Google Patents

Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method Download PDF

Info

Publication number
KR20220153852A
KR20220153852A KR1020210061343A KR20210061343A KR20220153852A KR 20220153852 A KR20220153852 A KR 20220153852A KR 1020210061343 A KR1020210061343 A KR 1020210061343A KR 20210061343 A KR20210061343 A KR 20210061343A KR 20220153852 A KR20220153852 A KR 20220153852A
Authority
KR
South Korea
Prior art keywords
corpus
utterance
natural language
language processing
intended
Prior art date
Application number
KR1020210061343A
Other languages
Korean (ko)
Other versions
KR102624790B1 (en
Inventor
최동현
박일남
이다니엘
서가은
고병일
신명철
Original Assignee
주식회사 카카오엔터프라이즈
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 카카오엔터프라이즈 filed Critical 주식회사 카카오엔터프라이즈
Priority to KR1020210061343A priority Critical patent/KR102624790B1/en
Publication of KR20220153852A publication Critical patent/KR20220153852A/en
Application granted granted Critical
Publication of KR102624790B1 publication Critical patent/KR102624790B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/04Segmentation; Word boundary detection
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use

Abstract

The present invention relates to a technology for recognizing intent of a user in speech including multi-intent in a more accurate manner. More specifically, the present invention relates to a technology, which receives user speech, stores a first corpus and a second corpus, receives connection information between the first and second corpora, generates a combination corpus, in which the first and second corpora are combined, based on the received connection information, trains at least one natural language processing model based on the combination corpus, and processes the input user speech based on the at least one natural language processing model. The present invention has an advantage of being able to effectively generate a corpus for recognizing multi-intention speech.

Description

다중 의도 발화의 의도 분석 및 처리를 위한 자연어 처리 장치, 프로그램 및 그것의 제어 방법{NATURAL LANGUAGE PROCESSING APPARATUS FOR INTENT ANALYSIS AND PROCESSING OF MULTI-INTENT SPEECH, PROGRAM AND ITS CONTROL METHOD}Natural language processing device, program, and control method for intent analysis and processing of multi-intent utterances

본 발명은 다중 의도 발화를 분석하고 처리하기 위한 자연어 처리 장치 및 그것의 제어 방법에 관한 것으로 보다 구체적으로는, 여러 개의 의도가 연이어 입력되는 형태의 대등 의도 발화와 한 개의 의도의 결과가 다른 의도의 처리에 필요한 종속 의도 발화를 효과적으로 처리하기 위한 장치 및 제어 방법에 관한 것이다.The present invention relates to a natural language processing apparatus and a control method for analyzing and processing multi-intent utterances, and more specifically, to a parallel intention utterance in which several intentions are input in succession and the result of one intention is another intention. It relates to an apparatus and control method for effectively processing dependent intent utterances required for processing.

챗봇(chatBot)은 사용자와 컴퓨터가 자연어 형태로 다양한 주제의 일상적인 대화를 주고받는 시스템이다. 이러한 챗봇은, 정보 획득, FAQ 시스템 등 목적 지향 시스템과 통합되어 자연스러운 대화 인터페이스를 제공하는 요소 기술로 사용되고 있다.A chatbot is a system in which a user and a computer exchange daily conversations on various topics in the form of natural language. These chatbots are used as element technologies that provide a natural conversation interface by being integrated with purpose-oriented systems such as information acquisition and FAQ systems.

사용자 발화를 이해하고, 명령을 적절하게 수행하거나 발화에 대하여 응답을 수행하기 위해서는 자연어 처리(natural language processing) 기술이 요구된다. 자연어 처리 기술이란, 컴퓨터와 인간 언어 사이의 상호 작용하는 기술로 인공지능의 핵심 기능 중 하나이다.Natural language processing technology is required to understand a user's speech, properly execute a command, or perform a response to the speech. Natural language processing technology is one of the core functions of artificial intelligence as a technology for interaction between computer and human language.

사용자 발화에는 두 개 이상의 의도가 하나의 문장에 포함되는 경우가 다수 존재한다. 예를 들어, "운세 봐주고 날씨 알려줘"라는 하나의 문장에는, 운세를 봐달라는 제 1 의도와 날씨 정보를 요청하는 제 2 의도가 포함된다. 이와 같이 서로 개별적인 의도가 단순 나열되는 경우를 대등 의도 발화라고 분류한다.In user speech, there are many cases in which two or more intentions are included in one sentence. For example, in one sentence “Give me a fortune and tell me the weather”, a first intention to ask for a fortune and a second intention to request weather information are included. In this way, cases in which individual intentions are simply listed are classified as parallel intention utterances.

이에 반하여, 어느 하나의 의도에 대한 결과값이 다른 의도를 처리하는데 필요한 경우, 종속 의도 발화로 분류할 수 있다. 예를 들어 "김치찌개 요리법을 찾아서(제 1 의도) 나에게 문자로 보내줘(제 2 의도)"라는 사용자 발화가 있을 수 있다. 제 2 의도와 관련되는 작업을 수행하기 위해서는, 제 1 의도와 관련된 작업의 결과물이 필요하다는 특징이 존재한다.In contrast, when the result value for one intent is necessary to process another intent, it can be classified as a dependent intent utterance. For example, there may be a user utterance "Find a recipe for kimchi stew (first intention) and text me (second intent)." In order to perform a task related to the second intention, a result of the task related to the first intention is required.

대등 의도 발화의 경우에는, 특정 키워드를 중심으로 앞뒤 문장을 분할하는 방식을 통하여 복수 개의 의도 간에 구분을 할 수 있다. 하지만 종속 의도 발화의 경우에는, 특정 키워드를 기준으로 분할할 수 없다는 문제점이 존재한다.In the case of parallel intention utterances, a plurality of intentions can be distinguished through a method of dividing front and rear sentences around a specific keyword. However, in the case of dependent intention utterances, there is a problem that segmentation cannot be performed based on specific keywords.

따라서, 사용자 발화에 포함되어 있는 종속 의도 발화를 명확하게 구분하여 처리할 수 있는 자연어 처리 장치 및 제어 방법에 대한 개발이 요구되는 실정이다.Accordingly, there is a demand for development of a natural language processing device and control method capable of clearly distinguishing and processing dependent intended utterances included in user utterances.

본 발명이 해결하고자 하는 과제는 대등 의도 발화와 종속 의도 발화를 구분하여, 다중 의도 발화에서 정확한 사용자 의도를 파악할 수 있는 장치 및 방법을 제공하는 것이다.An object to be solved by the present invention is to provide an apparatus and method capable of identifying an accurate user intent in multi-intent utterances by distinguishing between peer-intended utterances and subordinate-intended utterances.

본 발명이 해결하고자 하는 다른 과제는 종속 의도 발화를 인식하기 위한 말뭉치를 자동으로 생성하기 위한 장치 및 방법을 제공하는 것이다.Another problem to be solved by the present invention is to provide an apparatus and method for automatically generating a corpus for recognizing dependent intended utterances.

본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art from the description below. You will be able to.

상기 또는 다른 과제를 해결하기 위해 본 발명의 일 측면에 따르면, 명령어들을 저장하는 메모리; 및 상기 저장된 명령어들을 실행하도록 설정된 프로세서를 포함하고, 상기 프로세서는: 사용자 발화를 입력 받고, 제 1 말뭉치 및 제 2 말뭉치를 저장하며, 상기 제 1 및 제 2 말뭉치 간 연결 정보를 입력 받고, 상기 입력 받은 연결 정보에 기초하여 상기 제 1 및 제 2 말뭉치를 조합한 말뭉치인 조합 말뭉치를 생성하며, 상기 조합 말뭉치에 기초하여 적어도 하나의 자연어 처리 모델을 훈련시키고, 상기 적어도 하나의 자연어 처리 모델에 기초하여 상기 입력된 사용자 발화를 처리하는, 자연어 처리 장치를 제공한다.According to one aspect of the present invention to solve the above or other problems, a memory for storing instructions; and a processor configured to execute the stored instructions, wherein the processor: receives user utterance, stores a first corpus and a second corpus, receives connection information between the first and second corpus, and receives the input Based on the received connection information, a combined corpus that is a corpus combining the first and second corpus is generated, at least one natural language processing model is trained based on the combined corpus, and based on the at least one natural language processing model Provided is a natural language processing device that processes the input user utterance.

상기 프로세서는, 상기 입력된 사용자 발화에 포함되어 있는 복수 개의 의도를 기준으로 상기 입력된 사용자 발화를 복수 개의 발화로 분할할 수 있다.The processor may divide the input user speech into a plurality of speeches based on a plurality of intentions included in the input user speech.

상기 프로세서는, 상기 입력된 사용자 발화가 대등 의도 발화인지 여부를 판단하고, 상기 대등 의도 발화인 것으로 판단되면, 상기 대등 분할기에 기초하여 상기 입력된 사용자 발화를 복수 개의 부분 대등 의도 발화로 분할할 수 있다.The processor may determine whether the input user utterance is an intended parallel utterance, and if it is determined that the input user utterance is an intended parallel utterance, the input user utterance may be divided into a plurality of partial parallel intended utterances based on the equal divider. have.

상기 프로세서는, 상기 대등 의도 발화가 아닌 것으로 판단되면, 상기 입력된 사용자 발화가 종속 의도 발화인지 판단하고, 상기 종속 의도 발화인 것으로 판단되면, 상기 종속 분할기에 기초하여 상기 입력된 사용자 발화를 복수 개의 부분 종속 의도 발화로 분할할 수 있다.The processor determines whether the input user utterance is a dependent intended utterance if it is determined that it is not the equivalent intended utterance, and if it is determined that the input user utterance is the dependent intended utterance, the input user utterance is divided into a plurality of sub-divisions based on the dependent divider. It can be divided into partial dependent intent utterances.

상기 복수 개의 부분 종속 의도 발화는, 데이터 부분 종속 의도 발화 및 액션 부분 종속 의도 발화를 포함할 수 있다. The plurality of partial dependent intended utterances may include a data partial dependent intended utterance and an action partial dependent intended utterance.

상기 제 1 말뭉치는 데이터부 말뭉치이고, 상기 제 2 말뭉치는 액션부 말뭉치일 수 있다.The first corpus may be a data part corpus, and the second corpus may be an action part corpus.

상기 연결 정보는, 상기 제 1 및 제 2 말뭉치 중 적어도 하나를 식별하는 정보를 포함할 수 있다.The connection information may include information identifying at least one of the first and second corpora.

상기 제 1 및 제 2 말뭉치 각각은 복수 개의 발화 문구를 포함하고, 상기 조합 말뭉치는, 상기 제 1 말뭉치에 포함된 발화 문구와, 상기 제 2 말뭉치에 포함된 발화 문구를 각각 하나씩 추출하여 매칭한 말뭉치일 수 있다.Each of the first and second corpora includes a plurality of spoken phrases, and the combined corpus is a corpus obtained by extracting and matching one spoken phrase included in the first corpus and one spoken phrase included in the second corpus. can be

상기 또는 다른 과제를 해결하기 위해 본 발명의 다른 측면에 따르면, 사용자 발화를 입력 받는 단계; 제 1 말뭉치 및 제 2 말뭉치를 저장하는 단계; 상기 제 1 및 제 2 말뭉치 간 연결 정보를 입력 받는 단계; 상기 입력 받은 연결 정보에 기초하여 상기 제 1 및 제 2 말뭉치를 조합한 말뭉치인 조합 말뭉치를 생성하는 단계; 상기 조합 말뭉치에 기초하여 적어도 하나의 자연어 처리 모델을 훈련시키는 단계; 및 상기 적어도 하나의 자연어 처리 모델에 기초하여 상기 입력된 사용자 발화를 처리하는 단계를 포함하는, 자연어 처리 장치의 제어 방법을 제공한다.According to another aspect of the present invention to solve the above or other problems, receiving a user speech; storing the first corpus and the second corpus; receiving connection information between the first and second corpus; generating a combined corpus, which is a corpus obtained by combining the first and second corpus, based on the input connection information; training at least one natural language processing model based on the combination corpus; and processing the input user utterance based on the at least one natural language processing model.

상기 사용자 발화를 처리하는 단계는, 상기 입력된 사용자 발화에 포함되어 있는 복수 개의 의도를 기준으로 상기 입력된 사용자 발화를 복수 개의 발화로 분할하는 단계를 포함할 수 있다.The processing of the user speech may include dividing the input user speech into a plurality of speeches based on a plurality of intentions included in the input user speech.

상기 사용자 발화를 처리하는 단계는, 상기 입력된 사용자 발화가 대등 의도 발화인지 여부를 판단하는 단계; 및 상기 대등 의도 발화인 것으로 판단되면, 상기 입력된 사용자 발화를 복수 개의 부분 대등 의도 발화로 분할하는 단계를 더 포함할 수 있다.The processing of the user utterance may include determining whether the input user utterance is a peer-to-peer utterance; and dividing the input user utterance into a plurality of partial equivalent intended utterances if it is determined that the utterance is intended to be equivalent utterance.

상기 사용자 발화를 처리하는 단계는, 상기 대등 의도 발화가 아닌 것으로 판단되면, 상기 입력된 사용자 발화가 종속 의도 발화인지 판단하는 단계; 및 상기 종속 의도 발화인 것으로 판단되면, 상기 입력된 사용자 발화를 복수 개의 부분 종속 의도 발화로 분할하는 단계를 더 포함할 수 있다.The processing of the user utterance may include: determining whether the input user utterance is a subordinate intended utterance when it is determined that the user utterance is not a parallel intended utterance; and dividing the input user utterance into a plurality of partial dependent intended utterances if it is determined that the dependent intended utterance is the dependent intended utterance.

상기 복수 개의 부분 종속 의도 발화는, 데이터 부분 종속 의도 발화 및 액션 부분 종속 의도 발화를 포함할 수 있다.The plurality of partial dependent intended utterances may include a data partial dependent intended utterance and an action partial dependent intended utterance.

상기 제 1 말뭉치는 데이터부 말뭉치고, 상기 제 2 말뭉치는 액션부말뭉치일 수 있다.The first corpus may be a data part corpus, and the second corpus may be an action part corpus.

상기 연결 정보는, 제 1 및 제 2 말뭉치 중 적어도 하나를 식별하는 정보를 포함할 수 있다.The connection information may include information identifying at least one of the first and second corpora.

상기 제 1 및 제 2 말뭉치 각각은 복수 개의 발화 문구를 포함하고, 상기 조합 말뭉치는, 상기 제 1 말뭉치에 포함된 발화 문구와, 상기 제 2 말뭉치에 포함된 발화 문구를 각각 하나씩 추출하여 매칭한 말뭉치일 수 있다.Each of the first and second corpora includes a plurality of spoken phrases, and the combined corpus is a corpus obtained by extracting and matching one spoken phrase included in the first corpus and one spoken phrase included in the second corpus. can be

본 발명에 따른 자연어 처리 장치, 프로그램 및 제어 방법의 효과에 대해 설명하면 다음과 같다.Effects of the natural language processing device, program, and control method according to the present invention are described below.

본 발명의 실시 예들 중 적어도 하나에 의하면, 다중 의도 발화를 인식하기 위한 말뭉치를 효과적으로 생성할 수 있다는 장점이 있다.According to at least one of the embodiments of the present invention, there is an advantage in that a corpus for recognizing multi-intended utterances can be effectively generated.

또한, 본 발명의 실시 예들 중 적어도 하나에 의하면, 종속 의도 발화에서 사용자 의도를 정확하게 판단하여 자연어 처리를 수행할 수 있다는 장점이 있다.In addition, according to at least one of the embodiments of the present invention, there is an advantage in that natural language processing can be performed by accurately determining a user's intention in a subordinate intention utterance.

본 발명의 적용 가능성의 추가적인 범위는 이하의 상세한 설명으로부터 명백해질 것이다. 그러나 본 발명의 사상 및 범위 내에서 다양한 변경 및 수정은 당업자에게 명확하게 이해될 수 있으므로, 상세한 설명 및 본 발명의 바람직한 실시 예와 같은 특정 실시 예는 단지 예시로 주어진 것으로 이해되어야 한다.A further scope of the applicability of the present invention will become apparent from the detailed description that follows. However, since various changes and modifications within the spirit and scope of the present invention can be clearly understood by those skilled in the art, it should be understood that the detailed description and specific examples such as preferred embodiments of the present invention are given as examples only.

도 1은 본 발명의 일실시예에 따른 자연어 처리 장치(100)의 블록도를 도시하는 도면이다.
도 2는 본 발명의 일실시예에 따라 두 개의 말뭉치를 조합하여 조합 말뭉치를 생성하는 예시를 도시한다.
도 3은 도 2의 제 1 및 제 2 말뭉치(200-1, 200-2) 및 연결 정보(203)에 기초하여 생성된 조합 말뭉치(210)의 예시를 도시한다.
도 4는 본 발명의 일실시예에 따른 말뭉치 생성부(106)가 종속 분할 말뭉치를 생성하는 방법을 도시하는 도면이다.
도 5는 본 발명의 일실시예에 따른 발화 처리부(104)를 구성하는 자연어 처리 모델을 도시하는 도면이다.
도 6은 본 발명의 일실시예에 따른 대등 분류기(501) 및 단일-종속 분류기(502)의 일예시를 도시하는 도면이다.
도 7은 본 발명의 일실시예에 따른 대등 분할기(503) 및 종속 분할기(504)의 일예시를 도시하는 도면이다.
도 8은 본 발명의 일실시예에 따른 발화 처리부(104)가 사용자 발화 처리 순서를 도시하는 도면이다.
도 9는 본 발명의 일실시예에 따른 대등 분할기(503)가 의도를 기준으로 발화를 분할하는 일예시를 도시한다.
도 10은 본 발명의 일실시예에 따른 종속 분할기(504)가 종속 의도 발화를 분할하는 예시를 도시한다.
도 11은 본 발명의 일실시예에 따른 발화 처리부(104)가 단일 의도 발화를 처리하는 예시를 도시한다.
도 12는 본 발명의 일실시예에 따른 대등 의도와 종속 의도가 혼재 시 발화 처리부(104)의 처리 개념도를 도시한다.
도 13은 일 실시예에 따른 자연어 처리 장치(100)의 구성을 도시한 도면이다.
1 is a block diagram of a natural language processing apparatus 100 according to an embodiment of the present invention.
2 shows an example of generating a combined corpus by combining two corpora according to an embodiment of the present invention.
FIG. 3 shows an example of a combined corpus 210 generated based on the first and second corpora 200 - 1 and 200 - 2 of FIG. 2 and the connection information 203 .
4 is a diagram illustrating a method in which the corpus generator 106 generates a subordinate segmented corpus according to an embodiment of the present invention.
5 is a diagram illustrating a natural language processing model constituting the speech processing unit 104 according to an embodiment of the present invention.
6 is a diagram illustrating an example of a peer classifier 501 and a single-subordinate classifier 502 according to one embodiment of the present invention.
7 is a diagram illustrating an example of a peer divider 503 and a subordinate divider 504 according to one embodiment of the present invention.
8 is a diagram illustrating a user speech processing sequence by the speech processing unit 104 according to an embodiment of the present invention.
9 illustrates an example in which a peer splitter 503 divides utterances based on intent according to an embodiment of the present invention.
10 illustrates an example in which a dependent splitter 504 splits a dependent intent utterance according to one embodiment of the present invention.
11 illustrates an example in which the speech processing unit 104 processes single-intention speech according to an embodiment of the present invention.
FIG. 12 illustrates a conceptual diagram of processing of the speech processing unit 104 when an equivalent intention and a subordinate intention coexist according to an embodiment of the present invention.
13 is a diagram illustrating a configuration of a natural language processing device 100 according to an exemplary embodiment.

이하, 첨부된 도면을 참조하여 본 명세서에 개시된 실시 예를 상세히 설명하되, 도면 부호에 관계없이 동일하거나 유사한 구성요소는 동일한 참조 번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. 이하의 설명에서 사용되는 구성요소에 대한 접미사 "모듈" 및 "부"는 명세서 작성의 용이함만이 고려되어 부여되거나 혼용되는 것으로서, 그 자체로 서로 구별되는 의미 또는 역할을 갖는 것은 아니다. 또한, 본 명세서에 개시된 실시 예를 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 명세서에 개시된 실시 예의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 첨부된 도면은 본 명세서에 개시된 실시 예를 쉽게 이해할 수 있도록 하기 위한 것일 뿐, 첨부된 도면에 의해 본 명세서에 개시된 기술적 사상이 제한되지 않으며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. Hereinafter, the embodiments disclosed in this specification will be described in detail with reference to the accompanying drawings, but the same or similar elements are given the same reference numerals regardless of reference numerals, and redundant description thereof will be omitted. The suffixes "module" and "unit" for components used in the following description are given or used together in consideration of ease of writing the specification, and do not have meanings or roles that are distinct from each other by themselves. In addition, in describing the embodiments disclosed in this specification, if it is determined that a detailed description of a related known technology may obscure the gist of the embodiment disclosed in this specification, the detailed description thereof will be omitted. In addition, the accompanying drawings are only for easy understanding of the embodiments disclosed in this specification, the technical idea disclosed in this specification is not limited by the accompanying drawings, and all changes included in the spirit and technical scope of the present invention , it should be understood to include equivalents or substitutes.

제1, 제2 등과 같이 서수를 포함하는 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되지는 않는다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.Terms including ordinal numbers, such as first and second, may be used to describe various components, but the components are not limited by the terms. These terms are only used for the purpose of distinguishing one component from another.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, but other elements may exist in the middle. It should be. On the other hand, when an element is referred to as “directly connected” or “directly connected” to another element, it should be understood that no other element exists in the middle.

단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. Singular expressions include plural expressions unless the context clearly dictates otherwise.

본 출원에서, "포함한다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.In this application, terms such as "comprise" or "have" are intended to designate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, but one or more other features It should be understood that the presence or addition of numbers, steps, operations, components, parts, or combinations thereof is not precluded.

사용자의 발화에 복수 개의 의도가 포함되어 있을 때, 복수 개의 의도 간의 관계에 따라서 대등 의도 발화와 종속 의도 발화로 구분될 수 있다.When a user's utterance includes a plurality of intentions, it may be classified into an equivalent intention utterance and a subordinate intention utterance according to a relationship between the plurality of intentions.

대등 의도 발화에 포함되는 복수 개의 의도 간에 관계는, (1) 각 의도를 나타내는 발화들이 하나의 문장 내에 별개로 존재하고, (2) 각 부분 발화들은 그 자체로 온전한 하나의 의도를 이루고 있으며, (3) 복수 개의 의도를 동시에 처리 가능하다는 특징이 존재한다.The relationship between a plurality of intents included in a parallel intent utterance is that (1) utterances representing each intent exist separately in one sentence, (2) each partial utterance constitutes a complete intent by itself, ( 3) There is a feature that a plurality of intentions can be processed simultaneously.

대등 의도 발화의 예시로, "운세 봐주고(제 1 의도), 날씨 알려줘(제 2 의도)"를 들 수 있다.As an example of a parallel intention utterance, “tell me the fortune (first intention), tell me the weather (second intention)”.

종속 의도 발화에 포함되는 복수 개의 의도 간에 관계는, (1) 각 의도를 나타내는 발화들이 서로 섞여 있을 수 있고, (2) 각 부분 발화들은 그 자체로 온전한 의도를 이루지 못할 수도 있으며, (3) 각 의도간 처리 순서가 존재하다는 특징이 존재한다.The relationship between a plurality of intents included in a dependent intent utterance is: (1) utterances representing each intent may be mixed with each other, (2) each partial utterance may not constitute a complete intent by itself, and (3) each There is a feature that there is a processing order between intentions.

종속 의도 발화의 예시로, "나한테 문자로(제 1 의도), 김치찌개 요리법 찾아서(제 2 의도) 보내줘(제 1 의도)"를 들 수 있다. 이러한 예시에서 확인할 수 있듯이, 복수 개의 의도가 하나의 문장에 혼재되어 있기 때문에, 의도를 기준으로 발화를 분리하는 것이 쉬운 과정이 아니다.An example of a dependent intent utterance is "Text me (first intent), find a recipe for kimchi stew (second intent) and send it to me (first intent)". As can be seen in this example, since multiple intentions are mixed in one sentence, it is not an easy process to separate utterances based on intentions.

상기 종속 의도 발화를 구성하는 복수 개의 의도 각각을 부분 의도라고 부른다. 그리고, 종속 의도 발화는 데이터부와 액션부를 포함하도록 구성될 수 있다. 데이터부는 데이터를 생산하는 의도를 의미하며, 액션부는 데이터부에 의해서 생산된 데이터(결과 데이터)를 받아 처리하는 액션 의도를 의미한다.Each of a plurality of intents constituting the dependent intent utterance is called a partial intent. And, the dependent intention utterance may be configured to include a data part and an action part. The data part means the intention to produce data, and the action part means the action intention to receive and process the data (result data) produced by the data part.

이에 따라서, 종속 의도 발화를 처리하기 위한 방법은 기존 대등 의도 발화를 처리하기 위한 방법과 달리 (1) 훈련을 위한 말뭉치 생성을 위해 특별한 처리가 필요하고 (2) 의도 분할을 위한 별도 모듈 필요하며, (3) 처리 순서를 보존하여 실제 실행 모듈에 전달하고 결과값을 받는 스케쥴러(scheduler)가 요구된다.Accordingly, the method for processing dependent intent utterances, unlike the existing method for processing parallel intent utterances, (1) requires special processing to generate a corpus for training, (2) requires a separate module for intent segmentation, (3) A scheduler that preserves the processing order and delivers it to the actual execution module and receives the result value is required.

한편, 대등 의도 발화와 종속 의도 발화는 혼재되어 사용자 발화에 포함되어 있을 수도 있다. 대등 의도 발화 내에 종속 의도 발화가 포함될 수 있다. 예를 들어, "운세 좀 봐주고 김치찌개 요리법 찾아서 나에게 문자로 보내줘"라는 사용자 발화를 들 수 있다. "운세를 좀 봐주고"와 "김치찌개 요리법 찾아서 나에게 문자로 보내줘"는 서로 대등 의도 발화 관계이나, "김치찌개 요리법 찾아서"와 "나에게 문자로 보내줘"는 종속 의도 발화 관계이다.Meanwhile, parallel intention utterances and subordinate intention utterances may be mixed and included in user utterances. A subordinate intent utterance may be included within a peer intent utterance. For example, the user's speech "Tell me your fortune, find a recipe for kimchi stew, and send it to me as a text message." “Look for a recipe for kimchi stew” and “Find a recipe for kimchi stew and send it to me as a text message” have an equal intention utterance relationship, but “find a recipe for kimchi stew” and “send me a text message” have a relationship of subordinate intention utterances.

반대로 종속 의도 발화 내에 대등 의도 발화가 포함되는 경우도 존재할 수 있다.Conversely, there may be a case in which a parallel intended utterance is included in a subordinate intended utterance.

도 1은 본 발명의 일실시예에 따른 자연어 처리 장치(100)의 블록도를 도시하는 도면이다.1 is a block diagram of a natural language processing apparatus 100 according to an embodiment of the present invention.

구체적으로 자연어 처리 장치(100)는, 발화 입력부(101), 말뭉치 데이터베이스(102), 연결 정보 입력부(103), 발화 처리부(104), 모델 훈련부(105) 및 말뭉치 생성부(106)를 포함하도록 구성될 수 있다. 도 1에 도시된 구성요소들은 자연어 처리 장치(100)를 구현하는데 있어서 필수적인 것은 아니어서, 본 명세서 상에서 설명되는 자연어 처리 장치(100)는 위에서 열거된 구성요소들 보다 많거나, 또는 적은 구성요소들을 가질 수 있다.Specifically, the natural language processing device 100 includes a speech input unit 101, a corpus database 102, a connection information input unit 103, a speech processing unit 104, a model training unit 105, and a corpus generator 106. can be configured. The components shown in FIG. 1 are not essential to implement the natural language processing device 100, so the natural language processing device 100 described in this specification includes more or fewer components than the components listed above. can have

발화 입력부(101)는 사용자 발화를 입력 받는 구성이다. 입력된 사용자 발화는 발화 처리부(104)로 전달될 수 있다.The speech input unit 101 is a component that receives user speech. The input user speech may be transmitted to the speech processing unit 104 .

말뭉치 데이터베이스(102)는 적어도 하나의 말뭉치를 저장하는 구성이다. 말뭉치 또는 코퍼스(영어: corpus, 복수형: corpora)는 자연언어 연구를 위해 특정한 목적을 가지고 언어의 표본을 추출한 집합을 말한다.The corpus database 102 is a component that stores at least one corpus. A corpus or corpus (English: corpus, plural: corpora) refers to a set of language samples for a specific purpose for natural language research.

본 발명의 일실시예에 따른 말뭉치 데이터베이스(102)는, 제 1 및 제 2 말뭉치, 조합 말뭉치 중 적어도 하나를 저장할 수 있다.The corpus database 102 according to an embodiment of the present invention may store at least one of first and second corpus and combined corpus.

본 발명의 일실시예에서 제 1 말뭉치는 데이터부 말뭉치이고, 제 2 부분 의도 말뭉치는 액션부 말뭉치일 수 있다.In one embodiment of the present invention, the first corpus may be a data part corpus, and the second part intention corpus may be an action part corpus.

데이터부 말뭉치란, 데이터부에 관련되는 복수 개의 발화 문구로 구성된 말뭉치를 의미한다. 즉, 데이터부 말뭉치는, 데이터를 생산하는 의도에 관련되는 발화 문구만을 포함할 수 있다.The data part corpus means a corpus composed of a plurality of spoken phrases related to the data part. That is, the data part corpus may include only spoken phrases related to the intention of producing data.

그리고 액션부 말뭉치란, 액션을 수행하는명령어를 포함하는 말뭉치를 의미하며, 액션부에 관련되는 복수 개의 발화 문구로 구성될 수 있다.Further, the action part corpus means a corpus including a command for performing an action, and may be composed of a plurality of utterance phrases related to the action part.

상기 데이터부 말뭉치와 액션부 말뭉치는, 사용자에 의해서 입력되는 말뭉치일 수 있다. 즉, 챗봇을 설계한다고 가정하였을 때, 챗봇 개발자가 입력하는 말뭉치일 것이다.The data part corpus and action part corpus may be corpus input by a user. That is, assuming that a chatbot is designed, it will be a corpus input by a chatbot developer.

조합 말뭉치란, 제 1 및 제 2 부분 의도 말뭉치로부터 각각 하나씩 발화 문구를 추출하여 매칭한 말뭉치를 의미한다. 이하, 도 3을 참조하여, 조합 말뭉치를 생성하는 방법에 대해서 후술한다.The combination corpus means a corpus matched by extracting one spoken phrase from the first and second partial intention corpus. Hereinafter, with reference to FIG. 3, a method for generating a combined corpus will be described later.

연결 정보 입력부(103)는 상기 제 1 및 제 2 말뭉치 간 연결 정보를 사용자로부터 입력 받는 구성이다. 연결 정보란, 제 1 및 제 2 말뭉치를 조합하는 구체적인 정보를 의미할 수 있다.The connection information input unit 103 is a component that receives connection information between the first and second corpora from a user. Connection information may refer to specific information for combining the first and second corpora.

발화 처리부(104)는 적어도 하나의 자연어 처리 모델에 기초하여 상기 입력된 사용자 발화를 처리한다. 본 발명의 일실시예에 따른 자연어 처리 모델이란 인공지능 모델로서, 후술되는 모델 훈련부(105)가 지속적으로 자연어 처리 모델을 훈련시켜 최적화시킬 수 있다. 본 발명의 일실시예에 따른 사용자 발화의 처리란, 사용자 발화에 복수 개의 의도가 포함되어 있는 경우, 대등 의도인지 종속 의도인지 판단하는 과정, 복수 개의 대등 의도를 기준으로 발화를 분할하는 과정, 복수 개의 종속 의도를 기준으로 발화를 분할하는 과정, 분할된 발화를 출력하는 과정 중 적어도 하나를 포함할 수 있다.The speech processing unit 104 processes the input user speech based on at least one natural language processing model. A natural language processing model according to an embodiment of the present invention is an artificial intelligence model, and the model training unit 105 described below may continuously train and optimize the natural language processing model. User utterance processing according to an embodiment of the present invention, when a user utterance includes a plurality of intents, a process of determining whether it is a peer intent or a subordinate intent, a process of dividing an utterance based on a plurality of peer intents, a plurality of It may include at least one of dividing utterances based on the dog's dependent intentions and outputting the divided utterances.

자연어 처리 모델은, 대등 분류기, 종속 분류기, 대등 분할기 및 종속 분할기 중 적어도 하나를 포함할 수 있다. 각 모델의 구체적인 내용에 대해서는 이하에서 후술한다.The natural language processing model may include at least one of a peer classifier, a subordinate classifier, a peer divider, and a subordinate divider. Details of each model will be described later.

모델 훈련부(105)는 적어도 하나의 자연어 처리 모델을 훈련하는 구성이다.The model training unit 105 is a component that trains at least one natural language processing model.

말뭉치 생성부(106)는 상기 연결 정보에 기초하여 상기 제 1 및 제 2 말뭉치를 조합하여 조합 말뭉치를 생성하는 구성이다. 구체적으로 조합하는 방식에 대해서는 이하 도 2 ~ 도 3을 참조하여 후술한다.The corpus generator 106 is a component that generates a combined corpus by combining the first and second corpus based on the connection information. A detailed combination method will be described below with reference to FIGS. 2 and 3 .

도 2는 본 발명의 일실시예에 따라 두 개의 말뭉치를 조합하여 조합 말뭉치를 생성하는 예시를 도시한다.2 shows an example of generating a combined corpus by combining two corpora according to an embodiment of the present invention.

제 1 말뭉치(200-1)는 데이터부 말뭉치이고, 제 2 말뭉치(200-2)는 액션부 말뭉치이다. 상기 제 1 및 제 2 말뭉치(200-1, 200-2)는 말뭉치 데이터베이스(102) 상에 저장될 수 있으며, 사용자(챗봇 개발자 등)로부터 입력 받은 말뭉치일 수 있다.The first corpus 200-1 is a data part corpus, and the second corpus 200-2 is an action part corpus. The first and second corpora 200-1, 200-2 may be stored on the corpus database 102, and may be a corpus input from a user (such as a chatbot developer).

제 1 말뭉치(200-1)는 제 1 의도(201-1)와 관련되는 제 1 발화 목록(202-1)을 포함할 수 있다. 마찬가지로 제 2 말뭉치(200-2)는 제 2 의도(201-2)와 관련되는 제 2 발화 목록(202-2)을 포함할 수 있다. 본 발명의 일실시에에 따른 액션부 말뭉치에 포함된 발화 문구는, 조합에 의해 데이터 부분 발화 문구가 삽입되는 위치에 소정의 특수기호(도시된 예시에서는 __DATA__)를 포함하도록 제안한다. 자연스러운 형태의 조합 말뭉치를 생성하기 위함이다.The first corpus 200-1 may include a first utterance list 202-1 related to the first intention 201-1. Likewise, the second corpus 200-2 may include a second utterance list 202-2 related to the second intention 201-2. It is proposed that the speech phrase included in the action part corpus according to one embodiment of the present invention include a predetermined special symbol (__DATA__ in the illustrated example) at a position where the data part speech phrase is inserted by combination. This is to generate a combinatorial corpus in a natural form.

예를 들어, 도 2에 도시된 예시에서 "공기상태"라는 제 3 발화 문구(205-3)와 "나 한테 __DATA__ 전달해주라"라는 제 7 발화 문구(205-7)가 조합되는 경우, 제 7 발화 문구(205-7)의 '__DATA__' 부분에 제 3 발화 문구(205-3)인 "공기상태"가 삽입되어, "나 한테 공기상태 전달해주라"라는 조합 발화가 생성될 수 있다.For example, in the example shown in FIG. 2 , when the 3rd spoken phrase 205-3 “air condition” and the 7th spoken phrase 205-7 “give me __DATA__” are combined, the 7th spoken phrase 205-7 The third speech phrase 205-3, "air state", may be inserted into the '__DATA__' part of the speech phrase 205-7, and a combined utterance "Deliver the air state to me" may be generated.

도시된 예시에서, 제 1 및 제 2 발화(202-1)는 엔티티 및 각 엔티티(Entity)에 포함되는 대표어를 식별하는 식별 정보를 포함할 수 있다. 엔티티란, 사용자의 말에서 중요하게 알아들어야 하는 정보들의 묶음 단위를 의미한다. 그리고 대표어란, 엔티티에 포함되는 것으로 사용자에 의해서 정의되는 적어도 하나의 하위 항목을 의미한다.In the illustrated example, the first and second utterances 202-1 may include identification information for identifying an entity and a representative word included in each entity. An entity refers to a unit of a bundle of information that is important to understand from a user's speech. And, the representative word means at least one sub-item defined by the user as being included in the entity.

예를 들어, 피자 가게의 피자 메뉴로 페퍼로니, 쉬림프, 치즈 피자가 있다면 “피자메뉴”라는 엔티티에 “페퍼로니”, “쉬림프”, “치즈”라는 대표어를 정의할 수 있다. 이렇게 “피자메뉴” 엔티티를 정의하고 나면 사용자가 “페퍼로니”를 언급했을 때 “피자메뉴”를 말하고 있다고 인식할 수 있다. 도시된 예시에서 박스처리된 "공기상태", "이번 주", "통합대기", "용인", "에버랜드", "언니 엄마 방" 및 "나"는 식별된 엔티티 또는 대표어일 수 있다.For example, if there are pepperoni, shrimp, and cheese pizzas as a pizza menu in a pizza shop, representative words such as “pepperoni”, “shrimp”, and “cheese” can be defined in an entity called “pizza menu”. After defining the “pizza menu” entity like this, when the user mentions “pepperoni”, it can be recognized as saying “pizza menu”. In the illustrated example, the boxed “air condition”, “this week”, “integrated standby”, “yongin”, “everland”, “sister's mother's room”, and “me” may be identified entities or representative words.

엔티티 또는 대표어를 식별하는 식별정보란, 상기 제 1 및 제 2 발화(202-1)에 포함되어 있는 엔티티 또는 대표어가 존재하는지 여부 및/또는 존재한다면 해당 엔티티 또는 대표어가 존재하는 위치에 대한 정보를 의미할 수 있다.Identification information for identifying an entity or representative word is information about whether the entity or representative word included in the first and second utterances 202-1 exists and/or, if present, the location where the corresponding entity or representative word exists. can mean

이어서 연결 정보 입력부(103)는 사용자로부터 연결 정보(203)를 입력 받을 수 있다. 연결 정보(203)란, 제 1 및 제 2 말뭉치(200-1, 200-2)를 서로 연결하여 조합하는 정보를 의미한다. 본 발명의 일실시예에 따른 연결 정보(203)는 제 1 및 제 2 말뭉치 중 적어도 하나를 식별하는 정보를 포함할 수 있다. 예를 들어, 도 3에 도시된 도면에서와 같이 상기 연결 정보(203)는 제 2 말뭉치(200-2)의 속성 정보로 저장되고, 제 2 말뭉치(200-2)의 속성 정보로 저장된 상태에서 조합의 상대방인 제 1 말뭉치(200-1)를 식별하는 정보(204)를 포함하도록 구성될 수 있다.Subsequently, the connection information input unit 103 may receive connection information 203 from the user. The connection information 203 means information for combining the first and second corpora 200-1 and 200-2 by connecting them to each other. The connection information 203 according to an embodiment of the present invention may include information identifying at least one of the first and second corpora. For example, as shown in FIG. 3, the connection information 203 is stored as attribute information of the second corpus 200-2, and in a state where it is stored as attribute information of the second corpus 200-2. It may be configured to include information 204 identifying the first corpus 200-1, which is the counterpart of the combination.

말뭉치 생성부(106)는 상기 제 1 및 제 2 말뭉치(200-1, 200-2) 및 연결 정보(203)에 기초하여 조합 말뭉치를 생성한다.The corpus generator 106 generates a combined corpus based on the first and second corpus 200 - 1 and 200 - 2 and the connection information 203 .

도 3은 도 2의 제 1 및 제 2 말뭉치(200-1, 200-2) 및 연결 정보(203)에 기초하여 생성된 조합 말뭉치(210)의 예시를 도시한다.FIG. 3 shows an example of a combined corpus 210 generated based on the first and second corpora 200 - 1 and 200 - 2 of FIG. 2 and the connection information 203 .

도시된 도면에서와 같이 말뭉치 생성부(106)에 의해서 생성된 조합 말뭉치(210)는, 상기 제 1 말뭉치(200-1)에 포함된 발화 문구(205-1 ~ 205-4)와, 상기 제 2 말뭉치(200-2)에 포함된 발화 문구(205-5 ~ 205-8)를 각각 하나씩 추출하고 매칭하여 생성할 수 있다.As shown in the figure, the combined corpus 210 generated by the corpus generator 106 includes the speech phrases 205-1 to 205-4 included in the first corpus 200-1 and the first corpus 200-1. 2 Speech phrases 205-5 to 205-8 included in the corpus 200-2 may be extracted and matched one by one to be generated.

도 3에 도시된 예시에서 조합 말뭉치(210)에 포함되어 있는 제 1 조합 발화(301-1)는 제 1 발화 문구(205-1)와 제 5 발화 문구(205-5)가 각각 제 1 말뭉치(200-1) 및 제 2 말뭉치(200-2)로부터 추출되어 매칭된 결과이다. 마찬가지 방법으로 제 1 말뭉치(200-1) 및 제 2 말뭉치(200-2)로부터 순차적으로 하나씩 추출하면서 일대일 매칭할 경우, 도 3의 조합 말뭉치(210)를 생성할 수 있을 것이다.In the example shown in FIG. 3 , in the first combined utterance 301-1 included in the combined corpus 210, the first spoken phrase 205-1 and the fifth spoken phrase 205-5 are each included in the first corpus. It is a result extracted from (200-1) and the second corpus (200-2) and matched. In the same way, when one-to-one matching is performed while sequentially extracting one from the first corpus 200-1 and the second corpus 200-2, the combined corpus 210 shown in FIG. 3 can be generated.

이와 같이 생성된 조합 말뭉치(210)는 종속 분류기의 학습을 위하여 사용될 수 있다. 이하에서는 종속 분류기의 학습을 위하여 사용되는 조합 말뭉치(210)를 '종속 분류 말뭉치'라 부른다. 도시된 도면에서 강조 표시(굵게와 밑줄 처리)된 부분은 데이터부 발화이고, 나머지 부분이 액션부 발화를 나타낸다.The combinatorial corpus 210 generated in this way may be used for learning a subordinate classifier. Hereinafter, the combination corpus 210 used for learning the dependent classifier is referred to as a 'subordinate classification corpus'. In the illustrated figure, highlighted (bold and underlined) parts represent data part utterances, and the remaining parts represent action part utterances.

본 발명의 일실시예에 따른 말뭉치 생성부(106)는 더 나아가, 생성된 종속 분류 말뭉치에 데이터부와 액션부를 구분하는 구분 정보를 더 포함하는 '종속 분할 말뭉치'를 더 생산하도록 제안한다. 구분 정보란, 일예시로 데이터부의 시작 지점과 종료 지점을 지시하는 정보일 수 있다. 보다 구체적으로 구분 정보는 BIO(Beginning-Inside-Outside) 태깅 방식을 통한 분석 정보를 포함할 수 있다. BIO 태그는 발화를 복수 개의 단위로 나누고, 각 단위의 시작점과 끝점을 표기하는 태그를 의미한다.The corpus generator 106 according to an embodiment of the present invention further proposes to produce a 'subordinate segmentation corpus' further including discrimination information for distinguishing the data unit and the action unit in the generated subordinate classification corpus. The division information may be, for example, information indicating a start point and an end point of the data unit. More specifically, the classification information may include analysis information through a Beginning-Inside-Outside (BIO) tagging method. The BIO tag refers to a tag that divides an utterance into a plurality of units and marks the start point and end point of each unit.

도 4는 본 발명의 일실시예에 따른 말뭉치 생성부(106)가 종속 분할 말뭉치를 생성하는 방법을 도시하는 도면이다. 본 발명의 일실시예에 따른 종속 분할 말뭉치란, 상기 종속 분류 말뭉치에서 구분 정보를 더 포함하는 말뭉치를 말한다.4 is a diagram illustrating a method in which the corpus generator 106 generates a subordinate segmented corpus according to an embodiment of the present invention. A subordinate segmentation corpus according to an embodiment of the present invention refers to a corpus further including discrimination information in the subordinate classification corpus.

도 4에서 사용한 BIO 태깅 방식에 따르면, 데이터부는 형태소 단위를 기준으로하여 'BI'로 치환되고, 액션부는 형태소 단위를 기준으로 O로 치환된다. 그리고 데이터부의 첫 형태소는 'B'이고, 연속되는 형태소들은 'I'를 반복하는 형태로 치환시킬 수 있다.According to the BIO tagging method used in FIG. 4 , the data part is replaced with 'BI' based on the morpheme unit, and the action part is replaced with O based on the morpheme unit. In addition, the first morpheme of the data part is 'B', and consecutive morphemes can be replaced with 'I' in a repeated form.

도 4에 도시된 도면에서는, 제 1 조합 발화(301-1)에 대하여 BIO 태깅하는 예시를 도시하였으나, 다른 조합 발화들에 대해서도 마찬가지로 BIO 태깅하여 종속 분할 말뭉치를 생성할 수 있을 것이다.4 shows an example of BIO tagging the first combined utterance 301-1, but other combined utterances may be similarly BIO tagged to generate a subordinate segmented corpus.

도 5는 본 발명의 일실시예에 따른 발화 처리부(104)를 구성하는 발화 처리 모델을 도시하는 도면이다. 본 발명의 일실시예에 따른 발화 처리부(104)는, 대등 분류기(501), 단일-종속 분류기(502), 대등 분할기(503) 및 종속 분할기(504)을 포함하도록 구성될 수 있다. 도 5에 도시된 구성요소들은 발화 처리부(104)를 구현하는데 있어서 필수적인 것은 아니어서, 위에서 열거된 구성요소들 보다 많거나, 또는 적은 구성요소들을 가질 수 있다.5 is a diagram illustrating a speech processing model constituting the speech processing unit 104 according to an embodiment of the present invention. The speech processing unit 104 according to an embodiment of the present invention may be configured to include a peer classifier 501, a single-dependent classifier 502, a peer divider 503, and a subordinate divider 504. The components shown in FIG. 5 are not essential to implement the speech processing unit 104, and may have more or fewer components than those listed above.

대등 분류기(501)는 발화가 주어지면 대등 의도 발화인지 여부를 판별하고, 판별 결과를 출력한다. 예를 들어, 대등 의도 발화인지 여부가 이진 분류(Binary Classification) 형태로 출력될 수 있을 것이다. 대등 분류기(501)가 대등 의도 발화를 판단하는 구체적인 예시에 대해서는 이하 도 6을 참조하여 후술한다.If a utterance is given, the peer classifier 501 determines whether it is a peer-intended utterance, and outputs a discrimination result. For example, whether it is a parallel intent utterance may be output in a binary classification form. A specific example in which the peer classifier 501 determines parallel intended utterances will be described later with reference to FIG. 6 .

모델 훈련부(105)는, 대등 분류 말뭉치에 기초하여 대등 분류기(501)을 훈련시킨다. 대등 분류 말뭉치란, 대등 의도 발화인지 아닌지 이미 알고 있는 발화의 말뭉치를 의미한다. 예를 들어서 대등 분류기(501)는 인공지능 모델이고, 모델 훈련부(105)는 지도 학습(supervised learning)을 통하여 대등 분류기(501)를 훈련시킬 수 있다. 이때 지도 학습이란, 입력값과 그에 따른 출력값이 있는 데이터를 이용하여 주어진 입력에 맞는 출력을 찾는 학습을 의미한다.The model training unit 105 trains the peer classifier 501 based on the peer classification corpus. The peer classification corpus refers to a corpus of utterances for which it is already known whether or not the utterance is intended to be equivalent. For example, the peer classifier 501 is an artificial intelligence model, and the model training unit 105 may train the peer classifier 501 through supervised learning. In this case, supervised learning means learning to find an output suitable for a given input using data having input values and corresponding output values.

단일-종속 분류기(502)는 발화가 주어지면 단일 의도인지 종속 의도인지 여부를 판단한다. 단일-종속 분류기(502)가 단일 의도인지 종속 의도인지 여부를 판단하는 구체적인 예시에 대해서는 이하 도 6을 참조하여 후술한다. 이때 단일-종속 분류기(502)로 입력되는 발화는 단일 의도 또는 종속 의도 중 하나이며, 대등 의도 발화는 입력되지 않는 것으로 가정한다. 모델 훈련부(105)는, 단일 의도 말뭉치와 상기 말뭉치 생성부(106)가 생성한 종속 분류 말뭉치를 합쳐서 단일-종속 분류기(502)을 훈련시킨다. 이때 단일-종속 분류기(502)는 인공지능 모델일 수 있으며, 상술한 바와 같이 지도 학습을 통하여 훈련이 수행될 수 있다.Given an utterance, the single-subordinate classifier 502 determines whether it has a single intent or a dependent intent. A specific example of determining whether the single-dependent classifier 502 has a single intention or a dependent intention will be described later with reference to FIG. 6 . In this case, it is assumed that the utterance input to the single-subordinate classifier 502 is either a single intent or a dependent intent, and that a peer intent utterance is not input. The model training unit 105 trains the single-subordinate classifier 502 by combining the single-intention corpus and the subordinate classification corpus generated by the corpus generator 106 . In this case, the single-dependent classifier 502 may be an artificial intelligence model, and training may be performed through supervised learning as described above.

도 6은 본 발명의 일실시예에 따른 대등 분류기(501) 및 단일-종속 분류기(502)의 일예시를 도시하는 도면이다. 도시된 도면에 의하면, 대등 분류기(501) 및 단일-종속 분류기(502)에 소정 텍스트가 입력(601)으로 들어갔을 때, 해당 텍스트가 어떤 분류에 속하는지 여부에 대해서 소프트맥스(softmax) 결과(602)가 출력될 수 있다.6 is a diagram illustrating an example of a peer classifier 501 and a single-subordinate classifier 502 according to one embodiment of the present invention. According to the illustrated figure, when a predetermined text is entered as an input 601 in the peer classifier 501 and the single-dependent classifier 502, a softmax result ( 602) may be output.

대등 분류기(501)에 대한 소프트맥스 결과(602)는, 대등 의도 발화인지 아닌지를 나타내는 이진 분류 형태로 출력될 수 있을 것이다.The softmax result 602 for the peer classifier 501 may be output in a binary classification form indicating whether it is a peer intended utterance or not.

종속 분류기(502)에 대한 소프트맥스 결과(602)는, 단일 의도인지 종속 의도인지 여부를 나타내는 이진 분류 형태로 출력될 수 있을 것이다.The softmax result 602 for the subordinate classifier 502 may be output in the form of a binary classification indicating whether it is a single intent or a dependent intent.

다시 도 5를 참조하여, 대등 분할기(503)는 주어진 발화가 대등 의도 발화일 경우, 의도를 기준으로 발화를 분할하여 출력한다. 예를 들어, 발명의 배경에서 상술한 예시에서와 같이 "김치찌개 요리법을 찾아서(제 1 의도) 나에게 문자로 보내줘(제 2 의도)"라는 발화가 입력될 경우, "김치찌개 요리법을 찾아서"라는 제 1 의도와 "나에게 문자로 보내줘"라는 제 2 의도로 발화를 분할하여 출력한다.Referring back to FIG. 5 , when a given utterance is a parallel intent utterance, the peer divider 503 divides the utterance based on the intent and outputs the divided utterance. For example, as in the above example in the background of the invention, if the utterance "Find a recipe for kimchi stew (first intention) and send it to me as a text message (second intention)" is input, "Find a recipe for kimchi stew" The utterance is divided into a first intention of “Send me a text message” and a second intention of “Send me a text message.”

모델 훈련부(105)는, 대등 분할 말뭉치로 대등 분할기(503)을 훈련시킨다. 대등 분할 말뭉치란, 대등 의도 발화와 의도를 기준으로 그 대등 의도 발화가 분할된 것(정답)을 합친 말뭉치를 의미한다.The model training unit 105 trains the equal divider 503 with the equal division corpus. The equal division corpus means a corpus in which a parallel intent utterance and a result obtained by dividing the equal intent utterance based on the intention (correct answer) are combined.

종속 분할기(504)는 주어진 발화가 종속 의도 발화인 경우, 의도를 기준으로 발화를 분리하여 출력할 수 있다. 이때 분리되는 발화는 데이터부 발화와 액션부 발화로 구분될 수 있을 것이다.When a given utterance is a dependent intended utterance, the subordinate divider 504 may separate and output utterances based on intention. At this time, the separated utterances may be divided into data part utterances and action part utterances.

도 7은 본 발명의 일실시예에 따른 대등 분할기(503) 및 종속 분할기(504)의 일예시를 도시하는 도면이다. 도시된 도면에 의하면, 주어진 발화가 적어도 하나의 임베딩으로 변환(701)되고, biLSTM(700, Bidirectional LSTM)의 입력으로 들어간다. biLSTM(700)이란, 게이트 기법을 통해 순환 신경 회로망(RNN)의 한계를 극복한 모델인 LSTM을 순방향뿐 아니라 역방향의 결과를 함께 이용하는 모델이다. biLSTM(700)의 출력으로 발화의 분할하는 태깅 정보(702)가 나올 수 있다.7 is a diagram illustrating an example of a peer divider 503 and a subordinate divider 504 according to one embodiment of the present invention. According to the illustrated diagram, a given utterance is converted (701) into at least one embedding and entered into an input of biLSTM (700, Bidirectional LSTM). The biLSTM (700) is a model that uses LSTM, a model that overcomes the limitations of recurrent neural networks (RNNs) through gate techniques, using both forward and backward results. As an output of the biLSTM 700, tagging information 702 for segmenting utterances may come out.

도 7에 도시된 모델은, BIO 태깅 기반 분할 모듈에 대한 하나의 예시일 뿐, 다양한 BIO 태깅 기반 분할 모듈이 본 발명에 적용될 수 있을 것이다.The model shown in FIG. 7 is only one example of a BIO tagging-based segmentation module, and various BIO tagging-based segmentation modules may be applied to the present invention.

도 8은 본 발명의 일실시예에 따른 발화 처리부(104)가 사용자 발화 처리 순서를 도시하는 도면이다.8 is a diagram illustrating a user speech processing sequence by the speech processing unit 104 according to an embodiment of the present invention.

발화 입력부(101)를 통하여 사용자 발화가 입력되면, 먼저 대등 분류기(501)는 입력된 사용자 발화가 대등 의도인지 여부를 판별(S801)한다. 이어서 S802 단계에서는 발화 처리부(104)는, S801 판별 결과 대등 의도인 경우 S803 단계로 진행하고, 대등 의도가 아닌 경우 S804 단계로 진행시킨다.When user utterance is input through the utterance input unit 101, first, the peer classifier 501 determines whether the input user utterance has a peer intent (S801). Subsequently, in step S802, the speech processing unit 104 proceeds to step S803 if the result of determining S801 is equal intent, and proceeds to step S804 if it is not equal intent.

S803 단계에서 대등 분할기(503)는 의도를 기준으로 입력된 발화를 두 개로 분할한다. 분할된 발화는 다시 S801 단계로 되돌아가 상술한 과정을 반복적으로 수행할 수 있다.In step S803, the equal divider 503 divides the input utterance into two based on intention. The divided utterance may return to step S801 and repeatedly perform the above-described process.

도 9는 본 발명의 일실시예에 따른 대등 분할기(503)가 의도를 기준으로 발화를 분할하는 일예시를 도시한다.9 illustrates an example in which a peer splitter 503 divides utterances based on intent according to an embodiment of the present invention.

대등 분할기(503)의 입력으로 "날씨를 알려준 후 뉴스 들려줘"라는 대등 의도 발화(901)가 들어간다. 그리고 대등 분할기(503)의 출력으로는 대등 의도 발화(901)가 두 개의 발화로 분할된 결과(902)가 출력된다.As an input to the equal divider 503, an equal intention utterance 901 "tell me the weather and then tell me the news" is entered. As an output of the parallel divider 503, a result 902 obtained by dividing the parallel intended utterance 901 into two utterances is output.

먼저 대등 분할기(503)는 대등 의도 발화(901)에 대한 발화 속성 정보(903)를 판단하고, 이를 출력할 수 있다. 발화 속성 정보(903)는 발화의 타입(type), 의도(intent) 및 발화의 문구(utterance)중 적어도 하나를 포함할 수 있다. 도시된 예시의 발화 속성 정보(903)에서 "parallel" 타입이라는 것은, 입력된 발화가 대등 의도 발화(901)라는 것을 의미한다.First, the peer divider 503 may determine utterance attribute information 903 of the utterance intended to be equal 901 and output it. The utterance attribute information 903 may include at least one of utterance type, intent, and utterance. In the utterance attribute information 903 of the illustrated example, the “parallel” type means that the input utterance is a parallel intended utterance 901 .

대등 분할기(503)는 분할된 발화 각각에 대한 분할 발화 속성 정보(904-1, 904-2)를 출력할 수 있다. 분할 발화 속성 정보(904-1, 904-2)는, 분할 발화가 단일 발화인지 여부(type이 single이면 단일 발화, parallel이면 대등 의도 발화)를 나타내는 타입(type) 정보, 단일 발화(type이 single)일 경우 해당 분할 발화의 의도를 나타내는 의도(intent) 정보, 분할된 발화의 문구(utterance) 정보를 포함할 수 있다.The peer divider 503 may output divided utterance attribute information 904-1 and 904-2 for each of the divided utterances. The split utterance attribute information 904-1 and 904-2 includes type information indicating whether the split utterance is a single utterance (if the type is single, it is a single utterance; if the type is parallel, it is a parallel intended utterance), single utterance (if the type is single ), intent information indicating the intention of the corresponding split utterance and utterance information of the split utterance may be included.

다시 도 8을 이어서 참조하면, S804 단계에서 단일-종속 분류기(502)는 사용자 발화가 단일-종속 의도인지 여부를 판단한다. S805 단계에서 발화 처리부(104)는 종속 의도 발화일 경우 S806 단계로 진행하고, 단일 의도 발화일 경우에는 S807 단계로 진행한다.Referring again to FIG. 8 , in step S804, the single-subordinate classifier 502 determines whether the user utterance has a single-subordinate intent. In step S805, the utterance processing unit 104 proceeds to step S806 in the case of dependent utterances, and proceeds to step S807 in the case of single-intent utterances.

본 발명의 일실시예에서는 더 나아가 S804 단계에서 단일 의도인지 종속 의도인지 여부를 구분하는 것뿐만 아니라, 구체적으로 어떤 의도인지를 판단하도록 제안한다. 예를 들어 단일-종속 분류기(502)는 "김치찌개 요리법 찾아서 카톡으로 나에게 보내줘"라는 발화가 종속 의도 발화에 속한다고 판단할 뿐만 아니라, "김치찌개 요리법 찾아서"라는 발화가 "MI-findcook"라는 제 1 의도에 속하고, “카톡으로 나에게 보내줘" 라는 발화가 "MI-readyToSendTalk"라는 제 2 의도에 속한다는 것을In one embodiment of the present invention, it is proposed to further determine whether a single intention or a dependent intention is determined in step S804, as well as a specific intention. For example, the single-subordinate classifier 502 not only determines that the utterance "Find a recipe for kimchi stew and send it to me via KakaoTalk" belongs to the dependent intention utterance, but also determines that the utterance "Find a recipe for kimchi stew" belongs to "MI-findcook". belongs to the first intention, and the utterance “Send it to me via KakaoTalk” belongs to the second intention called “MI-readyToSendTalk”.

S806 단계에서 종속 분할기(504)는 의도를 기준으로 종속 의도 발화를 두 개로 분할한다.In step S806, the dependent divider 504 divides the dependent intent utterance into two based on the intent.

도 10은 본 발명의 일실시예에 따른 종속 분할기(504)가 종속 의도 발화를 분할하는 예시를 도시한다.10 illustrates an example in which a dependent splitter 504 splits a dependent intent utterance according to one embodiment of the present invention.

종속 분할기(504)의 입력으로 "김치찌개 요리법 찾아서 카톡으로 나에게 보내줘"라는 종속 의도 발화(1001)가 들어간다. 그리고 종속 분할기(504)의 출력으로는 종속 의도 발화(1001)가 두 개의 발화로 분할된 결과(1002)가 출력된다.As an input to the subordinate divider 504, a subordinate intention utterance 1001 "Find a recipe for kimchi stew and send it to me via KakaoTalk" is entered. As an output of the dependent divider 504, a result 1002 obtained by dividing the dependent intended utterance 1001 into two utterances is output.

먼저 종속 분할기(504)는 종속 의도 발화(1001)에 대한 발화 속성 정보(1003)를 판단하고, 이를 출력할 수 있다. 발화 속성 정보(1003)는 발화의 타입(type), 의도(intent) 및 발화의 문구(utterance)중 적어도 하나를 포함할 수 있다. 도시된 예시의 발화 속성 정보(1003)에서 "multi-sub" 타입이라는 것은, 입력된 발화가 종속 의도 발화(1001)라는 것을 의미한다.First, the dependent divider 504 may determine utterance attribute information 1003 for the dependent intended utterance 1001 and output it. The utterance attribute information 1003 may include at least one of utterance type, intent, and utterance. In the utterance attribute information 1003 of the illustrated example, the “multi-sub” type means that the input utterance is a dependent intended utterance 1001.

종속 분할기(504)는 분할된 발화 각각에 대한 분할 발화 속성 정보(1004-1, 1004-2)를 출력할 수 있다. 분할 발화 속성 정보(1004-1, 1004-2)는, 분할 발화가 데이터부 발화인지, 액션부 발화인지 여부(type이 partial-data이면 데이터부 발화, partial-action이면 액션부 발화)를 나타내는 타입(type) 정보, 데이터부 발화/액션부 발화의 의도를 나타내는 의도(intent) 정보, 분할된 발화의 문구(utterance) 정보를 포함할 수 있다.The subordinate divider 504 may output divided utterance attribute information 1004-1 and 1004-2 for each of the divided utterances. The split utterance attribute information 1004-1 and 1004-2 is a type indicating whether the split utterance is a data part utterance or an action part utterance (if the type is partial-data, a data part utterance; if the type is partial-action, an action part utterance). It may include (type) information, intent information representing the intention of utterance of the data part/utterance of the action part, and utterance information of divided utterances.

종속 분할기(504)의 출력된 결과(1002)를 참조하면, 의도에 따라 분할되는 발화 문구뿐만 아니라, 각 분할된 발화가 데이터부 발화인지, 액션부 발화인지를 확인할 수 있다.Referring to the output result 1002 of the subordinate divider 504, it is possible to check whether each divided utterance is a data part utterance or an action part utterance as well as a spoken phrase divided according to the intention.

다시 도 8을 참조하여, S804 단계에서 단일 의도 발화인 것으로 판별되면 S807 단계로 진행하여 바로 최종 출력을 구축할 수 있다.Referring again to FIG. 8 , if it is determined that the utterance is a single intention utterance in step S804, the final output may be constructed immediately in step S807.

도 11은 본 발명의 일실시예에 따른 발화 처리부(104)가 단일 의도 발화를 처리하는 예시를 도시한다.11 illustrates an example in which the speech processing unit 104 processes single-intent speech according to an embodiment of the present invention.

발화 처리부(104)의 입력으로 "운세 좀 봐줄래"라는 단일 의도 발화(1101)가 들어간다. 그리고 발화 처리부(104)의 출력으로는 단일 의도 발화(1101)의 발화 속성 정보(1103)가 출력된다.As an input to the speech processing unit 104, a single intentional speech 1101 "Will you tell me a fortune?" Further, as an output of the speech processing unit 104 , speech attribute information 1103 of the single-intent speech 1101 is output.

발화 속성 정보(1103)는 발화의 타입(type), 의도(intent) 및 발화의 문구(utterance)중 적어도 하나를 포함할 수 있다. 도시된 예시의 발화 속성 정보(1003)에서 "single" 타입이라는 것은, 입력된 발화가 단일 의도 발화(1101)라는 것을 의미한다.The utterance attribute information 1103 may include at least one of utterance type, intent, and utterance. The “single” type in the utterance attribute information 1003 of the illustrated example means that the input utterance is a single intention utterance 1101 .

한편, 대등 의도와 종속 의도가 혼재 시에는, 상술한 도 9 및 도 10의 과정이 순차적으로 수행될 수 있다.On the other hand, when the equivalent intention and the subordinate intention coexist, the above-described processes of FIGS. 9 and 10 may be sequentially performed.

도 12는 본 발명의 일실시예에 따른 대등 의도와 종속 의도가 혼재 시 발화 처리부(104)의 처리 개념도를 도시한다.FIG. 12 illustrates a conceptual diagram of processing of the speech processing unit 104 when an equivalent intention and a subordinate intention coexist according to an embodiment of the present invention.

먼저 대등 분할기(503)의 입력으로 "운세 좀 봐주고 김치찌개 요리법 찾아서 문자로 나에게 보내줘"라는 대등-종속 의도 혼재 발화(1201)가 들어간다. 그리고 대등 분할기(503)의 출력으로는 두 개의 대등 의도 발화가 분할된 결과(1202-1)가 출력된다. 두 개의 대등 의도 발화가 분할된 결과(1202-1)는 다시 종속 분할기(504)의 입력으로 들어갈 수 있다. 그리고 종속 분할기(504)의 결과(1202-2)로 두 개의 종속 의도 발화로 분할된다.First, as an input to the equal divider 503, an equal-subordinate intention mixed utterance 1201, "Please look for a fortune, find a recipe for kimchi stew, and send it to me by text message" is entered. Also, as an output of the equal divider 503, a result 1202-1 obtained by dividing two equal intention utterances is output. The split result 1202-1 of the two equivalent intent utterances may be input to the subdivision splitter 504 again. And as a result 1202-2 of the subordinate splitter 504, it is divided into two subordinate intent utterances.

도 13은 일 실시예에 따른 자연어 처리 장치(100)의 구성을 도시한 도면이다.13 is a diagram illustrating a configuration of a natural language processing device 100 according to an embodiment.

도 13를 참조하면, 자연어 처리 장치(100)는 프로세서(1301) 및 메모리(1302)를 포함한다. 메모리(1302)는 프로세서(1301)에 의해 실행 가능한 하나 이상의 명령어를 저장한다. 프로세서(1301)는 메모리(1302)에 저장된 하나 이상의 명령어를 실행한다. 프로세서(1301)는 명령어를 실행하는 것에 의해 도 1 내지 도 12와 관련하여 위에서 설명된 하나 이상의 동작을 실행할 수 있다. 또한 도 1과 함께 상술한 본 발명의 구성은 프로세서(1301)에 의해서 실행되는 명령어에 의해서 구현되는 구성일 수 있을 것이다.Referring to FIG. 13 , the natural language processing device 100 includes a processor 1301 and a memory 1302 . Memory 1302 stores one or more instructions executable by processor 1301 . Processor 1301 executes one or more instructions stored in memory 1302 . Processor 1301 may execute one or more operations described above with respect to FIGS. 1-12 by executing instructions. In addition, the configuration of the present invention described above together with FIG. 1 may be a configuration implemented by instructions executed by the processor 1301.

이상으로 본 발명에 따른 자연어 처리 장치 및 제어 방법의 실시예를 설시하였으나 이는 적어도 하나의 실시예로서 설명되는 것이며, 이에 의하여 본 발명의 기술적 사상과 그 구성 및 작용이 제한되지는 아니하는 것으로, 본 발명의 기술적 사상의 범위가 도면 또는 도면을 참조한 설명에 의해 한정/제한되지는 아니하는 것이다. 또한 본 발명에서 제시된 발명의 개념과 실시예가 본 발명의 동일 목적을 수행하기 위하여 다른 구조로 수정하거나 설계하기 위한 기초로써 본 발명이 속하는 기술분야의 통상의 지식을 가진 자에 의해 사용되어질 수 있을 것인데, 본 발명이 속하는 기술분야의 통상의 지식을 가진 자에 의한 수정 또는 변경된 등가 구조는 청구범위에서 기술되는 본 발명의 기술적 범위에 구속되는 것으로서, 청구범위에서 기술한 발명의 사상이나 범위를 벗어나지 않는 한도 내에서 다양한 변화, 치환 및 변경이 가능한 것이다.Although the embodiments of the natural language processing apparatus and control method according to the present invention have been described above, this is described as at least one embodiment, and thus the technical idea of the present invention and its configuration and operation are not limited. The scope of the technical idea of the invention is not limited / limited by the drawings or the description referring to the drawings. In addition, the concepts and embodiments of the present invention presented in the present invention can be used by those skilled in the art as a basis for modifying or designing other structures to achieve the same purpose of the present invention. , Modified or changed equivalent structure by a person of ordinary skill in the art to which the present invention belongs is bound by the technical scope of the present invention described in the claims, and does not depart from the spirit or scope of the invention described in the claims. Various changes, substitutions and modifications are possible within the limits.

Claims (17)

자연어 처리 장치에 있어서,
명령어들을 저장하는 메모리; 및
상기 저장된 명령어들을 실행하도록 설정된 프로세서를 포함하고, 상기 프로세서는:
사용자 발화를 입력 받고,
제 1 말뭉치 및 제 2 말뭉치를 저장하며,
상기 제 1 및 제 2 말뭉치 간 연결 정보를 입력 받고,
상기 입력 받은 연결 정보에 기초하여 상기 제 1 및 제 2 말뭉치를 조합한 말뭉치인 조합 말뭉치를 생성하며,
상기 조합 말뭉치에 기초하여 적어도 하나의 자연어 처리 모델을 훈련시키고,
상기 적어도 하나의 자연어 처리 모델에 기초하여 상기 입력된 사용자 발화를 처리하는,
자연어 처리 장치.
In the natural language processing device,
memory for storing instructions; and
a processor configured to execute the stored instructions, the processor comprising:
Receive user input,
storing a first corpus and a second corpus;
Receive connection information between the first and second corpus,
Creating a combined corpus, which is a corpus combining the first and second corpora, based on the input connection information;
Train at least one natural language processing model based on the combinatorial corpus;
Processing the input user utterance based on the at least one natural language processing model;
natural language processing device.
제 1 항에 있어서,
상기 프로세서는, 상기 입력된 사용자 발화에 포함되어 있는 복수 개의 의도를 기준으로 상기 입력된 사용자 발화를 복수 개의 발화로 분할하는,
자연어 처리 장치.
According to claim 1,
The processor divides the input user speech into a plurality of speeches based on a plurality of intentions included in the input user speech.
natural language processing device.
제 2 항에 있어서, 상기 프로세서는,
상기 입력된 사용자 발화가 대등 의도 발화인지 여부를 판단하고,
상기 대등 의도 발화인 것으로 판단되면, 상기 대등 분할기에 기초하여 상기 입력된 사용자 발화를 복수 개의 부분 대등 의도 발화로 분할하는,
자연어 처리 장치.
The method of claim 2, wherein the processor,
Determining whether the input user utterance is a paired intended utterance;
Dividing the input user utterance into a plurality of partial equivalent intended utterances based on the equal intended utterance based on the equal intended utterance,
natural language processing device.
제 3 항에 있어서, 상기 프로세서는,
상기 대등 의도 발화가 아닌 것으로 판단되면, 상기 입력된 사용자 발화가 종속 의도 발화인지 판단하고,
상기 종속 의도 발화인 것으로 판단되면, 상기 종속 분할기에 기초하여 상기 입력된 사용자 발화를 복수 개의 부분 종속 의도 발화로 분할하는,
자연어 처리 장치.
The method of claim 3, wherein the processor,
If it is determined that the utterance is not the equivalent intended utterance, it is determined whether the input user utterance is a dependent intended utterance;
Dividing the input user utterance into a plurality of partial dependent intended utterances based on the dependent divider when it is determined that the dependent intended utterance is the dependent intended utterance.
natural language processing device.
제 4 항에 있어서, 상기 복수 개의 부분 종속 의도 발화는,
데이터 부분 종속 의도 발화 및 액션 부분 종속 의도 발화를 포함하는,
자연어 처리 장치.
The method of claim 4, wherein the plurality of partially dependent intended utterances,
Including data part dependent intent utterances and action part dependent intent utterances,
natural language processing device.
제 1 항에 있어서,
상기 제 1 말뭉치는 데이터부 말뭉치이고, 상기 제 2 말뭉치는 액션부 말뭉치인,
자연어 처리 장치.
According to claim 1,
The first corpus is a data part corpus, and the second corpus is an action part corpus,
natural language processing device.
제 6 항에 있어서, 상기 연결 정보는,
상기 제 1 및 제 2 말뭉치 중 적어도 하나를 식별하는 정보를 포함하는,
자연어 처리 장치.
The method of claim 6, wherein the connection information,
Including information identifying at least one of the first and second corpus,
natural language processing device.
제 7 항에 있어서, 상기 제 1 및 제 2 말뭉치 각각은 복수 개의 발화 문구를 포함하고,
상기 조합 말뭉치는, 상기 제 1 말뭉치에 포함된 발화 문구와, 상기 제 2 말뭉치에 포함된 발화 문구를 각각 하나씩 추출하여 매칭한 말뭉치인,
자연어 처리 장치.
The method of claim 7, wherein each of the first and second corpora includes a plurality of spoken phrases,
The combined corpus is a corpus obtained by extracting and matching one spoken phrase included in the first corpus and one spoken phrase included in the second corpus,
natural language processing device.
사용자 발화를 입력 받는 단계;
제 1 말뭉치 및 제 2 말뭉치를 저장하는 단계;
상기 제 1 및 제 2 말뭉치 간 연결 정보를 입력 받는 단계;
상기 입력 받은 연결 정보에 기초하여 상기 제 1 및 제 2 말뭉치를 조합한 말뭉치인 조합 말뭉치를 생성하는 단계;
상기 조합 말뭉치에 기초하여 적어도 하나의 자연어 처리 모델을 훈련시키는 단계; 및
상기 적어도 하나의 자연어 처리 모델에 기초하여 상기 입력된 사용자 발화를 처리하는 단계를 포함하는,
자연어 처리 장치의 제어 방법.
receiving a user's speech;
storing the first corpus and the second corpus;
receiving connection information between the first and second corpus;
generating a combined corpus, which is a corpus obtained by combining the first and second corpus, based on the input connection information;
training at least one natural language processing model based on the combination corpus; and
Processing the input user utterance based on the at least one natural language processing model,
Control method of natural language processing device.
제 9 항에 있어서, 상기 사용자 발화를 처리하는 단계는,
상기 입력된 사용자 발화에 포함되어 있는 복수 개의 의도를 기준으로 상기 입력된 사용자 발화를 복수 개의 발화로 분할하는 단계를 포함하는,
자연어 처리 장치의 제어 방법.
The method of claim 9, wherein the processing of the user utterance comprises:
Dividing the input user speech into a plurality of speeches based on a plurality of intentions included in the input user speech,
Control method of natural language processing device.
제 10 항에 있어서, 상기 사용자 발화를 처리하는 단계는,
상기 입력된 사용자 발화가 대등 의도 발화인지 여부를 판단하는 단계; 및
상기 대등 의도 발화인 것으로 판단되면, 상기 입력된 사용자 발화를 복수 개의 부분 대등 의도 발화로 분할하는 단계를 더 포함하는,
자연어 처리 장치의 제어 방법.
11. The method of claim 10, wherein processing the user utterance comprises:
determining whether the inputted user utterance is a peer-intent utterance; and
Further comprising the step of dividing the input user utterance into a plurality of partial equivalent intended utterances if it is determined that it is the equivalent intended utterance.
Control method of natural language processing device.
제 11 항에 있어서, 상기 사용자 발화를 처리하는 단계는,
상기 대등 의도 발화가 아닌 것으로 판단되면, 상기 입력된 사용자 발화가 종속 의도 발화인지 판단하는 단계; 및
상기 종속 의도 발화인 것으로 판단되면, 상기 입력된 사용자 발화를 복수 개의 부분 종속 의도 발화로 분할하는 단계를 더 포함하는,
자연어 처리 장치의 제어 방법.
The method of claim 11, wherein the processing of the user utterance comprises:
determining whether the input user utterance is a dependent intended utterance if it is determined that the utterance is not a peer intended utterance; and
Further comprising the step of dividing the input user utterance into a plurality of partial dependent intended utterances, if it is determined that the dependent intended utterance is determined.
Control method of natural language processing device.
제 12 항에 있어서, 상기 복수 개의 부분 종속 의도 발화는,
데이터 부분 종속 의도 발화 및 액션 부분 종속 의도 발화를 포함하는,
자연어 처리 장치의 제어 방법.
13. The method of claim 12, wherein the plurality of partially dependent intended utterances,
Including data part dependent intent utterances and action part dependent intent utterances,
Control method of natural language processing device.
제 9 항에 있어서,
상기 제 1 말뭉치는 데이터부 말뭉치고, 상기 제 2 말뭉치는 액션부말뭉치인,
자연어 처리 장치의 제어 방법.
According to claim 9,
The first corpus is a data part corpus, and the second corpus is an action part corpus,
Control method of natural language processing device.
제 14 항에 있어서, 상기 연결 정보는,
제 1 및 제 2 말뭉치 중 적어도 하나를 식별하는 정보를 포함하는,
자연어 처리 장치의 제어 방법.
The method of claim 14, wherein the connection information,
Including information identifying at least one of the first and second corpus,
Control method of natural language processing device.
제 15 항에 있어서, 상기 제 1 및 제 2 말뭉치 각각은 복수 개의 발화 문구를 포함하고,
상기 조합 말뭉치는, 상기 제 1 말뭉치에 포함된 발화 문구와, 상기 제 2 말뭉치에 포함된 발화 문구를 각각 하나씩 추출하여 매칭한 말뭉치인,
자연어 처리 장치의 제어 방법.
16. The method of claim 15, wherein each of the first and second corpora includes a plurality of spoken phrases,
The combined corpus is a corpus obtained by extracting and matching one spoken phrase included in the first corpus and one spoken phrase included in the second corpus,
Control method of natural language processing device.
하드웨어와 결합되어 제 9 항 내지 제 16 항 중 어느 하나의 항의 방법을 실행시키기 위하여 매체에 저장된 컴퓨터 프로그램.A computer program stored in a medium to execute the method of any one of claims 9 to 16 in combination with hardware.
KR1020210061343A 2021-05-12 2021-05-12 Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method KR102624790B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210061343A KR102624790B1 (en) 2021-05-12 2021-05-12 Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210061343A KR102624790B1 (en) 2021-05-12 2021-05-12 Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method

Publications (2)

Publication Number Publication Date
KR20220153852A true KR20220153852A (en) 2022-11-21
KR102624790B1 KR102624790B1 (en) 2024-01-12

Family

ID=84233708

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210061343A KR102624790B1 (en) 2021-05-12 2021-05-12 Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method

Country Status (1)

Country Link
KR (1) KR102624790B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190114051A (en) * 2012-07-20 2019-10-08 비비오, 인크. Method of and system for inferring user intent in search input in a conversαtional interaction system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190114051A (en) * 2012-07-20 2019-10-08 비비오, 인크. Method of and system for inferring user intent in search input in a conversαtional interaction system

Also Published As

Publication number Publication date
KR102624790B1 (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN110728997B (en) Multi-modal depression detection system based on context awareness
US11568855B2 (en) System and method for defining dialog intents and building zero-shot intent recognition models
KR102170563B1 (en) Human machine interactive method and apparatus based on artificial intelligence
US11586810B2 (en) Generating responses in automated chatting
CN108847241B (en) Method for recognizing conference voice as text, electronic device and storage medium
CN104573099B (en) The searching method and device of topic
KR102198265B1 (en) User intention analysis system and method using neural network
CN110648659B (en) Voice recognition and keyword detection device and method based on multitask model
CN106847279A (en) Man-machine interaction method based on robot operating system ROS
KR102315830B1 (en) Emotional Classification Method in Dialogue using Word-level Emotion Embedding based on Semi-Supervised Learning and LSTM model
US20200233908A1 (en) Interactive system and computer program therefor
CN112463942A (en) Text processing method and device, electronic equipment and computer readable storage medium
CN113836303A (en) Text type identification method and device, computer equipment and medium
WO2023272616A1 (en) Text understanding method and system, terminal device, and storage medium
CN111354354A (en) Training method and device based on semantic recognition and terminal equipment
Shynkarenko et al. Constructive model of the natural language
US11314534B2 (en) System and method for interactively guiding users through a procedure
CN113157887A (en) Knowledge question-answering intention identification method and device and computer equipment
KR20210051523A (en) Dialogue system by automatic domain classfication
KR102624790B1 (en) Natural language processing apparatus for intent analysis and processing of multi-intent speech, program and its control method
CN116303966A (en) Dialogue behavior recognition system based on prompt learning
CN114490967B (en) Training method of dialogue model, dialogue method and device of dialogue robot and electronic equipment
WO2022262080A1 (en) Dialogue relationship processing method, computer and readable storage medium
CN115098665A (en) Method, device and equipment for expanding session data
CN114242045A (en) Deep learning method for natural language dialogue system intention

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant