Spaces:
Runtime error
Runtime error
Stefan Dumitrescu
commited on
Commit
·
ba9d20e
1
Parent(s):
13c6076
Update
Browse files
app.py
CHANGED
@@ -99,21 +99,21 @@ if Run_Button == True:
|
|
99 |
'PERIOD', 'MONEY', 'QUANTITY', 'NUMERIC',
|
100 |
'ORDINAL', 'FACILITY']
|
101 |
colors = {
|
102 |
-
'PERSON': '#
|
103 |
-
'ORG': '#
|
104 |
-
'GPE': '#
|
105 |
-
'LOC': '#
|
106 |
-
'NAT_REL_POL': '#
|
107 |
-
'EVENT': '#
|
108 |
-
'LANGUAGE': '#
|
109 |
-
'WORK_OF_ART': '#
|
110 |
-
'DATETIME': '#
|
111 |
-
'PERIOD': '#
|
112 |
-
'MONEY': '#
|
113 |
-
'QUANTITY': '#
|
114 |
-
'NUMERIC': '#
|
115 |
-
'ORDINAL': '#
|
116 |
-
'FACILITY': '#
|
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>"
|