Information Retrieval Engine
Stopword removal and stemming (Porter)
qi: query term frequency for vocabulary word i
di: document term frequency for vocabulary word i
wi: log of inverse document frequency for word i
sign: sign of value (0 if 0, 1 if positive)