Near-Duplicate Text Detection (Shingling and MinHash)
Near-duplicate text detection represents each document as a set of word shingles, approximates pairwise Jaccard similarity with MinHash signatures and uses locality-sensitive hashing to find and cluster pairs above a threshold.
유사 중복 문서 탐지는 문서를 낱말 shingle 집합으로 나타내고 MinHash 서명으로 Jaccard 유사도를 근사하며, 지역 민감 해싱으로 임계값을 넘는 쌍을 찾아 군집으로 묶는 방법입니다.
How many of my documents are copies or near-copies of each other, and which ones should I collapse before analysis?
수집한 문서 중 서로 베끼거나 거의 같은 글이 얼마나 되고, 분석 전에 무엇을 합쳐야 할지 알 수 있을까요?
Each document becomes a set of overlapping word k-grams, MinHash signatures estimate the Jaccard similarity between sets, and banded locality-sensitive hashing proposes candidate pairs without comparing all pairs. Candidates are checked with the exact Jaccard similarity, pairs above the threshold are linked into clusters, and the share of unique documents is reported. Hash buckets holding more than 2,000 documents are skipped, so a few pairs can be missed in very repetitive corpora.
When to use Near-Duplicate Text Detection (Shingling and MinHash)
- You collected news, reviews or survey answers that may contain reposts or templates.
- You must deduplicate a corpus before topic, sentiment or frequency analysis.
- The corpus is too large to compare every pair of documents directly.
When to use something else
- You want documents with similar meaning but different wording; use sentence embeddings or LSA similarity instead.
- Documents are very short (a few words); compare normalised strings or edit distance instead.
Assumptions and requirements
- Overlap of word k-grams reflects copying.
- The Jaccard threshold matches what counts as a duplicate for your purpose.
- Clusters are connected components, so chains of similar pairs are merged.
What the analysis reports
- Duplicate pairs with MinHash and exact Jaccard (top 60)
- Number of duplicate clusters and documents in them
- Number and share of unique documents
- LSH bands and rows, candidate pairs and mean MinHash error
How to report it
Using word [value]-shingles and [value]-permutation MinHash, [value] pairs had Jaccard similarity ≥ [value], forming [value] clusters; [value]% of documents were unique.
Related methods
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run Near-Duplicate Text Detection (Shingling and MinHash) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.