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:
12
posting.py
Normal file
12
posting.py
Normal 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
|
||||
Reference in New Issue
Block a user