MCPcopy Create free account
hub / github.com/google-research/language / resplit_wb

Function resplit_wb

language/orqa/preprocessing/create_data_splits.py:70–84  ·  view source on GitHub ↗

Resplit the WebQuestions dataset.

()

Source from the content-addressed store, hash-verified

68
69
70def 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
87def resplit_ct():

Callers 1

mainFunction · 0.85

Calls 3

make_hash_fnFunction · 0.85
resplit_dataFunction · 0.85
get_resplit_pathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…