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