Spaces:
Running
Running
Julien Chaumond
commited on
Commit
·
7fe1055
1
Parent(s):
e778e99
move all red/orange arrows to the top of the grey ones.
Browse files- js-src/Coref.ts +5 -0
js-src/Coref.ts
CHANGED
|
@@ -177,5 +177,10 @@ class Coref {
|
|
| 177 |
this.svgContainer.appendChild(arrow.generate());
|
| 178 |
}
|
| 179 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
}
|
| 181 |
}
|
|
|
|
| 177 |
this.svgContainer.appendChild(arrow.generate());
|
| 178 |
}
|
| 179 |
}
|
| 180 |
+
|
| 181 |
+
// Finally do a second pass to move all red/orange arrows to the top of the grey ones.
|
| 182 |
+
document.querySelectorAll('.displacy-arrow.score-ok').forEach((arw) => {
|
| 183 |
+
this.svgContainer.appendChild(arw);
|
| 184 |
+
});
|
| 185 |
}
|
| 186 |
}
|