File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -99,18 +99,19 @@ print(fifu_embeds.metadata)
9999~~~ Python
100100# load only a vocab from a finalfusion file
101101from 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
109108from 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
113112The 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
You can’t perform that action at this time.
0 commit comments