Stefan Dumitrescu commited on
Commit
ba9d20e
·
1 Parent(s): 13c6076
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -99,21 +99,21 @@ if Run_Button == True:
99
  'PERIOD', 'MONEY', 'QUANTITY', 'NUMERIC',
100
  'ORDINAL', 'FACILITY']
101
  colors = {
102
- 'PERSON': '#F00',
103
- 'ORG': '#F00',
104
- 'GPE': '#F00',
105
- 'LOC': '#F00',
106
- 'NAT_REL_POL': '#F00',
107
- 'EVENT': '#F00',
108
- 'LANGUAGE': '#F00',
109
- 'WORK_OF_ART': '#F00',
110
- 'DATETIME': '#F00',
111
- 'PERIOD': '#F00',
112
- 'MONEY': '#F00',
113
- 'QUANTITY': '#F00',
114
- 'NUMERIC': '#F00',
115
- 'ORDINAL': '#F00',
116
- 'FACILITY': '#F00',
117
  }
118
  html = spacy.displacy.render(spacy_display, style="ent", minify=True, manual=True, options={"ents": entity_list, "colors": colors})
119
  style = "<style>mark.entity { display: inline-block }</style>"
 
99
  'PERIOD', 'MONEY', 'QUANTITY', 'NUMERIC',
100
  'ORDINAL', 'FACILITY']
101
  colors = {
102
+ 'PERSON': '#E08989',
103
+ 'ORG': '#54478C',
104
+ 'GPE': '#2C699A',
105
+ 'LOC': '#048BA8',
106
+ 'NAT_REL_POL': '#FADAD9',
107
+ 'EVENT': '#98654C',
108
+ 'LANGUAGE': '#F29E4C',
109
+ 'WORK_OF_ART': '#3ADAD9',
110
+ 'DATETIME': '#0DB39E',
111
+ 'PERIOD': '#83E377',
112
+ 'MONEY': '#16DB93',
113
+ 'QUANTITY': '#EFEA5A',
114
+ 'NUMERIC': '#B9E769',
115
+ 'ORDINAL': '#F1C453',
116
+ 'FACILITY': '#E0DADA',
117
  }
118
  html = spacy.displacy.render(spacy_display, style="ent", minify=True, manual=True, options={"ents": entity_list, "colors": colors})
119
  style = "<style>mark.entity { display: inline-block }</style>"