Update README
This commit is contained in:
parent
4546c4cffa
commit
457b569741
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue
Block a user