pycl/Code/ngram.py
def removeNgram(self, ngram):
		"""Removes one occurrence of an ngram from the collection by decreasing
		   its counter. If the counter equals 0 after decreasing, the ngram is
		   removed from the collection.
		"""
		if self.ngrams.has_key(ngram):
			if self.ngrams[ngram] > 1:
				self.ngrams[ngram] -= 1
			else:
				del self.ngrams[ngram]
			self.ngrams["__count__"] -= 1
			self.__changed = True
		# else
			# raise an error
Removes one occurrence of an ngram from the collection by decreasing
		   its counter. If the counter equals 0 after decreasing, the ngram is
		   removed from the collection.
		
Removes one occurrence of an ngram from the collection by decreasing
its counter. If the counter equals 0 after decreasing, the ngram is
removed from the collection.
Removes one occurrence of an ngram from the collection by decreasing its counter . If the counter equals 0 after decreasing the ngram is removed from the collection .
def removeNgram(self, ngram):
		if self.ngrams.has_key(ngram):
			if self.ngrams[ngram] > 1:
				self.ngrams[ngram] -= 1
			else:
				del self.ngrams[ngram]
			self.ngrams["__count__"] -= 1
			self.__changed = True
def removeNgram ( self , ngram ) : if self . ngrams . has_key ( ngram ) : if self . ngrams [ ngram ] > 1 : self . ngrams [ ngram ] -= 1 else : del self . ngrams [ ngram ] self . ngrams [ "__count__" ] -= 1 self . __changed = True
Removes one occurrence of an ngram from the collection by decreasing
its counter.
Removes one occurrence of an ngram from the collection by decreasing its counter .
"""Removes one occurrence of an ngram from the collection by decreasing
		   its counter. If the counter equals 0 after decreasing, the ngram is
		   removed from the collection.
		""" # else # raise an error
self
ngram