Update README.md
Browse files
README.md
CHANGED
@@ -33,13 +33,13 @@ from gensim.models import FastText, Word2Vec, KeyedVectors # KeyedVectors are us
|
|
33 |
model = KeyedVectors.load_word2vec_format('gl_100_cr.txt')
|
34 |
|
35 |
# Return 100-dimensional vector representations of each word
|
36 |
-
model.
|
37 |
-
model.
|
38 |
-
model.
|
39 |
|
40 |
# Try out cosine similarity
|
41 |
-
model.
|
42 |
-
model.
|
43 |
-
model.
|
44 |
|
45 |
```
|
|
|
33 |
model = KeyedVectors.load_word2vec_format('gl_100_cr.txt')
|
34 |
|
35 |
# Return 100-dimensional vector representations of each word
|
36 |
+
model.word_vec('diabetes')
|
37 |
+
model.word_vec('cardiac_arrest')
|
38 |
+
model.word_vec('lymphangioleiomyomatosis')
|
39 |
|
40 |
# Try out cosine similarity
|
41 |
+
model.similarity('copd', 'chronic_obstructive_pulmonary_disease')
|
42 |
+
model.similarity('myocardial_infarction', 'heart_attack')
|
43 |
+
model.similarity('lymphangioleiomyomatosis', 'lam')
|
44 |
|
45 |
```
|