#if pos=='지지' # print(?) for word2 in pos: Compound = Compound + word2 tokens_ko.append(Compound) Compound = '' i = i + 1 #print(tokens_ko) split = [] clean_model = [] #print(len(koreanStopWord)) for word in tokens_ko: #print(word) insert = 1 for stop in koreanStopWord: if word.strip() == stop.strip(): insert = 0 if insert == 1: clean_model.append(word) #clean_model.append(stop_m) #print(len(clean_model)) #docRemovingStopWord = [i for i in tokens_ko if str(i.strip()) not in koreanStopWord] #print("복합명사 - 정지단어") #print(len(clean_model)) worksheet.write(xlrow, 2, all) worksheet.write(xlrow, 3, nounn) worksheet.write(xlrow, 4, len(clean_model)) worksheet.write(xlrow, 5, row['Date']) xlrow = xlrow + 1 # document=''