Text this: Learning-based frequency estimation algorithms