N-Gram Weighting Scheme