We introduce a function m(X) that assigns a weight in [0, 1] for each n-gram X.
accordingly, our objective function is replaced by: where Z is a normalizing constant so that the metric has a range of [0,1] experiments with different weight functions m(•) on the test data set failed to find a better weight function than the currently implied m(•) = 1.