Stemmed done

This commit is contained in:
inocturnis
2022-05-04 15:30:01 -07:00
parent 0cb72cbed4
commit 81da17de93
3 changed files with 38 additions and 12 deletions

View File

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