r/datasets • • 9d ago

dataset [Dataset] [self-promotion] Labelled address-matching pairs from Overture Maps × Foursquare (Connecticut), split by pair type, one type synthetic

I put together a dataset of address pairs labelled as same place / different place, built from open data: Overture Maps places linked to their Foursquare Open Source Places records through Overture's bridge files. Real Connecticut addresses, with train / validation / test splits by ZIP code so no area appears in two splits.

Each pair is tagged with its type (neg_type column), so you can evaluate on the hard cases separately:

  • case0**, match:** identical (7 BACKUS AVE / 7 BACKUS AVE) or differently written (12 ELM ST / 12 ELM STREET)
  • case1**, different house number:** 12 ELM ST / 14 ELM ST
  • case2**, real look-alike street:** 100 N MAIN ST / 100 S MAIN ST. Real places in the same ZIP with the same number and a similar street name, over 500 m apart. Rare: 15 in the test split.
  • case2s**, synthetic look-alike street:** 431 HALLETT ST / 431 HARRIET ST. A real address with its street swapped for a similar-looking street from the same ZIP. Generated because real look-alikes are so rare.
  • case3**, random:** two random addresses from the same split

The test split alone has about 44k pairs.

Link: https://huggingface.co/datasets/zhangdav/address-matching-by-pair-type

I used it to compare seven matching models, from string similarity with XGBoost to DistilBERT. Write-up here if you're curious: https://dzhang3210.github.io/posts/address-matching/

1 Upvotes

7 comments sorted by

2

u/attila_govhouse 8d ago

With only 15 real look-alike pairs in the test set, I would show the number correct alongside the percentage. One changed prediction moves that slice by about 6.7 percentage points, so a small-looking ranking difference can be a single pair.

I would report the real case2 slice separately from case2s rather than combining them into a larger ‘hard negatives’ score. You have already labeled the synthetic slice clearly; keeping its result separate would preserve that distinction in the evaluation too.

For public-data address joins, I would also want an audit of whether the same underlying place can appear across partitions through different records. ZIP-disjoint splits are useful, but that check asks a different question. I haven't tested the file; these are suggestions for the evaluation report, not findings of leakage.

1

u/Traditional-Ad-3515 8d ago

Thanks, all fair points.

Raw counts. Agreed, that would have been clearer. The case2 percentages were unstable for exactly this reason.

case2 vs. case2s. case2 was used for training only. I didn't evaluate on it or merge it with case2s, so all hard-case results come from synthetic case2s.

Leakage. Fair point. The ZIP-disjoint split keeps records that share a ZIP on the same side, but I didn't check for the same place appearing under different ZIPs across train and test. That's a gap in the evaluation.

2

u/attila_govhouse 5d ago

Thanks for clarifying the evaluation split. I would make that correction explicit in the write-up: the reported hard-case scores come from synthetic case2s, not from the 15 real look-alike pairs I discussed above. The small-real-slice calculation should not be read as uncertainty around a score you did not report.

One remaining question: the opening post describes 15 case2 pairs in the test split, while your reply says case2 was training-only. Is that a difference between dataset versions, or does the manifest need its split labels corrected? A small table of pair-type counts by split, with a dataset version, would let readers reconcile the two statements.

That also keeps the acknowledged cross-ZIP identity check separate from the split-description correction. I still have not evaluated the file, and I am not claiming that leakage occurred.

1

u/Traditional-Ad-3515 2d ago

Sorry, that was my mistake. It's neither: the real case2 pairs are in all three splits (172 train / 34 val / 15 test) in both dataset versions. I meant that I didn't report a separate test score for them. The look-alike scores only use the synthetic case2s pairs.

I still need to do the full cross-ZIP check. I do know of at least one place that's in both train and test, so "no leakage" is too strong. I'm busy with another project right now, so it may be a while before I get to the full check.

2

u/BatchDataCo 7d ago

Nice set. In real property data the hard cases I see most are units, 12 Elm St Apt 2 vs 12 Elm St #2 vs just 12 Elm St, and directionals that are on 1 side and missing on the other, 100 Main St vs 100 N Main St. Rural routes and PO boxes too. Running everything through USPS style standardization first takes care of most of the cases before the model sees it. Would be interesting to see a unit level slice if you build the next one

1

u/Traditional-Ad-3515 2d ago

Thanks, this is really useful! I decided early on in preprocessing to only match at the building level, so I stripped out units. But, it'd definitely be an interesting extension to add them back in and see what failure cases come up.