From 1e02953c494203bdd09143d0c1e36ac556de6297 Mon Sep 17 00:00:00 2001 From: shubham15098 Date: Thu, 4 Oct 2018 08:23:15 +0530 Subject: [PATCH] Update wordscoring.py updated py dic --- absummarizer/wordscoring.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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