Open edponce opened 4 years ago
Consider LRU cache from functools, https://docs.python.org/3/library/functools.html#functools.lru_cache
Try to improve _make_feature_set() in ngrams. Solve the unique-ordering of features, that is do not append integers.
There are places for improving runtime performance: