import os PRODUCTION = False if PRODUCTION: prepath = "/Users/vkocaman/cache_pretrained/" path = "/Users/vkocaman/cache_pretrained/2.4/" jar_path = "/home/ubuntu/jars/" input_folder = '/home/ubuntu/streamlit/dia/resources/' rules_folder = '/home/ubuntu/streamlit/dia/resources/rules/' else: project_path = "F:/JSL/streamlit-demo-apps/" prepath = "file:///E://JSL/SparkNLPSUITE/models/cache_pretrained/" path = "file:///E://JSL/SparkNLPSUITE/models/cache_pretrained/2.4/" jar_path = "file:///E:/JSL/Jars/streamlit4/" rules_folder = "file:///E://JSL/SparkNLPSUITE/streamlit-demo-apps/resources/rules/" models_folder = "file:///E://JSL/SparkNLPSUITE/models/" ENTITIES_FOR_ICD10 = ['problem', 'diagnosis', 'procedure name', 'lab name', 'symptom_name', 'procedure_name', 'procedure', 'lab_name', 'pathological_formation', 'cancer'] LOGO_PATH = '../resources/jsl-logo.png' available_models = [] #APP STYLE MAX_WIDTH = 1600 PADDING_TOP = 0.25 PADDING_BOTTOM = 0.25 PADDING_RIGHT = 4 PADDING_LEFT = 4 COLOR = 'black' BACKGROUND_COLOR = 'white' HTML_WRAPPER = """
{}
""" HTML_INDEX_WRAPPER = """
{}
""" STYLE_CONFIG_OLD = f""" """ with open('./utils/style.css') as f: STYLE_CONFIG_NEW = f.read() STYLE_CONFIG = STYLE_CONFIG_OLD + ''.format(STYLE_CONFIG_NEW) LABEL_COLORS = {'problem':'#0C8888', 'test':'#FF33C1', 'treatment':'#3196D4', 'multi':'#ccfff5', 'multi-tissue_structure':'#8dd8b4', 'cell':'#ffe6cc', 'organism':'#ffddcc', 'gene_or_gene_product':'#fff0b3', 'organ':'#e6e600', 'simple_chemical':'#ffd699', 'per':'#0C8888', 'pers':'#0C8888','person':'#0C8888', 'org':'#FF33C1', 'misc': '#3196D4', 'mis': '#3196D4', 'loc':'#5B00A3', 'location':'#5B00A3', 'drug':'#33BBFF', 'diagnosis':'#b5a1c9', 'maybe':'#FFB5C5', 'lab_result':'#3abd80', 'negated':'#CD3700', 'name':'#C0FF3E', 'lab_name':'#698B22', 'modifier':'#8B475D', 'symptom_name':'#CDB7B5', 'section_name':'#8B7D7B', 'procedure_name':'#48D1CC', 'grading':"#8c61e8", 'size':"#746b87", 'organism_substance':'#ffaa80', 'gender':'#ffacb7', 'age':'#ffe0ac', 'date': '#a6b1e1' }