This version includes a parameter to create the Bag of Word model with a maximum number of terms. For example, the following code can be used to create a model with at most 1024 terms (tokens) using q-grams (2, 3, 4) and words.
python
from microtc import TextModel
tm = TextModel(token_list=[-1, 2, 3, 4],
token_max_filter=2024,
max_dimension=True)