private int[] computeMinHashSignatures(String cleanText) {
        try {
            Set<Integer> hashedShingles = shinglesTokenizer.hashedTokenSet(cleanText);
            return hasher.minHashSignature(hashedShingles);
        } catch (Exception e) {
            logger.warn("Failed to parse clean text into shingles.", e);
            return new int[0];
        }
    }
Builds a "index" of near-duplicate pages using locality-sensitive hashing.

@author aeciosantos
ache/src/main/java/achecrawler/minhash/DuplicatePageIndexer.java