From ab00d107c434344792ded2eea0f0fc899ff685a1 Mon Sep 17 00:00:00 2001 From: Amandine Lee Date: Mon, 12 Aug 2013 11:11:19 -0400 Subject: [PATCH] Reorganized files --- cky_algo.py | 2 +- cfg.counts => infiles/cfg.counts | 0 new.counts => infiles/new.counts | 0 new_train.dat => infiles/new_train.dat | 0 parse_dev.dat => infiles/parse_dev.dat | 0 parse_test.dat => infiles/parse_test.dat | 0 parse_train.dat => infiles/parse_train.dat | 0 parse_train_vert.dat => infiles/parse_train_vert.dat | 0 problem_sentences.dat => infiles/problem_sentences.dat | 0 short_dev.dat => infiles/short_dev.dat | 0 latest_out.dat => outfiles/latest_out.dat | 0 out.dat => outfiles/out.dat | 0 out_dev.dat => outfiles/out_dev.dat | 0 out_leq.dat => outfiles/out_leq.dat | 0 out_problem.dat => outfiles/out_problem.dat | 0 out_problems.dat => outfiles/out_problems.dat | 0 out_sbarq.dat => outfiles/out_sbarq.dat | 0 problem_out.dat => outfiles/problem_out.dat | 0 tree.example => outfiles/tree.example | 0 19 files changed, 1 insertion(+), 1 deletion(-) rename cfg.counts => infiles/cfg.counts (100%) rename new.counts => infiles/new.counts (100%) rename new_train.dat => infiles/new_train.dat (100%) rename parse_dev.dat => infiles/parse_dev.dat (100%) rename parse_test.dat => infiles/parse_test.dat (100%) rename parse_train.dat => infiles/parse_train.dat (100%) rename parse_train_vert.dat => infiles/parse_train_vert.dat (100%) rename problem_sentences.dat => infiles/problem_sentences.dat (100%) rename short_dev.dat => infiles/short_dev.dat (100%) rename latest_out.dat => outfiles/latest_out.dat (100%) rename out.dat => outfiles/out.dat (100%) rename out_dev.dat => outfiles/out_dev.dat (100%) rename out_leq.dat => outfiles/out_leq.dat (100%) rename out_problem.dat => outfiles/out_problem.dat (100%) rename out_problems.dat => outfiles/out_problems.dat (100%) rename out_sbarq.dat => outfiles/out_sbarq.dat (100%) rename problem_out.dat => outfiles/problem_out.dat (100%) rename tree.example => outfiles/tree.example (100%) diff --git a/cky_algo.py b/cky_algo.py index f40b675..25d4126 100644 --- a/cky_algo.py +++ b/cky_algo.py @@ -43,7 +43,7 @@ def cky_help(i,j, sent, X, pg): if not (i, j, X) in PI: #Check the cache PI[(i, j, X)] = get_max_of_all(i, j, sent, X, pg) - left, right, prob = PI[(i, j, X)] + s return [X, left, right], prob diff --git a/cfg.counts b/infiles/cfg.counts similarity index 100% rename from cfg.counts rename to infiles/cfg.counts diff --git a/new.counts b/infiles/new.counts similarity index 100% rename from new.counts rename to infiles/new.counts diff --git a/new_train.dat b/infiles/new_train.dat similarity index 100% rename from new_train.dat rename to infiles/new_train.dat diff --git a/parse_dev.dat b/infiles/parse_dev.dat similarity index 100% rename from parse_dev.dat rename to infiles/parse_dev.dat diff --git a/parse_test.dat b/infiles/parse_test.dat similarity index 100% rename from parse_test.dat rename to infiles/parse_test.dat diff --git a/parse_train.dat b/infiles/parse_train.dat similarity index 100% rename from parse_train.dat rename to infiles/parse_train.dat diff --git a/parse_train_vert.dat b/infiles/parse_train_vert.dat similarity index 100% rename from parse_train_vert.dat rename to infiles/parse_train_vert.dat diff --git a/problem_sentences.dat b/infiles/problem_sentences.dat similarity index 100% rename from problem_sentences.dat rename to infiles/problem_sentences.dat diff --git a/short_dev.dat b/infiles/short_dev.dat similarity index 100% rename from short_dev.dat rename to infiles/short_dev.dat diff --git a/latest_out.dat b/outfiles/latest_out.dat similarity index 100% rename from latest_out.dat rename to outfiles/latest_out.dat diff --git a/out.dat b/outfiles/out.dat similarity index 100% rename from out.dat rename to outfiles/out.dat diff --git a/out_dev.dat b/outfiles/out_dev.dat similarity index 100% rename from out_dev.dat rename to outfiles/out_dev.dat diff --git a/out_leq.dat b/outfiles/out_leq.dat similarity index 100% rename from out_leq.dat rename to outfiles/out_leq.dat diff --git a/out_problem.dat b/outfiles/out_problem.dat similarity index 100% rename from out_problem.dat rename to outfiles/out_problem.dat diff --git a/out_problems.dat b/outfiles/out_problems.dat similarity index 100% rename from out_problems.dat rename to outfiles/out_problems.dat diff --git a/out_sbarq.dat b/outfiles/out_sbarq.dat similarity index 100% rename from out_sbarq.dat rename to outfiles/out_sbarq.dat diff --git a/problem_out.dat b/outfiles/problem_out.dat similarity index 100% rename from problem_out.dat rename to outfiles/problem_out.dat diff --git a/tree.example b/outfiles/tree.example similarity index 100% rename from tree.example rename to outfiles/tree.example