File size: 975 Bytes
caccd81 11abdd3 caccd81 11abdd3 caccd81 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
---
tags:
- sentence-similarity
inference: false
license: apache-2.0
language: en
library_name: staticvectors
base_model:
- NeuML/word2vec
---
# Word2Vec StaticVectors model
This model is an export of these [Word2Vec Vectors](https://code.google.com/archive/p/word2vec/) for [`staticvectors`](https://github.com/neuml/staticvectors). `staticvectors` enables running inference in Python with NumPy. This helps it maintain solid runtime performance.
_This model is a quantized version of the base model. It's using 10x256 Product Quantization._
## Usage with StaticVectors
```python
from staticvectors import StaticVectors
model = StaticVectors("neuml/word2vec-quantized")
model.embeddings(["word"])
```
Given that pre-trained embeddings models can get quite large, there is also a SQLite version that lazily loads vectors.
```python
from staticvectors import StaticVectors
model = StaticVectors("neuml/word2vec-quantized/model.sqlite")
model.embeddings(["word"])
```
|