KR102099670B1 - The syntax grammar rules automatic generation method of understanding user query intention - Google Patents

The syntax grammar rules automatic generation method of understanding user query intention Download PDF

Info

Publication number
KR102099670B1
KR102099670B1 KR1020180055934A KR20180055934A KR102099670B1 KR 102099670 B1 KR102099670 B1 KR 102099670B1 KR 1020180055934 A KR1020180055934 A KR 1020180055934A KR 20180055934 A KR20180055934 A KR 20180055934A KR 102099670 B1 KR102099670 B1 KR 102099670B1
Authority
KR
South Korea
Prior art keywords
syntax
rule
rules
query
tag
Prior art date
Application number
KR1020180055934A
Other languages
Korean (ko)
Other versions
KR20190131270A (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 KR1020180055934A priority Critical patent/KR102099670B1/en
Publication of KR20190131270A publication Critical patent/KR20190131270A/en
Application granted granted Critical
Publication of KR102099670B1 publication Critical patent/KR102099670B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • 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
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/268Morphological analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Machine Translation (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

본 발명은 챗봇 시스템이나 음성 인식 시스템 등의 질의 응답 시스템에서, 같은 의미라도 다양하게 표현되는 질의에 보다 확률 높게 대응하기 위한 구문 규칙 자동 생성 방법에 관한 것입니다.
본 발명의 구문 규칙 자동 생성 방법은, 질의자 단말의 질의를 인식하여 언어처리 과정을 거쳐 응답 데이터를 생성하는 질의응답 시스템을 사전에 구축하면서 미리 구문 규칙을 자동으로 생성하는 방법입니다.
(a) 관리자 단말이 개체 태그를 포함한 문장을 입력하고, (b) 입력 문장에서 개체 태그를 추출하여 그 위치를 기억한 후 형태소 분석을 실행하고, (c) 형태소 분석 결과에 개체 태그를 원래 위치에 삽입하여 기본 구문 규칙을 생성하고, (d) 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과와 관계없이 어휘만 비교하는 규칙을 생성하여 태그 확장 구문 규칙을 생성하고, (e) 서술어에 대해 구문 규칙의 확장을 실행하는 미리 정해진 프로세스를 거친 후에,
구문 규칙을 생성하여 상기 질의응답 시스템에 저장하는 단계를 포함합니다.
The present invention relates to a method for automatically generating a syntax rule to respond to a query having a variety of meanings with a higher probability in a query response system such as a chatbot system or a speech recognition system.
The automatic syntax rule generation method of the present invention is a method of automatically generating a syntax rule in advance while constructing a query response system that recognizes a query of a query terminal and generates response data through a language processing process in advance.
(a) The administrator terminal inputs the sentence including the object tag, (b) extracts the object tag from the input sentence, remembers the location, executes the morpheme analysis, and (c) places the object tag in the morpheme analysis result. To create a basic syntax rule, and (d) create a rule that expands a tag syntax by generating a rule that compares only vocabulary of nouns and verbs regardless of the morpheme result among morpheme analysis results, and (e) constructs a syntax for a predicate After going through a pre-determined process of executing rule expansion,
And creating a syntax rule and storing it in the question-and-answer system.

Description

질의자 의도를 이해하기 위한 구문 규칙 자동생성 장치 및 방법{THE SYNTAX GRAMMAR RULES AUTOMATIC GENERATION METHOD OF UNDERSTANDING USER QUERY INTENTION}Syntax rule auto-generating device and method for understanding the interrogator intent {THE SYNTAX GRAMMAR RULES AUTOMATIC GENERATION METHOD OF UNDERSTANDING USER QUERY INTENTION}

본 발명은 언어처리 기술에 관하며, 특히 사용자의 질의에 대한 응답을 생성하기 위한 챗봇 시스템, 음성 인식 시스템 등의 기반이 되는 언어처리 기술에 관한다.The present invention relates to a language processing technology, and in particular, to a language processing technology that is the basis of a chatbot system, a voice recognition system, etc. for generating a response to a user's query.

최근 많은 기업이 기업 고객센터의 업무시간 외 소비자에 대한 대응을 하기 위한 메신저 기반의 질의 응답 시스템을 도입하고 있다. 또한 사용자의 질의 음성을 인식해서 질문 내용을 분석하고 그에 적절한 응답을 하는 AI 스피커가 등장하고 있다. 그런 대표적인 시스템으로 아마존 에코, 구글 홈, SKT 누구, KT 기가지니, 카카오 미니 등이 있다. 이러한 질의응답 시스템은 오래전부터 논의되고 개발되어 왔지만 최근 DB의 축적, 기술의 발전 등으로 인해 사용할 수 있는 범위가 크게 확장되고 있다.Recently, many companies have introduced a messenger-based question and answer system to respond to consumers outside of business hours of corporate customer centers. In addition, AI speakers are emerging that recognize the voice of the user's query and analyze the content of the question and respond appropriately. Examples of such systems include Amazon Echo, Google Home, SKT Anyone, KT GiGA Genie, and Kakao Mini. Such a question-and-answer system has been discussed and developed for a long time, but the range that can be used has been greatly expanded due to recent DB accumulation and technological development.

질의응답 시스템은 사람 간에 이루어진 수많은 대화 데이터를 기반으로 대화의 패턴과 규칙을 습득한 프로그램이 사용자의 질의에 대한 응답의 범위를 정하고 이 범위 안에 들어온 질의에 대해 응답을 해주는 컴퓨터 시스템이다. The Q & A system is a computer system in which a program that acquires patterns and rules of conversation based on a large number of conversation data between people determines the range of responses to user queries and responds to queries that fall within this range.

사용자의 질의를 분석하기 위해서는 형태소 분석, 구문 분석 같이 인간이 사용하는 언어를 컴퓨터에 인식시켜 처리하는 자연어 처리 과정이 필요하다. 질의응답 시스템을 구현하는 여러 가지 방법 중 구문 규칙을 이용한 방법은 사용자의 질의를 자연어처리 과정을 통해 분석한 후 미리 정의해 놓은 구문 규칙(Syntax Grammar)을 이용해 응답하게 된다.In order to analyze a user's query, a natural language processing process is required to recognize and process the language used by humans, such as morpheme analysis and syntax analysis. Among the various methods of implementing a question and answer system, a method using a syntax rule analyzes a user's query through a natural language processing process and then responds using a predefined syntax rule (Syntax Grammar).

구문 규칙은 다양한 문장에서 단어들을 여러 가지 기준으로 모아 개체를 만들고, 반복적으로 나타나는 구문을 형태소, 어휘, 품사, 개체 등으로 이루어진 규칙으로 정의하는 것이다. 구문 규칙을 이용하는 이러한 질의응답 시스템으로 서비스를 제공하기 위해서는 많은 구문 규칙을 생성해 두고 지속적인 관리를 해주어야 한다.Syntax rules are to create objects by collecting words from various sentences based on various criteria, and to define repetitive phrases as rules consisting of morphemes, vocabulary, parts of speech, and objects. In order to provide a service with such a question-and-answer system using syntax rules, many syntax rules must be created and managed continuously.

기존 구문 규칙을 이용한 챗봇 시스템, 음성 인식 시스템 등은 규칙이 성립하는 전형적인 질의에는 엄청난 성능의 응답률을 보이지만, 패턴이 조금만 맞지 않아도 응답률이 현저히 떨어지는 문제가 있었다. 그리고 같은 의미라도 질의가 다양해짐에 따라 패턴이 성립하게 되는 확률이 점차 줄어들게 되는 한계가 있었다.Chatbot systems, speech recognition systems, etc. using existing syntax rules show tremendous performance response rates for typical queries established by rules, but there is a problem in that the response rate is significantly reduced even if the patterns are not matched slightly. And even if it means the same, there is a limit that the probability that a pattern is established gradually decreases as the queries diversify.

이러한 문제와 한계를 해결하기 위해서는 다양한 질의에 대해 그에 상응하는 구문 규칙을 생성해 응답할 수 있는 확률을 높여야 한다. 하지만 구문 규칙이란 형태소, 어휘, 품사, 개체 등의 정보와 구문구조를 표현할 수 있는 문법규칙으로 종래에는 해당 분야의 지식을 가진 전문가가 직접 작업을 해야 했다. To solve these problems and limitations, it is necessary to increase the probability of responding by generating the corresponding syntax rules for various queries. However, syntax rules are grammar rules that can express information and syntax structures such as morphemes, vocabulary, parts of speech, objects, etc. In the past, experts with knowledge in the field had to work directly.

위와 같은 문제를 해결하기 위하여 연구하면서 본 발명의 발명자들은 오랫동안 연구하고 개발하여 노력한 끝에 본 발명을 완성하기에 이르렀다.While researching to solve the above problems, the inventors of the present invention have long researched and developed and tried to complete the present invention.

해당 분야의 지식을 가진 전문가가 초기 질의 응답 시스템 구축 시 많은 데이터를 기반으로 구문 규칙을 생성했다고 하더라도, 시스템을 운영하면서 전문가가 다시 구문 규칙을 추가, 수정 등 지속적인 관리가 필요하기 때문에 많은 비용이 발생하게 된다.Even if an expert with knowledge in the field creates a syntax rule based on a lot of data when constructing an initial question-and-answer system, it costs a lot of money because the expert needs constant management such as adding and modifying syntax rules again while operating the system. Is done.

본 발명의 목적은 구문 규칙을 관리하는 부분에서 해당 분야의 지식을 가진 전문가가 아닌, 누구라도 쉽게 확장된 구문 규칙을 생성할 수 있으며, 하나의 구문 규칙으로 기존의 구문 규칙보다 다양한 방법으로 그와 같은 확장된 구문 규칙을 생성할 수 있는 환경과 방법론을 제공하는 것이다.The object of the present invention is that anyone who is not an expert with knowledge in the field in managing a syntax rule can easily create an extended syntax rule, and in one way, the syntax rules are more diverse than the existing syntax rules. It provides an environment and methodology that can generate the same extended syntax rules.

한편, 본 발명의 명시되지 않은 또 다른 목적들은 하기의 상세한 설명 및 그 효과로부터 용이하게 추론할 수 있는 범위 내에서 추가적으로 고려될 것이다.On the other hand, other objects not specified in the present invention will be additionally considered within a range that can be easily deduced from the following detailed description and its effects.

본 발명의 제1국면은 질의자 단말의 질의를 인식하여 언어처리 과정을 거쳐 응답 데이터를 생성하는 질의응답 시스템을 사전에 구축하면서 미리 구문 규칙을 자동으로 생성하는 방법으로서:The first aspect of the present invention is a method of automatically generating a syntax rule in advance while constructing a query response system that generates a response data through a language processing process by recognizing a query of the interrogator terminal in advance:

(a) 관리자 단말이 개체 태그를 포함한 문장을 입력하고, (b) 입력 문장에서 개체 태그를 추출하여 그 위치를 기억한 후 형태소 분석을 실행하고, (c) 형태소 분석 결과에 개체 태그를 원래 위치에 삽입하여 기본 구문 규칙을 생성하고, (d) 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과와 관계없이 어휘만 비교하는 규칙을 생성하여 태그 확장 구문 규칙을 생성하고, (e) 서술어에 대해 구문 규칙의 확장을 실행하는 미리 정해진 프로세스를 거친 후에,(a) The administrator terminal inputs the sentence including the object tag, (b) extracts the object tag from the input sentence, remembers the location, executes morpheme analysis, and (c) places the object tag in the morpheme analysis result. To create a basic syntax rule, and (d) create a rule that expands a tag syntax by generating a rule that compares only vocabulary of nouns and verbs regardless of the morpheme result among morpheme analysis results, and (e) constructs a syntax for a predicate After going through a pre-determined process of executing rule expansion,

구문 규칙을 생성하여 상기 질의응답 시스템에 저장하는 단계를 포함하는 것을 특징으로 한다.And generating a syntax rule and storing it in the Q & A system.

본 발명의 바람직한 일 실시예에 따른 질의응답 시스템에서 구문 규칙 자동 생성 방법에 있어서, 상기 (d) 단계에서 동사는 형태소 분석하기 전에 상기 (a) 단계의 입력 문장의 어휘로 복원하는 것이 좋다.In a method for automatically generating syntax rules in a question-and-answer system according to an exemplary embodiment of the present invention, it is preferable to restore a verb in step (d) to the vocabulary of the input sentence in step (a) before morpheme analysis.

또한, 본 발명의 바람직한 일 실시예에 따른 질의응답 시스템에서 구문 규칙 자동 생성 방법에 있어서, 상기 (e) 단계는 부사를 제거하여 구문 규칙을 확장하는 것이 좋다.In addition, in the method of automatically generating syntax rules in the question-and-answer system according to an exemplary embodiment of the present invention, it is preferable that step (e) extends the syntax rules by removing adverbs.

본 발명의 제2국면은 질의자 단말의 질의를 인식하여 언어처리 과정을 거쳐 응답 데이터를 응답하는 질의응답 시스템을 사전에 구축하면서 미리 구문 규칙을 자동으로 생성하도록 하는 데이터 및 프로그램 코드를 포함하는 소프트웨어 모듈인 구문 규칙 자동 생성 장치에 관한 것으로서, The second aspect of the present invention is software including data and program code to automatically generate a syntax rule in advance while recognizing a query of a queryer terminal and constructing a query response system that responds to response data through a language processing process in advance. A module for automatically generating syntax rules,

관리자 단말이 개체 태그를 포함한 문장을 입력하는 입력 문장 모듈, 입력 문장에서 개체 태그를 추출하여 그 위치를 기억한 후 형태소 분석을 실행하는 개체 태그 추출 모듈, 상기 개체 태그 추출 모듈의 형태소 분석 결과에 개체 태그를 원래 위치에 삽입하여 기본 구문 규칙을 생성하는 기본 구문 규칙 생성 모듈, 상기 개체 태그 추출 모듈의 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과와 관계없이 어휘만 비교하는 규칙을 생성하여 태그 확장 구문 규칙을 생성하는 태그 확장 구문 규칙 생성 모듈, 서술어에 대해 구문 규칙의 확장을 실행하는 구문 규칙 확장 모듈을 포함하며, An input sentence module for inputting a sentence including an object tag by an administrator terminal, an object tag extraction module for extracting an object tag from an input sentence and storing its location, and then performing a morpheme analysis, an object in the morpheme analysis result of the object tag extraction module The basic syntax rule generation module that inserts tags into the original position to generate basic syntax rules, and the tag expansion syntax by creating a rule that compares only vocabulary of nouns and verbs regardless of the morpheme results among the morpheme analysis results of the object tag extraction module It includes a tag extension syntax rule generation module that generates rules, and a syntax rule extension module that executes an extension of syntax rules for predicates,

미리 정해진 프로세스를 거친 후에, 구문 규칙을 생성하여 상기 질의응답 시스템에 저장하는 것을 특징으로 한다.After passing through a predetermined process, it is characterized by generating a syntax rule and storing it in the question-and-answer system.

또한, 본 발명의 바람직한 일 실시예에 따른 질의응답 시스템에서 구문 규칙 자동 생성 장치에 있어서, 상기 구문 규칙 자동 생성 장치는 질의응답 시스템 내에 포함된 모듈이거나, 혹은 질의응답 시스템 외부에 설치되는 모듈로서 네트워크 통신을 통해 연결될 수 있다.In the apparatus for automatically generating a syntax rule in the question and answer system according to an exemplary embodiment of the present invention, the apparatus for automatically generating the syntax rule is a module included in the question and answer system, or a network installed as a module installed outside the question and answer system. It can be connected via communication.

위와 같은 본 발명의 과제해결수단을 통해서 본 발명은 질의 응답 시스템에 있어 구문 규칙을 정의하기 위한 전문가가 아닌 누구라도 효과적으로 구문 규칙을 정의할 수 있다는 장점이 있다. Through the above-described problem solving means of the present invention, the present invention has an advantage that anyone who is not an expert for defining syntax rules in a query response system can effectively define syntax rules.

또한, 구문 규칙 생성 시 태그 확장 및 주요 품사 확장 등으로 기존에 비해 다양한 질의패턴에 대응할 수 있다.In addition, when creating syntax rules, it is possible to respond to various query patterns compared to the existing ones by expanding tags and extending parts of speech.

또한, 본 발명은 유지 보수와 구문 규칙 관리를 기존보다 효율적으로 할 수 있다는 장점이 있다.In addition, the present invention has an advantage that maintenance and syntax rule management can be performed more efficiently than before.

한편, 여기에서 명시적으로 언급되지 않은 효과라 하더라도, 본 발명의 기술적 특징에 의해 기대되는 이하의 명세서에서 기재된 효과 및 그 잠정적인 효과는 본 발명의 명세서에 기재된 것과 같이 취급됨을 첨언한다.On the other hand, even if the effects are not explicitly mentioned herein, it is noted that the effects described in the following specification expected by the technical features of the present invention and the potential effects thereof are handled as described in the specification of the present invention.

도 1은 본 발명의 바람직한 어느 실시예에 따른 질의 응답 시스템(10)의 개략적인 네트워크 구성을 나타낸다.
도 2는 본 발명에서 관리자 단말(15)이 수행하는 역할과 구문 규칙 자동 생성 장치(100)의 시스템 구성 예를 개략적으로 나타낸다.
도 3은 본 발명의 바람직한 어느 실시예에 따른 구문 규칙 자동 생성 장치(100)의 개략적인 전체 구성 및 프로세스를 나타내는 도면이다.
도 4는 본 발명의 바람직한 어느 실시예의 기본 구문 규칙 생성 과정을 나타내는 도면이다.
도 5는 본 발명의 바람직한 어느 실시예의 태그 확장 구문 규칙 생성 과정을 나타내는 도면이다.
도 6은 본 발명의 바람직한 어느 실시예의 서술어 규칙 확장 과정을 나타내는 도면이다.
도 7은 본 발명의 바람직한 어느 실시예의 부사 확장 규칙 과정을 나타내는 도면이다.
※ 첨부된 도면은 본 발명의 기술사상에 대한 이해를 위하여 참조로서 예시된 것임을 밝히며, 그것에 의해 본 발명의 권리범위가 제한되지는 아니한다.
1 shows a schematic network configuration of a question and answer system 10 according to an exemplary embodiment of the present invention.
2 schematically shows an example of the system configuration of the apparatus 100 for automatically generating roles and syntax rules performed by the administrator terminal 15 in the present invention.
FIG. 3 is a schematic diagram showing the overall configuration and process of the apparatus 100 for automatically generating syntax rules according to an exemplary embodiment of the present invention.
4 is a diagram showing a basic syntax rule generation process in a preferred embodiment of the present invention.
5 is a diagram illustrating a process of generating a tag extension syntax rule in a preferred embodiment of the present invention.
6 is a diagram illustrating a process of extending a predicate rule in any preferred embodiment of the present invention.
7 is a diagram illustrating a process of adverb extension rules in a preferred embodiment of the present invention.
※ The accompanying drawings indicate that they are exemplified by reference for understanding the technical idea of the present invention, and the scope of the present invention is not limited thereby.

이하, 도면을 참조하여 본 발명의 다양한 실시예가 안내하는 본 발명의 구성과 그 구성으로부터 비롯되는 효과에 대해 살펴본다. 본 발명을 설명함에 있어서 관련된 공지기능에 대하여 이 분야의 기술자에게 자명한 사항으로서 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략한다.Hereinafter, a configuration of the present invention guided by various embodiments of the present invention and effects resulting from the configuration will be described with reference to the drawings. In the description of the present invention, when it is determined that the subject matter of the present invention may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.

도 1은 본 발명의 바람직한 어느 실시예에 따른 질의 응답 시스템(10)의 개략적인 네트워크 구성을 나타낸다. 질의자 단말(1)이 통신망을 통해 질의 응답 시스템(10)에 접속하여 질의를 한다. 1 shows a schematic network configuration of a question and answer system 10 according to an exemplary embodiment of the present invention. The interrogator terminal 1 queries the query response system 10 through a communication network.

질의자 단말(1)은 유선 혹은 무선 통신망을 통해 음성을 생성하여 전송하는 것으로, 유선 전화기, 스마트폰 등의 무선 전화기 등을 포함하여 음성을 생성하여 전송할 수 있는 디바이스이다. 질의 응답 시스템(10)은 질의자 단말(1)이 접속하여 질의를 하면, 그 질의를 인식하여 응답할 수 있는 컴퓨터 시스템으로서, 웹 기반, 애플리케이션 기반, 통신 시스템 등에서 사용하는 다양한 전자장치 및 소프트웨어를 포함하여 구성된다. 또한 음성 인식 및 언어 처리 기반으로 질의자 질의에 응답하는 시스템이다. 챗봇 시스템으로도 표현되거나 구성될 수 있다.The interrogator terminal 1 is a device that generates and transmits voice through a wired or wireless communication network, and is a device capable of generating and transmitting voice, including a cordless phone, a wireless phone such as a smart phone, and the like. The query response system 10 is a computer system capable of recognizing and responding to a query when the interrogator terminal 1 accesses and queries, and uses various electronic devices and software used in web-based, application-based, and communication systems. It includes. In addition, it is a system that responds to query of interrogator based on speech recognition and language processing. It can also be expressed or configured as a chatbot system.

질의 응답 시스템(10)은 미리 정해진 프로세스에 의해 생성된 응답을 스피커를 통해 음성으로 출력한다. 질의 응답 시스템(10)은 저장장치, 통신장치, I/O 인터페이스 등을 포함하는 하드웨어와, 질의를 인식하고 응답을 생성하는 프로세스를 처리하는 소프트웨어와, 이 소프트웨어의 실행과 자원을 관리하는 서버 등을 포함한다.The question and answer system 10 outputs a response generated by a predetermined process through a speaker through voice. The query response system 10 includes hardware including a storage device, a communication device, an I / O interface, software for processing a process for recognizing a query and generating a response, and a server for managing execution and resources of the software. It includes.

질의 응답 시스템 서버(11)는 하나 이상의 하드웨어/소프트웨어 장비를 포함하여 구성되는 서버 장치이며, 상기 질의 응답 시스템(10)을 관리한다. The question and answer system server 11 is a server device that includes one or more hardware / software equipment, and manages the question and answer system 10.

질의 응답 시스템(10)에는 다양한 데이터베이스가 포함되어 있다. 데이터베이스(12)는 질의를 인식하고 응답을 생성하는 언어 리소스를 기록하고 관리한다.The question and answer system 10 includes various databases. The database 12 records and manages language resources that recognize queries and generate responses.

관리자 단말(15)은 상기 서버(11)에 접속하며 질의 응답 시스템(10)을 관리한다. 또한 본 발명의 구문 규칙 자동생성 장치를 통해 확장된 구문 규칙을 생성한다.The administrator terminal 15 connects to the server 11 and manages the query response system 10. In addition, an extended syntax rule is generated through the automatic generation device of the syntax rule of the present invention.

도 2는 본 발명에서 관리자 단말(15)이 수행하는 역할과 구문 규칙 자동 생성 장치(100)의 시스템 구성을 개략적으로 나타내었다.FIG. 2 schematically shows a system configuration of an automatic generating device 100 of roles and syntax rules performed by the administrator terminal 15 in the present invention.

관리자 단말(15)은 질의 응답 시스템(10)에 접속하여 응답에 필요한 입력문장과 개체를 정의하여 관리한다. 그러면 구문 규칙 자동 생성 장치(100)가 입력문장과 정의된 개체를 이용하여 이하에서 설명하는 확장된 구문 규칙을 생성한다. 그리고 구문 규칙 자동 생성 장치(100)를 실행하여 응답생성부(150)가 응답 데이터를 생성하는 것이다.The administrator terminal 15 accesses the query response system 10 to define and manage input sentences and entities required for responses. Then, the syntax rule automatic generation device 100 generates an extended syntax rule described below using an input sentence and a defined object. In addition, the response generation unit 150 generates response data by executing the syntax rule automatic generation device 100.

구문 규칙 자동 생성 장치(100)는 구동에 필요한 데이터와 프로그램 코드를 저장장치에 구축해 놓는다. 도 2(a)의 실시예에서는 질의 응답 시스템(10)에 포함되어 구성된다. 도 2(b)의 실시예에서 보는 것처럼 질의 응답 시스템(10) 외부에 별도로 구성해 놓고, 네트워크 통신을 통해서 데이터를 주고받을 수도 있다. 이 경우, 구문 규칙 생성부(101)와 구문 규칙 자동생성 장치(100)는 실시간으로 통신한다.The syntax rule automatic generation device 100 builds data and program codes necessary for driving in a storage device. In the embodiment of Fig. 2 (a), it is configured to be included in the question and answer system 10. As shown in the embodiment of FIG. 2 (b), it may be separately configured outside the question and answer system 10, and data may be exchanged through network communication. In this case, the syntax rule generation unit 101 and the syntax rule automatic generation device 100 communicate in real time.

이러한 구문 규칙 자동 생성 장치(100)는 구문 규칙을 이용한 챗봇 시스템 혹은 음성 인식 시스템 등의 질의 응답 시스템에 사용되는 구문 규칙을 전문적인 지식 없이 응답에 필요한 입력 문장과 개체 정의 만으로 누구라도 효과적으로 정의할 수 있도록 하는 장치이다. 구문 규칙을 사람이 직접 정의하고 구축하려면 언어 문법 및 형태소 분석에 대한 기본 지식을 갖추고 있어야 하며, 다양한 질의 패턴에 대응하기 위해서는 그것에 맞는 구문 규칙을 하나씩 추가, 확장해야 한다는 단점은 본 발명의 구문 규칙 자동 생성 장치(100)에 의해 해소될 수 있다. The automatic syntactic rule generation device 100 can effectively define anyone by simply defining the syntactic rules used in the query response system, such as a chatbot system or speech recognition system using the syntactic rules, without inputting expertise and defining input sentences and objects required for response. Device. The disadvantage of having to have basic knowledge of language grammar and morpheme analysis in order to define and build syntax rules by yourself, and that in order to respond to various query patterns, the syntax rules of the present invention must be added and extended one by one. It can be resolved by the generating device 100.

도 3은 본 발명의 바람직한 어느 실시예에 따른 구문 규칙 자동 생성 장치(100)의 개략적인 전체 구성 및 프로세스를 나타내고 있다.3 shows a schematic overall configuration and process of the apparatus 100 for automatically generating syntax rules according to a preferred embodiment of the present invention.

도시되어 있는 것처럼, 구문 규칙 자동 생성 장치(100)는 관리자 단말이 개체 태그를 포함한 문장을 입력하는 입력 문장 모듈(110), 입력 문장에서 개체 태그를 추출하여 그 위치를 기억한 후 형태소 분석을 실행하는 개체 태그 추출 모듈(120), 개체 태그 추출 모듈(120)의 형태소 분석 결과에 개체 태그를 원래 위치에 삽입하여 기본 구문 규칙을 생성하는 기본 구문 규칙 생성 모듈(130), 개체 태그 추출 모듈(120)의 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과와 관계없이 어휘만 비교하는 규칙을 생성하여 태그 확장 구문 규칙을 생성하는 태그 확장 구문 규칙 생성 모듈(140), 서술어에 대해 구문 규칙의 확장을 실행하는 구문 규칙 확장 모듈(150), 그리고 구문 규칙 생성 모듈(160)을 포함할 수 있다.As shown in the figure, the syntax rule automatic generation device 100 executes a morpheme analysis after an input sentence module 110 in which an administrator terminal inputs a sentence including an object tag, extracts an object tag from the input sentence, stores the location thereof, and stores the location tag. The object tag extraction module 120, the basic syntax rule generation module 130, and the object tag extraction module 120 for generating basic syntax rules by inserting the object tag into the original location in the morpheme analysis result of the object tag extraction module 120 ), The tag expansion syntax rule generation module 140 that generates a tag expansion syntax rule by generating a rule that compares only vocabulary of nouns and verbs regardless of the morpheme result among the morpheme analysis results of), executes the expansion of syntax rules for predicates The syntax rule expansion module 150 may include a syntax rule generation module 160.

