ArneBinder
commited on
Commit
•
16d7871
1
Parent(s):
8e6f858
fix ent colors for spacy version
Browse files
app.py
CHANGED
@@ -192,7 +192,12 @@ if __name__ == "__main__":
|
|
192 |
default_render_kwargs = {
|
193 |
"style": "ent",
|
194 |
"options": {
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
196 |
},
|
197 |
}
|
198 |
|
|
|
192 |
default_render_kwargs = {
|
193 |
"style": "ent",
|
194 |
"options": {
|
195 |
+
# we need to convert the keys to uppercase because the spacy rendering function expects them in uppercase
|
196 |
+
"colors": {
|
197 |
+
"own_claim".upper(): "#009933",
|
198 |
+
"background_claim".upper(): "#0033cc",
|
199 |
+
"data".upper(): "#993399",
|
200 |
+
}
|
201 |
},
|
202 |
}
|
203 |
|