()
| 540 | |
| 541 | |
| 542 | def usage(): |
| 543 | print(" -t task_name") |
| 544 | print(" -b batch_size") |
| 545 | print(" -d data_dir") |
| 546 | print(" -r is_regression") |
| 547 | print(" -l max_seq_length") |
| 548 | print(" -s spiece_model_file") |
| 549 | print(" -o output_file") |
| 550 | print(" -u uncased") |
| 551 | print("Example: python convertInput.py -t sts-b -b 8 -d ../../../Data/glue_data/STS-B -r 1 -l 128 -s ../../../Data/xlnet_cased_L-12_H-768_A-12/spiece.model -o ./data.npz -u 0 ") |
| 552 | |
| 553 | |
| 554 | if __name__ == "__main__": |