def frequency_model( self ):
        """ build a letter frequency model for Tamil letters from a corpus """
        # use a generator in corpus
        for next_letter in self.corpus.next_tamil_letter():
            # update frequency from corpus
            self.letter[next_letter] = self.letter[next_letter] + 1
def frequency_model ( self ) : for next_letter in self . corpus . next_tamil_letter ( ) : self . letter [ next_letter ] = self . letter [ next_letter ] + 1
build a letter frequency model for Tamil letters from a corpus