Skip to main content
How you map classes to Document Definition sections depends on your starting point: a ready-made model, a previously trained model in a new project, or a new model.

Map a ready-made classification model

When you use a ready-made model (for example, trained in ABBYY FlexiLayout Studio), all the classes already exist, so you only map them to their Document Definition sections.
1

Open the Class Mapping dialog box

Click the Class Mapping button on the toolbar, or select Class Mapping in the Classification Training menu.
2

Autocorrect the links

Click Autocorrect to open the Correct Links dialog box, and then select Match names of classes to names of Document Definition sections.
3

Check the mappings

In the Class Mapping dialog box, confirm that each class is mapped to its Document Definition section.
  • Match names of classes to names of Document Definition sections – Automatically links classes and sections that have identical names.
    • When matching, ignore this text in names of classes for first pages – Specify text to ignore in first-page class names when comparing. For example, if you have the classes passport and passport_firstpage and want both linked to the passport Document Definition, specify _firstpage. The text is then ignored, so both classes link to the same definition.
  • Remove duplicates – Automatically removes duplicate links.

Map a class manually

A class name shown in red is not mapped to any Document Definition section, usually because the name matches no section (for example, a typo) or no section exists for it. Correct the typo and map the class, or create the missing section and map the class to it.
1

Add a link

In the Class Mapping dialog box, click Add link.
2

Select the class and section

Select the class and its Document Definition section.
3

Confirm the mapping

Click OK.
To display only unmapped classes and sections, select Show unmatched only.

Map a previously trained model in a new project

When you reuse a trained model in a new project, most classes exist, but you may need to add or remove some classes and Document Definition sections.
1

Autocorrect the links

Open the Class Mapping dialog box, click Autocorrect, and select Match names of classes to names of Document Definition sections.
2

Create classes or sections as needed

Click New class in the Class Mapping dialog box, and then:
  1. Create a new class and click Add.
  2. To create a section, select the Document Definition from the list and specify a name, a recognition language, and a recognition mode.
  3. Set the parameters. Select Variant to create several variants of the class (for example, bank statements from different banks that share fields but differ in layout). Select Page position when the first page is visually identifiable, which helps assemble multi-page documents (First only or Any position).
  4. Click Add Link.
3

Confirm and close

When all classes are mapped to their sections, click OK.
If identical class-section mappings appear in red, click Autocorrect → Remove duplicates to remove them.

Create a new classification model

Create a new model when you need to train FlexiCapture to extract fields and classify documents. Create the classes and Document Definition sections, and map each class to its section.
1

Open the Class Mapping dialog box

Click the Class Mapping button on the toolbar, or select Class Mapping in the Classification Training menu, and create the missing classes and sections.
2

Create sections for classes without them

Select one or more classes that have no section and click Autocreate sections. Choose how to create the section:
  • Based on Settings – Set the recognition Languages (this defines the language and settings such as date format and currency) and a Recognition mode. Select Prefer settings from batch type to synchronize full-text recognition settings. Disabling synchronization may slow template matching.
  • Based on existing Document Section Definition – Reuse a section that already has the correct full-text recognition settings. The new section is identical except for the name.
3

Create the definitions

Click OK to create a Document Definition and a section with names identical to the selected class.
4

Create classes for existing sections

To create classes for unlinked sections, select one or more sections and click Autocreate classes. Each new class is named from the Document Definition and the section name.
5

Adjust as needed

Modify or delete classes and links as needed.
To merge classes, select them in the Class Mapping window and click Merge classes, and then name the new class. If the merged classes were linked to different Document Definitions, the new class links to each of them.