이들 구문 규칙 자동 생성 장치(100)의 각 구성요소는 도시되어 있는 바와 같은 시계열적인 프로세스를 실행한다. Each component of these syntax rule automatic generation devices 100 executes a time-series process as shown.

위 구성들을 다시 설명한다. 관리자 단말이 질의 응답 시스템(10)에 관리자 모드로 접속해서 정의한 개체에 대해서 구문 규칙 자동 생성 장치(100)의 입력 문장 모듈(110)은 개체 태그가 포함되어 있는 입력 문장을 기반으로 구문 규칙을 자동으로 생성한다.The above configurations will be described again. The input sentence module 110 of the apparatus 100 for automatically generating a syntax rule for an object defined by the administrator terminal accessing the query response system 10 in an administrator mode automatically generates a syntax rule based on an input sentence including an object tag. Is created by

다음으로 개체 태그 추출 모듈(120)은 입력 문장에서 개체 태그를 추출한 다음에 해당 태그의 위치를 기억한 후 개체 태그가 제거된 텍스트를 형태소 분석기를 이용하여 형태소 분석한다.Next, the object tag extraction module 120 extracts the object tag from the input sentence, remembers the location of the tag, and analyzes the text from which the object tag has been removed using a morpheme analyzer.

기본 구문 규칙 생성 모듈(130)은 개체 태그 추출 모듈(120)의 형태소 분석 결과에 개체 태그를 원래 위치에 삽입함으로써 기본 구문 규칙을 생성한다.The basic syntax rule generation module 130 generates a basic syntax rule by inserting the object tag into the original location in the morpheme analysis result of the object tag extraction module 120.

