First pushed, setup all the stuff we need, no launcher yet. So test your code in another place for now, because they are all codepended on each others ...

This commit is contained in:
Hieuhuy Pham
2022-05-04 12:22:20 -07:00
parent 5875ac0e79
commit 1fb8fef7a3
7 changed files with 143 additions and 0 deletions

12
posting.py Normal file
View File

@@ -0,0 +1,12 @@
#Posting class for indexer, will probably be more complex as we keep adding crap to it
class Posting():
def __init(self,source):
self.source = source
self.tf_idf = get_tf_idf()
def get_tf_idf(self):
#Do tf_idf here
def comparator(self):
#Some custom comparator for sorting postings later