16 releases (8 breaking)

0.9.4 Jul 27, 2020
0.9.0 Jun 23, 2020
0.7.0 Nov 8, 2019
0.6.1 Jun 21, 2019
0.2.0 Sep 28, 2018
Download history 19/week @ 2021-04-03 20/week @ 2021-04-10 12/week @ 2021-04-17 24/week @ 2021-04-24 19/week @ 2021-05-01 1/week @ 2021-05-08 17/week @ 2021-05-15 1/week @ 2021-05-22 2/week @ 2021-05-29 19/week @ 2021-06-05 3/week @ 2021-06-12 1/week @ 2021-06-19 3/week @ 2021-06-26 4/week @ 2021-07-03 6/week @ 2021-07-10 18/week @ 2021-07-17

90 downloads per month
Used in finalfrontier-utils

Apache-2.0 OR BlueOak-1.0.0

180KB
4.5K SLoC

Crate Docs Build Status

finalfrontier

Introduction

finalfrontier is a Rust program for training word embeddings. finalfrontier currently has the following features:

  • Models:
    • skip-gram (Mikolov et al., 2013)
    • structured skip-gram (Ling et al., 2015)
    • directional skip-gram (Song et al., 2018)
    • dependency (Levy and Goldberg, 2014)
  • Output formats:
    • finalfusion
    • fastText
    • word2vec binary
    • word2vec text
    • GloVe text
  • Noise contrastive estimation (Gutmann and Hyvärinen, 2012)
  • Subword representations (Bojanowski et al., 2016)
  • Hogwild SGD (Recht et al., 2011)
  • Quantized embeddings through the finalfusion quantize command.

The trained embeddings can be stored in the versatile finalfusion format, which can be read and used with the finalfusion crate and the finalfusion Python module.

The minimum required Rust version is currently 1.40.

Where to go from here

Dependencies

~8–11MB
~232K SLoC