def main(): parser = argparse.ArgumentParser() parser.add_argument('gold_path', help='The path of gold tree bank.', type=str) parser.add_argument('test_path', help='The path of test tree bank.', type=str) parser.add_argument('result_path', help='The path of result report.', type=str) args = parser.parse_args() scorer = Scorer() scorer.evalb(args.gold_path, args.test_path, args.result_path)
def test_table(): scorer = Scorer() scorer.evalb(GOLD_PATH, TEST_PATH, RESULT_PATH)