#NEWLINE# def main( ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( description = 'Import a STM topic model as a web2py application.' ) #NEWLINE# parser . add_argument ( 'app_name' , type = str , help = 'Web2py application identifier' ) #NEWLINE# parser . add_argument ( 'model_path' , type = str , help = 'A folder containing STM topic model output' ) #NEWLINE# parser . add_argument ( 'corpus_path' , type = str , help = 'A folder containing a text corpus as a tab-delimited file named "corpus.txt"' ) #NEWLINE# parser . add_argument ( 'database_path' , type = str , help = 'A folder containing a text corpus and its metadata as a SQLite3 database named "corpus.db"' ) #NEWLINE# parser . add_argument ( '--quiet' , const = True , default = False , help = 'Show fewer debugging messages' , action = 'store_const' ) #NEWLINE# parser . add_argument ( '--overwrite' , const = True , default = False , help = 'Overwrite any existing model' , action = 'store_const' ) #NEWLINE# args = parser . parse_args ( ) #NEWLINE# ImportSTM ( args . app_name , args . model_path , args . corpus_path , args . database_path , args . quiet , args . overwrite )