示例#1
0
 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))
示例#2
0
 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()))
示例#3
0
 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))]))
示例#4
0
 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()
示例#5
0
 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))
示例#6
0
 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))