diff --git a/absummarizer/wordscoring.py b/absummarizer/wordscoring.py index 2b1be04..3dde7ab 100644 --- a/absummarizer/wordscoring.py +++ b/absummarizer/wordscoring.py @@ -4,8 +4,11 @@ @author: sub253 ''' import csv +import pandas + def createDict(wordScoresFile): d={} + readfile = open(wordScoresFile, "r") reader=csv.reader(readfile,delimiter="\t") for word, score in reader: @@ -39,4 +42,4 @@ def factContent(sentences, wordScoreDict): factList.append(fact.strip()) - return factList \ No newline at end of file + return factList