Remove debug print lines from compiler
This commit is contained in:
parent
41bba61410
commit
6f21e0d4e9
|
@ -53,8 +53,6 @@ def compile(
|
||||||
else:
|
else:
|
||||||
word_counts[word] = {category: 1}
|
word_counts[word] = {category: 1}
|
||||||
|
|
||||||
print("counted")
|
|
||||||
|
|
||||||
model: Dict[int, List[int]] = {}
|
model: Dict[int, List[int]] = {}
|
||||||
for word, counts in word_counts.items():
|
for word, counts in word_counts.items():
|
||||||
if sum(counts.values()) >= min_count:
|
if sum(counts.values()) >= min_count:
|
||||||
|
@ -70,5 +68,4 @@ def compile(
|
||||||
)
|
)
|
||||||
model[word] = new_weights
|
model[word] = new_weights
|
||||||
|
|
||||||
print("weighted")
|
|
||||||
return gptc.model.Model(model, names, max_ngram_length)
|
return gptc.model.Model(model, names, max_ngram_length)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user