Skip to main content

Value normalizers

An extracted value counts as correct only when it matches an expected value exactly. Often a mismatch is just formatting, like 12.500 km against 12500. A value normalizer makes the platform ignore that difference for one field.

Add one​

When you choose the fields to score in the evaluation wizard, open Value normalizer on a field and fill in either or both:

  • a Pattern and Replacement: a regular expression, and what to replace each match with (leave it empty to remove the match);
  • Ignore case.

The preview shows what a sample value becomes. The platform applies the normalizer to the extracted and the expected value when it compares them, the regex first, then the case. Your runs and ground truth stay as they are, so you can change or remove a normalizer later.

FieldNormalizerNow counts as equal
$.mileagereplace \D with nothing12.500 km and 12500
$.licensePlatereplace [^A-Za-z0-9] with nothingAB-12-CD and AB12CD
$.legalFormignore caseGmbH and GMBH
Field accuracy for $.totalAmount at 6 correct, 0 incorrect: with a normalizer, 30000 matches 30.000 and 1250 matches 1.250,00.

Formatting, not mistakes​

Normalize only what doesn't matter. A normalizer that strips spaces from an IBAN is fine. One that strips everything but the digits also hides a wrong country code.

The fix assistant proposes a normalizer when it sees that only the formatting differs. The platform applies it only when you approve.