Notice
Recent Posts
Recent Comments
Link
250x250
반응형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- PM2
- 블록체인
- netfunnel
- AWS
- docker
- metamask
- threejs
- exceljs
- Laravel
- WSL
- CSS
- chatGPT
- 라라벨
- 회고
- Kaikas
- polygon
- NextJS
- Remix
- Python
- Ai
- 오블완
- jquery
- 티스토리챌린지
- React
- huggingface
- miniconda
- node
- nft
- 배포
- nginx
Archives
- Today
- Total
목록유사도 (1)
박주니 개발 정리
nodejs levenshtein 이용해서 유사도 계산 적용하는 방법
1. fast-levenshtein을 설치합니다. npm i fast-levenshtein 2. 유사도 계산을 위한 Levenshtein 거리 계산 코드를 적용합니다. const levenshtein = require("fast-levenshtein");function test() { let name = "test"; //저장된값 let extractedName = "test"; //입력값 const distance = levenshtein.get(name, extractedName); const similarity = 1 - distance / (Math.max(name.length, extractedName.length) + 1); console.log("similarity: ", si..
node
2024. 7. 24. 18:01