Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6768738B2 - Training data generators, methods, and programs - Google Patents
[go: Go Back, main page]

JP6768738B2 - Training data generators, methods, and programs - Google Patents

Training data generators, methods, and programs Download PDF

Info

Publication number
JP6768738B2
JP6768738B2 JP2018090231A JP2018090231A JP6768738B2 JP 6768738 B2 JP6768738 B2 JP 6768738B2 JP 2018090231 A JP2018090231 A JP 2018090231A JP 2018090231 A JP2018090231 A JP 2018090231A JP 6768738 B2 JP6768738 B2 JP 6768738B2
Authority
JP
Japan
Prior art keywords
character string
character
arbitrary
learning data
document
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.)
Active
Application number
JP2018090231A
Other languages
Japanese (ja)
Other versions
JP2019197336A (en
Inventor
寛人 中島
寛人 中島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NIKKEI INC.
Original Assignee
NIKKEI INC.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NIKKEI INC. filed Critical NIKKEI INC.
Priority to JP2018090231A priority Critical patent/JP6768738B2/en
Publication of JP2019197336A publication Critical patent/JP2019197336A/en
Application granted granted Critical
Publication of JP6768738B2 publication Critical patent/JP6768738B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Machine Translation (AREA)

Description

本発明は、文書校正エンジンの機械学習のために使用される学習データを、自動的に生成する装置、方法、およびプログラムに関する。 The present invention relates to devices, methods, and programs that automatically generate learning data used for machine learning of document proofing engines.

近年、コンピュータによる機械学習で、人間の脳神経回路を模したニューラルネットワークを多層的にすることで、コンピュータ自らがデータに含まれる潜在的な特徴をとらえ、より正確で効率的な判断を実現させる深層学習が、画像認識などのパターン認識の分野において広く利用されている。 In recent years, by using computer-based machine learning to create a multi-layered neural network that imitates the human brain neural circuit, the computer itself captures the potential features contained in the data and realizes more accurate and efficient judgment. Learning is widely used in the field of pattern recognition such as image recognition.

このような深層学習によって、コンピュータは、より人間に近い判断ができるようになった。例えば、人間が他人や動物を識別する場合、視覚や聴覚などを駆使して、対象物の体格などの全体を見た後に、目、耳、口などの顔のパーツなどを認識したり、あるいはその逆に、パーツから全体を認識したりするような階層的な過程を経る。 Through such deep learning, computers have become able to make decisions that are closer to humans. For example, when humans identify other people or animals, they may recognize facial parts such as eyes, ears, and mouth after seeing the entire physique of the object by making full use of sight and hearing. On the contrary, it goes through a hierarchical process such as recognizing the whole from the parts.

従来のコンピュータでは、このような過程を経た認識は困難とされ、対象物の特徴を計算するプログラムによって識別を行っていたが、深層学習によれば、コンピュータであっても、人間の認識過程と同じ過程を踏み、写真に写っている人の顔や動物等を認識することが可能になった。 With conventional computers, recognition through such a process is difficult, and identification is performed by a program that calculates the characteristics of an object, but according to deep learning, even a computer can be recognized as a human recognition process. By following the same process, it became possible to recognize the human face and animals in the photograph.

しかしながら、このような認識を可能にするために、深層学習では、大量の学習データによる学習が必要とされる。例えば、深層学習を使った画像認識によって、ゴリラの画像であるか、キリンの画像であるかを判断するためには、事前に、ゴリラの画像を少なくとも約十万枚、キリンの画像も同様に少なくとも約十万枚、それぞれを学習データとして、コンピュータへ提供し、学習させる必要がある。 However, in order to enable such recognition, deep learning requires learning with a large amount of learning data. For example, in order to determine whether the image is a gorilla image or a giraffe image by image recognition using deep learning, at least about 100,000 gorilla images and giraffe images are similarly displayed in advance. It is necessary to provide at least about 100,000 images as learning data to a computer for learning.

高橋諒著、「LSTMとResidual Learningでも難しい「助詞の検出精度」を改善した探索アルゴリズムとは」、 www.atmarkit.co.jp/ait/articles/1611/11/news016.html(リクルートテクノロジーズ)(平成30年4月13日検索)Ryo Takahashi, "What is a search algorithm that improves the" detection accuracy of particles "that is difficult even with LSTM and Residual Learning?", Www.atmarkit.co.jp/ait/articles/1611/11/news016.html (Recruit Technologies) ( Searched on April 13, 2018) Yuta Hitomi, Hideaki Tamori, Naoaki Okazaki and Kentaro Inui, ‘Proofread Sentence Generation as Multi-Task Learning with Edit Operation Prediction’, In Proceedings of the 8th International Joint Conference on Natural Language Processing.Yuta Hitomi, Hideaki Tamori, Naoaki Okazaki and Kentaro Inui, ‘Proofread Sentence Generation as Multi-Task Learning with Edit Operation Prediction’, In Proceedings of the 8th International Joint Conference on Natural Language Processing.

深層学習は、画像認識への適用のみならず、文書校正への応用も考えられている。 Deep learning is considered to be applied not only to image recognition but also to document proofreading.

深層学習を文書校正に応用するためには、文書校正を行うソフトウェアである文書校正エンジンを、深層学習によって学習させる必要がある。 In order to apply deep learning to document proofreading, it is necessary to train the document proofreading engine, which is software for document proofreading, by deep learning.

深層学習された文書校正エンジンが、文書の誤りを高い精度で判断できるようにするためには、学習データとして、正しい文のみならず、誤りを含む文(以下、「誤り文」と称する)をも必要とする。十分な校正精度を実現するためには、画像認識の場合と同様に、極めて大量な(例えば、数十万の)学習データを必要とする。 In order for the deep-learned document proofreading engine to be able to determine document errors with high accuracy, not only correct sentences but also sentences containing errors (hereinafter referred to as "error sentences") are used as training data. Also need. In order to achieve sufficient calibration accuracy, as in the case of image recognition, an extremely large amount (for example, hundreds of thousands) of training data is required.

しかしながら、正しい文の学習データを収集することは容易であるが、誤り文の学習データを収集することは容易ではない。なぜなら、一般に、公開されている文書は、原則として正しい文からなる文書であり、誤り文を含む文書は、通常であれば、公開されることはないからである。 However, although it is easy to collect learning data of correct sentences, it is not easy to collect learning data of incorrect sentences. This is because, in general, a published document is a document consisting of correct sentences in principle, and a document containing an incorrect sentence is not normally published.

誤り文を含む文書を取得するために、例えば、新聞社や出版社のように、多くの文書を作成する機関から、記事等の作成途中の文書を収集し、作成途中の文書に含まれる誤り文を取得する手法が一案として考えられよう。 In order to obtain a document containing an error sentence, for example, a document in the process of being created such as an article is collected from an organization that creates many documents, such as a newspaper company or a publisher, and an error contained in the document in the process of being created. One idea would be to get a sentence.

しかしながら、この手法では、作成途中の文書から、誤り文をいくつ取得できるか否かは不明であり、誤り文を含む大量の学習データの作成へ大きく貢献することはないであろう。 However, with this method, it is unclear how many error sentences can be obtained from the document being created, and it will not greatly contribute to the creation of a large amount of learning data including the error sentences.

したがって、深層学習を用いて文書校正を行うためには、作成途中の文書に基づいて学習データを作成するだけでは十分ではなく、誤り文を、何らかの手法で、意図的に、自発的に生成する必要がある。 Therefore, in order to proofread a document using deep learning, it is not enough to create learning data based on the document being created, and an error sentence is intentionally and spontaneously generated by some method. There is a need.

とは言っても、誤り文の生成を、人間によって行うことは現実的ではない。なぜなら、人間は、本来、正しい文を生成するように思考するため、誤り文の生成には不慣れであるからである。従って、仮に人間が誤り文を生成するにしても、十分な数の誤り文を生成するために、多大なマンパワーを要することになるであろう。 That said, it is not realistic for humans to generate erroneous sentences. This is because human beings are unfamiliar with the generation of incorrect sentences because they originally think to generate correct sentences. Therefore, even if human beings generate erroneous sentences, a great deal of manpower will be required to generate a sufficient number of erroneous sentences.

また、人間が誤り文を生成する場合、個人の癖によって、誤り方が偏ることも懸念される。仮に、十分な数の誤り文を生成することができても、誤り傾向が類似していては、有効な学習データになり得ないであろう。 In addition, when human beings generate error sentences, there is a concern that the error method will be biased due to individual habits. Even if a sufficient number of error sentences can be generated, if the error tendencies are similar, it will not be effective learning data.

本発明はこのような事情に鑑みてなされたものであり、文書校正エンジンの機械学習のための学習データを、人手によってではなく、コンピュータによって自動的に生成することが可能な装置、方法、およびプログラムを提供することを目的とする。 The present invention has been made in view of such circumstances, and a device, a method, and a device capable of automatically generating learning data for machine learning of a document calibration engine by a computer instead of manually. The purpose is to provide a program.

上記の目的を達成するために、本発明では、以下のような手段を講じる。 In order to achieve the above object, the present invention takes the following measures.

すなわち、請求項1の発明は、文書校正エンジンの機械学習のために使用される学習データを生成する装置であって、プロセッサを備える。プロセッサは、記憶装置に記憶された文書から、前記学習データを生成するために、任意の長さの任意の文字列を切り出す工程と、前記切り出された文字列に対して、前記文字列に含まれる任意の1文字を重複させる処理、前記文字列に含まれる任意の1文字を削除する処理、前記文字列に含まれる任意の1文字を別の文字に置換する処理、前記文字列に含まれる任意の2文字を並べ替える処理、および前記文字列に含まれる任意の1文字を追加する処理、のうちの少なくとも何れかを実施することによって、前記切り出された文字列から、前記学習データを生成する工程とを実行する。 That is, the invention of claim 1 is an apparatus for generating learning data used for machine learning of a document calibration engine, and includes a processor. The processor cuts out an arbitrary character string of an arbitrary length in order to generate the training data from the document stored in the storage device, and includes the cut out character string in the character string. A process of duplicating an arbitrary one character, a process of deleting an arbitrary one character included in the character string, a process of replacing an arbitrary one character included in the character string with another character, a process of being included in the character string. The training data is generated from the cut out character string by executing at least one of a process of rearranging an arbitrary two characters and a process of adding an arbitrary one character included in the character string. Perform the steps to be performed.

請求項2の発明は、請求項1に記載の学習データ生成装置において、プロセッサは、前記生成された学習データを、前記文書校正エンジンへ出力する工程をさらに実行する。 According to the second aspect of the present invention, in the learning data generation device according to the first aspect, the processor further executes a step of outputting the generated learning data to the document calibration engine.

請求項3の発明は、請求項2に記載の学習データ生成装置において、前記学習データを生成する工程によって、同一の学習データが生成された場合、プロセッサは、前記同一の学習データのうちの1つのみを、前記文書校正エンジンへ出力する工程を実行する。 According to the invention of claim 3, when the same learning data is generated by the step of generating the learning data in the learning data generation device according to claim 2, the processor is one of the same learning data. The step of outputting only one to the document calibration engine is executed.

請求項4の発明は、請求項1乃至3のうち何れか1項に記載の学習データ生成装置において、前記任意の1文字を削除する処理が実施された場合、プロセッサは、前記任意の1文字が削除された文字列の末尾に、任意の1文字を追加して前記学習データとする工程を実行する。 According to the invention of claim 4, when the learning data generation device according to any one of claims 1 to 3 performs a process of deleting the arbitrary one character, the processor causes the arbitrary one character. The step of adding an arbitrary character to the end of the character string in which is deleted to obtain the training data is executed.

請求項5の発明は、請求項1乃至4のうち何れか1項に記載の学習データ生成装置において、前記記憶装置をさらに備える。 The invention of claim 5 further includes the storage device in the learning data generation device according to any one of claims 1 to 4.

請求項6の発明は、文書校正エンジンの機械学習のために使用される学習データを生成する方法であって、プロセッサが、記憶装置に記憶された文書から、前記学習データを生成するために、任意の長さの任意の文字列を切り出す工程と、前記切り出された文字列に対して、前記文字列に含まれる任意の1文字を重複させる処理、前記文字列に含まれる任意の1文字を削除する処理、前記文字列に含まれる任意の1文字を別の文字に置換する処理、前記文字列に含まれる任意の2文字を並べ替える処理、および前記文字列に含まれる任意の1文字を追加する処理、のうちの少なくとも何れかを実施することによって、前記切り出された文字列から、前記学習データを生成する工程とを実行する。 The invention of claim 6 is a method of generating training data used for machine learning of a document calibration engine, in order for a processor to generate the training data from a document stored in a storage device . A process of cutting out an arbitrary character string of an arbitrary length, a process of duplicating an arbitrary one character included in the character string with respect to the cut out character string, and an arbitrary one character included in the character string. The process of deleting, the process of replacing any one character included in the character string with another character, the process of rearranging any two characters included in the character string, and the process of rearranging any one character included in the character string. By carrying out at least one of the processes to be added, the step of generating the training data from the cut out character string is executed.

請求項7の発明は、文書校正エンジンの機械学習のために使用される学習データを生成するためのプログラムであって、記憶装置に記憶された文書から、前記学習データを生成するために、任意の長さの任意の文字列を切り出す機能、前記切り出された文字列に対して、前記文字列に含まれる任意の1文字を重複させる処理、前記文字列に含まれる任意の1文字を削除する処理、前記文字列に含まれる任意の1文字を別の文字に置換する処理、前記文字列に含まれる任意の2文字を並べ替える処理、および前記文字列に含まれる任意の1文字を追加する処理、のうちの少なくとも何れかを実施することによって、前記切り出された文字列から、前記学習データを生成する機能、をコンピュータに実現させる。 The invention of claim 7 is a program for generating training data used for machine learning of a document calibration engine , and is optional for generating the training data from a document stored in a storage device. A function to cut out an arbitrary character string of the length of, a process of duplicating any one character included in the character string with respect to the cut out character string, and deleting any one character included in the character string. Processing, processing for replacing any one character included in the character string with another character, processing for rearranging any two characters included in the character string, and addition of any one character included in the character string. By performing at least one of the processes, the computer is made to realize the function of generating the training data from the cut out character string.

本発明によれば、文書校正エンジンの機械学習のための学習データ、特に、誤り文を含む学習データを、人手によってではなく、コンピュータによって自動的に生成することが可能な装置、方法、およびプログラムを実現することができる。 According to the present invention, devices, methods, and programs capable of automatically generating learning data for machine learning of a document calibration engine, particularly learning data including error sentences, by a computer rather than manually. Can be realized.

本発明の実施形態に係る学習データ生成方法が適用された学習データ生成装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the learning data generation apparatus to which the learning data generation method which concerns on embodiment of this invention is applied. 本発明の実施形態に係る学習データ生成方法が適用された学習データ生成装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the learning data generation apparatus to which the learning data generation method which concerns on embodiment of this invention is applied.

以下に、本発明の実施形態に係る学習データ生成方法が適用された学習データ生成装置を、図面を参照して説明する。 Hereinafter, a learning data generation device to which the learning data generation method according to the embodiment of the present invention is applied will be described with reference to the drawings.

図1は、本発明の実施形態に係る学習データ生成方法が適用された学習データ生成装置の構成例を示すブロック図である。 FIG. 1 is a block diagram showing a configuration example of a learning data generation device to which the learning data generation method according to the embodiment of the present invention is applied.

学習データ生成装置10は、文書校正のための機械学習のための学習データを生成するための装置である。 The learning data generation device 10 is a device for generating learning data for machine learning for document proofreading.

機械学習は、深層学習を含む。学習データは、正しい文を含む学習データと、誤り文を含む学習データとを含む。学習データ生成装置10は、特に、誤り文を含む学習データの生成に好適である。なお、本明細書において、誤り文とは、誤字、脱字等を含む文が該当する。 Machine learning includes deep learning. The learning data includes learning data including correct sentences and learning data including error sentences. The learning data generation device 10 is particularly suitable for generating learning data including an error sentence. In this specification, the typographical error corresponds to a sentence including typographical errors, omissions, and the like.

学習データ生成装置10の電子回路は、バス11によって互いに接続されたCPU12、記録媒体読取部14、ディスプレイ15、キー入力部16、通信部17、記憶装置18、およびメモリ20を備える。 The electronic circuit of the learning data generation device 10 includes a CPU 12, a recording medium reading unit 14, a display 15, a key input unit 16, a communication unit 17, a storage device 18, and a memory 20 connected to each other by a bus 11.

キー入力部16は、例えばキーボード、マウス等のように、ユーザからの操作入力を受け付ける部位である。 The key input unit 16 is a portion that receives operation input from the user, such as a keyboard and a mouse.

CPU12は、コンピュータであって、メモリ20に記憶されている文字列切出プログラム21、学習データ生成プログラム22、および学習データ出力プログラム23に従い回路各部の動作を制御し、キー入力部16から入力された操作入力に従う処理を実行する。 The CPU 12 is a computer, controls the operation of each part of the circuit according to the character string cutting program 21, the learning data generation program 22, and the learning data output program 23 stored in the memory 20, and is input from the key input unit 16. Executes the process according to the operation input.

文字列切出プログラム21、学習データ生成プログラム22、および学習データ出力プログラム23は、メモリ20に予め記憶されていてもよいし、あるいはメモリカード等の外部記録媒体13から記録媒体読取部14を介してメモリ20に読み込まれて記憶されたものであってもよい。 The character string cutting program 21, the learning data generation program 22, and the learning data output program 23 may be stored in the memory 20 in advance, or may be stored in advance from an external recording medium 13 such as a memory card via the recording medium reading unit 14. It may be read and stored in the memory 20.

文字列切出プログラム21、学習データ生成プログラム22、および学習データ出力プログラム23は、ユーザによるキー入力部16からの入力によって書き換えできないようになっている。 The character string cutting program 21, the learning data generation program 22, and the learning data output program 23 cannot be rewritten by input from the key input unit 16 by the user.

メモリ20には、このようなユーザ書き換え不可能な情報の他に、ユーザが書き換え可能なデータを記憶するエリアとして、キー入力部16によりなされた入力に対応する情報が順次入力されるエリアである書込可能データエリア24が確保されている。 In addition to such user-rewritable information, the memory 20 is an area in which information corresponding to the input made by the key input unit 16 is sequentially input as an area for storing user-rewritable data. A writable data area 24 is secured.

通信部17は、例えばインターネットのような通信ネットワークに接続されており、この通信ネットワークを介して、図示しない外部の文書サーバ等から、文書を受信し、受信した文書を、記憶装置18に記憶させたり、学習データ出力プログラム23によって出力された学習データを、通信ネットワークを介して、たとえば深層学習を適用した文書校正エンジン(図示しない)へ送信する。 The communication unit 17 is connected to a communication network such as the Internet, receives a document from an external document server or the like (not shown) via this communication network, and stores the received document in the storage device 18. Alternatively, the learning data output by the learning data output program 23 is transmitted to, for example, a document calibration engine (not shown) to which deep learning is applied via a communication network.

記憶装置18は、例えばSSD(Solid State Drive)やHDD(Hard Disk Drive)等からなり、図示しない外部の文書サーバ等から、通信ネットワークを介して、通信部17によって受信された文書を記憶している。なお、図1では、記憶装置18は、学習データ生成装置10の内部に備えられているが、記憶装置18は、学習データ生成装置10の外部に設けられていても良い。 The storage device 18 is composed of, for example, an SSD (Solid State Drive), an HDD (Hard Disk Drive), or the like, and stores a document received by the communication unit 17 from an external document server or the like (not shown) via a communication network. There is. In FIG. 1, the storage device 18 is provided inside the learning data generation device 10, but the storage device 18 may be provided outside the learning data generation device 10.

このように構成された学習データ生成装置10は、CPU12が文字列切出プログラム21、学習データ生成プログラム22、および学習データ出力プログラム23に記述された命令に従い回路各部の動作を制御し、ソフトウェアとハードウェアとが協働して動作することにより、以下に説明するように、文書から任意の文字列を切り出し、切り出した文字列を元に、学習データを自動的に生成し、生成した学習データを、文書校正エンジンへ提供する。 In the learning data generation device 10 configured in this way, the CPU 12 controls the operation of each part of the circuit according to the instructions described in the character string cutting program 21, the learning data generation program 22, and the learning data output program 23, and the software and the software. By operating in cooperation with the hardware, as explained below, an arbitrary character string is cut out from the document, and training data is automatically generated based on the cut out character string, and the generated training data is generated. To the document calibration engine.

文字列切出プログラム21は、記憶装置18に記憶された文書から、任意の長さの任意の文字列を切り出す。例えば、記憶装置18に記憶された文書が、「インターネットによって、オンラインで商品を購入することは容易だが、誤った商品が発送されるトラブルが多く発生している。」であったとする。この文書から、任意の長さとして10文字の長さの任意の文字列を切り出す場合、例えば、「とは容易だが、誤った」のような10文字の長さの文字列を切り出すことができる。 The character string cutting program 21 cuts out an arbitrary character string of an arbitrary length from the document stored in the storage device 18. For example, suppose that the document stored in the storage device 18 is "It is easy to purchase a product online by the Internet, but there are many troubles in which the wrong product is shipped." When cutting out an arbitrary character string having a length of 10 characters as an arbitrary length from this document, it is possible to cut out a character string having a length of 10 characters, for example, "It is easy but wrong". ..

学習データ生成プログラム22は、文字列切出プログラム21によって切り出された文字列に対して、(1)置換、(2)並び替え、(3)追加、(4)重複、および(5)削除のような5つの処理のうちの少なくとも何れかを実施する。上記(1)〜(5)の各処理の具体的な処理内容を、前述した文字列「とは容易だが、誤った」に対する処理結果とともに、以下に示す。 The learning data generation program 22 deletes (1) replace, (2) sort, (3) add, (4) duplicate, and (5) delete the character string cut out by the character string cutout program 21. At least one of the five processes as described above is performed. The specific processing contents of each of the above processes (1) to (5) are shown below together with the processing results for the above-mentioned character string "easy but incorrect".

(1)置換:切り出された文字列中の任意の1文字を、同じ文字種(ひらがな/カタカナ/漢字)の別の1文字に置換する。この処理によって、文字列「とは容易だが、誤った」を、例えば「とは容易だむ、誤った」へ変換することができる。 (1) Replacement: Replace any one character in the cut out character string with another character of the same character type (Hiragana / Katakana / Kanji). By this process, the character string "easy but wrong" can be converted into, for example, "easy but wrong".

(2)並び替え:切り出された文字列中の連続する同じ文字種の2文字を並び替える。この処理によって、文字列「とは容易だが、誤った」を、例えば「はと容易だが、誤った」へ変換することができる。 (2) Sorting: Sorting two consecutive characters of the same character type in the cut out character string. By this process, the character string "easy but wrong" can be converted into, for example, "easy but wrong".

(3)追加:切り出された文字列中の任意の1文字の直前あるいは直後に、同じ文字種の任意の1文字を追加する。この処理によって、文字列「とは容易だが、誤った」を、例えば「とは容易だうが、誤った」へ変換することができる。 (3) Addition: Add any one character of the same character type immediately before or after any one character in the cut out character string. By this process, the character string "easy but wrong" can be converted into, for example, "easy but wrong".

(4)重複:切り出された文字列中の任意の1文字を重複させる。この処理によって、文字列「とは容易だが、誤った」を、例えば「とは容易だがが、誤った」へ変換することができる。 (4) Duplicate: Any one character in the cut out character string is duplicated. By this process, the character string "easy but wrong" can be converted into, for example, "easy but wrong".

(5)削除:切り出された文字列中の任意の1文字を削除する。この処理によって、文字列「とは容易だが、誤った」を、例えば「とは容易だが、誤た」へ変換することができる。 (5) Delete: Delete any one character in the cut out character string. By this process, the character string "easy but wrong" can be converted into, for example, "easy but wrong".

学習データ生成プログラム22は、上記(1)〜(5)の各処理による変換後の文字列を、学習データとして決定する。 The learning data generation program 22 determines the character string after conversion by each of the above processes (1) to (5) as learning data.

上記(1)〜(5)の各処理による変換後の文字列(例えば(1)「とは容易だむ、誤った」、(2)「はと容易だが、誤った」、(3)「とは容易だうが、誤った」、(4)「とは容易だがが、誤った」、および(5)「とは容易だが、誤た」)は、標準的な日本語の文書に現れることのない、誤り文を含む文字列である。 The character string after conversion by each of the above processes (1) to (5) (for example, (1) "easy to do, wrong", (2) "easy to do, but wrong", (3) " "Easy but wrong", (4) "Easy but wrong", and (5) "Easy but wrong") appear in standard Japanese documents. It is a character string that contains erroneous sentences.

このように、上記(1)〜(5)の各処理は、正しい元文に対して、最小の変換を施すことによって、元文から誤り文を生成しているので、誤り文は、正しい文に類似している。実際に、人間が文書を作成する際に犯す誤りも、1つの文中の、1箇所だけが誤りであるという場合がほとんどである。また、コンピュータにとって、一般に、多くの誤りを含む文よりも、1箇所しか誤りを含まない文の方が、正誤判断は困難である。 In this way, in each of the above processes (1) to (5), an error sentence is generated from the original sentence by performing the minimum conversion on the correct original sentence, so that the error sentence is a correct sentence. Is similar to. In fact, in most cases, the mistakes that humans make when creating a document are only one place in a sentence. In addition, it is generally more difficult for a computer to make a correct / incorrect judgment for a sentence containing only one error than for a sentence containing many errors.

このような観点から、文書校正エンジンの深層学習のための学習データとして使用される誤り文は、正しい文と類似しているほど、より好ましい。したがって、上記の様に学習データ生成プログラム22によって生成される学習データは、文書校正エンジンの性能向上のために好適な、良質な学習データとなる。 From this point of view, the error sentence used as the learning data for the deep learning of the document proofreading engine is more preferable as it is similar to the correct sentence. Therefore, the learning data generated by the learning data generation program 22 as described above becomes high-quality learning data suitable for improving the performance of the document proofreading engine.

なお、学習データ生成プログラム22は、(5)削除において、任意の1文字の削除処理を実施した場合、処理後の文は、他の処理による処理後の文字列数よりも少なくなるために、削除実施後の文字列の長さを他の処理と揃えるために、削除処理された文字列の末尾に、任意の1文字を追加しても良い。例えば、上記の例では、(5)を実施することにより、「とは容易だが、誤った」という10文字の文字列が、「とは容易だが、誤た」という9文字の文字列になってしまうので、文字数調整のために、削除実施後の文字列「とは容易だが、誤た」の末尾に、任意の1文字を追加して生成される例えば「とは容易だが、誤ただ」のような文を学習データとしても良い。 In addition, when the learning data generation program 22 performs the deletion process of an arbitrary one character in (5) deletion, the sentence after the process is smaller than the number of character strings after the process by the other process. In order to make the length of the character string after the deletion processed uniform with other processing, any one character may be added to the end of the deleted character string. For example, in the above example, by implementing (5), the 10-character character string "easy but incorrect" becomes a 9-character character string "easy but incorrect". Therefore, in order to adjust the number of characters, it is generated by adding an arbitrary character to the end of the character string "It is easy but wrong" after deletion. For example, "It is easy but wrong" Such a sentence may be used as learning data.

また、上記例では、(1)〜(5)の各処理によって、1つの正しい文字列から、5つの誤り文が生成されることが示されているが、上記例は、正しい文字列に含まれるある1つの文字に対してなされた例にすぎない。上記例のように、10文字の文字列の場合、10文字のすべての文字を対象に上記(1)〜(5)の各処理を実施すれば、1つの正しい文字列から、最大で50の誤り文が生成されることになる。このように、学習データ生成装置10は、1つの正しい文字列から、非常に多くの誤りデータを生成する。 Further, in the above example, it is shown that five error sentences are generated from one correct character string by each of the processes (1) to (5), but the above example is included in the correct character string. It is just an example made for one character. In the case of a 10-character character string as in the above example, if each of the above processes (1) to (5) is performed for all 10 characters, a maximum of 50 characters can be obtained from one correct character string. An erroneous statement will be generated. In this way, the learning data generation device 10 generates a large amount of error data from one correct character string.

なお、日本語に用いられる文字の種類の多さを考慮すると、可能性は十分に低いと思われるものの、上記(1)〜(5)の各処理を行った結果、誤りがない文が得られることもあり得る。しかしながら、学習データ生成プログラム22によって生成される学習データは、必ずしも誤り文を含んでいる必要はなく、誤り文を含んでいなくても良い。したがって、学習データ生成プログラム22は、上記(1)〜(5)の各処理によって得られた文を、正しい文であるか、誤り文が含まれているかに関わらず、学習データとして決定して良い。 Considering the large number of types of characters used in Japanese, the possibility is low enough, but as a result of performing each of the above processes (1) to (5), a sentence without errors was obtained. It can be done. However, the learning data generated by the learning data generation program 22 does not necessarily have to include an erroneous sentence, and may not necessarily include an erroneous sentence. Therefore, the learning data generation program 22 determines the sentences obtained by each of the above processes (1) to (5) as learning data regardless of whether the sentences are correct or include error sentences. good.

学習データ出力プログラム23は、学習データ生成プログラム22によって生成された学習データを、通信部17へ出力し、通信部17から、通信ネットワークを介して、図示しない文書校正エンジンへ向けて送信させる。 The learning data output program 23 outputs the learning data generated by the learning data generation program 22 to the communication unit 17, and causes the communication unit 17 to transmit the learning data to a document calibration engine (not shown) via the communication network.

なお、学習データ出力プログラム23は、学習データ生成プログラム22によって生成された学習データの中に、同一の学習データがある場合、同一の学習データのうちの1つのみを、通信部17から、文書校正エンジンへ向けて送信させても良い。 When the learning data output program 23 contains the same learning data in the learning data generated by the learning data generation program 22, only one of the same learning data is documented from the communication unit 17. It may be sent to the calibration engine.

次に、以上のように構成した本発明の実施形態に係る学習データ生成方法が適用された学習データ生成装置の動作を、図2に示すフローチャートを用いて説明する。 Next, the operation of the learning data generation device to which the learning data generation method according to the embodiment of the present invention configured as described above is applied will be described with reference to the flowchart shown in FIG.

通信部17によって、例えばインターネットのような通信ネットワークを介して、図示しない外部の文書サーバ等から、文書が受信される(S1)。 A document is received by the communication unit 17 from an external document server or the like (not shown) via a communication network such as the Internet (S1).

たとえば、受信された文書は、「昨日から降り続いた雪のために、今日は最高のスキー日和となり、多くのスキー客が訪れた。」であったとする。 For example, suppose the document received was "The snow that has been falling since yesterday made today the best skiing day and many skiers visited."

通信部17によって受信された文書は、通信部17から、記憶装置18へ送られ、記憶装置18に記憶される(S2)。 The document received by the communication unit 17 is sent from the communication unit 17 to the storage device 18 and stored in the storage device 18 (S2).

記憶装置18において記憶された文書から、文字列切出プログラム21によって、任意の長さの任意の文字列が切り出される(S3)。 An arbitrary character string of an arbitrary length is cut out from the document stored in the storage device 18 by the character string cutting program 21 (S3).

例えば、記憶装置18に記憶された文書「昨日から降り続いた雪のために、今日は最高のスキー日和となり、多くのスキー客が訪れた。」から、任意の長さとして11文字の文字列を切り出す場合、例えば、「今日は最高のスキー日和」のような11文字の長さの文字列を切り出すことができる。 For example, from the document stored in the storage device 18, "Because of the snow that has continued since yesterday, today was the best skiing day and many skiers visited.", A character string of 11 characters as an arbitrary length. When cutting out, for example, a character string having a length of 11 characters such as "Today's best skiing weather" can be cut out.

文字列切出プログラム21によって切り出された文字列に対して、学習データ生成プログラム22によって、(1)置換、(2)並び替え、(3)追加、(4)重複、および(5)削除のような5つの処理のうちの少なくとも何れかの処理が実施されることによって、学習データが生成される(S4)。 The character string cut out by the character string cutting program 21 is subjected to (1) replacement, (2) sorting, (3) addition, (4) duplication, and (5) deletion by the learning data generation program 22. Learning data is generated by performing at least one of the five processes as described above (S4).

ステップS3において切り出された文字列「今日は最高のスキー日和」に対し、上記(1)〜(5)の各処理がなされることによって、例えば、以下のような誤り文が生成される。 By performing each of the above processes (1) to (5) on the character string “Today's best skiing weather” cut out in step S3, for example, the following error sentence is generated.

(1)置換: 「今日る最高のスキー日和」
(2)並び替え:「日今は最高のスキー日和」
(3)追加: 「今日は最人高のスキー日」
(4)重複: 「今日は最高のスキキー日」
(5)削除: 「今日は最高のスキー和」
このように、上記(1)〜(5)の各処理によって生成される誤り文は、元文に対して、最小の変換処理が施されるだけであるので、正しい文に類似している。コンピュータにとっては、一般に、多くの誤りを含む文よりも、1箇所しか誤りを含まない文の方が、正誤判断は困難であることから、上記の様に生成される誤り文は、文書校正エンジンの性能向上のために好適な、良質な学習データとなる。
(1) Replacement: "The best skiing weather today"
(2) Sorting: "The best skiing weather right now"
(3) Addition: "Today is the highest ski day"
(4) Duplicate: "Today is the best skiky day"
(5) Deleted: "Today's best ski sum"
As described above, the error sentence generated by each of the above processes (1) to (5) is similar to the correct sentence because only the minimum conversion process is applied to the original sentence. For a computer, it is generally more difficult to judge the correctness of a sentence containing only one error than a sentence containing many errors. Therefore, the error sentence generated as described above is a document proofreading engine. It is a good quality learning data suitable for improving the performance of the computer.

また、上記例では、(1)〜(5)の各処理によって、1つの正しい文字列から、5つの誤り文が生成されることが示されているが、上記例は、正しい文字列に含まれるある1つの文字に対してなされた例にすぎない。上記例のように、11文字の文字列の場合、11文字のすべての文字を対象に上記(1)〜(5)の各処理を実施すれば、1つの正しい文字列から、最大で55の誤り文が生成される。このように、学習データプログラム22によれば、1つの正しい文字列から、非常に多くの学習データが効率的に生成される。 Further, in the above example, it is shown that five error sentences are generated from one correct character string by each of the processes (1) to (5), but the above example is included in the correct character string. It is just an example made for one character. In the case of an 11-character character string as in the above example, if each of the above processes (1) to (5) is performed for all 11 characters, a maximum of 55 can be obtained from one correct character string. An error statement is generated. As described above, according to the learning data program 22, a large amount of learning data is efficiently generated from one correct character string.

このようにして学習データ生成プログラム22によって生成された学習データは、学習データ出力プログラム23によって、通信部17へ出力され、通信部17から、通信ネットワークを介して、図示しない文書校正エンジンへ向けて送信される(S5)。 The learning data generated by the learning data generation program 22 in this way is output to the communication unit 17 by the learning data output program 23, and is directed from the communication unit 17 to a document calibration engine (not shown) via the communication network. It is transmitted (S5).

文書校正エンジンでは、送信された学習データを用いて、深層学習が行われる(S6)。 In the document proofreading engine, deep learning is performed using the transmitted learning data (S6).

上述したように、本実施形態に係る学習データ生成方法が適用された学習データ生成装置によれば、上記のような作用により、文書校正エンジンの深層学習のような機械学習のための良質な学習データを、コンピュータによって自動的かつ効率的に生成することができる。 As described above, according to the learning data generation device to which the learning data generation method according to the present embodiment is applied, high-quality learning for machine learning such as deep learning of a document calibration engine by the above-mentioned action. Data can be generated automatically and efficiently by a computer.

従って、深層学習を利用した文書校正エンジンの精度向上のために大いに寄与することが可能となる。 Therefore, it is possible to greatly contribute to improving the accuracy of the document proofreading engine using deep learning.

以上、本発明を実施するための最良の形態について、添付図面を参照しながら説明したが、本発明はかかる構成に限定されない。特許請求の範囲の発明された技術的思想の範疇において、当業者であれば、各種の変更例及び修正例に想到し得るものであり、それら変更例及び修正例についても本発明の技術的範囲に属するものと了解される。 The best mode for carrying out the present invention has been described above with reference to the accompanying drawings, but the present invention is not limited to such a configuration. Within the scope of the claimed technical idea, those skilled in the art can come up with various modifications and modifications, and these modifications and modifications are also the technical scope of the present invention. It is understood that it belongs to.

本発明の学習データ生成装置は、文書校正エンジンの機械学習、特に深層学習のための学習データを生成するために利用することができる。 The learning data generator of the present invention can be used to generate learning data for machine learning of a document calibration engine, particularly deep learning.

10・・学習データ生成装置、
11・・バス、
12・・CPU、
13・・外部記録媒体、
14・・記録媒体読取部、
15・・ディスプレイ、
16・・キー入力部、
17・・通信部、
18・・記憶装置、
20・・メモリ、
21・・文字列切出プログラム、
22・・学習データ生成プログラム、
23・・学習データ出力プログラム、
24・・書込可能データエリア。
10 ... Learning data generator,
11 ... Bus,
12 ... CPU,
13 ... External recording medium,
14 ... Recording medium reader,
15. Display,
16 ... Key input section,
17 ... Communication Department,
18 ... Storage device,
20 ... Memory,
21 ... Character string cutting program,
22 ... Learning data generation program,
23 ... Learning data output program,
24 ... Writable data area.

Claims (7)

文書校正エンジンの機械学習のために使用される学習データを生成する装置であって、
プロセッサを備え、
前記プロセッサが、
記憶装置に記憶された文書から、前記学習データを生成するために、任意の長さの任意の文字列を切り出す工程と、
前記切り出された文字列に対して、前記文字列に含まれる任意の1文字を重複させる処理、前記文字列に含まれる任意の1文字を削除する処理、前記文字列に含まれる任意の1文字を別の文字に置換する処理、前記文字列に含まれる任意の2文字を並べ替える処理、および前記文字列に含まれる任意の1文字を追加する処理、のうちの少なくとも何れかを実施することによって、前記切り出された文字列から、前記学習データを生成する工程とを実行する、学習データ生成装置。
A device that generates learning data used for machine learning of document proofing engines.
Equipped with a processor
The processor
A process of cutting out an arbitrary character string of an arbitrary length from a document stored in the storage device in order to generate the learning data, and
A process of duplicating an arbitrary one character included in the character string with respect to the cut out character string, a process of deleting an arbitrary one character included in the character string, and an arbitrary one character included in the character string. Is replaced with another character, any two characters included in the character string are rearranged, and any one character included in the character string is added. A training data generation device that executes a step of generating the training data from the cut out character string.
前記プロセッサは、前記生成された学習データを、前記文書校正エンジンへ出力する工程をさらに実行する、請求項1に記載の学習データ生成装置。 The learning data generation device according to claim 1, wherein the processor further executes a step of outputting the generated learning data to the document calibration engine. 前記学習データを生成する工程によって、同一の学習データが生成された場合、前記プロセッサは、前記同一の学習データのうちの1つのみを、前記文書校正エンジンへ出力する工程を実行する、請求項2に記載の学習データ生成装置。 If the same training data is generated by the step of generating the training data, the processor executes the step of outputting only one of the same training data to the document calibration engine. 2. The learning data generator according to 2. 前記任意の1文字を削除する処理が実施された場合、前記プロセッサは、前記任意の1文字が削除された文字列の末尾に、任意の1文字を追加して前記学習データとする工程を実行する、請求項1乃至3のうち何れか1項に記載の学習データ生成装置。 When the process of deleting the arbitrary one character is executed, the processor executes a step of adding the arbitrary one character to the end of the character string in which the arbitrary one character is deleted to obtain the training data. The learning data generation device according to any one of claims 1 to 3. 前記記憶装置をさらに備えた、請求項1乃至4のうち何れか1項に記載の学習データ生成装置。 The learning data generation device according to any one of claims 1 to 4, further comprising the storage device. 文書校正エンジンの機械学習のために使用される学習データを生成する方法であって、
プロセッサが、
記憶装置に記憶された文書から、前記学習データを生成するために、任意の長さの任意の文字列を切り出す工程と、
前記切り出された文字列に対して、前記文字列に含まれる任意の1文字を重複させる処理、前記文字列に含まれる任意の1文字を削除する処理、前記文字列に含まれる任意の1文字を別の文字に置換する処理、前記文字列に含まれる任意の2文字を並べ替える処理、および前記文字列に含まれる任意の1文字を追加する処理、のうちの少なくとも何れかを実施することによって、前記切り出された文字列から、前記学習データを生成する工程とを実行する、学習データ生成方法。
A method of generating training data used for machine learning of document proofing engines.
The processor
A process of cutting out an arbitrary character string of an arbitrary length from a document stored in the storage device in order to generate the learning data, and
A process of duplicating an arbitrary one character included in the character string with respect to the cut out character string, a process of deleting an arbitrary one character included in the character string, and an arbitrary one character included in the character string. Is replaced with another character, any two characters included in the character string are rearranged, and any one character included in the character string is added. A training data generation method for executing the step of generating the training data from the cut out character string.
文書校正エンジンの機械学習のために使用される学習データを生成するためのプログラムであって、
記憶装置に記憶された文書から、前記学習データを生成するために、任意の長さの任意の文字列を切り出す機能、
前記切り出された文字列に対して、前記文字列に含まれる任意の1文字を重複させる処理、前記文字列に含まれる任意の1文字を削除する処理、前記文字列に含まれる任意の1文字を別の文字に置換する処理、前記文字列に含まれる任意の2文字を並べ替える処理、および前記文字列に含まれる任意の1文字を追加する処理、のうちの少なくとも何れかを実施することによって、前記切り出された文字列から、前記学習データを生成する機能、
をコンピュータに実現させるためのプログラム。
A program for generating training data used for machine learning of document proofing engines.
A function of cutting out an arbitrary character string of an arbitrary length in order to generate the learning data from a document stored in a storage device.
A process of duplicating an arbitrary one character included in the character string with respect to the cut out character string, a process of deleting an arbitrary one character included in the character string, and an arbitrary one character included in the character string. At least one of a process of replacing the character with another character, a process of rearranging any two characters included in the character string, and a process of adding an arbitrary one character included in the character string. A function to generate the training data from the cut out character string,
A program to realize on a computer.
JP2018090231A 2018-05-08 2018-05-08 Training data generators, methods, and programs Active JP6768738B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018090231A JP6768738B2 (en) 2018-05-08 2018-05-08 Training data generators, methods, and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018090231A JP6768738B2 (en) 2018-05-08 2018-05-08 Training data generators, methods, and programs

Publications (2)

Publication Number Publication Date
JP2019197336A JP2019197336A (en) 2019-11-14
JP6768738B2 true JP6768738B2 (en) 2020-10-14

Family

ID=68537554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018090231A Active JP6768738B2 (en) 2018-05-08 2018-05-08 Training data generators, methods, and programs

Country Status (1)

Country Link
JP (1) JP6768738B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104482A (en) * 2019-12-18 2020-05-05 北京百度网讯科技有限公司 Data processing method and device
US11295155B2 (en) * 2020-04-08 2022-04-05 Konica Minolta Business Solutions U.S.A., Inc. Online training data generation for optical character recognition
JP7429974B2 (en) * 2021-05-19 2024-02-09 株式会社ミラセンシズ Inspection device, learning device, inspection method, learning device production method, and program
US20220405490A1 (en) * 2021-06-16 2022-12-22 Google Llc Multilingual Grammatical Error Correction
US12061869B2 (en) * 2021-10-29 2024-08-13 Konica Minolta Business Solutions U.S.A., Inc. Deep-learning based text correction method and apparatus
WO2023100291A1 (en) * 2021-12-01 2023-06-08 日本電信電話株式会社 Language processing device, language processing method, and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3783053B2 (en) * 2001-12-26 2006-06-07 独立行政法人情報通信研究機構 Negative example prediction processing method, processing program and processing device, Japanese notation error detection processing program and processing device using negative example prediction processing, and external relationship detection processing program and processing device using negative example prediction processing
JP2008084064A (en) * 2006-09-28 2008-04-10 National Institute Of Advanced Industrial & Technology Text classification processing method, text classification processing apparatus, and text classification processing program
JP5635025B2 (en) * 2012-02-29 2014-12-03 日本電信電話株式会社 Particle error correction apparatus, method, and program
US10115055B2 (en) * 2015-05-26 2018-10-30 Booking.Com B.V. Systems methods circuits and associated computer executable code for deep learning based natural language understanding
JP2019057095A (en) * 2017-09-20 2019-04-11 大日本印刷株式会社 Document generation device, model generation device, calibration device and computer program
CN107992211B (en) * 2017-12-08 2021-03-12 中山大学 A method for correcting Chinese spelling typos based on CNN-LSTM

Also Published As

Publication number Publication date
JP2019197336A (en) 2019-11-14

Similar Documents

Publication Publication Date Title
JP6768738B2 (en) Training data generators, methods, and programs
CN111680634B (en) Document file processing method, device, computer equipment and storage medium
US7849399B2 (en) Method and system for tracking authorship of content in data
CN114238573A (en) Information pushing method and device based on text countermeasure sample
CN114860873B (en) Method, device and storage medium for generating text summary
Lins et al. The CNN-corpus: A large textual corpus for single-document extractive summarization
CN113064973A (en) Text classification method, device, equipment and storage medium
JP2005174336A (en) Learning and use of generalized string pattern for information extraction
JPWO2019224891A1 (en) Classification device, classification method, generation method, classification program and generation program
CN113934834A (en) Question matching method, device, equipment and storage medium
Olari et al. Data-related practices for creating Artificial Intelligence systems in K-12
CN119227661A (en) Evaluation report generation method, device, electronic device and storage medium
JP7040227B2 (en) Information processing programs, information processing methods, and information processing equipment
CN114780577B (en) SQL statement generation method, device, equipment and storage medium
CN111259159B (en) Data mining method, device and computer readable storage medium
US20250053878A1 (en) Learning device, management sheet creation support device, non-transitory computer-readable storage medium, learning method, and management sheet creation support method
CN112115362B (en) A programming information recommendation method and device based on similar code recognition
JP5206296B2 (en) Similar sentence extraction program, method and apparatus
JP6768750B2 (en) Learning method, error judgment method, learning system, error judgment system, and program
EP4369246A1 (en) Translation review suitability assessment
CN114417854B (en) A text segmentation method, system, computer device, and storage medium
CN117787257A (en) Training methods, text reasoning methods and systems for large language models in OTA scenarios
JP7309489B2 (en) Abstract creation method and abstract creation system
Vázquez-Hernández et al. White-Box Adversarial Attacks Against Sentiment-Analysis Models using an Aspect-Based Approach
CN121210586B (en) Batch structured extraction method for literature information in plant protection field based on AI large model

Legal Events

Date Code Title Description
A80 Written request to apply exceptions to lack of novelty of invention

Free format text: JAPANESE INTERMEDIATE CODE: A80

Effective date: 20180521

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200417

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200825

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200923

R150 Certificate of patent or registration of utility model

Ref document number: 6768738

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250