diff --git a/nltk/probability.py b/nltk/probability.py index b8e8bd2e6b..778a392b69 100644 --- a/nltk/probability.py +++ b/nltk/probability.py @@ -467,12 +467,14 @@ def update(self, samples): self.inc(sample, count=count) def pop(self, other): + self._N -= 1 self._reset_caches() return dict.pop(self, other) - def popitem(self, other): + def popitem(self): + self._N -= 1 self._reset_caches() - return dict.popitem(self, other) + return dict.popitem(self) def clear(self): self._N = 0