Update README.md
Browse files
README.md
CHANGED
@@ -18,25 +18,11 @@ Citation:
|
|
18 |
}
|
19 |
```
|
20 |
|
21 |
-
## Model list
|
22 |
-
|
23 |
-
| Model | Dimension | Open Access Case Reports |
|
24 |
-
| ---- | --------- | ------------------------- |
|
25 |
-
| word2vec | 100 | [Download - 269 MB](w2v_100d_oa_cr.tar.gz)|
|
26 |
-
| | 300 | [Download - 716 MB](w2v_300d_oa_cr.tar.gz) |
|
27 |
-
| | 600 | [Download - 1.4 GB](w2v_600d_oa_cr.tar.gz)|
|
28 |
-
|
29 |
## Quick start
|
30 |
|
31 |
Word embeddings are compatible with the [`gensim` Python package](https://radimrehurek.com/gensim/) format.
|
32 |
|
33 |
-
First download
|
34 |
-
|
35 |
-
```bash
|
36 |
-
tar -xvf w2v_100d_oa_all.tar.gz
|
37 |
-
```
|
38 |
-
|
39 |
-
Then load the embeddings into Python.
|
40 |
|
41 |
|
42 |
```python
|
@@ -44,7 +30,7 @@ Then load the embeddings into Python.
|
|
44 |
from gensim.models import FastText, Word2Vec, KeyedVectors # KeyedVectors are used to load the GloVe models
|
45 |
|
46 |
# Load the model
|
47 |
-
model = Word2Vec.load('
|
48 |
|
49 |
# Return 100-dimensional vector representations of each word
|
50 |
model.wv.word_vec('diabetes')
|
|
|
18 |
}
|
19 |
```
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
## Quick start
|
22 |
|
23 |
Word embeddings are compatible with the [`gensim` Python package](https://radimrehurek.com/gensim/) format.
|
24 |
|
25 |
+
First download the files from this archive. Then load the embeddings into Python.
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
|
28 |
```python
|
|
|
30 |
from gensim.models import FastText, Word2Vec, KeyedVectors # KeyedVectors are used to load the GloVe models
|
31 |
|
32 |
# Load the model
|
33 |
+
model = Word2Vec.load('w2v_oa_cr_100d.bin')
|
34 |
|
35 |
# Return 100-dimensional vector representations of each word
|
36 |
model.wv.word_vec('diabetes')
|