mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
Fix formatting and add missing v2 label
This commit is contained in:
parent
53bfcdba31
commit
5147cdc468
|
@ -105,6 +105,7 @@ p
|
|||
|
||||
+h(3, "lightning-tour-displacy") Visualize a dependency parse and named entities in your browser
|
||||
+tag-model("dependency parse", "NER")
|
||||
+tag-new(2)
|
||||
|
||||
+aside
|
||||
.u-text-center(style="overflow: auto").
|
||||
|
|
|
@ -28,7 +28,10 @@ p
|
|||
| #[strong #[+procon("yes", "similar", false, 16)] similarity:] similar (higher is more similar) #[br]
|
||||
| #[strong #[+procon("no", "dissimilar", false, 16)] similarity:] dissimilar (lower is less similar)
|
||||
|
||||
+table(["", "dog", "cat", "banana"])
|
||||
+table
|
||||
+row("head")
|
||||
for column in ["", "dog", "cat", "banana"]
|
||||
+head-cell.u-text-center=column
|
||||
each cells, label in {"dog": [1, 0.8, 0.24], "cat": [0.8, 1, 0.28], "banana": [0.24, 0.28, 1]}
|
||||
+row
|
||||
+cell.u-text-label.u-color-theme=label
|
||||
|
|
|
@ -108,8 +108,7 @@ p
|
|||
- var examples = {"dog bites man": [1, 0.9, 0.89, 0.92], "man bites dog": [0.9, 1, 0.93, 0.9], "man dog bites": [0.89, 0.93, 1, 0.92], "dog man bites": [0.92, 0.9, 0.92, 1]}
|
||||
- var counter = 0
|
||||
|
||||
+row
|
||||
+row
|
||||
+row("head")
|
||||
+cell
|
||||
for _, label in examples
|
||||
+cell.u-text-center=label
|
||||
|
|
Loading…
Reference in New Issue
Block a user