Commit
·
93993fa
1
Parent(s):
ba5a9bf
Initial version
Browse files- .gitattributes +2 -0
- README.md +30 -0
- config.json +8 -0
- model.safetensors +3 -0
- model.sqlite +3 -0
- vocab.json +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
model.sqlite filter=lfs diff=lfs merge=lfs -text
|
37 |
+
vocab.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- sentence-similarity
|
4 |
+
inference: false
|
5 |
+
license: cc-by-sa-3.0
|
6 |
+
language: english
|
7 |
+
library_name: staticvectors
|
8 |
+
---
|
9 |
+
|
10 |
+
# FastText StaticVectors model
|
11 |
+
|
12 |
+
This model is an export of these [FastText English Vectors](https://fasttext.cc/docs/en/english-vectors.html) (_wiki-news-300d-1M-subword.vec.zip_) for [`staticvectors`](https://github.com/neuml/staticvectors). `staticvectors` enables running inference Python with NumPy, helping it maintain solid runtime performance.
|
13 |
+
|
14 |
+
## Usage with StaticVectors
|
15 |
+
|
16 |
+
```python
|
17 |
+
from staticvectors import StaticVectors
|
18 |
+
|
19 |
+
model = StaticVectors("neuml/fasttext")
|
20 |
+
model.embeddings(["word"])
|
21 |
+
```
|
22 |
+
|
23 |
+
Given that pre-trained embeddings models can get quite large, there is also a SQLite version that lazily loads vectors.
|
24 |
+
|
25 |
+
```python
|
26 |
+
from staticvectors import StaticVectors
|
27 |
+
|
28 |
+
model = StaticVectors("neuml/fasttext/model.sqlite")
|
29 |
+
model.embeddings(["word"])
|
30 |
+
```
|
config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_type": "staticvectors",
|
3 |
+
"storage": "safetensors",
|
4 |
+
"format": "text",
|
5 |
+
"source": "wiki-news-300d-1M-subword.vec",
|
6 |
+
"total": 999994,
|
7 |
+
"dim": 300
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71649567004fe56c801ec116886541d7a4cc393d6829b2bc20e5482492394c2b
|
3 |
+
size 1199992888
|
model.sqlite
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32df150f912aef10b3e1fb1b321ef92ce9e43650d75fc87fa2f8d69be847fb6e
|
3 |
+
size 1387433984
|
vocab.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f8a866704d9cda299126b2f802fb23063bd4a346224ccd8d8c2242e95aefd94
|
3 |
+
size 20123534
|