New progress bar
This commit is contained in:
+4
-1
@@ -1,5 +1,8 @@
|
||||
from collections import defaultdict, Counter
|
||||
|
||||
from progress_bar import progress
|
||||
|
||||
|
||||
class WordStats:
|
||||
def __init__(self, lemma_features):
|
||||
self.raw_data = defaultdict(lambda: defaultdict(lambda: defaultdict(int)))
|
||||
@@ -22,7 +25,7 @@ class WordStats:
|
||||
|
||||
def generate_renders(self):
|
||||
num_words = defaultdict(int)
|
||||
for lemma, ld in self.raw_data.items():
|
||||
for lemma, ld in progress(self.raw_data.items(), "lemma-render"):
|
||||
self.rendered_words[lemma] = {}
|
||||
freq_words = defaultdict(int)
|
||||
common_msd = "*" * 10
|
||||
|
||||
Reference in New Issue
Block a user