Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonwalters committed Sep 7, 2024
1 parent 6a61186 commit 9634a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.DS_Store
balltree.pkl
dict.pkl
vocab.pkl
2 changes: 1 addition & 1 deletion gen_vocab_vecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
print("Total number of words in spaCy vocab=",len(nlp.vocab.strings))
print("Getting words...")
words = [word for word in nlp.vocab.strings if nlp.vocab.has_vector(word) and word.islower() and nlp.vocab[word].prob >= MIN_PROB]
print("Retrieved ",len(words),"lowercase words with vectors and prob >=.",MIN_PROB)
print("Retrieved ",len(words),"lowercase words with vectors and prob >=",MIN_PROB)

#get wordvectors for all words as numpy array
print("Total number of wordvectors=",len(nlp.vocab.vectors))
Expand Down

0 comments on commit 9634a14

Please sign in to comment.