mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix similarity visual
Doc was showing similarity when dissimilar
This commit is contained in:
parent
98767122a7
commit
25b26f0d64
|
@ -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 ? ["yes", "similar"] : cell != 1 ? ["no", "dissimilar"] : ["neutral", "identical"]
|
||||
| #[code=cell.toFixed(2)] #[+procon(...result)]
|
||||
|
||||
p
|
||||
|
|
Loading…
Reference in New Issue
Block a user