def ranking(self, query, k, b):
		"""
		Ranking of the documents based on their relevance to the query. 

		Arguments:
			query: The search query

		Returns:
			A dictionary of all the documents in the corpus with their corresponding relevance odds ratio.	
		"""
		if (k != None):
			k = k
		else:
			k = 0	
		if (b != None):
			b = b
		else:
			b = 0	

		documents = self.text
		rankingDict = defaultdict(float)
		for d in documents.keys():
			docText = documents[d]
			score = self.docScore(docText, query, k, b)
			rankingDict[d] = score
		return rankingDict