NLP1 [python] 문장간 유사도 측정 (by 코사인 유사도) In [1]: from IPython.core.display import display, HTML display(HTML("")) 문장간 유사도 측정 (코사인 유사도 활용 하기)¶ In [1]: # PowerXlwings 설명 # setpd : dataframe 셋업 import PowerXlwings as px # xlwsings 활용 import pandas as pd import re from sklearn.feature_extraction.text import CountVectorizer import numpy as np In [10]: from sklearn.feature_extraction.text import TfidfVectorizer In [2]: x=px.tk_to_str("나는 김치 .. 2022. 2. 22. 이전 1 다음