박은주

Clearance

......@@ -25,8 +25,6 @@ def GetKeywords():
with open(os.path.join(BASE_DIR + '/', 'data.csv'), 'r', encoding='utf-8') as db:
reader = csv.reader(db)
for data in reader:
data[0] = re.sub(pattern='[^\w\s]', repl='', string=data[0]).replace('\n', '')
data[1] = re.sub(pattern='[^\w\s]', repl='', string=data[1]).replace('\n', '')
posts.append(data[0] + data[1])
keyword_extractor = KeywordSummarizer(
......@@ -36,4 +34,8 @@ def GetKeywords():
)
keywords = keyword_extractor.summarize(posts, topk=30)
return keywords
\ No newline at end of file
print(keywords)
exit()
return keywords
GetKeywords()
\ No newline at end of file
......