コード例 #1
0
 def _lookup_lempos_seq(self, lempos_seq):
     entries = Lookup._lookup_lempos_seq(self, lempos_seq)
     # keep track of all lempos and lemma keys
     for key, _ in entries:
         self.used_lempos_keys.add(key)
         lemma = key.rsplit("/",1)[0]
         self.used_lemma_keys.add(lemma)
     return entries
コード例 #2
0
 def __init__(self, *args, **kwargs):
     Lookup.__init__(self, *args, **kwargs)
     self.used_lempos_keys = set()
     self.used_lemma_keys = set()