-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__main__.py
More file actions
36 lines (28 loc) · 821 Bytes
/
__main__.py
File metadata and controls
36 lines (28 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# !/usr/bin/env python2
# -*- coding:utf-8 -*-
#
# Author: Flyaway - flyaway1217@gmail.com
# Blog: zhouyichu.com
#
# Python release: 3.4.5
#
# Date: 2016-10-15 16:11:29
# Last modified: 2016-10-15 17:59:37
"""
Comamnd interface
"""
import argparse
from PYEVALB.scorer import Scorer
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)
if __name__ == '__main__':
main()