Skip to main content
A project administrator can train the program using training batches during project setup. When operators correct recognized documents, the corrected documents are placed into the training batches used by the administrator. The administrator can make additional changes to these batches and retrain the program if operator training does not deliver the results you want. Training is available only if ABBYY FlexiCapture can reliably identify the company by finding the corresponding record in a database. If you have no databases but still want to use field training, you can accumulate company information by adding records to your data sets while capturing documents. For more information, see Looking up vendors and business units in the database.
The actions described in this section can be performed only by the administrator or by users with permissions to set up projects in FlexiCapture for Invoices.
To open the training batch view, click (Open Field Extraction Training Batches) on the toolbar, or click Field TrainingOpen Field Extraction Training Batches. This view lists all the training batches by document variant, along with important company parameters such as VATIDs, IBANs, and database IDs.

Manage sample images used for training

Double-click a training batch, or right-click it and click Open on the shortcut menu, to display the list of sample images used for the corresponding FlexiLayout variant. Each sample image can be in one of three states:
  • Unused — Not used for training or testing this FlexiLayout variant.
  • For training — Used for training and testing this FlexiLayout variant.
  • For testing — Used only for testing this FlexiLayout variant.
You need only one sample image to start training a FlexiLayout variant, but we recommend having at least three images in the For training state. If there are not enough sample images for training, load more by clicking Load Images. By default, newly added images are marked For training. If the images you add are not recognized automatically, force-start recognition by clicking Recognize.
1

Set the image states

Change the state of the images you want to use to For training: select the images, right-click them, and select Set Document State → For training. If you have not trained this document variant before, we recommend changing all the sample images to For training.
2

Check the region markup

Check the markup of all the regions and adjust it as necessary. This is important, because the positions of all the regions are taken into account.
3

Start training

Do one of the following:
  • Select Field Training → Train from the main menu.
  • Right-click anywhere in the list and select Train from the shortcut menu.
  • Switch to the training batch view and select Train from the shortcut menu of the document variant.
Training progress is shown in the Train Document Definition window. The program creates a FlexiLayout variant and tests it (a process you do not see) on all documents marked For training and For testing, comparing each with the reference layout you created. If the new variant is better than the previous variant and the main FlexiLayout, it is saved and used for subsequent data capture.
If some sample images adversely affect training but you still want to use them for testing, change their state to For testing. Make sure the regions of all fields on these images are located correctly at the time of training.

Other document-variant actions

To perform any of these actions, right-click a document variant in the training batch view and select the command from the shortcut menu.

Create a new training batch

You may want to create a new training batch to train a FlexiLayout variant before operators start capturing documents.
1

Create the batch

In the training batch view, right-click an empty area and select New Batch from the shortcut menu.
2

Assign a Document Definition

If your project uses more than one Document Definition, select the one to use in the Select Document Definition dialog box (right-click the batch and click Change Document Definition on the shortcut menu).
3

Choose the company

Choose the issuing company for which the training results will be used.
4

Add documents

Right-click the batch and select Load Images from the shortcut menu. The added documents are automatically recognized.
5

Check the field regions

Check whether the field regions were detected correctly and adjust them if necessary.
6

Set the image states

Select the documents to use for training, right-click one, and click Set Document State → For training.
7

Start training

Do one of the following:
  • In the main window, open the Field Training menu and click Train.
  • Right-click an empty area in the list and click Train on the shortcut menu.
  • Open the training batch view, right-click a FlexiLayout variant, and click Train on the shortcut menu.
Recognize documents in a batch using only the Document Definition assigned to that batch.
Use the shortcut menu of the batch to change the company or the Document Definition associated with it. The Clear Document Definition command removes the associated Document Definition; batches with no Document Definition cannot be used for training.
Disable the Use own recognition settings of FlexiLayout option. This synchronizes the full-text recognition settings and speeds up document processing.

Import a custom FlexiLayout into the batch

To import a modified or completely new FlexiLayout to be used for one specific company:
  1. In ABBYY FlexiLayout Studio, click FileExport, and in the Export FlexiLayout dialog box, specify the name of the file and the folder where it should be placed.
  2. In ABBYY FlexiCapture, click Train Field ExtractionImport FlexiLayout.
If you are using the clustering feature, note the following limitations:
  • If you create a new FlexiLayout manually, make sure it covers all possible document variants from the company — you cannot manually create a FlexiLayout for a single cluster.
  • Only the FlexiLayout for the main document fields is exported. Line item fields use a separate machine learning algorithm whose results cannot be exported or modified, so no FlexiLayout can be generated or exported for them. You can still create a FlexiLayout for line item fields manually.
  • Only the FlexiLayout trained for the first cluster is exported.
  • After you import a new or modified FlexiLayout into a training batch:
    • Documents are no longer trained during processing.
    • Clustering is disabled for that batch.
    • The imported FlexiLayout is used to process all documents from the company, regardless of cluster.
For more information, see Training with clustering.