garyw commited on
Commit
a935384
1 Parent(s): 965e71d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
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.wv.word_vec('diabetes')
37
- model.wv.word_vec('cardiac_arrest')
38
- model.wv.word_vec('lymphangioleiomyomatosis')
39
 
40
  # Try out cosine similarity
41
- model.wv.similarity('copd', 'chronic_obstructive_pulmonary_disease')
42
- model.wv.similarity('myocardial_infarction', 'heart_attack')
43
- model.wv.similarity('lymphangioleiomyomatosis', 'lam')
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
  ```