Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,17 +46,22 @@ def init_qa_pipeline():
|
|
46 |
return question_answerer_pipe
|
47 |
|
48 |
def get_formatted_text_for_annotation(output):
|
49 |
-
colour_map = {'
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
annotated_texts = []
|
62 |
next_index = 0
|
|
|
46 |
return question_answerer_pipe
|
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': '#C89616',
|
54 |
+
'History': '#0A9903',
|
55 |
+
'Medication': '#46B01A',
|
56 |
+
'Therapeutic_procedure': '#6642A8',
|
57 |
+
'Age': '#F4A937',
|
58 |
+
'Subject': '#38C708',
|
59 |
+
'Biological_structure': '#106C6C',
|
60 |
+
'Activity': '#E086C8',
|
61 |
+
'Lab_value': '#66011C',
|
62 |
+
'Family_history': '#3EEEBB',
|
63 |
+
'Diagnostic_procedure': '#54C61D',
|
64 |
+
'Occupation': '#52A882'}
|
65 |
|
66 |
annotated_texts = []
|
67 |
next_index = 0
|