langmaker/inflectionrule.py
def apply_rule(self, lemma, tags):
        ''' run the appropriate rule on a lemma for given tags '''
        # TODO: handle overloading rule tags
        tags = ','.join(tags)
        try:
            rule = self.rules[tags]
        except KeyError:
            logging.info('No rule found for tags %s', tags)
            return lemma

        return rule.inflect(lemma)
 run the appropriate rule on a lemma for given tags 
run the appropriate rule on a lemma for given tags
run the appropriate rule on a lemma for given tags
def apply_rule(self, lemma, tags):
        tags = ','.join(tags)
        try:
            rule = self.rules[tags]
        except KeyError:
            logging.info('No rule found for tags %s', tags)
            return lemma
        return rule.inflect(lemma)
def apply_rule ( self , lemma , tags ) : tags = ',' . join ( tags ) try : rule = self . rules [ tags ] except KeyError : logging . info ( 'No rule found for tags %s' , tags ) return lemma return rule . inflect ( lemma )
run the appropriate rule on a lemma for given tags
run the appropriate rule on a lemma for given tags
''' run the appropriate rule on a lemma for given tags ''' # TODO: handle overloading rule tags
self
lemma
tags