Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion absummarizer/wordscoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -39,4 +42,4 @@ def factContent(sentences, wordScoreDict):

factList.append(fact.strip())

return factList
return factList