mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
commit
40c444eaae
|
@ -674,7 +674,7 @@ p
|
||||||
| token vectors.
|
| token vectors.
|
||||||
|
|
||||||
+aside-code("Example").
|
+aside-code("Example").
|
||||||
apples = nlp(u'I like apples')
|
doc = nlp(u'I like apples')
|
||||||
assert doc.vector.dtype == 'float32'
|
assert doc.vector.dtype == 'float32'
|
||||||
assert doc.vector.shape == (300,)
|
assert doc.vector.shape == (300,)
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ p
|
||||||
+cell.u-text-label.u-color-theme=label
|
+cell.u-text-label.u-color-theme=label
|
||||||
for cell in cells
|
for cell in cells
|
||||||
+cell.u-text-center
|
+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)]
|
| #[code=cell.toFixed(2)] #[+procon(...result)]
|
||||||
|
|
||||||
p
|
p
|
||||||
|
|
Loading…
Reference in New Issue
Block a user