특정 디렉토리에서 특정 파일들을 추출해서 정제후 Pickle 및 리스트로 리턴하는 함수
import os import re import time import pickle def preProcessNote(file, path_dir): try: file_path = os.path.join(path_dir, file) with open(file_path, 'r', encoding='utf-8') as f: lines = f.readlines() # 지워야 할 지점 체크 start_idx = None end_idx = None for idx,