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.
Correct Links options
- 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
passportandpassport_firstpageand want both linked to thepassportDocument Definition, specify_firstpage. The text is then ignored, so both classes link to the same definition.
- 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
- 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.
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:
- Create a new class and click Add.
- To create a section, select the Document Definition from the list and specify a name, a recognition language, and a recognition mode.
- 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).
- Click Add Link.
3
Confirm and close
When all classes are mapped to their sections, click OK.
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.