태그 확장 구문 규칙 생성 모듈(140)은 다양한 개체 값에 적용 가능한 구문 규칙 생성을 위해 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과에 관계 없이 어휘만 비교하는 규칙을 생성한다. 이때 동사는 형태소 분석하기 전의 입력 문장의 어휘로 복원한다.The tag extension syntax rule generation module 140 generates rules for comparing vocabulary only with respect to nouns and verbs among morpheme analysis results in order to generate syntax rules applicable to various object values. At this time, the verb is restored to the vocabulary of the input sentence before morphological analysis.

구문 규칙 확장 모듈(150)은 문장에서 다양한 서술어에 적용 가능한 구문 규칙 생성을 위해 서술어에 대해 구문 규칙을 확장한다. 또한 문장의 형용사, 동사, 부사를 더 자세하게 설명하며 꾸며주는 역할을 하는 부사를 제거한다. 의미적으로 부사는 문장에서 중요도가 떨어지기 때문에 이를 제거하여 구문 규칙을 확장할 수 있다. The syntax rule expansion module 150 expands syntax rules for predicates to generate syntax rules applicable to various predicates in a sentence. In addition, the adjectives, verbs, and adverbs of sentences are explained in more detail and adverbs are removed. Semantically, since adverbs are less important in sentences, syntax rules can be extended by removing them.

