Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,21 +47,22 @@ def init_qa_pipeline():
|
|
47 |
|
48 |
def get_formatted_text_for_annotation(output):
|
49 |
colour_map = {'Coreference': '#29D93B',
|
|
|
50 |
'Sex': '#330460',
|
51 |
'Sign_symptom': '#5448AD',
|
52 |
'Detailed_description': '#078E8B',
|
53 |
-
'Date': '#
|
54 |
-
'History': '#
|
55 |
-
'Medication': '#
|
56 |
'Therapeutic_procedure': '#6642A8',
|
57 |
-
'Age': '#
|
58 |
'Subject': '#38C708',
|
59 |
'Biological_structure': '#106C6C',
|
60 |
-
'Activity': '#
|
61 |
'Lab_value': '#66011C',
|
62 |
'Family_history': '#3EEEBB',
|
63 |
-
'Diagnostic_procedure': '#
|
64 |
-
'Occupation': '#
|
65 |
|
66 |
annotated_texts = []
|
67 |
next_index = 0
|
|
|
47 |
|
48 |
def get_formatted_text_for_annotation(output):
|
49 |
colour_map = {'Coreference': '#29D93B',
|
50 |
+
'Severity':'#291923',
|
51 |
'Sex': '#330460',
|
52 |
'Sign_symptom': '#5448AD',
|
53 |
'Detailed_description': '#078E8B',
|
54 |
+
'Date': '#C19616',
|
55 |
+
'History': '#1A9903',
|
56 |
+
'Medication': '#16B01A',
|
57 |
'Therapeutic_procedure': '#6642A8',
|
58 |
+
'Age': '#F4A936',
|
59 |
'Subject': '#38C708',
|
60 |
'Biological_structure': '#106C6C',
|
61 |
+
'Activity': '#E017C8',
|
62 |
'Lab_value': '#66011C',
|
63 |
'Family_history': '#3EEEBB',
|
64 |
+
'Diagnostic_procedure': '#22C61D',
|
65 |
+
'Occupation': '#521382'}
|
66 |
|
67 |
annotated_texts = []
|
68 |
next_index = 0
|