Use GPTC v4.0.0

This commit is contained in:
Samuel Sloniker 2022-12-24 12:29:00 -08:00
parent f1ccaaabab
commit c33473f25b
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

View File

@ -32,13 +32,11 @@ raw_model = [
] ]
with open("model.gptc", "w+b") as f: with open("model.gptc", "w+b") as f:
f.write( gptc.compile(
gptc.compile( raw_model,
raw_model, max_ngram_length=config["max_ngram_length"],
max_ngram_length=config["max_ngram_length"], min_count=config["min_count"],
min_count=config["min_count"], ).serialize(f)
).serialize()
)
con.commit() con.commit()
con.close() con.close()