GloVe Twitter (50 dimensions)
Pre-trained GloVe vectors for 1,193,514 words and tokens, trained on 2 billion tweets (27 billion tokens), uncased.
This is a gensim model, packaged for fse (Fast Sentence Embeddings), which turns word vectors into sentence vectors with CBOW averaging, SIF and uSIF.
Usage
pip install fse
from fse import SIF, IndexedList, Vectors
vectors = Vectors.from_pretrained("glove-twitter-50")
model = SIF(vectors)
sentences = IndexedList([["hello", "world"], ["fast", "sentence", "embeddings"]])
model.train(sentences)
model.sv[0] # the vector of the first sentence
Vectors.from_pretrained("glove-twitter-50", mmap="r") memory-maps the vectors instead of loading them into RAM.
Files
| File | Content |
|---|---|
glove-twitter-50.model |
gensim KeyedVectors (vocabulary and metadata) |
glove-twitter-50.model.vectors.npy |
1,193,514 ร 50 float32 vectors (239 MB) |
Source and license
The vectors were published by the Stanford NLP Group with GloVe under the Public Domain Dedication and License. This repository redistributes them in the gensim format.
- Pennington, Socher and Manning (2014), GloVe: Global Vectors for Word Representation
About fse
fse is maintained by Dr. Oliver Borchers. Source code, documentation and the STS benchmark of all vector sets in this organization: github.com/oborchers/Fast_Sentence_Embeddings.
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support