ArneBinder commited on
Commit
16d7871
1 Parent(s): 8e6f858

fix ent colors for spacy version

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -192,7 +192,12 @@ if __name__ == "__main__":
192
  default_render_kwargs = {
193
  "style": "ent",
194
  "options": {
195
- "colors": {"own_claim": "#009933", "background_claim": "#0033cc", "data": "#993399"}
 
 
 
 
 
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