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

Label Training Pairs

Review candidate pairs and label each as Match, No Match, or Can't Say. The human feedback step that teaches Zingg what a match looks like in your data.

The label phase opens an interactive layer where you review the candidate pairs found by findTrainingData and mark each pair. This is the only step in the Zingg workflow that requires human input. No ML knowledge is needed, just your domain understanding of whether two records represent the same real-world entity.

If you already have labeled data from an external source, you can supply it directly using trainingSamples in your configuration. See Create Training Data for how to set this up.

30 to 40 matching pairs is a strong starting point. Label until you feel that your labeled examples represent all field types and data patterns in your schema. If accuracy needs improvement after your first match run, return to labelling, focus on the patterns or field combinations that appear to be missing or underrepresented.

1

Step 1: Label

Review each pair presented. Enter your decision: Match (1), No Match (2), or Can't Say (0).

2

Step 2: Save

Your labels are saved automatically to zinggDir/modelId after each session.

3

Step 3: Iterate

if the number of matched and unmatched pairs are still not sufficient, then iterate. Run findTrainingData again to obtain a fresh set of candidate pairs. Label those. Repeat until Zingg's predictions align with your expectations.

Python

options = ClientOptions([ClientOptions.PHASE, "label"])
zingg = Zingg(args, options)
zingg.initAndExecute()

CLI

./scripts/zingg.sh --phase label --conf config.json --showConcise=true

Need to correct a pair you already labeled? See Update Label.

Python

options = ClientOptions([ClientOptions.PHASE, "label"])
zingg = EZingg(args, options)
zingg.initAndExecute()

CLI

./scripts/zingg.sh --phase label --conf config.json --showConcise=true

Notebook provides a visual widget showing one pair at a time with Match, No Match, and Can't Say buttons.

Run label

Zingg on Snowflake can be run either from a local terminal via the CLI, or natively inside Snowflake using an interactive labeling service.

CLI (local terminal)

Snowflake (interactive service)

The label phase is interactive, so instead of an async job, it runs as a standing service you connect to directly.

<zingg-cli-spec-file> is the specification file that defines the container and service configuration used to run the Zingg CLI interactively inside Snowpark Container Services. It is maintained by your administrator and referenced from your @specs stage.

Once the service is running, retrieve its endpoint to connect to the labeling session.

Use the returned endpoint to open the interactive labeling terminal and label pairs as you would via CLI.

Stop the compute pool

Once you're done labeling, stop the compute pool to release resources.

Notebook provides a visual widget showing one pair at a time with Match, No Match, and Can't Say buttons.

Last updated

Was this helpful?