Frequency of each term found in the document

Used to match the document against the VSMIndex::inverse_doc_frequency.

Property definitions

vsm $ Document :: terms_frequency
	# Frequency of each term found in the document
	#
	# Used to match the document against the `VSMIndex::inverse_doc_frequency`.
	var terms_frequency: Vector is lazy do
		var all_terms = 0.0
		for t, c in terms_count do all_terms += c

		var vector = new Vector
		for t, c in terms_count do
			vector[t] = c / all_terms
		end
		return vector
	end
lib/vsm/vsm.nit:351,2--363,4