Stemmed done
This commit is contained in:
11
posting.py
11
posting.py
@@ -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
|
||||
Reference in New Issue
Block a user