Changed some files and tf_idf, added data storage, and finish the loop for indexing

This commit is contained in:
inocturnis
2022-05-06 14:58:03 -07:00
parent b833afbfa3
commit c05b4c7b09
3 changed files with 70 additions and 22 deletions

View File

@@ -1,9 +1,10 @@
#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,tf_idf):
self.url = url
self.tf_idf = tf_idf
def comparator(self):
#Some custom comparator for sorting postings later
#Some custom comparator for sorting postings later
pass