diff options
author | Jacob <andqso@gmail.com> | 2013-07-28 10:40:51 +0100 |
---|---|---|
committer | Jacob <andqso@gmail.com> | 2013-07-28 10:40:51 +0100 |
commit | 2a4908e5e85720e358876f2d840bf09475f79281 (patch) | |
tree | d8f328a79720b49601e2f00d4c8ab3127c105bf9 /src/eval_bevan/format_prolog.py | |
parent | f5a4fb41b6c106a18079208e0a922e02a95ff770 (diff) |
remove various other unnecessaries
Diffstat (limited to 'src/eval_bevan/format_prolog.py')
-rwxr-xr-x | src/eval_bevan/format_prolog.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/eval_bevan/format_prolog.py b/src/eval_bevan/format_prolog.py deleted file mode 100755 index aa60fd7..0000000 --- a/src/eval_bevan/format_prolog.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python2 - -import sys - -def main(): - HYP_PATH = sys.argv[1] - REF_PATH = sys.argv[2] - - hyp_file = open(HYP_PATH) - ref_file = open(REF_PATH) - - hyps = [] - for hyp_line in hyp_file.readlines(): - hyp = hyp_line.strip() - hyps.append(hyp) - - refs = [] - for r_line in ref_file.readlines(): - ref = r_line.strip() - refs.append(ref) - - i = 0 - for ref, hyp in zip(refs, hyps): - print \ - 'catch(call_with_time_limit(1,eval([%d,%f,%s,%s])),E,writeln(\'error\')).\n' \ - % (i, 0, ref, hyp) - i += 1 - -if __name__ == '__main__': - main() |