Closed nrmer closed 7 months ago
We intent to cache and reuse the deleted nodes to save the instantiation time for new tokens. However the performance gain may be marginal, we would like to implement with c++ to accelerate cache management in the future.
Is the TODO in _squeeze already implemented? If not what do you want to implement there?
def _squeeze(self, nodes): for t, p in list(nodes.items()): fo = p.freqs.get(-1, 0.0)
TODO