mipt-asj
mipt_asj · Abbreviation-aware approximate string joins using the Tao-Deng-Stonebraker algorithm
Overview
Usage
Sources:
mipt-asj implements abbreviation-aware approximate string joins based on the Tao-Deng-Stonebraker method. It installs into the fixed mipt_asj schema and provides a three-stage workflow: calc_dict derives abbreviation rules, calc_pairs generates candidate string pairs, and cmp applies the final similarity test. Use it only when approximate entity matching is acceptable; it does not provide exact relational equality.
Core Workflow
Build or curate a two-column rule table, generate candidates from two source relations, and then filter every candidate with the same exactness threshold.
The exactness argument ranges from zero to one; the README uses 0.7 as an example. Lower thresholds admit more candidates and generally more false positives. Measure recall and precision against labelled data before choosing a production threshold.
Function Index
calc_dictreads full-form and abbreviation relations identified by relation OID and column name and returns rule pairs(f, a).calc_pairsreads two source relations plus the rule relation and returns candidate pairs(s1, s2). Candidates may be false positives.cmpcompares one pair against the same rule relation and threshold and returns the final boolean decision.
Operational Notes
- The repository is archived, and upstream labels version
0.1as alpha. Its API, internals, and modern PostgreSQL compatibility are not maintained. - The interface accepts relation OIDs and column names. Use schema-qualified
regclassexpressions, keep identifiers trusted, and regenerate inputs if referenced tables are dropped and recreated with new OIDs. - Candidate generation is not the final predicate. Always apply
cmp, and keep the rule table andexactnessvalue consistent between both stages. - Similarity quality depends on the abbreviation corpus and threshold. Benchmark with domain-specific labelled pairs and review false matches before automating merges or updates.