전처리 함수 정의

# 전처리 함수 정의
def preprocessor(text): 
    text = re.sub('[^가-힣\s]+','',text) # 한글, 공백문자 남기고 다 날리기
    return text