robustness improvements for large-size ngrams