Skip to main content
Version: 10.2.8

View normalizer setup example

The article illustrates how you can set up normalizers via AutoML UI to achieve a better-quality model output for a dataset.

In the sample use case detailed below, a model is trained to extract three fields from an Ultimate Beneficial Owner (UBO) form:

  • Name of beneficiary (person's name): the first and last names in the camel case

  • Ownership (%, number)

  • ID (ID and Country, text): ID cannot contain the "O" letter, and letters are in lowercase.

Prepare training set

To prepare a training set means to label it. The sample training set utilized in this use case includes two documents:

  • Document 1

  • Document 2

To download the labeled sample training set for the described use case, click the link.

Prepare test set

Preparing a test set, assume that the model needs to extract IDs as IDs without Country and label the documents accounting for the assumption.

note

The test set is needed because the training set includes only two documents, which is not enough to use the cross-validation technique for testing.

The sample test set used for the described use case includes three documents:

  • Document 1

  • Document 2

  • Document 3

To download the labeled sample test set for the described use case, click the link.

Train model

Take a generic pipeline for an information extraction (IE) problem and train the model with the prepared training set and test set with default settings.

Below is a step-by-step illustration of the sample training flow:

  1. Choose a pipeline and click Train model to start a training flow.

  2. Add the prepared training set:

  3. Add the prepared test set:

  4. Leave labels with default settings:

  5. Leave post-processors with default settings:

  6. On the Training tab, watch the training progress:

To download the sample trained model for the described use case, click the link.

Analyze results

Once the training is completed, you can find the trained model on the Models list. Click it to review the resulting model statistics.

Click Download statistics to get detailed model statistics in an Excel file. This is what the file looks like:

To download the resulting statistics file for the described use case, click the link.

Once you have the statistics file, check it for errors:

The table below lists the errors, solutions, and recommended normalizer settings for the described use case (see the screenshot above):

LabelErrorDescriptionSolutionNormalizer
nameLast name is in lowercase.Capitalize words.Capitalize Normalizer
ID(passport)
  1. The ID contains letters in lowercase.
  2. "O" is not allowed.
  3. Country output is not needed.
  1. Format to uppercase.
  2. Replace "O" with "0" (zero).
  3. Keep only the first part of the string.
  1. Upper case Normalizer
  2. Substring Replacer Normalizer
  3. Pattern Replacer Normalizer
ID(passport)Country in the output is not needed.Keep only the first part of the string.Pattern Replacer Normalizer
ID(passport)Country in the output is not needed.Keep only the first part of the string.Pattern Replacer Normalizer

Modify model

Your next step is to modify the model to account for the solutions and normalizer changes from the table above. Below is a step-by-step illustration of the modification flow:

  1. Start the modification flow and choose a prototype:

  2. Add the prepared test set:

  3. Set normalizers for the Name label as shown below:

  4. Set normalizers for the Passport label as shown below:

  5. Configure post-processors as shown below:

  6. Go to Experiments > Tests to watch the progress.

    Wait till the status for the test becomes Completed:

To download the sample modified model for the described use case, click the link.

View post-modification results

Once the test is completed, you can find the results on the model's details page.

Click Download statistics to get detailed model statistics in an Excel file. This is what the file looks like:

To download the resulting statistics file for the described use case, click the link.