Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pre-trained Models

Use a Zingg pre-trained model to start matching without going through the findTrainingData and label phases.

Zingg ships with a pre-trained model built on the FEBRL dataset; for example, a synthetic Australian population dataset with name, address, date of birth, and SSN fields. The FEBRL pre-trained model is bundled in the Zingg Docker image and available from the Zingg GitHub repository.

Use a pre-trained model when you want to run a quick proof of concept on data that matches the FEBRL schema, or as a starting point that you fine-tune with your own labels.

Using the FEBRL pre-trained model

Step 1: Download the pre-trained model

The FEBRL pre-trained model is bundled in the Zingg Docker image. It is available in the models/ directory inside the container.

docker pull zingg/zingg:0.5.0
docker run -it zingg/zingg:0.5.0 bash

Inside the container, models are at:

/zingg/models/

Step 2: Use the pre-trained model in your config

{
  "fieldDefinition": [
    {
      "fieldName": "fname",
      "matchType": "fuzzy",
      "fields": "fname",
      "dataType": "string"
    },
    {
      "fieldName": "lname",
      "matchType": "fuzzy",
      "fields": "lname",
      "dataType": "string"
    },
    {
      "fieldName": "dob",
      "matchType": "exact",
      "fields": "dob",
      "dataType": "string"
    },
    {
      "fieldName": "ssn",
      "matchType": "exact",
      "fields": "ssn",
      "dataType": "string"
    }
  ],
  "data": [
    {
      "name": "yourInput",
      "format": "csv",
      "props": {
        "location": "path/to/your/data.csv",
        "delimiter": ",",
        "header": "true"
      }
    }
  ],
  "output": [
    {
      "name": "yourOutput",
      "format": "csv",
      "props": {
        "location": "/tmp/zinggOutput"
      }
    }
  ],
  "modelId": "100",
  "zinggDir": "models",
  "labelDataSampleSize": 0.5,
  "numPartitions": 4
}

Step 3: Run match directly (no training needed)

Python

CLI

Skip findTrainingData and label. Run match directly using the pre-trained model.

Fine-tuning a pre-trained model

You can use a pre-trained model as a starting point and improve it with your own labeled data. Run findTrainingData and label on your own dataset, then run train. Zingg will continue training using the pre-trained model weights rather than starting from scratch.

This is faster than building a model from scratch when your data is structurally similar to the pre-trained model's training data.

Other available pre-trained models

Zingg ships with pre-trained models for several datasets. All models are bundled under the models/ directory in the Zingg installation. Check models/modelIds.txt for the complete list of available models and their IDs.

Model
Dataset
Fields

FEBRL

Synthetic Australian population

fname, lname, stNo, add1, add2, city, areacode, state, dob, ssn

North Carolina Voters

US voter registration records

Name, address, date of birth

Amazon-Google Products

Product catalog matching

Product title, description

For schemas and model IDs, see models/modelIds.txt inside your Zingg installation.

Last updated

Was this helpful?