From 457b569741b1bf6ad09a67198f8da728b0b9b384 Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Mon, 17 Apr 2023 21:33:03 -0700 Subject: [PATCH] Update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6eace01..d42bf90 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ example of the format. Any exceptions will be printed to stderr. Write binary data representing the model to `file`. -### `gptc.deserialize(encoded_model)` +### `Model.deserialize(encoded_model)` Deserialize a `Model` from a file containing data from `Model.serialize()`. @@ -70,7 +70,7 @@ Return a confidence dict for the given token or ngram. This function is very similar to `Model.confidence()`, except it treats the input as a single token or ngram. -### `gptc.compile(raw_model, max_ngram_length=1, min_count=1, hash_algorithm="sha256")` +### `Model.compile(raw_model, max_ngram_length=1, min_count=1, hash_algorithm="sha256")` Compile a raw model (as a list, not JSON) and return the compiled model (as a `gptc.Model` object).