- You are using a ready-made classification model that was trained in, say, ABBYY FlexiLayout Studio.
- Click the
button on the toolbar or select Class Mapping… in the Classification Training menu. Next, in the Class Mapping dialog box, click the Autocorrect… button to open the Correct Links dialog box. In this dialog box, select the Match names of classes to names of Document Definition sections option.
More information about the Correct Links dialog...
More information about the Correct Links dialog...
-
Match names of classes to names of Document Definition sections - select this option to automatically link classes and sections that have identical names.
- When matching, ignore this text in names of classes for first pages - select this option and specify the text that should be ignored in the names of the first pages’ classes when comparing classes and sections. If, for example, you have two classes — passport and passport_firstpage, and you want to link both of them to the passport document definition, select this option and specify “_firstpage” in the field. Then, when classes are linked, this text will be ignored, and both classes will be linked to the same definition.
- Remove duplicates - select this option to automatically remove duplicate links.
- In the Class Mapping dialog box, check to make sure that each class has been correctly mapped to its respective Document Definition section.
- The name of the class may not match any section names (e.g. due to a typo). If this is case, map the class to its section manually, optionally correcting the typo.
- There is no section in the Document Definition to which the class can be mapped. If this is the case, create the section manually and map the class to that section.
- In the Class Mapping dialog box, click the Add link… button.
- Select a class and its corresponding Document Definition section.
You can select the Show unmatched only option to display only unmapped classes and sections.
- Click OK.
- You are using a previously trained classification model in a new project.
- Click the
button on the toolbar or select Class Mapping… in the Classification Training menu. Next, in the Class Mapping dialog box, click the Autocorrect… button to open the Correct Links dialog box. In this dialog box, select the Match names of classes to names of Document Definition sections option. - If you need to create a new class or section, click the New class… button in the Class Mapping dialog box. Then,
- Create a new class and click Add.
- To create a new section, select the name of the appropriate Document Definition from the list and specify a name for the new section (you will also need to specify a recognition language and mode).
- Specify the required parameters:
- Select the Variant parameter if you need to create several variants of the class. For example, you may want to create variants for bank statements received from different banks (they will typically have the same set of fields, but each bank will have its own field layout).
- Select the Page position parameter if the first page of the document is easy to identify visually. This parameter is useful when assembling multi-page documents. The classifier will correctly identify the first and last page of the document. The class and section of the document will be identical, but this parameter will be different (First only/ Any position).
- Click the Add Link button.
- Once all the classes have been mapped to their respective sections, click OK.
- You are creating a new classification model because you need to train the program to extract fields and classify documents. In this case, you need to create the necessary classes and Document Definition sections and map each class to its section. To do this:
- Click the
button on the toolbar or select Class Mapping… in the Classification Training menu. Next, in the Class Mapping dialog box, create the missing sections and classes. - Sections need to be created for classes without sections. Choose one or several classes without any assigned sections and click Autocreate sections. In the new dialog box, choose one of the following available options for creating a section:
- Based on Settings –
- Languages – It is necessary to set a correct language for recognition to proceed without errors. This property defines both the language itself and other settings like date format, currency, etc.
- Select a Recognition mode from the list.
- Prefer settings from batch type – Select this option if you want to synchronize full-text recognition settings. Note: Disabling the synchronization may lead to slower template matching.
- Based on existing Document Section Definition – choose this option if the project already has a section with the correct full text recognition sections. The created section will be identical to the selected one in everything except the name.
- Based on Settings –
- Click OK. This will create a document definition and a section with names identical to the selected class.
- If you need to create classes for existing unlinked sections, select one or several sections and click Autocreate classes. New classes will be created for the selected sections, which will have a name consisting of the document definition and the section name
- Modify and/or delete the appropriate classes and links if needed.
The Class Mapping window can also be used to merge classes. To do this, select the appropriate classes and click Merge classes. In the dialog box, specify a name for the new class. If the merged classes were linked to different document definitions, then the new class will be linked to each one of them.