본 발명은 이와 같은 프로세스를 통해서 구문 규칙을 확장하게 되는데, 구문 규칙을 정의하기 위한 전문가가 아닌 누구라도 효과적으로 구문 규칙을 정의할 수 있다는 장점이 있다. 또한, 구문 규칙 생성 시 태그 확장 및 주품사 확장 등으로 기존에 비해 다양한 질의패턴에 대응할 수도 있게 된다. The present invention extends syntax rules through such a process, and has an advantage that anyone who is not an expert for defining syntax rules can effectively define syntax rules. In addition, when creating syntax rules, it is possible to respond to a variety of query patterns compared to the existing ones by expanding tags and expanding suppliers.

이제 본격적으로 입력 문장 시나리오를 이용해서 본 발명의 상세한 원리와 내용을 살펴 본다. 도 4는 본 발명의 일 실시예로서 기본 구문 규칙 생성이 어떻게 이뤄지는지를 개략적으로 나타낸다.Now, a detailed principle and content of the present invention will be described using the input sentence scenario in earnest. 4 schematically shows how basic syntax rule generation is achieved as an embodiment of the present invention.

관리자 단말은 구축하고자 하는 구문 규칙의 자동생성을 위해 문장을 입력한다. 이 입력 문장을 통해 구문 규칙 자동 생성을 하게 되는데, 이때의 입력 문장은 개체 태그가 포함된 일반 문자열 형태가 된다. 다음 [예제 1]과 같다.The administrator terminal inputs a sentence for automatic generation of syntax rules to be constructed. Syntax rules are automatically generated through this input sentence, and the input sentence at this time becomes a general string type including the object tag. It is as follows [Example 1].

