created new tf-idf and changed posting class
This commit is contained in:
11
posting.py
11
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
|
||||
self.rtf = rtf
|
||||
self.tf = 0
|
||||
self.tfidf = 0
|
||||
self.positions = [position]
|
Reference in New Issue
Block a user