IntroCModelingLA/Code/ngram.py
def eliminateFrequences(self, num):
		"""Eliminates all ngrams with a frequency <= num."""
		for x in self.ngrams.keys():
			if self.ngrams[x] <= num:
				self.num -= self.ngrams[x]
				del self.ngrams[x]
Eliminates all ngrams with a frequency <= num.
Eliminates all ngrams with a frequency <= num.
Eliminates all ngrams with a frequency < = num .
def eliminateFrequences(self, num):
		for x in self.ngrams.keys():
			if self.ngrams[x] <= num:
				self.num -= self.ngrams[x]
				del self.ngrams[x]
def eliminateFrequences ( self , num ) : for x in self . ngrams . keys ( ) : if self . ngrams [ x ] <= num : self . num -= self . ngrams [ x ] del self . ngrams [ x ]
Eliminates all ngrams with a frequency <= num.
Eliminates all ngrams with a frequency < = num .
"""Eliminates all ngrams with a frequency <= num."""
self
num