[예제 1] <WHERE>서울시청</WHERE> 위치 알려줘[Example 1] <WHERE> Seoul City Hall </ WHERE> Give me the location

다음으로 입력 문장에서 개체 태그를 찾은 후 아래의 예제 2와 같이 개체명과 개체 값을 저장한다.Next, after finding the object tag in the input sentence, save the object name and object value as shown in Example 2 below.

[예제 2] WHERE=[서울시청][Example 2] WHERE = [Seoul City Hall]

다음으로 기본 구문 규칙 생성 모듈은 입력 문장에서 저장한 개체 태그의 위치를 기억한 후 개체 값은 그대로 두고 개체 태그만을 제거한다(S101). 추출된 개체 태그는 위치 값을 별도로 저장한다(S102). Next, the basic syntax rule generation module remembers the location of the object tag stored in the input sentence and removes only the object tag while leaving the object value (S101). The extracted object tag separately stores the location value (S102).

다음으로 개체 태그가 제거된 일반 문자열로만 이루어진 문장을 형태소 분석기를 통해 형태소 분석을 한다(S103). 아래의 예제 3 및 예제 4를 보자.Next, the morpheme analysis is performed through a morpheme analyzer on a sentence composed of only a general string with the object tag removed (S103). See Example 3 and Example 4 below.

