KR20200061877A - System and method for generating paraphrase sentence based on ontology - Google Patents
System and method for generating paraphrase sentence based on ontology Download PDFInfo
- Publication number
- KR20200061877A KR20200061877A KR1020180147694A KR20180147694A KR20200061877A KR 20200061877 A KR20200061877 A KR 20200061877A KR 1020180147694 A KR1020180147694 A KR 1020180147694A KR 20180147694 A KR20180147694 A KR 20180147694A KR 20200061877 A KR20200061877 A KR 20200061877A
- Authority
- KR
- South Korea
- Prior art keywords
- sentence
- pattern
- unit
- paraphrase
- query
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 17
- 238000000605 extraction Methods 0.000 claims abstract description 39
- 238000006467 substitution reaction Methods 0.000 claims description 24
- 238000003058 natural language processing Methods 0.000 claims description 13
- 238000012805 post-processing Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 8
- 239000000284 extract Substances 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 241000282414 Homo sapiens Species 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 3
- 238000011835 investigation Methods 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000003607 modifier Substances 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/36—Creation of semantic tools, e.g. ontology or thesauri
- G06F16/367—Ontology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Machine Translation (AREA)
Abstract
패러프레이즈(paraphrase) 문장을 생성하는 시스템은, 본 발명의 예시적 실시예에 따라, 질의 문장으로부터 추출된 토큰들에 대응하는 온톨로지(ontology) 구성요소들 각각을 포함하는 시맨틱 리소스들을 획득하고, 시맨틱 리소스들의 조합인 패턴 및 질의 문장에서 토큰들이 대체가능한 구조를 가지는 프레임을 생성하는 특성 추출부, 패턴 및 프레임을 상호 대응시키고, 상호 대응되는 패턴 및 프레임을 패턴 저장부에 저장하는 패턴 색인부, 및 패턴 저장부에 저장된 패턴에 대응하는 프레임들에 기초하여, 질의 문장의 패러프레이즈 문장을 생성하는 문장 생성부를 포함할 수 있다.The system for generating a paraphrase sentence acquires semantic resources including each of ontology components corresponding to tokens extracted from the query sentence, according to an exemplary embodiment of the present invention, and semantic A feature extraction unit for generating a frame having a structure in which tokens are replaceable in a pattern and query sentence, which are a combination of resources, a pattern index unit that correlates patterns and frames, and stores the corresponding patterns and frames in a pattern storage unit, and Based on the frames corresponding to the pattern stored in the pattern storage unit, it may include a sentence generation unit for generating a paraphrase sentence of the query sentence.
Description
본 발명의 기술적 사상은 패러프레이즈 문장 생성에 관한 것으로서, 자세하게는 온톨로지 기반 패러프레이즈 문장 생성을 위한 시스템 및 방법에 관한 것이다.The technical idea of the present invention relates to the generation of paraphrase sentences, and more particularly, to a system and method for generating ontology-based paraphrase sentences.
본 발명은 산업자원통상부 로봇산업핵심기술개발사업-인공지능융합로봇시스템기술의 일환으로 (주)아이피엘에서 주관하고 (주)솔트룩스에서 공동 연구하여 수행된 연구로부터 도출된 것이다. [연구기간: 2018.01.01~2018.12.31, 연구관리 전문기관: 한국산업기술평가관리원, 연구과제명: 가정용 소셜로봇 및 서비스 개발 시스템, 과제 고유번호: 10077633]The present invention is derived from a study conducted by the ILO Corporation and jointly researched by Saltlux Co., Ltd. as part of the Robot Industry Core Technology Development Project-Artificial Intelligence Convergence Robot System Technology by the Ministry of Commerce, Industry and Energy. [Research period: 2018.01.01~2018.12.31, Research management agency: Korea Institute of Industrial Technology Evaluation and Management, Research project name: Household social robot and service development system, task identification number: 10077633]
사람의 언어를 기계가 이해하도록 자연어를 인식하고 처리하는 것은 자연어 이해(natural language understand)로서 지칭될 수 있고, 자연어 이해는 다양한 분야에 사용될 수 있다. 예를 들면, 자연어 이해는, 사용자의 질의를 인식함으로써 질의에 대한 답변을 자동으로 제공하는 질의 응답 시스템(question and answering system)에 사용될 수 있다.Recognizing and processing natural language so that machines understand human language can be referred to as natural language understanding, and natural language understanding can be used in various fields. For example, natural language understanding may be used in a question and answering system that automatically provides an answer to a query by recognizing the user's query.
동일한 의미에도 불구하고 사람의 언어는 다양하게 표현될 수 있으므로, 자연어 이해에서는 다양하게 표현된 문장들로부터 동일한 의미를 파악하는 것이 요구될 수 있다. 이에 따라, 동일한 의미에 대응하는 다수의 문장들, 즉 패러프레이즈(paraphrase) 문장들을 준비하는 것은 자연어 이해의 중요한 기반이 될 수 있다.In spite of the same meaning, since human language can be expressed in various ways, understanding of natural language may require understanding the same meaning from variously expressed sentences. Accordingly, preparing multiple sentences corresponding to the same meaning, that is, paraphrase sentences may be an important basis for understanding natural language.
본 발명의 기술적 사상은, 온톨로지에 기반하여 패러프레이즈 문장들을 자동으로 생성하는 시스템 및 방법을 제공한다.The technical idea of the present invention provides a system and method for automatically generating paraphrase sentences based on ontology.
상기와 같은 목적을 달성하기 위하여, 본 발명의 기술적 사상에 따라 패러프레이즈(paraphrase) 문장을 생성하는 시스템은, 질의 문장으로부터 추출된 토큰들에 대응하는 온톨로지(ontology) 구성요소들 각각을 포함하는 시맨틱 리소스들을 획득하고, 시맨틱 리소스들의 조합인 패턴 및 질의 문장에서 토큰들이 대체가능한 구조를 가지는 프레임을 생성하는 특성 추출부, 패턴 및 프레임을 상호 대응시키고, 상호 대응되는 패턴 및 프레임을 패턴 저장부에 저장하는 패턴 색인부, 및 패턴 저장부에 저장된 패턴에 대응하는 프레임들에 기초하여, 질의 문장의 패러프레이즈 문장을 생성하는 문장 생성부를 포함할 수 있다.In order to achieve the above object, the system for generating a paraphrase sentence according to the technical idea of the present invention, the semantics including each of the ontology (ontology) components corresponding to the tokens extracted from the query sentence Acquire resources, and correlate feature extraction units, patterns and frames that generate frames having token-replaceable structures in patterns and query sentences that are combinations of semantic resources, and store the corresponding patterns and frames in the pattern storage unit It may include a pattern index unit, and a sentence generator for generating a paraphrase sentence of a query sentence based on frames corresponding to a pattern stored in the pattern storage unit.
본 발명의 예시적 실시예에 따라, 특성 추출부는, 네트워크를 통해서 복수의 질의 문장들을 획득할 수 있다.According to an exemplary embodiment of the present invention, the feature extraction unit may obtain a plurality of query sentences through a network.
본 발명의 예시적 실시예에 따라, 특성 추출부는, 질의 문장에 대하여 자연어 처리를 수행함으로써 토큰들을 추출하는 자연어 처리부, 및 지식 베이스로부터 토큰들에 대응하는 시맨틱 리소스들을 수신하고, 패턴 및 프레임을 생성하는 패턴 생성부를 포함할 수 있다.According to an exemplary embodiment of the present invention, the feature extraction unit receives a natural language processing unit that extracts tokens by performing natural language processing on a query sentence, and receives semantic resources corresponding to tokens from a knowledge base, and generates patterns and frames It may include a pattern generator.
본 발명의 예시적 실시예에 따라, 패턴 색인부는, 상이한 순서의 시맨틱 리소스들을 각각 포함하는 패턴들을 상이한 패턴들로서 패턴 저장부에 저장할 수 있다.According to an exemplary embodiment of the present invention, the pattern index unit may store patterns including each of semantic resources in different orders as different patterns in the pattern storage unit.
본 발명의 예시적 실시예에 따라, 문장 생성부는, 특성 추출부에 의해서 생성된 패턴에 대응하는 프레임들을 패턴 저장부에서 검색하는 패턴 검색부, 토큰들을 검색된 프레임들에 적용함으로써 적어도 하나의 예비 패러프레이즈 문장을 생성하는 어휘 치환부, 및 적어도 하나의 예비 패러프레이즈 문장을 자연어 규칙에 따라 수정함으로써 패러프레이즈 문장을 생성하는 문장 후처리부를 포함할 수 있다.According to an exemplary embodiment of the present invention, the sentence generation unit applies at least one preliminary paradigm by applying the patterns corresponding to the pattern generated by the feature extraction unit in the pattern storage unit and the tokens to the searched frames. It may include a vocabulary substitution unit for generating a phrase sentence, and a sentence post-processing unit for generating a paraphrase sentence by modifying at least one preliminary paraphrase sentence according to a natural language rule.
본 발명의 예시적 실시예에 따라, 어휘 치환부는, 시맨틱 리소스들에 기초하여, 토큰들의 동의어들을 검색된 프레임들에 적용함으로써 적어도 하나의 예비 패러프레이즈 문장을 생성할 수 있다.According to an exemplary embodiment of the present invention, the lexical substitution unit may generate at least one preliminary paraphrase sentence by applying synonyms of tokens to searched frames based on semantic resources.
본 발명의 예시적 실시예에 따라, 어휘 치환부는, 검색된 프레임의 구조를 변경함으로써 적어도 하나의 예비 패러프레이즈 문장을 생성할 수 있다.According to an exemplary embodiment of the present invention, the vocabulary substitution unit may generate at least one preliminary paraphrase sentence by changing the structure of the searched frame.
본 발명의 예시적 실시예에 따라, 어휘 치환부는, 검색된 프레임에서 부사구의 위치를 변경함으로써 추가적인 예비 패러프레이즈 문장을 생성할 수 있다.According to an exemplary embodiment of the present invention, the lexical substitution unit may generate an additional preparatory paraphrase sentence by changing the position of the adverb phrase in the searched frame.
본 발명의 예시적 실시예에 따라, 어휘 치환부는, 검색된 프레임이 명사구로 종료하는 경우, 질의 종결구를 추가함으로써 추가적인 예비 패러프레이즈 문장을 생성할 수 있다.According to an exemplary embodiment of the present invention, when the searched frame ends with a noun phrase, the lexical substitution unit may generate an additional preliminary paraphrase sentence by adding a query termination phrase.
본 발명의 기술적 사상에 따른 시스템 및 방법에 의하면, 검증된 온톨로지에 기반하여 문장을 분석함으로써 정확하면서도 풍부한 패러프레이즈 문장들이 자동으로 생성될 수 있다.According to the system and method according to the technical idea of the present invention, accurate and rich paraphrase sentences can be automatically generated by analyzing sentences based on a proven ontology.
또한, 본 발명의 기술적 사상에 따른 시스템 및 방법에 의하면, 풍부하게 구비된 패러프레이즈 문장들에 기인하여 자연어 이해를 기반으로 하는 작업들, 예컨대 질의 응답 시스템, 지식 추출 등의 성능을 현저하게 향상시킬 수 있다.In addition, according to the system and method according to the technical concept of the present invention, due to the abundantly provided paraphrase sentences, tasks based on natural language understanding, such as a query response system, knowledge extraction, etc., are significantly improved. Can be.
또한, 본 발명의 기술적 사상에 따른 시스템 및 방법에 의하면, 풍부하게 구비된 패러프레이즈 문장들에 기인하여 기계 학습을 위한 양질의 데이터가 마련될 수 있고, 이에 따라 기계 학습의 활용도를 현저하게 확대시킬 수 있다.In addition, according to the system and method according to the technical idea of the present invention, quality data for machine learning may be prepared due to the abundantly provided paraphrase sentences, thereby significantly expanding the utilization of machine learning. Can be.
본 발명의 예시적 실시예들에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 아니하며, 언급되지 아니한 다른 효과들은 이하의 기재로부터 본 발명의 예시적 실시예들이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 도출되고 이해될 수 있다. 즉, 본 발명의 예시적 실시예들을 실시함에 따른 의도하지 아니한 효과들 역시 본 발명의 예시적 실시예들로부터 당해 기술분야의 통상의 지식을 가진 자에 의해 도출될 수 있다.The effects obtainable in the exemplary embodiments of the present invention are not limited to the above-mentioned effects, and other effects not mentioned are common knowledge in the art to which the exemplary embodiments of the present invention belong from the following description. It can be clearly drawn and understood by those who have it. That is, unintended effects of implementing exemplary embodiments of the present invention can also be derived by those skilled in the art from the exemplary embodiments of the present invention.
도 1은 본 발명의 예시적 실시예에 따른 시스템 및 그 입출력 관계를 나타내는 블록도이다.
도 2는 본 발명의 예시적 실시예에 따라 도 1의 특성 추출부의 예시를 나타내는 블록도이다.
도 3a 및 도 3b는 본 발명의 예시적 실시예들에 따른 질의 문장, 패턴 및 프레임의 예시들을 나타낸다.
도 4는 본 발명의 예시적 실시예에 따라 도 1의 패턴 저장부에 저장된 패턴들 및 프레임들의 예시를 나타낸다.
도 5는 본 발명의 예시적 실시예에 따른 도 1의 문장 생성부의 예시를 나타내는 블록도이다.
도 6a 및 도 6b는 본 발명의 예시적 실시예들에 따라 도 5의 어휘 치환부의 동작의 예시들을 나타내는 도면들이다.
도 7은 본 발명의 예시적 실시예에 따른 패러프레이즈 문장을 생성하는 방법을 나타내는 순서도이다.Fig. 1 is a block diagram showing a system and its input/output relationship according to an exemplary embodiment of the present invention.
Fig. 2 is a block diagram showing an example of the characteristic extraction unit of Fig. 1 according to an exemplary embodiment of the present invention.
3A and 3B show examples of query sentences, patterns, and frames according to exemplary embodiments of the present invention.
4 shows an example of patterns and frames stored in the pattern storage unit of FIG. 1 according to an exemplary embodiment of the present invention.
5 is a block diagram illustrating an example of a sentence generation unit of FIG. 1 according to an exemplary embodiment of the present invention.
6A and 6B are diagrams illustrating examples of the operation of the vocabulary substitution unit of FIG. 5 according to exemplary embodiments of the present invention.
Fig. 7 is a flow chart showing a method for generating a paraphrase sentence according to an exemplary embodiment of the present invention.
이하, 첨부한 도면을 참조하여 본 발명의 실시 예에 대해 상세히 설명한다. 본 발명의 실시 예는 당 업계에서 평균적인 지식을 가진 자에게 본 발명을 보다 완전하게 설명하기 위하여 제공되는 것이다. 본 발명은 다양한 변경을 가할 수 있고 여러 가지 형태를 가질 수 있는 바, 특정 실시 예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 개시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용한다. 첨부된 도면에 있어서, 구조물들의 치수는 본 발명의 명확성을 기하기 위하여 실제보다 확대하거나 축소하여 도시한 것이다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The embodiments of the present invention are provided to more fully describe the present invention to those skilled in the art. The present invention can be applied to various changes and may have various forms, and specific embodiments will be illustrated in the drawings and described in detail. However, this is not intended to limit the present invention to a specific disclosure form, and it should be understood that it includes all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. In describing each drawing, similar reference numerals are used for similar components. In the accompanying drawings, the dimensions of the structures are enlarged or reduced than actual ones for clarity of the present invention.
본 출원에서 사용한 용어는 단지 특정한 실시 예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수개의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.Terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, terms such as “include” or “have” are intended to indicate the presence of features, numbers, steps, actions, elements, parts or combinations thereof described in the specification, but one or more other features. It should be understood that the presence or addition possibilities of fields or numbers, steps, actions, components, parts or combinations thereof are not excluded in advance.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 갖는다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 아니하는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by a person skilled in the art to which the present invention pertains. Terms, such as those defined in a dictionary used in general, should be interpreted as having meanings consistent with meanings in the context of related technologies, and are interpreted as ideal or excessively formal meanings unless explicitly defined in the present application. Does not work.
이하 도면 및 설명에서, 하나의 블록으로 표시 또는 설명되는 구성요소는 하드웨어 블록 또는 소프트웨어 블록일 수 있다. 예를 들면, 구성요소들 각각은 서로 신호를 주고 받는 독립적인 하드웨어 블록일 수도 있고, 또는 하나의 프로세서에서 실행되는 소프트웨어 블록일 수도 있다. 또한, 본 명세서에서 "시스템" 또는 "데이터베이스"는 적어도 하나의 프로세서 및 프로세서에 의해서 액세스되는 메모리를 포함하는 컴퓨팅 시스템을 지칭할 수 있다.In the following drawings and descriptions, components represented or described as one block may be hardware blocks or software blocks. For example, each of the components may be an independent hardware block that communicates with each other, or may be a software block executed in one processor. Also, as used herein, “system” or “database” may refer to a computing system that includes at least one processor and memory accessed by the processor.
도 1은 본 발명의 예시적 실시예에 따른 시스템 및 그 입출력 관계를 나타내는 블록도이다. 도 1에 도시된 바와 같이, 패러프레이즈 생성 시스템(100)은 지식 베이스(300) 및 패턴 저장부(500)와 통신가능하게 연결될 수 있다. 또한, 패러프레이즈 생성 시스템(100)은 자연어로서 질의 문장을 수신할 수 있고, 지식 베이스(300) 및 패턴 저장부(500)와 통신함으로써 질의 문장과 동일한 의미의 패러프레이즈 문장을 생성할 수 있다. 후술되는 바와 같이, 패러프레이즈 생성 시스템(100)은 지식 베이스(300)를 참조하여 질의 문장으로부터 패턴을 추출할 수 있고, 패턴에 대응하는 다수의 프레임들을 패턴과 함께 패턴 저장부(500)에 저장할 수 있다. 도 1에 도시된 블록들(100, 300, 500)은 네트워크를 통해서 상호 통신할 수도 있고, 일대일 통신을 위한 전용 채널을 통해서 상호 통신할 수도 있다. 또한, 도 1에 도시된 블록들(100, 300, 500) 중 2개 이상이 하나의 시스템(예컨대, 컴퓨팅 시스템)에 포함될 수도 있고, 일부 실시예들에서 패턴 저장부(500)는 패러프레이즈 생성 시스템(100)에 포함될 수 있다.Fig. 1 is a block diagram showing a system and its input/output relationship according to an exemplary embodiment of the present invention. As shown in FIG. 1, the
패러프레이즈 생성 시스템(100)은 다양한 방식으로 질의 문장을 수신할 수 있다. 일부 실시예들에서, 패러프레이즈 생성 시스템(100)은 사용자 인터페이스를 포함할 수 있고, 사용자 인터페이스를 통해서 사람, 즉 사용자로부터 질의 문장을 수신할 수 있다. 일부 실시예들에서, 패러프레이즈 생성 시스템(100)은 네트워크, 예컨대 인터넷에 접속할 수 있고, 네트워크로부터 다수의 질의 문장들을 능동적으로 수집할 수도 있다. 도 1에 도시된 바와 같이, 패러프레이즈 생성 시스템(100)은 특성 추출부(120), 패턴 색인부(140) 및 문장 생성부(160)를 포함할 수 있다.The
특성 추출부(120)는 질의 문장으로부터 추출된 토큰들에 대응하는 온톨로지 구성요소들 각각을 포함하는 시맨틱 리소스(semantic resource)들을 획득할 수 있다. 온톨로지(ontology)는 실존하거나 사람이 인식 가능한 것들을 컴퓨터에서 다룰 수 있는 형태로 표현한 것으로서, 온톨로지 구성요소들은 엔티티(entity; E)(또는 인스턴스(instance)), 클래스(class; C), 속성(property; P), 값(value; V)을 포함할 수 있다. 추가적으로, 온톨로지 구성요소들은, 관계(relation)(엔티티간 속성 또는 클래스간 속성), 함수 텀(function term), 제한(restriction), 규칙(rule), 사건(event) 등을 더 포함할 수 있다. 지식 베이스(300)는 온톨로지에 기반하여 방대한 지식 데이터를 저장할 수 있고, 예컨대 지식 베이스(300)는 RDF(Resource Description Framework)를 사용하여 표현된 지식 데이터를 포함할 수 있으며, 지식 데이터 단위로서 트리플(triple)이 사용될 수 있다. 지식 베이스(300)는 쿼리, 예컨대 SPARQL(SPARQL Protocol and RDF Query Language) 쿼리에 응답하여 트리플을 반환할 수 있다. 일부 실시예들에서, 특성 추출부(120)는 패러프레이즈 생성 시스템(100)의 외부에 있는 자연어 인식 시스템(미도시)에 질의 문장을 전달할 수 있고, 자연어 인식 시스템으로부터 질의 문장으로부터 추출된 토큰들을 수신할 수 있다. 일부 실시예들에서, 특성 추출부(120)는, 도 2를 참조하여 후술되는 바와 같이, 질의 문장을 직접 처리함으로써 시맨틱 리소스들을 생성할 수도 있다.The
특성 추출부(120)는 온톨로지에 기반하여 질의 문장으로부터 획득된 시맨틱 리소스들로부터 패턴 및 프레임을 생성할 수 있다. 도 3a 및 도 3b를 참조하여 후술되는 바와 같이, 패턴은 시맨틱 리소스들의 조합으로서 질의 문장이 나타내는 의미에 대응할 수 있다. 즉, 동일한 패턴에 대응하는 문장들을 패러프레이즈 문장들로서 지칭될 수 있다. 또한, 도 3a 및 도 3b를 참조하여 후술되는 바와 같이, 프레임은 질의 문장으로부터 추출된 토큰들이 질의 문장에서 대체가능한 구조를 가질 수 있다. 도 4를 참조하여 후술되는 바와 같이, 하나의 패턴은 적어도 하나의 프레임에 대응할 수 있고, 상호 대응되는 패턴 및 프레임이 패턴 색인부(140)에 의해서 패턴 저장부(500)에 저장될 수 있다. 특성 추출부(120)는 패턴 색인부(140)에 패턴 및 프레임을 제공할 수 있는 한편, 문장 생성부(160)에 추출된 토큰들을 포함하는 토큰 리스트 및 패턴을 제공할 수 있다.The
패턴 색인부(140)는 특성 추출부(120)로부터 질의 문장으로부터 생성된 패턴 및 프레임을 수신할 수 있다. 패턴 색인부(140)는 패턴 및 프레임을 상호 대응시킬 수 있고, 상호 대응되는 패턴 및 프레임을 패턴 저장부(500)에 저장할 수 있다. 이에 따라, 패턴 저장부(500)에 저장된 패턴이 (예컨대, 문장 생성부(160)에 의해서) 검색되는 경우 대응되는 프레임들이 같이 검색될 수 있다. 일부 실시예들에서, 패턴 색인부(140)는 특성 추출부(120)로부터 수신된 패턴을 패턴 저장부(500)에서 검색할 수 있고, 특성 추출부(120)로부터 수신된 패턴이 패턴 저장부(500)에 이미 저장되어 있고, 특성 추출부(120)로부터 수신된 프레임 역시 패턴 저장부(500)에 저장되어 있는 경우, 특성 추출부(120)로부터 수신된 패턴 및 프레임의 저장을 생략할 수 있다. 패턴 색인부(140)에 의해서 패턴 저장부(500)에 저장된 패턴 및 프레임의 구조는 도 4를 참조하여 후술될 것이다.The pattern indexer 140 may receive patterns and frames generated from the query sentence from the
문장 생성부(160)는 특성 추출부(120)로부터 질의 문장에 대응하는 패턴 및 토큰 리스트를 수신할 수 있고, 질의 문장의 패러프레이즈 문장을 생성할 수 있다. 문장 생성부(160)는 패턴 저장부(500)에서 패턴을 검색할 수 있고, 검색된 패턴 및 이에 대응하는 프레임들을 패턴 저장부(500)로부터 획득할 수 있다. 예를 들면, 문장 생성부(160)는 특성 추출부(120)로부터 수신된 패턴을 패턴 저장부(500)에서 검색할 수 있고, 토큰 리스트 및 검색된 패턴에 대응하는 프레임들에 기초하여 질의 문장과 동일한 의미를 가지는 문장, 즉 패러프레이즈 문장을 생성할 수 있다. 문장 생성부(160)의 예시는 도 5를 참조하여 후술될 것이다.The
도면들을 참조하여 후술되는 바와 같이, 패러프레이즈 생성 시스템(100)은 온톨로지 기반 지식 베이스(300)를 사용하여 질의 문장의 패러프레이즈 문장을 생성할 수 있다. 이에 따라 질의 문장은 검증된 온톨로지에 기반하여 분석될 수 있고, 정확하면서도 풍부한 패러프레이즈 문장들이 자동으로 생성될 수 있다. 또한, 패러프레이즈 생성 시스템(100)에 의해서 생성된 패러프레이즈 문장들에 기인하여 자연어 이해를 기반으로 하는 작업들, 예컨대 질의 응답 시스템, 지식 추출 등의 성능이 현저하게 향상될 수 있고, 기계 학습을 위한 양질의 데이터가 적절하게 마련될 수 있다.As described below with reference to the drawings, the paraphrase
도 2는 본 발명의 예시적 실시예에 따라 도 1의 특성 추출부(120)의 예시를 나타내는 블록도이고, 도 3a 및 도 3b는 본 발명의 예시적 실시예들에 따른 질의 문장, 패턴 및 프레임의 예시들을 나타낸다. 도 1을 참조하여 전술된 바와 같이, 도 2의 특성 추출부(120')는 질의 문장을 수신할 수 있고, 지식 베이스(300)를 참조하여 질의 문장에 대응하는 패턴 및 프레임을 생성할 수 있다. 도 2에 도시된 바와 같이, 특성 추출부(120')는 자연어 처리부(122) 및 패턴 생성부(124)를 포함할 수 있고, 이하에서 도 2, 도 3a 및 도 3b는 도 1을 참조하여 설명될 것이다.2 is a block diagram illustrating an example of the
일부 실시예들에서, 특성 추출부(120')는 질의 문장을 자연어 처리함으로써 토큰(token)들을 추출할 수 있고, 토큰들에 대응하는 시맨틱 리소스들을 지식 베이스(300)로부터 획득할 수 있다. 도 1을 참조하여 전술된 바와 같이, 일부 실시예들에서, 도 2의 예시와 상아하게, 도 1의 특성 추출부(120)는 질의 문장을 직접 자연어 처리하는 대신 패러프레이즈 생성 시스템(100) 외부의 자연어 처리 시스템에 질의 문장을 전달하고, 그로부터 토큰들을 수신할 수도 있다.In some embodiments, the
자연어 처리부(122)는 질의 문장으로부터 토큰들을 추출할 수 있다. 예를 들면, 도 3a에 도시된 바와 같이 "서울의 인구는?"이라는 제1 질의 문장(Q1)에 대하여, 자연어 처리부(122)는 "서울", "의", "인구", "는", "?"을 포함하는 토큰 리스트를 생성할 수 있다. 일부 실시예들에서, 자연어 처리부(122)에 의해서 추출된 토큰은 단어뿐만 아니라 특성을 함께 생성할 수 있다. 예를 들면, 토큰은 품사(예컨대, 명사, 형용사 부사 등)를 포함할 수도 있고, 질의 문장에서 문장 구성요소(예컨대, 주어, 목적어, 부사어 등)를 포함할 수도 있다. 자연어 처리부(122)는 임의의 방식으로 토큰들을 추출할 수 있다. 예를 들면, 자연어 처리부(122)는 지식 베이스(300)를 참조하여 토큰들을 추출할 수도 있다. 예를 들면, 자연어 처리부(122)는 지식 베이스(300)의 엔티티들, 속성들 등에 기초하여 질의 문장에 포함된 단어의 품사를 판정할 수 있다. 또한, 일부 실시예들에서, 도 6a 및 도 6b를 참조하여 후술되는 바와 같이, 추출된 토큰들은 트리 구조를 가질 수 있다.The natural
패턴 생성부(124)는 자연어 처리부(122)로부터 토큰들을 수신할 수 있고, 수신된 토큰들에 대응하는 시맨틱 리소스들을 지식 베이스(300)로부터 획득할 수 있다. 예를 들면, 도 3a에 도시된 바와 같이, "서울의 인구는?"이라는 제1 질의 문장(Q1)에 대하여, "서울"의 시맨틱 리소스로서 엔티티 "<Entity-City>"를 획득할 수 있고, "인구"의 시맨틱 리소스로서 속성 "<Property_Population>"을 획득할 수 있다. 이에 따라, 제1 패턴(P1)은 시맨틱 리소스들로서, "<Entity-City>" 및 "<Property_Population>"을 포함할 수 있다. 또한, 도 3b에 도시된 바와 같이, "서울의 인구수를 알려주세요?"라는 제2 질의 문장(Q2)에 대하여, "LA"의 시맨틱 리소스로서 엔티티 "<Entity_City>"를 획득할 수 있고, "인구수"의 시맨틱 리소스로서 속성 "<Peoperty_Population>"을 획득할 수 있다. 제2 패턴(P2)은 "<Entity-City>" 및 "<Property_Population>"을 포함할 수 있고, 이에 따라 제1 패턴(P1)과 동일할 수 있다.The
일부 실시예들에서, 패턴은 시맨틱 리소스들의 조합뿐만 아니라 시맨틱 리소스들의 순서를 정의할 수 있다. 즉, 동일한 시맨틱 리소스들을 포함하는 패턴들일지라도 시맨틱 리소스들의 순서들이 상이한 경우, 해당 패턴들은 상이한 패턴들로서 패턴 색인부(140)에 의해 패턴 저장부(500)에 저장될 수 있다.In some embodiments, a pattern can define a combination of semantic resources as well as a sequence of semantic resources. That is, even if patterns having the same semantic resources have different order of semantic resources, the patterns may be stored in the
또한, 패턴 생성부(124)는 질의 문장 및 패턴에 기초하여 프레임을 생성할 수 있다. 예를 들면, 도 3a에 도시된 바와 같이, 제1 질의 문장(Q1) 및 제1 패턴(P1)에 기초하여, 패턴 생성부(124)는 제1 프레임(F11), 즉 "<Entity_City>의 <Property_Population>는?"을 생성할 수 있다. 제1 프레임(F11)에서, 엔티티에 대응하는 시맨틱 리소스, 즉 "<Entity_City>"에, "서울", "LA" 등과 같은 인스턴스가 적용(또는 대입)될 수 있고, 속성에 대응하는 시맨틱 리소스, 즉 "<Property_Population>"은 "인구", "인구수"와 같이 동의어들 중 하나가 적용될 수 있다. 이에 따라, 제1 질의 문장(Q1)과 상이한 질의 문장으로서 제1 프레임(F11)에 제1 패턴(P1)으로 분석된 질의 문장에 포함된 토큰들을 제1 프레임(F11)에 적용하는 경우, 해당 질의 문장의 패러프레이즈 문장이 생성될 수 있다. 유사하게, 도 3b에 도시된 바와 같이, 제2 질의 문장(Q2) 및 제2 패턴(P2)에 기초하여, 패턴 생성부(124)는 제2 프레임(F12), 즉 "<Entity_City>의 <Property_Population>를 알려주세요."를 생성할 수 있다. 제1 프레임(F11)과 유사하게, 제2 프레임(F12)에서, 엔티티에 대응하는 시맨틱 리소스, 즉 "<Entity_City>"에, "서울", "LA" 등과 같은 인스턴스가 적용될 수 있고, 속성에 대응하는 시맨틱 리소스, 즉 "<Property_Population>"에 "인구", "인구수"와 같이 동의어들 중 하나가 적용될 수 있다. 이에 따라, 제2 질의 문장(Q2)과 상이한 질의 문장으로서 제2 프레임(F12)에 제1 패턴(P1)으로 분석된 질의 문장에 포함된 토큰들을 제2 프레임(F12)에 적용하는 경우, 해당 질의 문장의 패러프레이즈 문장이 생성될 수 있다.Also, the
도 3a 및 도 3b의 예시에서, 제1 질의 문장(Q1) 및 제2 질의 문장(Q2)은 동일한 패턴에 대응하므로(즉, 제1 패턴(P1) 및 제2 패턴(P2)이 일치하므로), 제1 질의 문장(Q1)의 토큰들을 제2 프레임(F12)에 적용함으로써 제1 질의 문장(Q1)의 패러프레이즈 문장, 즉 "서울의 인구를 알려주세요."가 생성될 수 있다. 유사하게, 제2 질의 문장(Q2)의 토큰들을 제1 프레임(F11)에 적용함으로써 제2 질의 문장(Q2)의 패러프레이즈 문장, 즉 "LA의 인구는?"이 생성될 수 있다. In the example of FIGS. 3A and 3B, the first query sentence Q1 and the second query sentence Q2 correspond to the same pattern (that is, because the first pattern P1 and the second pattern P2 match) , By applying the tokens of the first query sentence Q1 to the second frame F12, a paraphrase sentence of the first query sentence Q1, that is, "Please tell me the population of Seoul." Similarly, by applying the tokens of the second query sentence Q2 to the first frame F11, a paraphrase sentence of the second query sentence Q2, that is, “What is the population of LA?” can be generated.
도 4는 본 발명의 예시적 실시예에 따라 도 1의 패턴 저장부(500)에 저장된 패턴들 및 프레임들의 예시를 나타낸다. 도 1을 참조하여 전술된 바와 같이, 패턴 색인부(140)는 패턴 및 프레임을 상호 대응시킬 수 있고, 상호 대응하는 패턴 및 프레임을 패턴 저장부(500)에 저장할 수 있다. 이하에서, 도 4는 도 1을 참조하여 설명될 것이다.4 illustrates an example of patterns and frames stored in the
도 3a 및 도 3b를 참조하여 전술된 바와 같이, 하나의 패턴에 다수의 프레임들이 대응할 수 있고, 주어진 질의 문장에 대응하는 패턴을 분석한 후 패턴에 대응하는 다수의 프레임들에 질의 문장의 토큰들을 적용함으로써 다수의 패러프레이즈 문장들이 생성될 수 있다. 이에 따라, 도 4에 도시된 바와 같이, 패턴 저장부(500)는 복수의 패턴들(P1 내지 Pn) 각각에 대응하는 복수의 그룹들(G1 내지 Gn)을 포함할 수 있다(n은 1보다 큰 정수). 복수의 그룹들(G1 내지 Gn) 각각은 하나의 패턴 및 패턴에 대응하는 복수의 프레임들을 포함할 수 있다. 예를 들면, 제1 그룹(G1)은 제1 패턴(P1) 및 이에 대응하는 복수의 프레임들(F11 내지 F1x)을 포함할 수 있고(x는 1보다 큰 정수), 제2 그룹(G2)은 제2 패턴(P2) 및 이에 대응하는 복수의 프레임들(F21 내지 F2y)을 포함할 수 있으며(y는 1보다 큰 정수), 제3 그룹(G3)은 제3 패턴(P3) 및 이에 대응하는 복수의 프레임들(Fn1 내지 Fnz)을 포함할 수 있다(z는 1보다 큰 정수).As described above with reference to FIGS. 3A and 3B, multiple frames may correspond to a single pattern, and after analyzing a pattern corresponding to a given query sentence, tokens of the query sentence may be assigned to multiple frames corresponding to the pattern Multiple paraphrase sentences can be generated by applying. Accordingly, as illustrated in FIG. 4, the
패턴 색인부(140)는 도 4에 도시된 바와 같은 구조를 가지도록 패턴들 및 프레임들을 패턴 저장부(500)에 저장할 수 있는 한편, 문장 생성부(160)는 도 4에 도시된 구조에 기인하여, 검색된 패턴에 대응하는 복수의 프레임들을 획득할 수 있다. 예를 들면, 문장 생성부(160)가 특성 추출부(120)로부터 수신한 패턴이 제2 패턴(P2)에 대응하는 경우, 문장 생성부(160)는 제2 패턴(P2)을 패턴 저장부(500)에서 검색할 수 있고, 제2 패턴(P2)에 대응하는 복수의 프레임들(F21 내지 F2y)을 획득할 수 있다. 도 4에 도시된 예시는 패턴 및 복수의 프레임들 사이 대응관계를 나타내는 것일 뿐, 도 4에 도시된 구조를 구현하기 위하여 임의의 데이터 구조들이 사용될 수 있는 점은 이해될 것이다. 또한, 일부 실시예들에서, 프레임은 도 6a를 참조하여 후술되는 바와 같이 트리 구조를 가질 수도 있다.The
도 5는 본 발명의 예시적 실시예에 따른 도 1의 문장 생성부(160)의 예시를 나타내는 블록도이다. 도 1을 참조하여 전술된 바와 같이, 도 5의 문장 생성부(160')는 특성 추출부(120)로부터 질의 문장에 대응하는 패턴 및 프레임을 수신할 수 있고, 패턴 저장부(500)에 저장된 패턴 및 프레임을 참조하여 질의 문장의 패러프레이즈 문장을 생성할 수 있다. 도 5에 도시된 바와 같이, 문장 생성부(160')는 패턴 검색부(162), 어휘 치환부(164) 및 문장 후처리부(166)를 포함할 수 있고, 이하에서 도 5는 도 1을 참조하여 설명될 것이다.5 is a block diagram illustrating an example of the
패턴 검색부(162)는 특성 추출부(120)로부터 패턴을 수신할 수 있고, 특성 추출부(120)로부터 수신된 패턴에 대응하는 프레임들을 패턴 저장부(500)에서 검색할 수 있다. 도 4를 참조하여 전술된 바와 같이, 패턴 저장부(500)는 상호 대응하는 패턴 및 프레임들을 포함하도록 구조화될 수 있으므로, 패턴 검색부(162)는 수신된 패턴을 패턴 저장부(500)에서 검색함으로써 패턴에 대응하는 프레임들을 패턴 저장부(500)로부터 수신할 수 있다.The
어휘 치환부(164)는 특성 추출부(120)로부터 토큰 리스트를 수신할 수 있고, 패턴 검색부(162)로부터 프레임들을 수신할 수 있다. 도 1을 참조하여 전술된 바와 같이, 토큰 리스트는 질의 문장에서 추출된 토큰들을 포함할 수 있고, 어휘 치환부(164)는 토큰 리스트에 포함된 토큰들을 패턴 검색부(162)로부터 수신된 프레임들에 적용함으로써 예비(preliminary) 패러프레이즈 문장들을 생성할 수 있다. 예를 들면, 도 3a의 제1 질의 문장(Q1)으로부터 추출된 토큰 리스트를 수신하고, 도 3b의 제2 프레임(F12)을 패턴 검색부(162)로부터 수신한 경우, 어휘 치환부(164)는 토큰 리스트에 포함된 "서울", "인구"를 제2 프레임(F12)에 적용함으로써 예비 패러프레이즈 문장 "서울의 인구수를 알려주세요."를 생성할 수 있다. 유사하게, 도 3b의 제2 질의 문장(Q2)으로부터 추출된 토큰 리스트를 수신하고, 도 3a의 제1 프레임(F11)을 패턴 검색부(162)로부터 수신한 경우, 어휘 치환부(164)는 토큰 리스트에 포함된 "LA", "인구수"를 제1 프레임(F11)에 적용함으로써 예비 패러프레이즈 문장 "LA의 인구수는?"을 생성할 수 있다.The
일부 실시예들에서, 어휘 치환부(164)는 토큰에 대응하는 단어의 동의어를 프레임에 적용함으로써 예비 패러프레이즈 문장을 생성할 수 있다. 예를 들면, 도 3b의 제2 질의 문장(Q2)으로부터 추출된 토큰 리스트를 수신하고, 도 3a의 제1 프레임(F11)을 패턴 검색부(162)로부터 수신한 경우, 어휘 치환부(164)는 예비 패러프레이즈 문장으로서 "LA의 인구수는?" 뿐만 아니라 "로스앤젤레스의 인구수는?"을 생성할 수도 있고, 제2 프레임(F12)에 기초하여 "로스앤젤레스의 인구수를 알려주세요."를 생성할 수도 있다. 또한, 일부 실시예들에서, 어휘 치환부(164)는 프레임의 구조를 변경함으로써 예비 패러프레이즈 문장을 생성할 수도 있다. 프레임의 구조를 변경함으로써 예비 패러프레이즈 문장을 생성하는 어휘 치환부(164)의 예시들은 도 6a 및 도 6b를 참조하여 후술될 것이다.In some embodiments, the
문장 후처리부(166)는 어휘 치환부(164)로부터 예비 패러프레이즈 문장을 수신할 수 있고, 예비 패러프레이즈 문장을 자연어 규칙에 따라 수정함으로써 패러프레이즈 문장을 생성할 수 있다. 어휘 치환부(164)에 의해서 토큰들이 프레임에 적용된 예비 패러프레이즈 문장은 자연어 규칙이 위반된 부분을 포함할 수 있다. 예를 들면, 예비 패러프레이즈 문장은 부적절한 조사 및/또는 어미를 포함할 수 있고, 문장 후처리부(166)는 자연어 규칙에 기초하여 조사 및/또는 어미를 수정함으로써 자연스러운 문장으로서 패러프레이즈 문장을 생성할 수 있다.The
도 6a 및 도 6b는 본 발명의 예시적 실시예들에 따라 도 5의 어휘 치환부(164)의 동작의 예시들을 나타내는 도면들이다. 구체적으로, 도 6a 및 도 6b는 프레임의 구조를 변경함으로써 예비 패러프레이즈 문장들을 생성하는 어휘 치환부(164)의 예시들을 나타낸다. 어휘 치환부(164)는 프레임의 구조를 변경할 수도 있고, 프레임에 토큰들을 적용한 예비 패러프레이즈 문장의 구조를 변경할 수도 있다. 이하에서 도 6a 및 도 6b는 도 5를 참조하여 설명될 것이며, 도 6a 및 도 6b에 대한 설명 중 중복되는 내용은 생략될 것이다. 설명의 편의상 도 6a 및 도 6b는 프레임에 토큰들이 적용된 예비 패러프레이즈 문장의 구조를 변경하는 예시들을 나타낸다.6A and 6B are diagrams illustrating examples of operation of the
도 6a를 참조하면, 어휘 치환부(164)는 프레임에서 부사구의 위치를 변경함으로써 추가적인 예비 패러프레이즈 문장을 생성할 수 있다. 예를 들면, "스미스소니언 미술관은 미국의 어느 도시에 있어?"라는 예비 패러프레이즈 문장은 도 6a의 상부에 도시된 바와 같은 트리 구조로 표현될 수 있다. 도 6a에서, 토큰들 아래 표시된 참조부호들은 토큰들의 특성들로서, 품사 및 문장 구성요소 등을 나타낼 수 있다. 예를 들면, "VNP"는 긍정 지정사구로서 "명사+이다"를 나타낼 수 있고, "NP_SBJ"는 체언(예컨대, 명사, 대명사, 수사)이 주어로서 사용된 것을 나타낼 수 있고, "NP_AJT"는 체언이 부사어(용언 수식어)로서 사용된 것을 나타낼 수 있다. 또한, "NP_MOD"는 체언이 관형어(체언 수식어)로서 사용된 것을 나타낼 수 있고, "DP"는 관형사구를 나타낼 수 있다.Referring to FIG. 6A, the
어휘 치환부(164)는 부사구에 대응하는 서브-트리의 위치를 변경할 수 있다. 예를 들면, 도 6b의 하단에 도시된 바와 같이, 어휘 치환부(164)는 "미국의 어느 도시에"에 대응하는 서브-트리와 "스미스소니언 미술관은"의 위치를 바꿀 수 있다. 이에 따라, "미국의 어느 도시에 스미스소니언 미술관은 있어?"라는 예비 패러프레이즈 문장이 생성될 수 있다. 도 5의 문장 후처리부(166)는 조사를 수정함으로써 패러프레이즈 문장, 즉 "미국의 어느 도시에 스미스소니언 미술관이 있어?"을 최종적으로 생성할 수 있다.The
도 6b를 참조하면, 어휘 치환부(164)는 하나이상의 구를 추가적인 예비 패러프레이즈 문장을 생성할 수 있다. 예를 들면, "스미스소니언 미술관이 있는 도시는?"이라는 예비 패러프레이즈 문장은 도 6b의 좌측에 도시된 바와 같이 구조화될 수 있다. 어휘 치환부(164)는 검색된 프레임이 명사구로 종료하는 경우, 질의 종결구를 추가함으로써 추가적인 예비 패러프레이즈 문장을 생성할 수 있다. 예를 들면, 도 6b의 우측에 도시된 바와 같이, 어휘 치환부(164)는 명사구인 "도시는"으로 종결되는 프레임에서 질의 종결구로서 "어디야"를 추가함으로써 예비 패러프레이즈 문장, 즉 "스미스소니언 미술관이 있는 도시는 어디야?"를 생성할 수 있다.Referring to FIG. 6B, the
도 7은 본 발명의 예시적 실시예에 따른 패러프레이즈 문장을 생성하는 방법을 나타내는 순서도이다. 예를 들면, 도 7의 방법은 도 1의 패러프레이즈 생성 시스템(100)에 의해서 수행될 수 있다. 구체적으로, 단계 S10, 단계 S20 및 단계 S30은 도 1의 특성 추출부(120)에 의해서 수행될 수 있고, 단계 S40, 단계 S50 및 단계 S60은 문장 생성부(160)에 의해서 수행될 수 있다. 이하에서, 도 7은 도 1을 참조하여 설명될 것이다.Fig. 7 is a flow chart showing a method for generating a paraphrase sentence according to an exemplary embodiment of the present invention. For example, the method of FIG. 7 may be performed by the paraphrase
도 7을 참조하면, 단계 S10에서 질의 문장을 수신하는 동작이 수행될 수 있다. 예를 들면, 특성 추출부(120)는 사용자 인터페이스를 통해서 사용자로부터 질의 문장을 수신할 수도 있고, 네트워크로부터 질의 문장들을 수집할 수도 있다.Referring to FIG. 7, in step S10, an operation of receiving a query sentence may be performed. For example, the
단계 S20에서, 시맨틱 리소스들을 획득하는 동작이 수행될 수 있다. 예를 들면, 특성 추출부(120)는 질의 문장을 자연어 처리함으로써 추출된 토큰들에 대응하는 시맨틱 리소스들을 지식 베이스(300)로부터 획득할 수 있다. 도면들을 참조하여 전술된 바와 같이, 지식 베이스(300)는 온톨로지에 기반하여 구축될 수 있고 검증된 지식 데이터를 포함할 수 있으므로, 질의 문장의 패러프레이즈 문장을 생성하는데 활용될 수 있다. 질의 문장의 자연어 처리는, 일부 실시예들에서 패러프레이즈 생성 시스템(100)의 외부에서 수행될 수도 있고, 일부 실시예들에서 특성 추출부(120)에 의해서 수행될 수도 있다.In step S20, an operation of acquiring semantic resources may be performed. For example, the
단계 S30에서, 패턴 및 프레임을 생성하는 동작이 수행될 수 있다. 예를 들면, 특성 추출부(120)는 질의 문장에 기초하여 획득된 시맨틱 리소스들의 조합으로서 패턴을 생성할 수 있고, 지의 문장에서 토큰들이 대체 가능한 구조를 가지는 프레임을 생성할 수 있다. 또한, 특성 추출부(120)는 추출된 토큰들을 포함하는 토큰 리스트를 생성할 수도 있다.In step S30, an operation for generating a pattern and a frame may be performed. For example, the
단계 S40에서, 패턴을 검색하는 동작이 수행될 수 있다. 예를 들면, 패턴 저장부(500)는 상호 대응하는 패턴 및 프레임을 저장할 수 있고, 하나의 패턴은 복수의 프레임들에 대응할 수 있다. 문장 생성부(160)는 패턴 저장부(500)는 단계 S30에서 생성된 패턴을 검색할 수 있고, 검색된 패턴에 대응하는 프레임들을 패턴 저장부(500)로부터 획득할 수 있다.In step S40, an operation of searching for a pattern may be performed. For example, the
단계 S50에서, 프레임에 토큰들을 적용하는 동작이 수행될 수 있다. 예를 들면, 문장 생성부(160)는 패턴 저장부(500)로부터 획득된 프레임에 토큰 리스트에 포함된 토큰들을 적용함으로써 예비 패러프레이즈 문장들을 생성할 수 있다. 일부 실시예들에서, 문장 생성부(160)는 토큰의 동의어를 사용하여 추가적인 예비 패러프레이즈 문장을 생성할 수도 있고, 프레임 또는 예비 패러프레이즈 문장의 구조를 변경함으로써 추가적인 예비 패러프레이즈 문장을 생성할 수도 있다.In step S50, an operation of applying tokens to the frame may be performed. For example, the
단계 S60에서, 문장의 후처리가 수행될 수 있다. 예를 들면, 단계 S50에서 생성된 예비 패러프레이즈 문장은 자연어 규칙이 위반된 부분을 포함할 수 있고, 문장 생성부(160)는 자연어 규칙에 따라 예비 패러프레이즈 문장의 조사 및/또는 어미를 수정함으로써 패러프레이즈 문장을 최종적으로 생성할 수 있다.In step S60, post-processing of the sentence may be performed. For example, the preliminary paraphrase sentence generated in step S50 may include a part in which the natural language rule is violated, and the
이상에서와 같이 도면과 명세서에서 예시적인 실시예들이 개시되었다. 본 명세서에서 특정한 용어를 사용하여 실시예들이 설명되었으나, 이는 단지 본 발명의 기술적 사상을 설명하기 위한 목적에서 사용된 것이지 의미 한정이나 특허청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로 본 기술분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.As described above, exemplary embodiments have been disclosed in the drawings and the specification. Although the embodiments have been described using specific terminology in this specification, they are only used for the purpose of explaining the technical spirit of the present invention and are not used to limit the scope of the present invention as defined in the claims or the claims. . Therefore, those skilled in the art will understand that various modifications and other equivalent embodiments are possible therefrom. Therefore, the true technical protection scope of the present invention should be determined by the technical spirit of the appended claims.
Claims (9)
질의 문장으로부터 추출된 토큰들에 대응하는 온톨로지(ontology) 구성요소들 각각을 포함하는 시맨틱 리소스들을 획득하고, 상기 시맨틱 리소스들의 조합인 패턴 및 상기 질의 문장에서 상기 토큰들이 대체가능한 구조를 가지는 프레임을 생성하도록 구성된 특성 추출부;
패턴 및 프레임을 상호 대응시키고, 상호 대응되는 패턴 및 프레임을 패턴 저장부에 저장하도록 구성된 패턴 색인부; 및
상기 패턴 저장부에 저장된 패턴에 대응하는 프레임들에 기초하여, 상기 질의 문장의 패러프레이즈 문장을 생성하도록 구성된 문장 생성부를 포함하는 시스템.A system for generating paraphrase sentences,
Semantic resources including each of ontology components corresponding to tokens extracted from a query sentence are obtained, and a pattern having a combination of the semantic resources and a frame having a structure in which the tokens are replaceable in the query sentence are generated. Characteristic extraction unit configured to;
A pattern index unit configured to correlate patterns and frames with each other, and to store mutually corresponding patterns and frames in a pattern storage unit; And
And a sentence generation unit configured to generate a paraphrase sentence of the query sentence based on frames corresponding to the pattern stored in the pattern storage unit.
상기 특성 추출부는, 네트워크를 통해서 복수의 질의 문장들을 획득하도록 구성된 것을 특징으로 하는 시스템.The method according to claim 1,
The feature extraction unit, characterized in that the system is configured to obtain a plurality of query sentences through the network.
상기 특성 추출부는,
상기 질의 문장에 대하여 자연어 처리를 수행함으로써 상기 토큰들을 추출하도록 구성된 자연어 처리부; 및
지식 베이스로부터 상기 토큰들에 대응하는 상기 시맨틱 리소스들을 수신하고, 상기 패턴 및 상기 프레임을 생성하도록 구성된 패턴 생성부를 포함하는 것을 특징으로 하는 시스템.The method according to claim 1,
The characteristic extraction unit,
A natural language processor configured to extract the tokens by performing natural language processing on the query sentence; And
And a pattern generator configured to receive the semantic resources corresponding to the tokens from the knowledge base, and to generate the pattern and the frame.
상기 패턴 색인부는, 상이한 순서의 시맨틱 리소스들을 각각 포함하는 패턴들을 상이한 패턴들로서 상기 패턴 저장부에 저장하도록 구성된 것을 특징으로 하는 시스템. The method according to claim 1,
And the pattern index unit is configured to store patterns each containing semantic resources of different order as the different patterns in the pattern storage unit.
상기 문장 생성부는,
상기 특성 추출부에 의해서 생성된 패턴에 대응하는 프레임들을 상기 패턴 저장부에서 검색하도록 구성된 패턴 검색부;
상기 토큰들을 검색된 프레임들에 적용함으로써 적어도 하나의 예비 패러프레이즈 문장을 생성하도록 구성된 어휘 치환부; 및
상기 적어도 하나의 예비 패러프레이즈 문장을 자연어 규칙에 따라 수정함으로써 상기 패러프레이즈 문장을 생성하도록 구성된 문장 후처리부를 포함하는 것을 특징으로 하는 시스템.The method according to claim 1,
The sentence generation unit,
A pattern search unit configured to search frames corresponding to the pattern generated by the feature extraction unit in the pattern storage unit;
A vocabulary substitution unit configured to generate at least one preliminary paraphrase sentence by applying the tokens to the searched frames; And
And a sentence post-processing unit configured to generate the paraphrase sentence by modifying the at least one preliminary paraphrase sentence according to a natural language rule.
상기 어휘 치환부는, 상기 시맨틱 리소스들에 기초하여, 상기 토큰들의 동의어들을 검색된 프레임들에 적용함으로써 상기 적어도 하나의 예비 패러프레이즈 문장을 생성하도록 구성된 것을 특징으로 하는 시스템.The method according to claim 5,
And the vocabulary replacement unit is configured to generate the at least one preliminary paraphrase sentence by applying synonyms of the tokens to the searched frames based on the semantic resources.
상기 어휘 치환부는, 검색된 프레임의 구조를 변경함으로써 상기 적어도 하나의 예비 패러프레이즈 문장을 생성하도록 구성된 것을 특징으로 하는 시스템.The method according to claim 5,
And the vocabulary replacement unit is configured to generate the at least one preliminary paraphrase sentence by changing the structure of the searched frame.
상기 어휘 치환부는, 검색된 프레임에서 부사구의 위치를 변경함으로써 추가적인 예비 패러프레이즈 문장을 생성하도록 구성된 것을 특징으로 하는 시스템.The method according to claim 7,
And the vocabulary replacement unit is configured to generate an additional preliminary paraphrase sentence by changing the position of the adverb phrase in the searched frame.
상기 어휘 치환부는, 검색된 프레임이 명사구로 종료하는 경우, 질의 종결구를 추가함으로써 추가적인 예비 패러프레이즈 문장을 생성하도록 구성된 것을 특징으로 하는 시스템.The method according to claim 7,
The vocabulary replacement unit is configured to generate an additional preliminary paraphrase sentence by adding a query terminator when the searched frame ends with a noun phrase.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020180147694A KR102143157B1 (en) | 2018-11-26 | 2018-11-26 | System and method for generating paraphrase sentence based on ontology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020180147694A KR102143157B1 (en) | 2018-11-26 | 2018-11-26 | System and method for generating paraphrase sentence based on ontology |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20200061877A true KR20200061877A (en) | 2020-06-03 |
KR102143157B1 KR102143157B1 (en) | 2020-08-11 |
Family
ID=71087499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020180147694A Active KR102143157B1 (en) | 2018-11-26 | 2018-11-26 | System and method for generating paraphrase sentence based on ontology |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102143157B1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20220065522A (en) * | 2020-11-13 | 2022-05-20 | 한국전자통신연구원 | Hostile paraphrase sentence automatic generation system |
KR20220085489A (en) * | 2020-12-15 | 2022-06-22 | 주식회사 엘지유플러스 | Apparatus for generating lexical pattern and training sentence and operating method thereof |
KR20220087704A (en) * | 2020-12-18 | 2022-06-27 | 주식회사 와이즈넛 | The pattern recognition method of text sentences using language resources |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20240067507A (en) | 2022-11-09 | 2024-05-17 | 국립창원대학교 산학협력단 | Paraphrase sentence generation apparatus using keywords and the method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20160060247A (en) * | 2014-11-19 | 2016-05-30 | 한국전자통신연구원 | System and Method for Question and answer of Natural Language and Paraphrase Module |
KR20160066236A (en) * | 2014-12-02 | 2016-06-10 | 주식회사 솔트룩스 | Method for producing structured query based on knowledge database and apparatus for the same |
US20170337268A1 (en) * | 2016-05-17 | 2017-11-23 | Xerox Corporation | Unsupervised ontology-based graph extraction from texts |
KR20180022156A (en) * | 2016-08-23 | 2018-03-06 | 포항공과대학교 산학협력단 | Dialog management apparatus and method |
KR20190133931A (en) * | 2018-05-24 | 2019-12-04 | 한국과학기술원 | Method to response based on sentence paraphrase recognition for a dialog system |
-
2018
- 2018-11-26 KR KR1020180147694A patent/KR102143157B1/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20160060247A (en) * | 2014-11-19 | 2016-05-30 | 한국전자통신연구원 | System and Method for Question and answer of Natural Language and Paraphrase Module |
KR20160066236A (en) * | 2014-12-02 | 2016-06-10 | 주식회사 솔트룩스 | Method for producing structured query based on knowledge database and apparatus for the same |
US20170337268A1 (en) * | 2016-05-17 | 2017-11-23 | Xerox Corporation | Unsupervised ontology-based graph extraction from texts |
KR20180022156A (en) * | 2016-08-23 | 2018-03-06 | 포항공과대학교 산학협력단 | Dialog management apparatus and method |
KR20190133931A (en) * | 2018-05-24 | 2019-12-04 | 한국과학기술원 | Method to response based on sentence paraphrase recognition for a dialog system |
Non-Patent Citations (1)
Title |
---|
D. Thenmozhi et al., An Open Information Extraction For Question Answering System, Proc. on ICCCSP 2018, pp.1-5 (2018.02.22.) 1부.* * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20220065522A (en) * | 2020-11-13 | 2022-05-20 | 한국전자통신연구원 | Hostile paraphrase sentence automatic generation system |
KR20220085489A (en) * | 2020-12-15 | 2022-06-22 | 주식회사 엘지유플러스 | Apparatus for generating lexical pattern and training sentence and operating method thereof |
KR20220087704A (en) * | 2020-12-18 | 2022-06-27 | 주식회사 와이즈넛 | The pattern recognition method of text sentences using language resources |
Also Published As
Publication number | Publication date |
---|---|
KR102143157B1 (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7346609B2 (en) | Systems and methods for performing semantic exploration using natural language understanding (NLU) frameworks | |
US10713441B2 (en) | Hybrid learning system for natural language intent extraction from a dialog utterance | |
US11520992B2 (en) | Hybrid learning system for natural language understanding | |
US11334692B2 (en) | Extracting a knowledge graph from program source code | |
US10585924B2 (en) | Processing natural-language documents and queries | |
KR20220028038A (en) | Derivation of multiple semantic expressions for utterances in a natural language understanding framework | |
CN105701253A (en) | Chinese natural language interrogative sentence semantization knowledge base automatic question-answering method | |
KR102143157B1 (en) | System and method for generating paraphrase sentence based on ontology | |
US20220245353A1 (en) | System and method for entity labeling in a natural language understanding (nlu) framework | |
US20150066476A1 (en) | Methods and Systems of Four Valued Analogical Transformation Operators Used in Natural Language Processing and Other Applications | |
KR20210030068A (en) | System and method for ensemble question-answering | |
US12197869B2 (en) | Concept system for a natural language understanding (NLU) framework | |
US20220245361A1 (en) | System and method for managing and optimizing lookup source templates in a natural language understanding (nlu) framework | |
US12175193B2 (en) | System and method for lookup source segmentation scoring in a natural language understanding (NLU) framework | |
KR20230005797A (en) | Apparatus, method and computer program for processing inquiry | |
JP2022546228A (en) | Resolution of queries using structured and unstructured data | |
KR20180093157A (en) | A question translation system based on dependency tree and semantic representation and the method thereof | |
US9904674B2 (en) | Augmented text search with syntactic information | |
US20220229986A1 (en) | System and method for compiling and using taxonomy lookup sources in a natural language understanding (nlu) framework | |
US12265796B2 (en) | Lookup source framework for a natural language understanding (NLU) framework | |
US20220229987A1 (en) | System and method for repository-aware natural language understanding (nlu) using a lookup source framework | |
Bais et al. | A model of a generic natural language interface for querying database | |
Skandan et al. | Question answering system using knowledge graphs | |
KR102130779B1 (en) | System of providing documents for machine reading comprehension and question answering system including the same | |
CN113297089B (en) | An implementation method of crowd testing assistant based on knowledge graph |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PA0109 | Patent application |
Patent event code: PA01091R01D Comment text: Patent Application Patent event date: 20181126 |
|
PA0201 | Request for examination | ||
PE0902 | Notice of grounds for rejection |
Comment text: Notification of reason for refusal Patent event date: 20200107 Patent event code: PE09021S01D |
|
PG1501 | Laying open of application | ||
E701 | Decision to grant or registration of patent right | ||
PE0701 | Decision of registration |
Patent event code: PE07011S01D Comment text: Decision to Grant Registration Patent event date: 20200727 |
|
GRNT | Written decision to grant | ||
PR0701 | Registration of establishment |
Comment text: Registration of Establishment Patent event date: 20200804 Patent event code: PR07011E01D |
|
PR1002 | Payment of registration fee |
Payment date: 20200805 End annual number: 3 Start annual number: 1 |
|
PG1601 | Publication of registration | ||
PR1001 | Payment of annual fee |
Payment date: 20230703 Start annual number: 4 End annual number: 4 |
|
PR1001 | Payment of annual fee |
Payment date: 20240701 Start annual number: 5 End annual number: 5 |