Top-level Exports

ffp re-exports some common types at the top-level. These types cover the typical use-cases.

Embeddings

ffp.embeddings.Embeddings(storage, vocab[, …])

Embeddings class.

ffp.embeddings.load_finalfusion(file[, mmap])

Read embeddings from a file in finalfusion format.

ffp.embeddings.load_fastText(file)

Read embeddings from a file in fastText format.

ffp.embeddings.load_text(file)

Read embeddings in text format.

ffp.embeddings.load_textdims(file)

Read emebddings in textdims format.

ffp.embeddings.load_word2vec(file)

Read embeddings in word2vec binary format.

Metadata

ffp.metadata.Metadata

Embeddings metadata

ffp.metadata.load_metadata(file)

Load a Metadata chunk from the given file.

Norms

ffp.norms.Norms

Embedding Norms.

ffp.norms.load_norms(file)

Load an Norms chunk from the given file.

Storage

ffp.storage.Storage

Common interface to finalfusion storage types.

ffp.storage.load_storage(file[, mmap])

Load any storage from a finalfusion file.

Vocab

ffp.vocab.Vocab

Finalfusion vocabulary interface.

ffp.vocab.load_vocab(file)

Load a vocabulary from a finalfusion file.