[예제 3] 0~4: WHERE=[서울시청][Example 3] 0 ~ 4: WHERE = [Seoul City Hall]

[예제 4] 서울시청 위치 알려줘 > 서울/nng+시청/nng 위치/nng 알리/vv+어/ec+주/vx+어/ec[Example 4] Give me the location of Seoul City Hall> Seoul / nng + City Hall / nng Location / nng Ali / vv + uh / ec + juju / vx + uh / ec

위치 값을 저장해둔 태그를 형태소 분석된 문장에서 해당 위치 값으로 재배치한다(S105). 태그는 "$변수=@개체명"으로 표현하며 변수명은 개체명을 사용한다. The tag storing the location value is relocated to the corresponding location value in the morpheme analyzed sentence (S105). The tag is expressed as "$ variable = @ object name", and the variable name uses the object name.

[예제 5] $date=@DATE[Example 5] $ date = @ DATE

[예제 6] $where=@WHERE 위치/nng 알리/vv+어/ec+주/vx+어/ec[Example 6] $ where = @ WHERE location / nng ali / vv + uh / ec + week / vx + uh / ec

태그 재배치 중 형태소의 위치 값과 태그의 위치 값이 충돌 할 경우(S107), 해당 형태소를 음절 분리해서(S108) 기본 구문 규칙을 생성한다(S109). 예제 7과 예제 8을 보자. When the position value of the morpheme and the position value of the tag collide during tag relocation (S107), the corresponding morpheme is separated into syllables (S108) to generate a basic syntax rule (S109). Consider Example 7 and Example 8.

[예제 7] <WHERE>서울시</WHERE>청 위치 알려줘[Example 7] <WHERE> Seoul City </ WHERE> Please let me know your location

[예제 8] $where=@WHERE+청 위치/nng 알리/vv+어/ec+주/vx+어/ec[Example 8] $ where = @ WHERE + Blue location / nng ali / vv + uh / ec + week / vx + uh / ec

시스템에서 구문 규칙 패턴에 일치할 경우 변수명으로 개체 값을 결과에 포함해 내어주기 때문에 동일한 개체 태그가 있을 경우 변수에 숫자를 붙여 구분해 준다. 즉, $변수=@개체명, $변수1=@개체명 등과 같은 형식이다. When the system matches the syntax rule pattern, the object value is included as a variable name in the result, so if there is the same object tag, the variable is added with a number to distinguish it. That is, the format is $ variable = @ object name, $ variable1 = @ object name.

[예제 9] <WHERE>서울</WHERE>에 <WHERE>시청</WHERE> 위치 알려줘[Example 9] Give <WHERE> Seoul </ WHERE> the location of <WHERE> Watch </ WHERE>

[예제 10] $where=@WHERE+에/j $where1=@WHERE 위치/nng 알리/vv+어/ec+주/vx+어/ec[Example 10] $ where = @ WHERE + to / j $ where1 = @ WHERE location / nng ali / vv + uh / ec + week / vx + uh / ec

도 5는 본 발명의 어느 실시예로서 태그 확장 구문 규칙 생성 모듈의 프로세스를 개략적으로 예시한다.5 schematically illustrates the process of the tag extension syntax rule generation module as an embodiment of the present invention.

입력 문장에서 개체 태그를 제거하고(S110), 추출된 개체 태그의 위치 값을 저장한 후(S111), 형태소 분석을 하는 것(S112)는 위 도 4의 기본 구문 규칙 생성 프로세스와 같다. 그러나 개체 태그 부분은 다양한 어휘가 들어갈 수 있기 때문에 문장의 형태소 분석 결과가 다양하게 나올 수 있다. Removing the object tag from the input sentence (S110), storing the location value of the extracted object tag (S111), and performing morpheme analysis (S112) are the same as the basic syntax rule generation process of FIG. 4 above. However, since the individual tag part can contain various vocabulary, the result of morpheme analysis of a sentence can be varied.

이러한 이유로 다양한 개체 값에 적용 가능한 구문 규칙 생성을 위해 주요한 품사인 명사와 동사 형태소에 대해 어휘만 비교하는 규칙을 생성한다(S113). 그런 다음 개체 태그를 재배치한다(S115). 이때 동사는 형태소 분석하기 전 입력 문장의 어휘로 원형 복원한다(S116).For this reason, in order to generate syntax rules applicable to various individual values, rules for comparing only vocabulary words for nouns and verb morphemes, which are major parts of speech, are generated (S113). Then, the object tag is rearranged (S115). At this time, the verb is restored to the original form of the vocabulary of the input sentence before the morpheme analysis (S116).

[예제 11] <WHERE>서울시청</WHERE> 위치 알려줘[Example 11] <WHERE> Seoul City Hall </ WHERE> Give me the location

