feat(FN-5152): complete Step 1 — add near-duplicate core helper
Fusion-Task-Id: FN-5152 Fusion-Task-Lineage: 954570d8-82e1-4519-a739-c52ee790d2db
This commit is contained in:
committed by
gsxdsm
parent
71a2ea1954
commit
7d01a666a9
@@ -30,7 +30,7 @@ export interface ContentFingerprintInput {
|
||||
const DEFAULT_THRESHOLD = 0.45;
|
||||
const DEFAULT_LIMIT = 5;
|
||||
const DEFAULT_EXCLUDE_COLUMNS: Column[] = ["done", "archived"];
|
||||
const STOPWORDS = new Set([
|
||||
export const STOPWORDS = new Set([
|
||||
"a",
|
||||
"an",
|
||||
"the",
|
||||
@@ -74,7 +74,7 @@ export function computeContentFingerprint(
|
||||
.digest("hex");
|
||||
}
|
||||
|
||||
function tokenize(value: string): string[] {
|
||||
export function tokenize(value: string): string[] {
|
||||
return value
|
||||
.toLowerCase()
|
||||
.split(/\W+/)
|
||||
|
||||
Reference in New Issue
Block a user