def update_output(clear_nbbox=True): nbbox.make_current() nbbox.clear() output_box.update( wb.info_table( 'data:short,token:short,vocab:short,vector:short,model:short', info))
def update_output(clear_nbbox=True): nbbox.make_current() if clear_nbbox: nbbox.clear() runvars['document'] = None if data.documents_exists(info): run_requirements_button.disabled = True output_box.update( wb.info_table('data:short,token:long,custom:document', info, document=document_table('Loading...'))) load_document() else: run_requirements_button.disabled = False output_box.update( wb.info_table('data:short,token:long,custom:document', info, document=document_table()))
def update_output(clear_nbbox=True): nbbox.make_current() if clear_nbbox: nbbox.clear() output_box.update( wb.info_table('data:short,token:long', info, exists=[('Exists', 'header', data.tokenized_document_exists(info))]))
def tokenize_document(): try: token = get_tokenizer(info) runvars['tokens'] = token.tokenize(runvars['document']['text']) output_box.update( wb.info_table('data:short,token:long,custom:document', info, document=document_table())) except: nbprint.print_traceback()
def update_output(clear_nbbox = True): nbbox.make_current() if clear_nbbox: nbbox.clear() run_requirements_button.disabled = data.tokenized_document_exists(info) output_box.update(wb.info_table('data:short,token:short,vocab:long', info))
def update_output(clear_nbbox = True): nbbox.make_current() if clear_nbbox: nbbox.clear() output_box.update(wb.info_table('data:short,token:short,vocab:long', info))