Training your NLP models

After you have published your Document Definition, close the Document Definition dialog box, then navigate to the Field Extraction Training Batches section and create a new document batch.

  1. Click File and select 新規バッチ.  
  2. In the dialog box that opens, select the Document Definition that you created earlier, then select the section for which you have configured fields and click OK.
  3. In the Look up Variant for Training Batch window, select the variant to be used for training.
  4. Select the newly created batch and either select the NLP batch option or click Field extraction training > NLP batch.

    NLP batch option

Now you need to load the documents that will be used to train the NLP model.

  1. Open the batch that you have created by double-clicking it.
  2. Click File > 画像を読み込み....
  3. In the dialog box that opens, click 画像処理設定..., select the One document per file option, and click OK.
  4. Choose the documents to be used for training the NLP model.
  5. After all the documents have been loaded, select them and click Recognition > 文書定義をマッチング. Alternatively, right-click the selection and click 文書定義をマッチング. Then choose the appropriate Document Definition.

The quality of a trained NLP model depends on the number of documents in the training batch and the quality of their markup. Please note the following:

  • All the fields described by the Document Definition should be marked up in the training documents.
  • It is recommended to have between 100 and 500 documents in each training batch. This number of documents will enable the program to select the best parameters for your NLP model without slowing down the training process.

After you have successfully loaded the documents, you need to manually mark up the fields on each document so that the NLP models will know where to look for entities. To do this, complete the following steps for each document:

  1. Double-click a document to open it.
  2. Select a field for which information from the document should be extracted. Then either choose the value of the field on the document or draw a rectangle around it. Repeat this step for each field.
  3. Go to the next document by clicking the button. Repeat the above steps for all the remaining documents.
  4. Save the changes.

After you have marked up all the documents, return to the フィールド抽出用トレーニングバッチ view. Right-click the batch and click 学習 on the shortcut menu. Once trained, the model is ready to use.

Training results can either be disabled or deleted. To disable training results, right-click the training batch and select the 無効 item on the shortcut menu. To delete training results, right-click the training batch and select the 削除 item on the shortcut menu.

If you need to use your trained NLP model in another project, simply import the training batch and its associated Document Definition into that project.

4/12/2024 6:16:25 PM

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.