[예제 12] $where=@WHERE 위치/* 알리/*+어/ec+주/vx+어/ec[Example 12] $ where = @ WHERE location / * Ali / * + uh / ec + week / vx + uh / ec

같은 의미의 문장이라도 서술어 부분이 다양하게 변화할 수 있기 때문에, 바람직하게는 서술어에 대해 구문 규칙을 확장해 이에 대응할 수 있도록 하는 것이 좋다. 도 6은 그런 실시예를 나타낸다. 도 4 및 도 5를 통해 기본 구문 규칙을 생성했고, 태그 확장 구문 규칙을 생성했다(S120). 그런 다음에 서술어 규칙을 확장하는 것이다.Since even the sentence with the same meaning can vary in various parts of the predicate, it is preferable to expand the syntax rules for the predicate so that it can respond to it. 6 shows such an embodiment. 4 and 5, a basic syntax rule was generated and a tag extension syntax rule was generated (S120). Then expand the predicate rules.

서술어 규칙 확장은 본용언+보조용언(S121), 용언+어미(S123), 명사+동사파생접미사+어미(S125), 명사+긍정지정사+어미(S127) 등의 형태에 대해 순차적으로 확장해 나갈 수 있다. 그런 과정을 통해서 본용언 보조용언 확장 규칙(S121a), 용언 어미 확장 규칙(S123a), 동사 파생 접미사 확장 규칙(S125a), 긍정 지정사 확장 규칙(S127a)를 생성할 수 있다.The extension of the predicate rules can be sequentially expanded for forms such as the main language + auxiliary language (S121), long language + ending (S123), noun + verb derivative suffix + ending (S125), noun + positive noun + ending (S127). have. Through such a process, it is possible to generate the main verb auxiliary verb extension rule (S121a), the verb ending rule (S123a), the verb derived suffix extension rule (S125a), and the positive designator extension rule (S127a).

[예제 13] 본용언 + 보조용언[Example 13] Main usage + auxiliary usage

$where=@WHERE 위치/nng 알리/ vv+어/ec+주/ vx+어/ec$ where = @ WHERE location / nng ali / vv + uh / ec + main / vx + uh / ec

$where=@WHERE 위치/nng 알리/ vv+* $ where = @ WHERE location / nng ali / vv + *

[예제 14] 용언 + 어미[Example 14] Longan + Mother

$where=@WHERE 위치/nng 알리/vv+어/ec+주/ vx +어/ ec $ where = @ WHERE location / nng ali / vv + uh / ec + main / vx + uh / ec

$where=@WHERE 위치/nng 알리/vv+어/ec+주/ vx +* $ where = @ WHERE location / nng ali / vv + uh / ec + share / vx + *

[예제 15] 명사 + 동사파생접미사 + 어미[Example 15] Noun + Verb Derivative Suffix + Mother

$where=@WHERE 위치/nng 보고/ nng +하/ xsv +아/ ec $ where = @ WHERE location / nng report / nng + ha / xsv + ah / ec

$where=@WHERE 위치/nng 보고/ nng +* $ where = @ WHERE location / nng report / nng + *

[예제 16] 명사 + 긍정지정사 + 어미[Example 16] Noun + Positive Designator + Mother

$where=@WHERE 위치/nng+는/j 서울/nng+광장/nng 옆/ nng +이/ vcp +니/e $ where = @ WHERE location / nng + / j seoul / nng + square / nng next / nng + i / vcp + ni / e

$where=@WHERE 위치/nng+는/j 서울/nng+광장/nng 옆/ nng +* $ where = @ WHERE location / nng + / j seoul / nng + square / nng next / nng + *

부사는 문장의 형용사나 동사, 부사를 더 자세하게 설명해 주고 꾸며 주는 역할을 한다. 이러한 부사는, 도 7에 나타난 바와 같이, 문장에서의 중요도가 떨어지기 때문에 제거해 구문 규칙을 확장한다. 예제 17의 "좀"이 예제 18에서 삭제되었다.Adverbs serve to explain and decorate adjectives, verbs, and adverbs of sentences in more detail. As shown in Fig. 7, such adverbs are reduced in importance in sentences, thereby eliminating syntax rules. The "some" of Example 17 was removed from Example 18.

[예제 17] $where=@WHERE 위치/nng 좀/ mag 알려주/v+어/e[Example 17] $ where = @ WHERE location / nng some / mag tell me / v + uh / e

[예제 18] $where=@WHERE 위치/nng 알려주/v+어/e[Example 18] $ where = @ WHERE location / nng tell / v + uh / e

참고로, 본 발명의 일 실시예에 따른 질의응답 시스템에서 구문 규칙 자동 생성 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독가능매체에 기록될 수 있다. 상기 컴퓨터 판독가능매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. For reference, in the question and answer system according to an embodiment of the present invention, a method for automatically generating syntax rules may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, or the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the present invention, or may be known and available to those skilled in computer software.

컴퓨터 판독가능매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체 및 ROM, RAM, 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함될 수 있다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급언어코드를 포함한다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROMs, DVDs, magnetic-optical media such as floptical disks, and ROM, RAM, flash Hardware devices specifically configured to store and execute program instructions, such as memory, may be included. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine codes such as those produced by a compiler. The above-described hardware device may be configured to operate as one or more software modules to perform the operation of the present invention, and vice versa.

본 발명의 보호범위가 이상에서 명시적으로 설명한 실시예의 기재와 표현에 제한되는 것은 아니다. 또한, 본 발명이 속하는 기술분야에서 자명한 변경이나 치환으로 말미암아 본 발명의 보호범위가 제한될 수도 없음을 다시 한 번 첨언한다.The scope of protection of the present invention is not limited to the description and expression of the embodiments explicitly described above. In addition, it is pointed out again that the protection scope of the present invention may not be limited by obvious changes or substitutions in the technical field to which the present invention pertains.

Claims (5)

질의자 단말의 질의를 인식하여 언어처리 과정을 거쳐 응답 데이터를 생성하는 질의응답 시스템을 사전에 구축하면서 미리 구문 규칙을 자동으로 생성하는 방법으로서:
(a) 관리자 단말이 개체 태그를 포함한 문장을 입력하고, (b) 입력 문장에서 개체 태그를 추출하여 그 위치를 기억한 후 형태소 분석을 실행하고, (c) 형태소 분석 결과에 개체 태그를 원래 위치에 삽입하여 기본 구문 규칙을 생성하고, (d) 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과와 관계없이 어휘만 비교하는 규칙을 생성하여 태그 확장 구문 규칙을 생성하고, (e) 서술어에 대해 부사를 제거하여 구문 규칙의 확장을 실행하는 미리 정해진 프로세스를 거친 후에,
구문 규칙을 생성하여 상기 질의응답 시스템에 저장하는 단계를 포함하는, 질의응답 시스템에서 구문 규칙 자동 생성 방법.
As a method of automatically constructing a syntax rule in advance while constructing a query response system that recognizes a query of a query terminal and generates response data through a language processing process in advance:
(a) The administrator terminal inputs the sentence including the object tag, (b) extracts the object tag from the input sentence, remembers the location, executes the morpheme analysis, and (c) places the object tag in the morpheme analysis result. To create a basic syntax rule, and (d) create a rule that expands the syntax of a tag by generating a rule that compares only vocabulary of nouns and verbs regardless of the morpheme result among morpheme analysis results, and (e) adverbs for a predicate After going through a pre-determined process to run the extension of the syntax rules by removing
And generating a syntax rule and storing it in the question-and-answer system.
질의자 단말의 질의를 인식하여 언어처리 과정을 거쳐 응답 데이터를 응답하는 질의응답 시스템을 사전에 구축하면서 미리 구문 규칙을 자동으로 생성하도록 하는 데이터 및 프로그램 코드를 포함하는 소프트웨어 모듈인 구문 규칙 자동 생성 장치는,
관리자 단말이 개체 태그를 포함한 문장을 입력하는 입력 문장 모듈, 입력 문장에서 개체 태그를 추출하여 그 위치를 기억한 후 형태소 분석을 실행하는 개체 태그 추출 모듈, 상기 개체 태그 추출 모듈의 형태소 분석 결과에 개체 태그를 원래 위치에 삽입하여 기본 구문 규칙을 생성하는 기본 구문 규칙 생성 모듈, 상기 개체 태그 추출 모듈의 형태소 분석 결과 중 명사와 동사에 대해 형태소 결과와 관계없이 어휘만 비교하는 규칙을 생성하여 태그 확장 구문 규칙을 생성하는 태그 확장 구문 규칙 생성 모듈, 서술어에 대해 부사를 제거하여 구문 규칙의 확장을 실행하는 구문 규칙 확장 모듈을 포함하며,
구문 규칙을 생성하여 상기 질의응답 시스템에 저장하는 것을 특징으로 하는, 질의응답 시스템의 구문 규칙 자동 생성 장치.
Syntax rule automatic generation device, which is a software module that includes data and program code that automatically generates syntax rules in advance while constructing a query response system that recognizes the query of the interrogator terminal and responds to the response data through a language processing process in advance. Is,
An input sentence module for inputting a sentence including an object tag by an administrator terminal, an object tag extraction module for extracting an object tag from an input sentence and storing its location, and then performing a morpheme analysis, an object in the morpheme analysis result of the object tag extraction module A basic syntax rule generation module that inserts tags into the original position to generate basic syntax rules, and a tag expansion syntax by creating a rule that compares only vocabulary of nouns and verbs regardless of morpheme results among morpheme analysis results of the object tag extraction module Includes a tag extension syntax rule generation module that generates rules, and a syntax rule extension module that executes the extension of syntax rules by removing adverbs for predicates,
A device for automatically generating syntax rules of a question-and-answer system, characterized in that the syntax rules are generated and stored in the question-and-answer system.
제2항에 있어서,
상기 구문 규칙 자동 생성 장치는 질의응답 시스템 내에 포함된 모듈이거나, 혹은 질의응답 시스템 외부에 설치되는 모듈로서 네트워크 통신을 통해 연결되는 것인, 질의응답 시스템의 구문 규칙 자동 생성 장치.
According to claim 2,
The apparatus for automatically generating the syntax rules is a module included in the question and answer system, or a module installed outside the question and answer system and connected through network communication.
삭제delete 삭제delete
KR1020180055934A 2018-05-16 2018-05-16 The syntax grammar rules automatic generation method of understanding user query intention KR102099670B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180055934A KR102099670B1 (en) 2018-05-16 2018-05-16 The syntax grammar rules automatic generation method of understanding user query intention

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180055934A KR102099670B1 (en) 2018-05-16 2018-05-16 The syntax grammar rules automatic generation method of understanding user query intention

Publications (2)

Publication Number Publication Date
KR20190131270A KR20190131270A (en) 2019-11-26
KR102099670B1 true KR102099670B1 (en) 2020-04-10

Family

ID=68731452

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180055934A KR102099670B1 (en) 2018-05-16 2018-05-16 The syntax grammar rules automatic generation method of understanding user query intention

Country Status (1)

Country Link
KR (1) KR102099670B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104803B (en) * 2019-12-31 2024-02-13 科大讯飞股份有限公司 Semantic understanding processing method, device, equipment and readable storage medium
CN111414467A (en) * 2020-03-20 2020-07-14 中国建设银行股份有限公司 Question-answer dialogue method and device, electronic equipment and computer readable storage medium
KR102581221B1 (en) * 2023-05-10 2023-09-21 주식회사 솔트룩스 Method, device and computer-readable recording medium for controlling response utterances being reproduced and predicting user intention

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101677859B1 (en) 2015-09-07 2016-11-18 포항공과대학교 산학협력단 Method for generating system response using knowledgy base and apparatus for performing the method
KR101678787B1 (en) * 2015-07-15 2016-12-06 포항공과대학교 산학협력단 Method for automatic question-answering and apparatus therefor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100546743B1 (en) * 2003-10-02 2006-01-26 한국전자통신연구원 Method for automatically creating a question and indexing the question-answer by language-analysis and the question-answering method and system
KR100599450B1 (en) * 2004-12-21 2006-07-12 한국전자통신연구원 Indexing system and method for question answer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101678787B1 (en) * 2015-07-15 2016-12-06 포항공과대학교 산학협력단 Method for automatic question-answering and apparatus therefor
KR101677859B1 (en) 2015-09-07 2016-11-18 포항공과대학교 산학협력단 Method for generating system response using knowledgy base and apparatus for performing the method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
심효섭외 2인, "Semantic Parsing 기반 지식 베이스 질의응답 시스템의 어휘-의미 패턴 질의 템플릿을 통한 보완", 제26회 한글 및 한국어 정보처리 학술대회 논문집 2014.

Also Published As

Publication number Publication date
KR20190131270A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
JP7346609B2 (en) Systems and methods for performing semantic exploration using natural language understanding (NLU) frameworks
US10970487B2 (en) Templated rule-based data augmentation for intent extraction
US11334692B2 (en) Extracting a knowledge graph from program source code
JP7412060B2 (en) Augmenting training data for natural language classification
US20190163691A1 (en) Intent Based Dynamic Generation of Personalized Content from Dynamic Sources
AU2021245127B2 (en) System and method for coupled detection of syntax and semantics for natural language understanding and generation
WO2019046463A1 (en) System and method for defining dialog intents and building zero-shot intent recognition models
EP3859587A1 (en) Robotic task planning for complex task instructions in natural language
JP6771260B2 (en) Question Answering (Q &amp; A) Systems, methods, and computer programs for extending the database (extending the question answering database)
KR102099670B1 (en) The syntax grammar rules automatic generation method of understanding user query intention
WO2018080781A1 (en) Systems and methods for monitoring and analyzing computer and network activity
Arora et al. Requirement boilerplates: Transition from manually-enforced to automatically-verifiable natural language patterns
JP7064274B2 (en) Abstraction and portability for intent recognition
US11601453B2 (en) Methods and systems for establishing semantic equivalence in access sequences using sentence embeddings
EP3579119A1 (en) Method and apparatus for recognizing event information in text
CN108563629B (en) Automatic log analysis rule generation method and device
AU2016204573A1 (en) Common data repository for improving transactional efficiencies of user interactions with a computing device
US20220414463A1 (en) Automated troubleshooter
KR20130125999A (en) A method and an apparatus of keyword extraction and a communication assist device
US10942954B2 (en) Dataset adaptation for high-performance in specific natural language processing tasks
US11704493B2 (en) Neural parser for snippets of dynamic virtual assistant conversation
CN110321129A (en) Business based on developing instrument executes method, apparatus and computer equipment
WO2018060777A1 (en) Method and system for optimizing software testing
Akhtar et al. Unsupervised morphological expansion of small datasets for improving word embeddings
EP4075320A1 (en) A method and device for improving the efficiency of pattern recognition in natural language

Legal Events

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