mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
commit
40c444eaae
|
@ -674,7 +674,7 @@ p
|
|||
| token vectors.
|
||||
|
||||
+aside-code("Example").
|
||||
apples = nlp(u'I like apples')
|
||||
doc = nlp(u'I like apples')
|
||||
assert doc.vector.dtype == 'float32'
|
||||
assert doc.vector.shape == (300,)
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ p
|
|||
+cell.u-text-label.u-color-theme=label
|
||||
for cell in cells
|
||||
+cell.u-text-center
|
||||
- var result = cell > 0.5 ? ["yes", "similar"] : cell != 1 ? ["no", "dissimilar"] : ["neutral", "identical"]
|
||||
- var result = cell < 0.5 ? ["no", "dissimilar"] : cell != 1 ? ["yes", "similar"] : ["neutral", "identical"]
|
||||
| #[code=cell.toFixed(2)] #[+procon(...result)]
|
||||
|
||||
p
|
||||
|
|
Loading…
Reference in New Issue
Block a user