created new tf-idf and changed posting class

This commit is contained in:
unknown 2022-05-25 18:41:36 -07:00
parent a736e05d00
commit a567424a54

View File

@ -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
self.rtf = rtf
self.tf = 0
self.tfidf = 0
self.positions = [position]