diff --git a/wani.py b/wani.py index 2447516..5f10d13 100644 --- a/wani.py +++ b/wani.py @@ -231,6 +231,7 @@ class WordFormMsdCR(WordFormAnyCR): if 'msd' not in self.data: return True selectors = self.data['msd'] + for key, value in selectors.items(): t = word.msd[0] v = TAGSET[t].index(key.lower()) @@ -256,6 +257,7 @@ class WordFormMsdCR(WordFormAnyCR): WordLemma = namedtuple('WordLemmaOnly', 'msd most_frequent_text lemma text') backup_word = WordLemma(msd=msd, most_frequent_text=lambda *x: None, lemma=None, text=None) self.words.append(backup_word) + return super()._render() class WordFormAgreementCR(WordFormMsdCR): @@ -267,7 +269,6 @@ class WordFormAgreementCR(WordFormMsdCR): return self.data['other'] def match(self, word_msd): - existing = [(w.msd, w.text) for w in self.words] for candidate_msd, candidate_text in self.word_renderer.available_words(self.lemma, existing): @@ -324,7 +325,6 @@ class ComponentRendition: self.more = {} self.representation_factory = ComponentRepresentation - def add_feature(self, feature): if 'rendition' in feature: if feature['rendition'] == "lemma":