Added new function to save a compact version of the model

For generated dictionaries, there is no point to keep lookups for terms
that do not meet the model threshold