We choose to consider the frequency of a n-gram ng i as the number of its occurrence in d such that it is counted once per fragment.
the minimum value that could take a frequency is 1 if ng i appears only in one fragment, and its maximum value is |S| (the number of fragments in d) if ng i occurs in each fragment s i ∈ S. 3.