LID/resources/lidtrainer.py
def eliminateFrequences(self, num):
		"""Eliminates all bigrams with a frequency <= num"""
		for x in self.trigrams.keys():
			if self.trigrams[x] <= num:
				value = self.trigrams[x]
				del self.trigrams[x]
				self.num -= value
Eliminates all bigrams with a frequency <= num
Eliminates all bigrams with a frequency <= num
Eliminates all bigrams with a frequency < = num
def eliminateFrequences(self, num):
		for x in self.trigrams.keys():
			if self.trigrams[x] <= num:
				value = self.trigrams[x]
				del self.trigrams[x]
				self.num -= value
def eliminateFrequences ( self , num ) : for x in self . trigrams . keys ( ) : if self . trigrams [ x ] <= num : value = self . trigrams [ x ] del self . trigrams [ x ] self . num -= value
Eliminates all bigrams with a frequency <= num
Eliminates all bigrams with a frequency < = num
"""Eliminates all bigrams with a frequency <= num"""
self
num