Merge pull request #1350 from hscspring/patch-3

Update word-vectors-similarities.jade
This commit is contained in:
Matthew Honnibal 2017-09-22 16:11:05 +02:00 committed by GitHub
commit 1dbc2285b8

View File

@ -21,10 +21,12 @@ p
+code.
import numpy
import spacy
nlp = spacy.load('en')
apples, and_, oranges = nlp(u'apples and oranges')
print(apples.vector.shape)
# (1,)
# (300,)
apples.similarity(oranges)
p