# recruiting = None # if _use_recruiting: # recruiting = raw_input("Recruiting: [no] ") # if recruiting is None or len(recruiting) < 1: # recruiting = False # else: # recruiting = recruiting[:1] is 'y' or recruiting[:1] is 'Y' # run the runner now = date.today() run_id = now.isoformat() run_dir = "run-%s-%s" % (re.sub(r"[^\w\d\-]+", "_", term.lower()), run_id) runner = Runner(run_id, run_dir) runner.run_ctakes = True runner.run_metamap = True runner.term = term runner.log_status = True runner.run() # generate HTML report if _generate_report: print "Generating report..." recr_status = "" if _use_recruiting: recr_status = ", recruiting" if recruiting else ", not recruiting" html = """<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Report: %s</title>
# recruiting = None # if _use_recruiting: # recruiting = raw_input("Recruiting: [no] ") # if recruiting is None or len(recruiting) < 1: # recruiting = False # else: # recruiting = recruiting[:1] is 'y' or recruiting[:1] is 'Y' # run the runner now = date.today() run_id = now.isoformat() run_dir = "run-%s-%s" % (re.sub(r'[^\w\d\-]+', '_', term.lower()), run_id) runner = Runner(run_id, run_dir) runner.run_ctakes = True runner.run_metamap = True runner.term = term runner.log_status = True runner.run() # generate HTML report if _generate_report: print 'Generating report...' recr_status = '' if _use_recruiting: recr_status = ', recruiting' if recruiting else ', not recruiting' html = """<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Report: %s</title>