Looking into spaCy issue https://github.com/explosion/spaCy/issues/3869, I found that the counter.c_map.cells sometimes behave inconsistently, not reflecting the actual underlying state of the counter. Changing the __iter__ function to map_iter instead, fixed the issue.
Looking into spaCy issue https://github.com/explosion/spaCy/issues/3869, I found that the
counter.c_map.cells
sometimes behave inconsistently, not reflecting the actual underlying state of the counter. Changing the__iter__
function tomap_iter
instead, fixed the issue.