def main(): if len(sys.argv) == 5: filename = sys.argv[1] qrels = TrecQrelHandler(sys.argv[2]) my_whoosh_doc_index_dir = sys.argv[3] stopword_file = sys.argv[4] bm25 = Whooshtrec(whoosh_index_dir=my_whoosh_doc_index_dir, stopwords_file=stopword_file, model=1, newschema=True) elr = ExpTimeLogReader(ExpLogEntry, qrels, bm25) elr.process(filename) elr.report(False) else: print "{0} <logfile> <qrelsfile> <indexpath> <stopwordsfile>".format(sys.argv[0])
def main(): if len(sys.argv) > 1: filename = sys.argv[1] elr = ExpTimeLogReader(ExpLogEntry) elr.process(filename) elr.report(True)