Skipping already used abailable words, stupid refactoring bug
This commit is contained in:
parent
11706b6f81
commit
8b06c4ec38
|
@ -110,6 +110,7 @@ class WordStats:
|
|||
statement = """SELECT msd, text, frequency FROM UniqWords WHERE
|
||||
lemma=:lemma ORDER BY frequency DESC"""
|
||||
for msd, text, _f in self.db.execute(statement, {'lemma': lemma}):
|
||||
if (msd, text) not in counted_texts:
|
||||
yield (msd, text)
|
||||
|
||||
def num_words(self, lemma, msd0):
|
||||
|
|
Loading…
Reference in New Issue
Block a user