9 lines
261 B
Python
9 lines
261 B
Python
#Posting class for indexer, will probably be more complex as we keep adding crap to it
|
|
|
|
class Posting():
|
|
def __init(self,url,tf_idf):
|
|
self.url = url
|
|
self.tf_idf = tf_idf
|
|
|
|
def comparator(self):
|
|
#Some custom comparator for sorting postings later |