Update README

This commit is contained in:
Samuel Sloniker 2023-04-17 21:33:03 -07:00
parent 4546c4cffa
commit 457b569741
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

View File

@ -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).