()
| 24 | |
| 25 | |
| 26 | def _parse_args(): |
| 27 | parser = argparse.ArgumentParser() |
| 28 | |
| 29 | parser.add_argument('--action',default='merge_all',help='Action to operate') |
| 30 | parser.add_argument('--dataset', default='WebQSP', help='dataset to perform entity linking, should be CWQ or WebQSP') |
| 31 | parser.add_argument('--split', default='train', help='split to operate on') # the split file: ['dev','test','train'] |
| 32 | |
| 33 | |
| 34 | return parser.parse_args() |
| 35 | |
| 36 | |
| 37 | def combine_entities_from_FACC1_and_elq(dataset, split, sample_size=10): |