diff --git a/posting.py b/posting.py index e6d1141..cffc0ec 100644 --- a/posting.py +++ b/posting.py @@ -1,10 +1,9 @@ #Posting class for indexer, will probably be more complex as we keep adding crap to it class Posting(): - def __init__(self,url,tf_idf): + def __init__(self, url, rtf, position): self.url = url - self.tf_idf = tf_idf - - def comparator(self): - #Some custom comparator for sorting postings later - pass \ No newline at end of file + self.rtf = rtf + self.tf = 0 + self.tfidf = 0 + self.positions = [position] \ No newline at end of file