Skip to content

Commit 6b4a989

Browse files
committed
Update readme
1 parent d897c4e commit 6b4a989

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,19 @@ print(fifu_embeds.metadata)
9999
~~~Python
100100
# load only a vocab from a finalfusion file
101101
from finalfusion import load_vocab
102-
path = "/path/to/finalfusion_file.fifu"
103-
vocab = load_vocab(path)
102+
vocab = load_vocab("/path/to/finalfusion_file.fifu")
104103

105104
# serialize vocab to single file
106-
vocab.write("/path/to/vocab_file.fifu")
105+
vocab.write("/path/to/vocab_file.fifu.voc")
107106

108107
# more specific loading functions exist
109108
from finalfusion.vocab import load_finalfusion_bucket_vocab
110-
fifu_bucket_vocab = load_finalfusion_bucket_vocab(path)
109+
fifu_bucket_vocab = load_finalfusion_bucket_vocab("/path/to/vocab_file.fifu.voc")
111110
~~~
112111

113112
The package supports loading and writing all `finalfusion` chunks this way.
113+
This is only supported by the Python package, reading will fail with e.g.
114+
the `finalfusion-rust`.
114115

115116
## Scripts
116117

0 commit comments

Comments
 (0)