fse/word2vec-google-news-300-raw

A static embedding model for fse: the mean of the token rows of a text, normalized to unit length.

Model

  • rows (vocabulary): 3000000
  • dimensions of the table: 300 (float32)
  • tokenizer: fse_words@1
  • steps per row: normalize@1
  • fingerprint: xxh3-128:64e4ef70aca1f497f7173a33764825dd

Usage

This model requires fse 2.0 or later.

pip install "fse>=2.0"
import fse

encoder = fse.Encoder.from_pretrained("fse/word2vec-google-news-300-raw")
vectors = encoder.encode(["A sentence."])

The encoder normalizes every vector to unit length (the stored step normalize@1). To get the raw weighted mean instead, for example to fold a linear head into the table, load it with normalize=False:

encoder = fse.Encoder.from_pretrained("fse/word2vec-google-news-300-raw", normalize=False)

The suffix -raw means without SIF weighting, not without normalization. Both -raw and -sif10 models load normalized by default.

Source and license

Converted from the gensim model fse/word2vec-google-news-300 at revision 4274c2efa75c99a64e3f83eabfc5b34d1acabe70.

License: other. The license of the source model applies to its use.

About fse

Made with fse, fast sentence embeddings.

Choosing a method and storage format

On the 1,379 STS-B test pairs, raw float32 scored 61.54132 Pearson x100 and SIF-10 float32 scored 70.88642. Use raw for a plain mean of the source vectors. Use SIF-10 to apply the fixed frequency weighting and training-corpus component removal measured here. Evaluate the choice on your own data.

Use float32 to retain the prepared table without storage rounding. Use float16 or int8 when the measured size reduction and neighbour changes below meet your needs. fse computes all three in float32.

This model Measured value
Model file bytes 3665259542
STS-B Pearson x100 61.54132
Difference from same-method float32, points +0.00000
Recall@10 against same-method float32 1.000000
Default tokenizer Pearson x100 61.54132

The controlled STS-B comparison uses the 1.x notebook's NLTK preprocessing through an external-tokenizer view of this same table. The default-tokenizer row uses the saved fse_words@1 tokenizer on raw text. Recall@10 compares each of the 2,758 STS-B sentence rows against all other rows, excludes self, and resolves equal similarities by row index. No load-time or speed claim is made.

Source terms and attribution

The original word2vec project states that the project is 'released for research purposes only'. The card therefore uses license: other. Apache-2.0 covers the word2vec code, not these pretrained vectors. No broader permission is asserted here.

Downloads last month
25
Safetensors
Model size
0.9B params
Tensor type
F32
路
U8
路
I64
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for fse/word2vec-google-news-300-raw

Finetuned
(4)
this model