| 99 | |
| 100 | |
| 101 | def usage(): |
| 102 | print(" -i input_file") |
| 103 | print(" -o output_file") |
| 104 | print(" -j json_file") |
| 105 | print(" -m model_file") |
| 106 | print(" -l max_seq_length") |
| 107 | print(" -b batch_size") |
| 108 | print(" -o output_file") |
| 109 | print(" -f use_float16") |
| 110 | print(" -n index of the inputdata batch") |
| 111 | print(" -h output help info") |
| 112 | print("Example: python runData.py -i ./data.npz -o output.npz -j xlnet_cased_L-12_H-768_A-12/xlnet_config.json \ |
| 113 | -m xlnet_cased_L-12_H-768_A-12/xlnet_model.ckpt -b 8 -l 128 -n 12") |
| 114 | |
| 115 | |
| 116 | if __name__ == "__main__": |