Rename removePunctuationHypa and change functionality

This commit is contained in:
kwaroran
2024-01-17 07:07:38 +09:00
parent c988799baa
commit 1e062d3077
4 changed files with 7 additions and 2 deletions

View File

@@ -125,7 +125,11 @@ export async function supaMemory(
i += 1
}
supaMemory = data
if(db.removePunctuationHypa){
supaMemory = supaMemory.replace(/[\.,\/#!$%\^&\*;:{}=\-_`~()]/g,"")
}
currentTokens += await tokenize(supaMemory)
}
}