Resplit the WebQuestions dataset.
()
| 68 | |
| 69 | |
| 70 | def resplit_wb(): |
| 71 | """Resplit the WebQuestions dataset.""" |
| 72 | hash_fn = make_hash_fn() |
| 73 | resplit_data( |
| 74 | input_path=FLAGS.wb_train_path, |
| 75 | output_path=get_resplit_path("WebQuestions", "train"), |
| 76 | keep_fn=lambda x: hash_fn(x) != 0) |
| 77 | resplit_data( |
| 78 | input_path=FLAGS.wb_train_path, |
| 79 | output_path=get_resplit_path("WebQuestions", "dev"), |
| 80 | keep_fn=lambda x: hash_fn(x) == 0) |
| 81 | resplit_data( |
| 82 | input_path=FLAGS.wb_test_path, |
| 83 | output_path=get_resplit_path("WebQuestions", "test"), |
| 84 | keep_fn=lambda x: True) |
| 85 | |
| 86 | |
| 87 | def resplit_ct(): |
no test coverage detected
searching dependent graphs…