def update_mimic_doc_dates(doc_dates): es = EntityCentricES.get_instance('./index_settings/es_mimic_setting.json') container = [] utils.multi_thread_tasking(doc_dates, 20, do_doc_update_date, args=[es, container])
def index_mimic_notes(): es = EntityCentricES.get_instance('./index_settings/es_mimic_setting.json') ann_files = [ f for f in listdir(_f_yodie_anns) if isfile(join(_f_yodie_anns, f)) ] patients = [] for ann in ann_files: print 'indexing %s ...' % ann utils.multi_thread_large_file_tasking(join(_f_yodie_anns, ann), 20, do_index_mimic, args=[es, patients]) print 'full text and annotations done.' patients = list(set(patients)) index_patients(patients, es)