KR102675867B1 - Electronic terminal apparatus that automatically generates a query sentence through language analysis of the plain text sentence included in the electronic document and operating method thereof - Google Patents
Electronic terminal apparatus that automatically generates a query sentence through language analysis of the plain text sentence included in the electronic document and operating method thereof Download PDFInfo
- Publication number
- KR102675867B1 KR102675867B1 KR1020210050832A KR20210050832A KR102675867B1 KR 102675867 B1 KR102675867 B1 KR 102675867B1 KR 1020210050832 A KR1020210050832 A KR 1020210050832A KR 20210050832 A KR20210050832 A KR 20210050832A KR 102675867 B1 KR102675867 B1 KR 102675867B1
- Authority
- KR
- South Korea
- Prior art keywords
- text
- sentence
- query
- question
- correct answer
- Prior art date
Links
- 238000011017 operating method Methods 0.000 title 1
- 238000000034 method Methods 0.000 claims abstract description 20
- 230000014509 gene expression Effects 0.000 claims description 39
- 238000000605 extraction Methods 0.000 claims description 37
- 239000002245 particle Substances 0.000 claims description 37
- 239000000284 extract Substances 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 5
- 238000013473 artificial intelligence Methods 0.000 abstract description 4
- 235000019219 chocolate Nutrition 0.000 description 53
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005226 mechanical processes and functions Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
-
- 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/332—Query formulation
- G06F16/3329—Natural language query formulation or dialogue systems
-
- 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
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B7/00—Electrically-operated teaching apparatus or devices working with questions and answers
- G09B7/02—Electrically-operated teaching apparatus or devices working with questions and answers of the type wherein the student is expected to construct an answer to the question which is presented or wherein the machine gives an answer to the question presented by a student
Abstract
전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치 및 그 동작 방법이 개시된다. 본 발명은 사용자로부터 전자 문서에 포함된 한국어로 구성된 평서문 형태의 특정 문장에 대한 자동 문제 생성 명령이 인가되면, 해당 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성할 수 있는 전자 단말 장치 및 그 동작 방법을 제시함으로써, 사용자가 텍스트 기반의 인공지능 학습이나 교육을 위한 퀴즈 출제 등에 본 발명을 활용할 수 있도록 지원하고자 한다.An electronic terminal device that automatically generates query sentences through linguistic analysis of descriptive sentences included in electronic documents and a method of operating the same are disclosed. The present invention provides an electronic terminal device that can automatically generate a question sentence through linguistic analysis of the sentence when an automatic question generation command for a specific sentence in the form of a descriptive sentence written in Korean included in an electronic document is authorized by the user, and the same. By presenting an operation method, we aim to help users utilize the present invention for text-based artificial intelligence learning or quiz questions for education.
Description
본 발명은 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치 및 그 동작 방법에 대한 것이다.The present invention relates to an electronic terminal device and a method of operating the same that automatically generate query sentences through linguistic analysis of descriptive sentences included in electronic documents.
최근, 인터넷을 활용한 학습 프로그램이 발달하고 있으며, 이에 따라 사용자의 교육 환경도 빠르게 발달하고 있다.Recently, learning programs utilizing the Internet have been developed, and accordingly, the user's educational environment is also rapidly developing.
특히, 다양한 교육 매체의 발달로 인해 사용자는 더 폭넓은 학습 방법을 선택하고 이용할 수 있게 되었다.In particular, the development of various educational media has enabled users to select and use a wider range of learning methods.
한편, 전자 문서를 활용하여 학습할 수 있는 다양한 기능들도 등장하고 있다.Meanwhile, various functions that can be learned using electronic documents are also emerging.
이와 관련해서, 사용자가 전자 문서에서 문제 풀이를 가능하게 하는 장치들이 존재한다.In this regard, devices exist that enable users to solve problems in electronic documents.
이렇게, 전자 문서를 활용하여 학습을 할 수 있는 다양한 기능들이 등장하고 있지만, 아직까지 전자 문서에 포함된 문장을 활용하여 자동으로 질의 문장을 생성하는 제품은 출시되고 있지 않은 실정이다.Although various functions that enable learning using electronic documents are emerging, a product that automatically generates query sentences using sentences included in electronic documents has not yet been released.
따라서, 사용자로부터 전자 문서에 포함된 특정 문장에 대한 질의 문장을 생성하라는 명령이 인가되면, 특정 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성함으로써, 텍스트 기반의 인공지능 학습이나 교육을 위한 퀴즈 출제 등에 활용 가능하도록 지원하는 기술에 대한 연구가 필요하다.Therefore, when a command to generate a query sentence for a specific sentence included in an electronic document is granted by the user, the query sentence is automatically generated through linguistic analysis of the specific sentence, thereby creating a quiz for text-based artificial intelligence learning or education. Research is needed on technologies that can be used for exam preparation, etc.
본 발명은 사용자로부터 전자 문서에 포함된 한국어로 구성된 평서문 형태의 특정 문장에 대한 자동 문제 생성 명령이 인가되면, 해당 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성할 수 있는 전자 단말 장치 및 그 동작 방법을 제시함으로써, 사용자가 텍스트 기반의 인공지능 학습이나 교육을 위한 퀴즈 출제 등에 본 발명을 활용할 수 있도록 지원하고자 한다.The present invention provides an electronic terminal device that can automatically generate a question sentence through linguistic analysis of the sentence when an automatic question generation command for a specific sentence in the form of a descriptive sentence written in Korean included in an electronic document is authorized by the user, and the same. By presenting an operation method, we aim to help users utilize the present invention for text-based artificial intelligence learning or quiz questions for education.
본 발명의 일실시예에 따른 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치는 사용자로부터 전자 문서에 포함된 한국어로 구성된 복수의 평서문 형태의 문장들 중 어느 하나인 제1 문장에 기초한 자동 문제 생성 명령이 인가되면, 상기 제1 문장 내에서 주어에 해당되는 제1 텍스트, 목적어에 해당되는 제2 텍스트, 시간 정보를 지칭하는 제3 텍스트 및 장소 정보를 지칭하는 제4 텍스트를 추출하는 추출부, 상기 제1 텍스트를 상기 주어를 질의하기 위한 사전 설정된 제1 질의 텍스트로 대체하면서, 상기 제1 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제1 질의 문장을 생성하는 제1 질의 문장 생성부, 상기 제2 텍스트를 상기 목적어를 질의하기 위한 사전 설정된 제2 질의 텍스트로 대체하면서, 상기 제2 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제2 질의 문장을 생성하는 제2 질의 문장 생성부, 상기 제3 텍스트를 상기 시간 정보를 질의하기 위한 사전 설정된 제3 질의 텍스트로 대체하면서, 상기 제3 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제3 질의 문장을 생성하는 제3 질의 문장 생성부, 상기 제4 텍스트를 상기 장소 정보를 질의하기 위한 사전 설정된 제4 질의 텍스트로 대체하면서, 상기 제4 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제4 질의 문장을 생성하는 제4 질의 문장 생성부, 및 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장이 생성되면, 상기 제1 텍스트, 상기 제2 텍스트, 상기 제3 텍스트 및 상기 제4 텍스트 각각을 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성하는 정답 테이블 생성부를 포함한다.According to an embodiment of the present invention, an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document is provided by a user among a plurality of descriptive sentence-type sentences written in Korean included in an electronic document. When an automatic problem generation command based on a first sentence is applied, within the first sentence, a first text corresponding to the subject, a second text corresponding to the object, a third text referring to time information, and place information are generated. an extraction unit for extracting a fourth text that refers to A first query sentence generator that generates a first query sentence in the form of an interrogative sentence by checking an existing predicate and changing the predicate to an interrogative form, replacing the second text with a preset second query text for querying the object. While doing so, a second question sentence is generated by deleting the particle coupled to the second text, checking the predicate existing in the first sentence, and changing the predicate to an interrogative form, thereby generating a second question sentence in the form of an interrogative sentence. Part, replacing the third text with a preset third query text for querying the time information, deleting the particle associated with the third text, and checking the predicate present in the first sentence to A third query sentence generator that generates a third query sentence in the form of an interrogative sentence by changing the predicate to an interrogative form, replacing the fourth text with a preset fourth query text for querying the location information, and the fourth text A fourth question sentence generator that generates a fourth question sentence in the form of an interrogative sentence by deleting the particle coupled to the first sentence, checking the predicate present in the first sentence, and changing the predicate to an interrogative form, and the first sentence. When the query sentence, the second query sentence, the third query sentence, and the fourth query sentence are generated, each of the first text, the second text, the third text, and the fourth text is converted into the first query sentence. , an answer table generator that generates an answer table recorded with answer text corresponding to each of the second question sentence, the third question sentence, and the fourth question sentence.
또한, 본 발명의 일실시예에 따른 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치의 동작 방법은 사용자로부터 전자 문서에 포함된 한국어로 구성된 복수의 평서문 형태의 문장들 중 어느 하나인 제1 문장에 기초한 자동 문제 생성 명령이 인가되면, 상기 제1 문장 내에서 주어에 해당되는 제1 텍스트, 목적어에 해당되는 제2 텍스트, 시간 정보를 지칭하는 제3 텍스트 및 장소 정보를 지칭하는 제4 텍스트를 추출하는 단계, 상기 제1 텍스트를 상기 주어를 질의하기 위한 사전 설정된 제1 질의 텍스트로 대체하면서, 상기 제1 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제1 질의 문장을 생성하는 단계, 상기 제2 텍스트를 상기 목적어를 질의하기 위한 사전 설정된 제2 질의 텍스트로 대체하면서, 상기 제2 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제2 질의 문장을 생성하는 단계, 상기 제3 텍스트를 상기 시간 정보를 질의하기 위한 사전 설정된 제3 질의 텍스트로 대체하면서, 상기 제3 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제3 질의 문장을 생성하는 단계, 상기 제4 텍스트를 상기 장소 정보를 질의하기 위한 사전 설정된 제4 질의 텍스트로 대체하면서, 상기 제4 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제4 질의 문장을 생성하는 단계 및 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장이 생성되면, 상기 제1 텍스트, 상기 제2 텍스트, 상기 제3 텍스트 및 상기 제4 텍스트 각각을 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성하는 단계를 포함한다.In addition, a method of operating an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document according to an embodiment of the present invention is a method of operating a plurality of descriptive sentences written in Korean included in an electronic document from the user. When an automatic problem generation command based on a first sentence, which is one of the sentences in the form, is applied, within the first sentence, a first text corresponding to the subject, a second text corresponding to the object, and a third text referring to time information Extracting a fourth text referring to text and location information, replacing the first text with a preset first query text for querying the subject, while deleting a particle associated with the first text, Generating a first query sentence in the form of an interrogative sentence by checking the predicate existing in the first sentence and changing the predicate to an interrogative form, replacing the second text with a preset second query text for querying the object. , generating a second interrogative sentence in the form of an interrogative sentence by deleting the particle coupled to the second text, checking the predicate existing in the first sentence and changing the predicate to an interrogative form, the third text by replacing with a preset third query text for querying the time information, deleting the particle coupled to the third text, and checking the predicate present in the first sentence and changing the predicate to an interrogative form. , generating a third query sentence in the form of an interrogative sentence, replacing the fourth text with a preset fourth query text for querying the location information, while deleting a particle coupled to the fourth text, and Generating a fourth question sentence in the form of an interrogative sentence by checking the predicate existing in one sentence and changing the predicate to an interrogative form, and the first question sentence, the second question sentence, the third question sentence, and the first question sentence. 4 When a query sentence is generated, the first text, the second text, the third text, and the fourth text are respectively converted into the first query sentence, the second query sentence, the third query sentence, and the fourth query. It includes the step of creating a table of correct answers recorded with the correct answer text corresponding to each sentence.
본 발명은 사용자로부터 전자 문서에 포함된 한국어로 구성된 평서문 형태의 특정 문장에 대한 자동 문제 생성 명령이 인가되면, 해당 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성할 수 있는 전자 단말 장치 및 그 동작 방법을 제시함으로써, 사용자가 텍스트 기반의 인공지능 학습이나 교육을 위한 퀴즈 출제 등에 본 발명을 활용할 수 있도록 지원할 수 있다.The present invention provides an electronic terminal device that can automatically generate a question sentence through linguistic analysis of the sentence when an automatic question generation command for a specific sentence in the form of a descriptive sentence written in Korean included in an electronic document is authorized by the user, and the same. By presenting an operation method, it is possible to support users in utilizing the present invention for text-based artificial intelligence learning or quiz questions for education.
도 1은 본 발명의 일실시예에 따른 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치의 구조를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치의 동작 방법을 도시한 순서도이다.Figure 1 is a diagram illustrating the structure of an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document according to an embodiment of the present invention.
Figure 2 is a flowchart showing a method of operating an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document according to an embodiment of the present invention.
이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the attached drawings. This description is not intended to limit the present invention to specific embodiments, but should be understood to include all changes, equivalents, and substitutes included in the spirit and technical scope of the present invention. In describing each drawing, similar reference numerals are used for similar components, and unless otherwise defined, all terms used in this specification, including technical or scientific terms, are within the scope of common knowledge in the technical field to which the present invention pertains. It has the same meaning as generally understood by those who have it.
본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(Application Specific Integrated Circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다. In this document, when a part "includes" a certain component, this means that it may further include other components rather than excluding other components, unless specifically stated to the contrary. Additionally, in various embodiments of the present invention, each component, functional block, or means may be composed of one or more subcomponents, and the electrical, electronic, and mechanical functions performed by each component may be electronic. It may be implemented with various known elements or mechanical elements such as circuits, integrated circuits, and ASICs (Application Specific Integrated Circuits), and may be implemented separately or by integrating two or more into one.
한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 명령들(instructions)을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 명령들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 명령 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 명령들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.Meanwhile, the blocks in the attached block diagram or the steps in the flow chart are computer program instructions that are mounted on the processor or memory of equipment capable of data processing, such as general-purpose computers, special-purpose computers, portable laptop computers, and network computers, and perform designated functions. It can be interpreted to mean. Because these computer program instructions can be stored in a memory provided in a computer device or in a computer-readable memory, the functions described in the blocks of a block diagram or the steps of a flow diagram can be produced as a manufactured product containing instruction means to perform them. It could be. In addition, each block or each step may represent a module, segment, or portion of code that includes one or more executable instructions for executing specified logical function(s). Additionally, it should be noted that in some alternative embodiments, it is possible for functions mentioned in blocks or steps to be executed in a different order. For example, two blocks or steps shown in succession may be performed substantially simultaneously or in reverse order, and in some cases, some blocks or steps may be omitted.
도 1은 본 발명의 일실시예에 따른 전자 단말 장치의 구조를 도시한 도면이다.1 is a diagram showing the structure of an electronic terminal device according to an embodiment of the present invention.
도 1을 참조하면, 본 발명에 따른 전자 단말 장치(110)는 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 장치로, 추출부(111), 제1 질의 문장 생성부(112), 제2 질의 문장 생성부(113), 제3 질의 문장 생성부(114), 제4 질의 문장 생성부(115) 및 정답 테이블 생성부(116)를 포함한다.Referring to Figure 1, the
추출부(111)는 사용자(150)로부터 전자 문서에 포함된 한국어로 구성된 복수의 평서문 형태의 문장들 중 어느 하나인 제1 문장에 기초한 자동 문제 생성 명령이 인가되면, 상기 제1 문장 내에서 주어에 해당되는 제1 텍스트, 목적어에 해당되는 제2 텍스트, 시간 정보를 지칭하는 제3 텍스트 및 장소 정보를 지칭하는 제4 텍스트를 추출한다.When an automatic problem generation command based on a first sentence, which is one of a plurality of sentences in the form of a Korean language included in an electronic document, is applied from the
이때, 본 발명의 일실시예에 따르면, 추출부(111)는 시간 정보 정규 표현식 저장부(117), 장소 정보 정규 표현식 저장부(118), 제1 텍스트 추출부(119), 제2 텍스트 추출부(120), 제3 텍스트 추출부(121) 및 제4 텍스트 추출부(122)를 포함할 수 있다.At this time, according to an embodiment of the present invention, the
시간 정보 정규 표현식 저장부(117)에는 상기 시간 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제1 정규 표현식(regular expression)들이 저장되어 있다.The time information regular
여기서, 정규 표현식이란 '111-2222-3333'이나 '123456-4567890'과 같이 특정한 규칙을 가진 문자열의 집합을 표현하는데 사용하는 형식 언어를 의미한다.Here, regular expression refers to a formal language used to express a set of strings with specific rules, such as '111-2222-3333' or '123456-4567890'.
예컨대, 시간 정보 정규 표현식 저장부(117)에는 하기의 표 1과 같이, 사전 설정된 서로 다른 복수의 제1 정규 표현식들이 저장되어 있을 수 있다.For example, the time information regular
장소 정보 정규 표현식 저장부(118)에는 상기 장소 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제2 정규 표현식들이 저장되어 있다.The location information regular
예컨대, 장소 정보 정규 표현식 저장부(118)에는 하기의 표 2와 같이, 사전 설정된 서로 다른 복수의 제2 정규 표현식들이 저장되어 있을 수 있다.For example, the location information regular
제1 텍스트 추출부(119)는 상기 제1 문장 내에서, 사전 설정된 적어도 하나의 주격 조사 중 하나와 결합되어 있는 텍스트를 상기 제1 텍스트로 추출한다.The first
제2 텍스트 추출부(120)는 상기 제1 문장 내에서, 사전 설정된 적어도 하나의 목적격 조사 중 하나와 결합되어 있는 텍스트를 상기 제2 텍스트로 추출한다.The
제3 텍스트 추출부(121)는 상기 제1 문장 내에서, 상기 복수의 제1 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제3 텍스트로 추출한다.The third
제4 텍스트 추출부(122)는 상기 제1 문장 내에서, 상기 복수의 제2 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제4 텍스트로 추출한다.The fourth
이하에서는, 제1 텍스트 추출부(119), 제2 텍스트 추출부(120), 제3 텍스트 추출부(121) 및 제4 텍스트 추출부(122)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, the operations of the first
예컨대, 사용자(150)로부터 상기 전자 문서에 포함된 한국어로 구성된 상기 복수의 평서문 형태의 문장들 중 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장에 기초한 자동 문제 생성 명령이 인가되었다고 가정하자.For example, among the plurality of sentences in the form of descriptive sentences written in Korean included in the electronic document from the
그러면, 제1 텍스트 추출부(119)는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에서, 사전 설정된 적어도 하나의 주격 조사 중 하나와 결합되어 있는 텍스트를 상기 제1 텍스트로 추출할 수 있다.Then, the first
관련해서, 상기 적어도 하나의 주격 조사를 '은, 는, 이, 가'라고 하는 경우, 제1 텍스트 추출부(119)는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에서, '는'이라는 주격 조사와 결합되어 있는 텍스트인 '철수'를 상기 제1 텍스트로 추출할 수 있다.In relation to this, when the at least one nominative particle is 'eun, eun, i, a', the first
그리고, 제2 텍스트 추출부(120)는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에서, 사전 설정된 적어도 하나의 목적격 조사 중 하나와 결합되어 있는 텍스트를 상기 제2 텍스트로 추출할 수 있다.And, the second
관련해서, 상기 적어도 하나의 목적격 조사를 '을, 를'이라고 하는 경우, 제2 텍스트 추출부(120)는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에서, '을'이라는 목적격 조사와 결합되어 있는 텍스트인 '초콜릿'을 상기 제2 텍스트로 추출할 수 있다.In relation to this, when the at least one accusative particle is called 'eul, eul', the
그리고, 제3 텍스트 추출부(121)는 상기 표 1과 같은 시간 정보 정규 표현식 저장부(117)를 참조하여, '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에서, 상기 복수의 제1 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열인 '2021-03-01'을 상기 제3 텍스트로 추출할 수 있다.And, the third
그리고, 제4 텍스트 추출부(122)는 상기 표 2와 같은 장소 정보 정규 표현식 저장부(118)를 참조하여, '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에서, 상기 복수의 제2 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열인 '서울시 영등포구'를 상기 제4 텍스트로 추출할 수 있다.And, the
이렇게, 추출부(111)는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 제1 문장 내에서, 상기 주어에 해당되는 상기 제1 텍스트로 '철수', 상기 목적어에 해당되는 상기 제2 텍스트로 '초콜릿', 상기 시간 정보를 지칭하는 상기 제3 텍스트로 '2021-03-01' 및 상기 장소 정보를 지칭하는 상기 제4 텍스트로 '서울시 영등포구'를 추출할 수 있다.In this way, the
제1 질의 문장 생성부(112)는 상기 제1 텍스트를, 상기 주어를 질의하기 위한 사전 설정된 제1 질의 텍스트로 대체하면서, 상기 제1 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제1 질의 문장을 생성한다.The first
제2 질의 문장 생성부(113)는 상기 제2 텍스트를, 상기 목적어를 질의하기 위한 사전 설정된 제2 질의 텍스트로 대체하면서, 상기 제2 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제2 질의 문장을 생성한다.The second
제3 질의 문장 생성부(114)는 상기 제3 텍스트를, 상기 시간 정보를 질의하기 위한 사전 설정된 제3 질의 텍스트로 대체하면서, 상기 제3 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제3 질의 문장을 생성한다.The third
제4 질의 문장 생성부(115)는 상기 제4 텍스트를, 상기 장소 정보를 질의하기 위한 사전 설정된 제4 질의 텍스트로 대체하면서, 상기 제4 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제4 질의 문장을 생성한다.The fourth
정답 테이블 생성부(116)는 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장이 생성되면, 상기 제1 텍스트, 상기 제2 텍스트, 상기 제3 텍스트 및 상기 제4 텍스트 각각을 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성한다.When the first query sentence, the second query sentence, the third query sentence, and the fourth query sentence are generated, the
이때, 본 발명의 일실시예에 따르면, 상기 제1 질의 텍스트는 "누가"이고, 상기 제2 질의 텍스트는 "무엇을"이며, 상기 제3 질의 텍스트는 "언제"이고, 상기 제4 질의 텍스트는 "어디에서"일 수 있다.At this time, according to one embodiment of the present invention, the first query text is “who”, the second query text is “what”, the third query text is “when”, and the fourth query text is “what”. can be “where”.
이하에서는, 제1 질의 문장 생성부(112), 제2 질의 문장 생성부(113), 제3 질의 문장 생성부(114), 제4 질의 문장 생성부(115) 및 정답 테이블 생성부(116)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, the first
예컨대, 전술한 예와 같이, 상기 제1 문장을 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라고 하고, 추출부(111)로부터 상기 제1 텍스트로 '철수', 상기 제2 텍스트로 '초콜릿', 상기 제3 텍스트로 '2021-03-01', 상기 제4 텍스트로 '서울시 영등포구'가 추출되었다고 가정하자.For example, as in the above-mentioned example, the first sentence is 'Cheolsu bought chocolate in Yeongdeungpo-gu, Seoul on 2021-03-01.', and from the
그러면, 제1 질의 문장 생성부(112)는 상기 제1 텍스트인 '철수'를 상기 제1 질의 텍스트인 '누가'로 대체하면서, '철수'에 결합되어 있는 '는'이라는 조사를 삭제하고, 상기 제1 문장인 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'에서 서술어인 '샀다.'를 의문형인 '샀는가?'로 변경함으로써, '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?'라는 의문형 형태의 상기 제1 질의 문장을 생성할 수 있다.Then, the first
또한, 제2 질의 문장 생성부(113)는 상기 제2 텍스트인 '초콜릿'을 상기 제2 질의 텍스트인 '무엇을'로 대체하면서, '초콜릿'에 결합되어 있는 '을'이라는 조사를 삭제하고, 상기 제1 문장인 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.' 에서 서술어인 '샀다.'를 의문형인 '샀는가?'로 변경함으로써, '철수는 2021-03-01에 서울시 영등포구에서 무엇을 샀는가?'라는 의문형 형태의 상기 제2 질의 문장을 생성할 수 있다.In addition, the second
또한, 제3 질의 문장 생성부(114)는 상기 제3 텍스트인 '2021-03-01'을 상기 제3 질의 텍스트인 '언제'로 대체하면서, '2021-03-01'에 결합되어 있는 '에'라는 조사를 삭제하고, 상기 제1 문장인 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'에서 서술어인 '샀다.'를 의문형인 '샀는가?'로 변경함으로써, '철수는 언제 서울시 영등포구에서 초콜릿을 샀는가?'라는 의문형 형태의 상기 제3 질의 문장을 생성할 수 있다.In addition, the third
또한, 제4 질의 문장 생성부(115)는 상기 제4 텍스트인 '서울시 영등포구'를 상기 제4 질의 텍스트인 '어디에서'로 대체하면서, '서울시 영등포구'에 결합되어 있는 '에서'라는 조사를 삭제하고, 상기 제1 문장인 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'에서 서술어인 '샀다.'를 의문형인 '샀는가?'로 변경함으로써, '철수는 2021-03-01에 어디에서 초콜릿을 샀는가?'라는 의문형 형태의 상기 제4 질의 문장을 생성할 수 있다.In addition, the fourth
이렇게, 상기 제1 질의 문장인 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?', 상기 제2 질의 문장인 '철수는 2021-03-01에 서울시 영등포구에서 무엇을 샀는가?', 상기 제3 질의 문장인 '철수는 언제 서울시 영등포구에서 초콜릿을 샀는가?' 및 상기 제4 질의 문장인 '철수는 2021-03-01에 어디에서 초콜릿을 샀는가?'가 생성되면, 정답 테이블 생성부(116)는 상기 제1 텍스트인 '철수', 상기 제2 텍스트인 '초콜릿', 상기 제3 텍스트인 '2021-03-01' 및 상기 제4 텍스트인 '서울시 영등포구' 각각을 상기 제1 질의 문장인 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?', 상기 제2 질의 문장인 '철수는 2021-03-01에 서울시 영등포구에서 무엇을 샀는가?', 상기 제3 질의 문장인 '철수는 언제 서울시 영등포구에서 초콜릿을 샀는가?' 및 상기 제4 질의 문장인 '철수는 2021-03-01에 어디에서 초콜릿을 샀는가?' 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성할 수 있다.In this way, the first question sentence, ‘Who bought chocolate in Yeongdeungpo-gu, Seoul on 2021-03-01?’, and the second question sentence, ‘What did Cheolsu buy in Yeongdeungpo-gu, Seoul on 2021-03-01?’, above. The third question sentence, 'When did Cheolsu buy chocolate in Yeongdeungpo-gu, Seoul?' And when the fourth query sentence 'Where did Cheolsu buy chocolate on 2021-03-01?' is generated, the
관련해서, 정답 테이블 생성부(116)는 하기의 표 3과 같은 정보가 기록된 상기 정답 테이블을 생성할 수 있다.In relation to this, the
본 발명의 일실시예에 따르면, 전자 단말 장치(110)는 질의 문장 선택부(123) 및 정답 텍스트 추출부(124)를 더 포함할 수 있다.According to one embodiment of the present invention, the electronic
질의 문장 선택부(123)는 상기 정답 테이블이 생성된 이후, 사용자(150)로부터 문제 출제 명령이 인가되면, 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 중 어느 하나의 질의 문장을 랜덤하게 선택한 후, 상기 선택된 질의 문장을 화면에 표시한다.After the answer table is created, when a command to pose a question is applied from the
예컨대, 상기 표 3과 같은 정답 테이블이 생성된 이후, 사용자(150)로부터 문제 출제 명령이 인가되었다고 가정하자.For example, assume that after the answer table shown in Table 3 above is created, a command to pose a question is approved by the
그러면, 질의 문장 선택부(123)는 '상기 제1 질의 문장인 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?', 상기 제2 질의 문장인 '철수는 2021-03-01에 서울시 영등포구에서 무엇을 샀는가?', 상기 제3 질의 문장인 '철수는 언제 서울시 영등포구에서 초콜릿을 샀는가?' 및 상기 제4 질의 문장인 '철수는 2021-03-01에 어디에서 초콜릿을 샀는가?' 중 어느 하나의 질의 문장을 랜덤하게 선택한 후, 상기 선택된 질의 문장을 화면에 표시할 수 있다.Then, the query
정답 텍스트 추출부(124)는 상기 선택된 질의 문장이 화면에 표시된 이후에, 사용자(150)로부터 상기 선택된 질의 문장에 대한 정답 표시 명령이 인가되면, 상기 정답 테이블에서 상기 선택된 질의 문장에 대응되는 제1 정답 텍스트를 추출한 후, 상기 제1 정답 텍스트를 화면에 표시한다.After the selected query sentence is displayed on the screen, the correct
예컨대, 질의 문장 선택부(123)에 의해 상기 제1 질의 문장인 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?'가 랜덤하게 선택되었다고 하고, 상기 선택된 질의 문장인 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?'가 화면에 표시된 이후에, 사용자(150)로부터 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?'에 대한 정답 표시 명령이 인가되었다고 가정하자.For example, the first query sentence 'Who bought chocolate in Yeongdeungpo-gu, Seoul on 2021-03-01?' is randomly selected by the query
그러면, 정답 텍스트 추출부(124)는 상기 표 3과 같은 정답 테이블에서 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?'에 대한 제1 정답 텍스트로 '철수'를 추출한 후, 상기 제1 정답 텍스트인 '철수'를 화면에 표시할 수 있다.Then, the correct answer
본 발명의 일실시예에 따르면, 전자 단말 장치(110)는 테이블 갱신부(125) 및 문장 갱신부(126)를 더 포함할 수 있다.According to one embodiment of the present invention, the electronic
테이블 갱신부(125)는 상기 제1 정답 텍스트가 화면에 표시된 이후에, 사용자(150)로부터 상기 선택된 질의 문장에 대응되는 상기 제1 정답 텍스트를 제1 대체 텍스트로 대체할 것을 지시하는 정답 대체 명령이 인가되면, 상기 정답 테이블에 기록되어 있는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 정답 테이블을 갱신한다.After the first correct answer text is displayed on the screen, the
문장 갱신부(126)는 상기 정답 테이블이 갱신되면, 상기 전자 문서에 포함되어 있는 상기 제1 문장 내에 존재하는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 전자 문서에 포함되어 있는 상기 제1 문장을 갱신한다.When the correct answer table is updated, the
이하에서는, 테이블 갱신부(125) 및 문장 갱신부(126)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, the operations of the
예컨대, 전술한 예와 같이, 상기 선택된 질의 문장을 '누가 2021-03-01에 서울시 영등포구에서 초콜릿을 샀는가?'라고 하고, 정답 텍스트 추출부(124)에 의해 상기 제1 정답 텍스트인 '철수'가 화면에 표시된 이후에, 사용자(150)로부터 상기 제1 정답 텍스트인 '철수'를 '영희'라는 제1 대체 텍스트로 대체할 것을 지시하는 정답 대체 명령이 전자 단말 장치(110)에 인가되었다고 가정하자.For example, as in the above-mentioned example, the selected query sentence is 'Who bought chocolate in Yeongdeungpo-gu, Seoul on 2021-03-01?', and the first correct answer text 'Cheolsu' is selected by the correct answer
그러면, 테이블 갱신부(125)는 상기 표 3과 같은 정답 테이블에 기록되어 있는 상기 제1 정답 텍스트인 '철수'를 상기 제1 대체 텍스트인 '영희'로 변경함으로써, 하기의 표 4와 같이 상기 정답 테이블을 갱신할 수 있다.Then, the
이렇게, 상기 정답 테이블이 갱신되면, 문장 갱신부(126)는 상기 전자 문서에 포함되어 있는 상기 제1 문장 내에 존재하는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 전자 문서에 포함되어 있는 상기 제1 문장을 갱신할 수 있다.In this way, when the correct answer table is updated, the
관련해서, 전술한 예와 같이, 상기 제1 문장을 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라고 하는 경우, 문장 갱신부(126)는 상기 표 4와 같이 상기 정답 테이블이 갱신되면, 상기 전자 문서에 포함되어 있는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장 내에 존재하는 상기 제1 정답 텍스트인 '철수'를 상기 제1 대체 텍스트인 '영희'로 변경함으로써, 상기 전자 문서에 포함되어 있는 '철수는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'라는 상기 제1 문장을 '영희는 2021-03-01에 서울시 영등포구에서 초콜릿을 샀다.'로 갱신할 수 있다.Relatedly, as in the above-described example, when the first sentence is 'Cheolsu bought chocolate in Yeongdeungpo-gu, Seoul on 2021-03-01.', the
도 2는 본 발명의 일실시예에 따른 전자 문서에 포함된 평서문 문장에 대한 언어분석을 통해 질의 문장을 자동으로 생성하는 전자 단말 장치의 동작 방법을 도시한 순서도이다.Figure 2 is a flowchart showing a method of operating an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document according to an embodiment of the present invention.
단계(S210)에서는 사용자로부터 전자 문서에 포함된 한국어로 구성된 복수의 평서문 형태의 문장들 중 어느 하나인 제1 문장에 기초한 자동 문제 생성 명령이 인가되면, 상기 제1 문장 내에서 주어에 해당되는 제1 텍스트, 목적어에 해당되는 제2 텍스트, 시간 정보를 지칭하는 제3 텍스트 및 장소 정보를 지칭하는 제4 텍스트를 추출한다.In step S210, when an automatic problem generation command based on a first sentence, which is one of a plurality of descriptive sentences written in Korean included in an electronic document, is applied by the user, a question corresponding to the subject in the first sentence is applied. 1 text, a second text corresponding to the target word, a third text indicating time information, and a fourth text indicating location information are extracted.
단계(S220)에서는 상기 제1 텍스트를 상기 주어를 질의하기 위한 사전 설정된 제1 질의 텍스트로 대체하면서, 상기 제1 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제1 질의 문장을 생성한다.In step S220, the first text is replaced with a preset first query text for querying the subject, the particle coupled to the first text is deleted, and the predicate present in the first sentence is confirmed. By changing the predicate into an interrogative form, a first question sentence in the form of an interrogative sentence is generated.
단계(S230)에서는 상기 제2 텍스트를 상기 목적어를 질의하기 위한 사전 설정된 제2 질의 텍스트로 대체하면서, 상기 제2 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제2 질의 문장을 생성한다.In step S230, the second text is replaced with a preset second query text for querying the object, the particle associated with the second text is deleted, and the predicate present in the first sentence is confirmed. By changing the predicate to an interrogative form, a second question sentence in the form of an interrogative sentence is generated.
단계(S240)에서는 상기 제3 텍스트를 상기 시간 정보를 질의하기 위한 사전 설정된 제3 질의 텍스트로 대체하면서, 상기 제3 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제3 질의 문장을 생성한다.In step S240, the third text is replaced with a preset third query text for querying the time information, the postposition coupled to the third text is deleted, and the predicate existing in the first sentence is replaced with a preset third query text for querying the time information. By confirming and changing the predicate to an interrogative form, a third question sentence in the form of an interrogative sentence is generated.
단계(S250)에서는 상기 제4 텍스트를 상기 장소 정보를 질의하기 위한 사전 설정된 제4 질의 텍스트로 대체하면서, 상기 제4 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제4 질의 문장을 생성한다.In step S250, the fourth text is replaced with a preset fourth query text for querying the location information, the postposition coupled to the fourth text is deleted, and the predicate present in the first sentence is replaced. By confirming and changing the predicate to an interrogative form, a fourth question sentence in the form of an interrogative sentence is generated.
단계(S260)에서는 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장이 생성되면, 상기 제1 텍스트, 상기 제2 텍스트, 상기 제3 텍스트 및 상기 제4 텍스트 각각을 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성한다.In step S260, when the first query sentence, the second query sentence, the third query sentence, and the fourth query sentence are generated, the first text, the second text, the third text, and the fourth query sentence are generated. A correct answer table is created in which each text is recorded as the correct answer text corresponding to each of the first query sentence, the second query sentence, the third query sentence, and the fourth query sentence.
이때, 본 발명의 일실시예에 따르면, 단계(S210)에서는 상기 시간 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제1 정규 표현식들이 저장되어 있는 시간 정보 정규 표현식 저장부를 유지하는 단계, 상기 장소 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제2 정규 표현식들이 저장되어 있는 장소 정보 정규 표현식 저장부를 유지하는 단계, 상기 제1 문장 내에서, 사전 설정된 적어도 하나의 주격 조사 중 하나와 결합되어 있는 텍스트를 상기 제1 텍스트로 추출하는 단계, 상기 제1 문장 내에서, 사전 설정된 적어도 하나의 목적격 조사 중 하나와 결합되어 있는 텍스트를 상기 제2 텍스트로 추출하는 단계, 상기 제1 문장 내에서, 상기 복수의 제1 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제3 텍스트로 추출하는 단계 및 상기 제1 문장 내에서, 상기 복수의 제2 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제4 텍스트로 추출하는 단계를 포함할 수 있다.At this time, according to one embodiment of the present invention, in step S210, maintaining a time information regular expression storage unit in which a plurality of different first regular expressions preset to correspond to the notation format of the time information are stored, Maintaining a place information regular expression storage unit storing a plurality of different second regular expressions preset to correspond to the notation format of the place information, wherein, within the first sentence, one of at least one preset nominative particle extracting a text that is combined with the first text, within the first sentence, extracting a text that is combined with one of at least one preset accusative particle into the second text, the first sentence extracting, within the third text, a string having a notation format corresponding to one of the plurality of first regular expressions, and within the first sentence, corresponding to one of the plurality of second regular expressions. It may include extracting a string having a notation format as the fourth text.
이때, 본 발명의 일실시예에 따르면, 상기 제1 질의 텍스트는 "누가"이고, 상기 제2 질의 텍스트는 "무엇을"이며, 상기 제3 질의 텍스트는 "언제"이고, 상기 제4 질의 텍스트는 "어디에서"일 수 있다.At this time, according to one embodiment of the present invention, the first query text is “who”, the second query text is “what”, the third query text is “when”, and the fourth query text is “what”. can be “where”.
또한, 본 발명의 일실시예에 따르면, 상기 전자 단말 장치의 동작 방법은 상기 정답 테이블이 생성된 이후, 상기 사용자로부터 문제 출제 명령이 인가되면, 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 중 어느 하나의 질의 문장을 랜덤하게 선택한 후, 상기 선택된 질의 문장을 화면에 표시하는 단계 및 상기 선택된 질의 문장이 화면에 표시된 이후에, 상기 사용자로부터 상기 선택된 질의 문장에 대한 정답 표시 명령이 인가되면, 상기 정답 테이블에서 상기 선택된 질의 문장에 대응되는 제1 정답 텍스트를 추출한 후, 상기 제1 정답 텍스트를 화면에 표시하는 단계를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, the method of operating the electronic terminal device is such that, after the answer table is created, when a command to pose a question is applied from the user, the first question sentence, the second question sentence, the After randomly selecting any one of the third query sentence and the fourth query sentence, displaying the selected query sentence on the screen, and after the selected query sentence is displayed on the screen, the selected query sentence from the user When a command to display the correct answer to a sentence is applied, the step of extracting the first correct answer text corresponding to the selected question sentence from the correct answer table and then displaying the first correct answer text on the screen may be further included.
이때, 본 발명의 일실시예에 따르면, 상기 전자 단말 장치의 동작 방법은 상기 제1 정답 텍스트가 화면에 표시된 이후에, 상기 사용자로부터 상기 선택된 질의 문장에 대응되는 상기 제1 정답 텍스트를 제1 대체 텍스트로 대체할 것을 지시하는 정답 대체 명령이 인가되면, 상기 정답 테이블에 기록되어 있는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 정답 테이블을 갱신하는 단계 및 상기 정답 테이블이 갱신되면, 상기 전자 문서에 포함되어 있는 상기 제1 문장 내에 존재하는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 전자 문서에 포함되어 있는 상기 제1 문장을 갱신하는 단계를 더 포함할 수 있다.At this time, according to one embodiment of the present invention, the method of operating the electronic terminal device is to replace the first answer text corresponding to the question sentence selected by the user with a first answer text after the first answer text is displayed on the screen. When an answer replacement command instructing to replace text is applied, updating the answer table by changing the first answer text recorded in the answer table to the first replacement text; and when the answer table is updated, , It may further include the step of updating the first sentence included in the electronic document by changing the first correct text present in the first sentence included in the electronic document to the first alternative text. there is.
이상, 도 2를 참조하여 본 발명의 일실시예에 따른 전자 단말 장치의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 전자 단말 장치의 동작 방법은 도 1을 이용하여 설명한 전자 단말 장치(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.Above, a method of operating an electronic terminal device according to an embodiment of the present invention has been described with reference to FIG. 2. Here, the operation method of the electronic terminal device according to an embodiment of the present invention may correspond to the configuration of the operation of the electronic
본 발명의 일실시예에 따른 전자 단말 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.The method of operating an electronic terminal device according to an embodiment of the present invention may be implemented as a computer program stored in a storage medium to be executed through combination with a computer.
또한, 본 발명의 일실시예에 따른 전자 단말 장치의 동작 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. Additionally, the method of operating an electronic terminal device according to an embodiment of the present invention may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc., singly or in combination. Program instructions recorded on the medium may be specially designed and constructed for the present invention or may be known and usable by those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. -Includes optical media (magneto-optical media) and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, etc. Examples of program instructions include machine language code, such as that produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter, etc.
이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described with specific details such as specific components and limited embodiments and drawings, but this is only provided to facilitate a more general understanding of the present invention, and the present invention is not limited to the above embodiments. , those skilled in the art can make various modifications and variations from this description.
따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Accordingly, the spirit of the present invention should not be limited to the described embodiments, and the scope of the patent claims described later as well as all things that are equivalent or equivalent to the scope of this patent claim shall fall within the scope of the spirit of the present invention. .
110: 전자 단말 장치
111: 추출부 112: 제1 질의 문장 생성부
113: 제2 질의 문장 생성부 114: 제3 질의 문장 생성부
115: 제4 질의 문장 생성부 116: 정답 테이블 생성부
117: 시간 정보 정규 표현식 저장부 118: 장소 정보 정규 표현식 저장부
119: 제1 텍스트 추출부 120: 제2 텍스트 추출부
121: 제3 텍스트 추출부 122: 제4 텍스트 추출부
123: 질의 문장 선택부 124: 정답 텍스트 추출부
125: 테이블 갱신부 126: 문장 갱신부110: Electronic terminal device
111: extraction unit 112: first query sentence generation unit
113: Second query sentence generator 114: Third query sentence generator
115: Fourth question sentence generation unit 116: Answer table generation unit
117: Time information regular expression storage unit 118: Place information regular expression storage unit
119: first text extraction unit 120: second text extraction unit
121: Third text extraction unit 122: Fourth text extraction unit
123: Question sentence selection unit 124: Correct answer text extraction unit
125: table update unit 126: sentence update unit
Claims (12)
사용자로부터 전자 문서에 포함된 한국어로 구성된 복수의 평서문 형태의 문장들 중 어느 하나인 제1 문장에 기초한 자동 문제 생성 명령이 인가되면, 상기 제1 문장 내에서 주어에 해당되는 제1 텍스트, 목적어에 해당되는 제2 텍스트, 시간 정보를 지칭하는 제3 텍스트 및 장소 정보를 지칭하는 제4 텍스트를 추출하는 추출부;
상기 제1 텍스트를 상기 주어를 질의하기 위한 사전 설정된 제1 질의 텍스트로 대체하면서, 상기 제1 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제1 질의 문장을 생성하는 제1 질의 문장 생성부;
상기 제2 텍스트를 상기 목적어를 질의하기 위한 사전 설정된 제2 질의 텍스트로 대체하면서, 상기 제2 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제2 질의 문장을 생성하는 제2 질의 문장 생성부;
상기 제3 텍스트를 상기 시간 정보를 질의하기 위한 사전 설정된 제3 질의 텍스트로 대체하면서, 상기 제3 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제3 질의 문장을 생성하는 제3 질의 문장 생성부;
상기 제4 텍스트를 상기 장소 정보를 질의하기 위한 사전 설정된 제4 질의 텍스트로 대체하면서, 상기 제4 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제4 질의 문장을 생성하는 제4 질의 문장 생성부;
상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장이 생성되면, 상기 제1 텍스트, 상기 제2 텍스트, 상기 제3 텍스트 및 상기 제4 텍스트 각각을 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성하는 정답 테이블 생성부;
상기 정답 테이블이 생성된 이후, 상기 사용자로부터 문제 출제 명령이 인가되면, 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 중 어느 하나의 질의 문장을 랜덤하게 선택한 후, 상기 선택된 질의 문장을 화면에 표시하는 질의 문장 선택부;
상기 선택된 질의 문장이 화면에 표시된 이후에, 상기 사용자로부터 상기 선택된 질의 문장에 대한 정답 표시 명령이 인가되면, 상기 정답 테이블에서 상기 선택된 질의 문장에 대응되는 제1 정답 텍스트를 추출한 후, 상기 제1 정답 텍스트를 화면에 표시하는 정답 텍스트 추출부;
상기 제1 정답 텍스트가 화면에 표시된 이후에, 상기 사용자로부터 상기 선택된 질의 문장에 대응되는 상기 제1 정답 텍스트를 제1 대체 텍스트로 대체할 것을 지시하는 정답 대체 명령이 인가되면, 상기 정답 테이블에 기록되어 있는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 정답 테이블을 갱신하는 테이블 갱신부; 및
상기 정답 테이블이 갱신되면, 상기 전자 문서에 포함되어 있는 상기 제1 문장 내에 존재하는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 전자 문서에 포함되어 있는 상기 제1 문장을 갱신하는 문장 갱신부
를 포함하고,
상기 추출부는
상기 시간 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제1 정규 표현식(regular expression)들이 저장되어 있는 시간 정보 정규 표현식 저장부;
상기 장소 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제2 정규 표현식들이 저장되어 있는 장소 정보 정규 표현식 저장부;
상기 제1 문장 내에서, 사전 설정된 적어도 하나의 주격 조사 중 하나와 결합되어 있는 텍스트를 상기 제1 텍스트로 추출하는 제1 텍스트 추출부;
상기 제1 문장 내에서, 사전 설정된 적어도 하나의 목적격 조사 중 하나와 결합되어 있는 텍스트를 상기 제2 텍스트로 추출하는 제2 텍스트 추출부;
상기 제1 문장 내에서, 상기 복수의 제1 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제3 텍스트로 추출하는 제3 텍스트 추출부; 및
상기 제1 문장 내에서, 상기 복수의 제2 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제4 텍스트로 추출하는 제4 텍스트 추출부
를 포함하는 전자 단말 장치.In an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document,
When an automatic problem generation command based on a first sentence, which is one of a plurality of descriptive sentences written in Korean included in an electronic document, is granted by the user, the first text corresponding to the subject and the object within the first sentence are an extraction unit that extracts the corresponding second text, a third text referring to time information, and a fourth text referring to place information;
Replacing the first text with a preset first query text for querying the subject, deleting the particle bound to the first text, checking the predicate existing in the first sentence, and converting the predicate into an interrogative form a first question sentence generator that generates a first question sentence in the form of a question by changing it;
Replacing the second text with a preset second query text for querying the object, deleting the particle associated with the second text, checking the predicate present in the first sentence, and converting the predicate into an interrogative form a second question sentence generator that generates a second question sentence in the form of an interrogative sentence;
Replacing the third text with a preset third query text for querying the time information, deleting the particle associated with the third text, and checking the predicate present in the first sentence to replace the predicate a third question sentence generator that generates a third question sentence in the form of an interrogative sentence by changing it to an interrogative form;
Replacing the fourth text with a preset fourth query text for querying the location information, deleting the particle associated with the fourth text, and checking the predicate present in the first sentence to replace the predicate a fourth question sentence generator that generates a fourth question sentence in the form of an interrogative sentence by changing it to an interrogative form;
When the first query sentence, the second query sentence, the third query sentence, and the fourth query sentence are generated, each of the first text, the second text, the third text, and the fourth text is converted into the first query sentence. an answer table generator that generates a answer table recorded with answer text corresponding to each of the first question sentence, the second question sentence, the third question sentence, and the fourth question sentence;
After the answer table is created, when a command to pose a question is issued by the user, one of the first question sentence, the second question sentence, the third question sentence, and the fourth question sentence is randomly selected. a query sentence selection unit that, after selection, displays the selected query sentence on the screen;
After the selected query sentence is displayed on the screen, if a command to display the correct answer for the selected query sentence is received from the user, the first correct answer text corresponding to the selected question sentence is extracted from the correct answer table, and then the first correct answer text is extracted from the correct answer table. A correct answer text extraction unit that displays text on the screen;
After the first correct answer text is displayed on the screen, if a correct answer replacement command instructing to replace the first correct answer text corresponding to the selected query sentence with a first replacement text is applied from the user, it is recorded in the correct answer table. a table updating unit that updates the correct answer table by changing the first correct answer text to the first replacement text; and
When the answer table is updated, the first answer text present in the first sentence included in the electronic document is changed to the first alternative text, thereby updating the first sentence included in the electronic document. Sentence update section
Including,
The extraction unit
a time information regular expression storage unit storing a plurality of different first regular expressions that are preset to correspond to the notation format of the time information;
a location information regular expression storage unit storing a plurality of different second regular expressions preset to correspond to the notation format of the location information;
a first text extraction unit that extracts, within the first sentence, a text combined with one of at least one preset nominative particle as the first text;
a second text extraction unit that extracts, as the second text, a text that is combined with one of at least one preset accusative particle in the first sentence;
a third text extraction unit that extracts, from the first sentence, a string having a notation format corresponding to one of the plurality of first regular expressions as the third text; and
A fourth text extraction unit that extracts, within the first sentence, a string having a notation format corresponding to one of the plurality of second regular expressions as the fourth text.
Electronic terminal device including.
상기 제1 질의 텍스트는 "누가"이고, 상기 제2 질의 텍스트는 "무엇을"이며, 상기 제3 질의 텍스트는 "언제"이고, 상기 제4 질의 텍스트는 "어디에서"인 것을 특징으로 하는 전자 단말 장치.According to paragraph 1,
wherein the first query text is “who”, the second query text is “what”, the third query text is “when”, and the fourth query text is “where”. terminal device.
사용자로부터 전자 문서에 포함된 한국어로 구성된 복수의 평서문 형태의 문장들 중 어느 하나인 제1 문장에 기초한 자동 문제 생성 명령이 인가되면, 상기 제1 문장 내에서 주어에 해당되는 제1 텍스트, 목적어에 해당되는 제2 텍스트, 시간 정보를 지칭하는 제3 텍스트 및 장소 정보를 지칭하는 제4 텍스트를 추출하는 단계;
상기 제1 텍스트를 상기 주어를 질의하기 위한 사전 설정된 제1 질의 텍스트로 대체하면서, 상기 제1 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제1 질의 문장을 생성하는 단계;
상기 제2 텍스트를 상기 목적어를 질의하기 위한 사전 설정된 제2 질의 텍스트로 대체하면서, 상기 제2 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제2 질의 문장을 생성하는 단계;
상기 제3 텍스트를 상기 시간 정보를 질의하기 위한 사전 설정된 제3 질의 텍스트로 대체하면서, 상기 제3 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제3 질의 문장을 생성하는 단계;
상기 제4 텍스트를 상기 장소 정보를 질의하기 위한 사전 설정된 제4 질의 텍스트로 대체하면서, 상기 제4 텍스트에 결합되어 있는 조사를 삭제하고, 상기 제1 문장 내에 존재하는 상기 서술어를 확인하여 상기 서술어를 의문형으로 변경함으로써, 의문문 형태의 제4 질의 문장을 생성하는 단계;
상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장이 생성되면, 상기 제1 텍스트, 상기 제2 텍스트, 상기 제3 텍스트 및 상기 제4 텍스트 각각을 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 각각에 대응되는 정답 텍스트로 기록한 정답 테이블을 생성하는 단계;
상기 정답 테이블이 생성된 이후, 상기 사용자로부터 문제 출제 명령이 인가되면, 상기 제1 질의 문장, 상기 제2 질의 문장, 상기 제3 질의 문장 및 상기 제4 질의 문장 중 어느 하나의 질의 문장을 랜덤하게 선택한 후, 상기 선택된 질의 문장을 화면에 표시하는 단계;
상기 선택된 질의 문장이 화면에 표시된 이후에, 상기 사용자로부터 상기 선택된 질의 문장에 대한 정답 표시 명령이 인가되면, 상기 정답 테이블에서 상기 선택된 질의 문장에 대응되는 제1 정답 텍스트를 추출한 후, 상기 제1 정답 텍스트를 화면에 표시하는 단계;
상기 제1 정답 텍스트가 화면에 표시된 이후에, 상기 사용자로부터 상기 선택된 질의 문장에 대응되는 상기 제1 정답 텍스트를 제1 대체 텍스트로 대체할 것을 지시하는 정답 대체 명령이 인가되면, 상기 정답 테이블에 기록되어 있는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 정답 테이블을 갱신하는 단계; 및
상기 정답 테이블이 갱신되면, 상기 전자 문서에 포함되어 있는 상기 제1 문장 내에 존재하는 상기 제1 정답 텍스트를 상기 제1 대체 텍스트로 변경함으로써, 상기 전자 문서에 포함되어 있는 상기 제1 문장을 갱신하는 단계
를 포함하고,
상기 추출하는 단계는
상기 시간 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제1 정규 표현식(regular expression)들이 저장되어 있는 시간 정보 정규 표현식 저장부를 유지하는 단계;
상기 장소 정보의 표기 형식에 대응되는 것으로 사전 설정된 서로 다른 복수의 제2 정규 표현식들이 저장되어 있는 장소 정보 정규 표현식 저장부를 유지하는 단계;
상기 제1 문장 내에서, 사전 설정된 적어도 하나의 주격 조사 중 하나와 결합되어 있는 텍스트를 상기 제1 텍스트로 추출하는 단계;
상기 제1 문장 내에서, 사전 설정된 적어도 하나의 목적격 조사 중 하나와 결합되어 있는 텍스트를 상기 제2 텍스트로 추출하는 단계;
상기 제1 문장 내에서, 상기 복수의 제1 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제3 텍스트로 추출하는 단계; 및
상기 제1 문장 내에서, 상기 복수의 제2 정규 표현식들 중 하나에 대응되는 표기 형식을 갖는 문자열을 상기 제4 텍스트로 추출하는 단계
를 포함하는 전자 단말 장치의 동작 방법.A method of operating an electronic terminal device that automatically generates a query sentence through linguistic analysis of a descriptive sentence included in an electronic document, comprising:
When an automatic problem generation command based on a first sentence, which is one of a plurality of descriptive sentences written in Korean included in an electronic document, is granted by the user, the first text corresponding to the subject and the object within the first sentence are extracting a corresponding second text, a third text referring to time information, and a fourth text referring to place information;
Replacing the first text with a preset first query text for querying the subject, deleting the particle bound to the first text, checking the predicate existing in the first sentence, and converting the predicate into an interrogative form generating a first question sentence in the form of an interrogative sentence by modifying it;
Replacing the second text with a preset second query text for querying the object, deleting the particle associated with the second text, checking the predicate present in the first sentence, and converting the predicate into an interrogative form generating a second question sentence in the form of an interrogative sentence by changing to;
Replacing the third text with a preset third query text for querying the time information, deleting the particle associated with the third text, and checking the predicate present in the first sentence to replace the predicate generating a third question sentence in the form of an interrogative sentence by changing it to an interrogative form;
Replacing the fourth text with a preset fourth query text for querying the location information, deleting the particle associated with the fourth text, and checking the predicate present in the first sentence to replace the predicate generating a fourth question sentence in the form of an interrogative sentence by changing it to an interrogative form;
When the first query sentence, the second query sentence, the third query sentence, and the fourth query sentence are generated, each of the first text, the second text, the third text, and the fourth text is converted into the first query sentence. generating a correct answer table recorded with correct answer text corresponding to each of the first question sentence, the second question sentence, the third question sentence, and the fourth question sentence;
After the answer table is created, when a command to pose a question is issued by the user, one of the first question sentence, the second question sentence, the third question sentence, and the fourth question sentence is randomly selected. After selection, displaying the selected query sentence on the screen;
After the selected query sentence is displayed on the screen, if a command to display the correct answer for the selected query sentence is received from the user, the first correct answer text corresponding to the selected question sentence is extracted from the correct answer table, and then the first correct answer text is extracted from the correct answer table. displaying text on a screen;
After the first correct answer text is displayed on the screen, if a correct answer replacement command instructing to replace the first correct answer text corresponding to the selected query sentence with a first replacement text is applied from the user, it is recorded in the correct answer table. updating the correct answer table by changing the first correct answer text to the first alternative text; and
When the answer table is updated, the first answer text present in the first sentence included in the electronic document is changed to the first alternative text, thereby updating the first sentence included in the electronic document. step
Including,
The extraction step is
maintaining a time information regular expression storage unit in which a plurality of different first regular expressions preset to correspond to the notation format of the time information are stored;
maintaining a location information regular expression storage unit in which a plurality of different second regular expressions preset to correspond to the notation format of the location information are stored;
extracting, within the first sentence, a text that is combined with one of at least one preset nominative particle as the first text;
extracting, within the first sentence, a text that is combined with one of at least one preset accusative particle as the second text;
extracting, within the first sentence, a string having a notation format corresponding to one of the plurality of first regular expressions as the third text; and
Within the first sentence, extracting a string having a notation format corresponding to one of the plurality of second regular expressions as the fourth text.
A method of operating an electronic terminal device comprising:
상기 제1 질의 텍스트는 "누가"이고, 상기 제2 질의 텍스트는 "무엇을"이며, 상기 제3 질의 텍스트는 "언제"이고, 상기 제4 질의 텍스트는 "어디에서"인 것을 특징으로 하는 전자 단말 장치의 동작 방법.According to clause 6,
wherein the first query text is “who”, the second query text is “what”, the third query text is “when”, and the fourth query text is “where”. How a terminal device operates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210050832A KR102675867B1 (en) | 2021-04-20 | Electronic terminal apparatus that automatically generates a query sentence through language analysis of the plain text sentence included in the electronic document and operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210050832A KR102675867B1 (en) | 2021-04-20 | Electronic terminal apparatus that automatically generates a query sentence through language analysis of the plain text sentence included in the electronic document and operating method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20220144482A KR20220144482A (en) | 2022-10-27 |
KR102675867B1 true KR102675867B1 (en) | 2024-06-17 |
Family
ID=
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Black et al. | Statistically-driven computer grammars of English: The IBM/Lancaster approach | |
Matthes | Python crash course: A hands-on, project-based introduction to programming | |
JP5090547B2 (en) | Transliteration processing device, transliteration processing program, computer-readable recording medium recording transliteration processing program, and transliteration processing method | |
Goldstein et al. | HTML5 & CSS3 For The Real World: Powerful HTML5 and CSS3 Techniques You Can Use Today! | |
US20140222822A1 (en) | Content revision using question and answer generation | |
CN102439590A (en) | System and method for automatic semantic labeling of natural language texts | |
AU2003290395A1 (en) | A system of interactive dictionary | |
JPS62163173A (en) | Mechanical translating device | |
JP2011128362A (en) | Learning system | |
JP3638145B2 (en) | Hole filling problem creating apparatus, computer program for filling hole filling problem, and recording medium recording the program | |
KR102675867B1 (en) | Electronic terminal apparatus that automatically generates a query sentence through language analysis of the plain text sentence included in the electronic document and operating method thereof | |
JP2008203743A (en) | Learning support device and learning support program | |
KR20120032121A (en) | Recoding media saving language learning program | |
JP2006301066A (en) | Electronic dictionary device, dictionary program | |
JP4205038B2 (en) | Hole filling problem creating apparatus, computer program for filling hole filling problem, and recording medium recording the program | |
KR101835994B1 (en) | Method and apparatus of providing searching service for electronic books | |
JP3321650B1 (en) | Learning system | |
KR102645880B1 (en) | Method and device for providing english self-directed learning contents | |
JP2010181651A (en) | Device for automatically creating multiple-choice question | |
KR20220144482A (en) | Electronic terminal apparatus that automatically generates a query sentence through language analysis of the plain text sentence included in the electronic document and operating method thereof | |
CN111459483B (en) | Interface processing method and device | |
JP7247593B2 (en) | Generation device, software robot system, generation method and generation program | |
KR20230056206A (en) | Electronic terminal apparatus that automatically generates question sentences and responses through language analysis of electronic documents, and operating method thereof | |
JP7295463B2 (en) | Business flow creation support device, business flow creation support method, and business flow creation support program | |
KR102582013B1 (en) | Word extraction device and Method for productive vocabulary knowledge expansion based on foreign language dialogue record of learners |