pyrouge_set_rouge_path.py 368 字节
Newer Older
M
Meiyim 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!./python3.6/bin/python

import argparse

from pyrouge import Rouge155

def get_args():
	parser = argparse.ArgumentParser()
	parser.add_argument(help="Path of the directory containing ROUGE-1.5.5.pl.",
	type=str, action="store", dest="home_dir")
	return parser.parse_args()

def main():
	args = get_args()
	Rouge155(args.home_dir)

if __name__ == "__main__":
	main()