[머신러닝] 자연어 처리 유사도 분석
문장 유사도 분석: 단어와 단어 사이, 문장과 문장 사이에 얼마나 유사성이 있는지 벡터 유사도: Cosin Metric ※ 벡터: 크기와 방향이 있는 성분 벡터의 내적과 norm [1,1,0] [1,0,-1] 내적: 1*1 + 1*0 + 0*(-1) = 1 norm(제곱해서 합): root(1+1+0), root2 둘의 유사도 : 1=root2 * root2 * cos, cos=0.5 Python np linalg norm 함수 있다 예제 1. I love apple 2. Apple is delicious which I love too 3. I want a delicious food, but not an apple 4. Deep learning is difficult want, not, difficult..
2023. 2. 13.