zihangdai / xlnet

XLNet: Generalized Autoregressive Pretraining for Language Understanding
Apache License 2.0
6.16k stars 1.18k forks source link

Changing the max sequence length in run_classifier.py results in list index out of range #179

Open Crista23 opened 4 years ago

Crista23 commented 4 years ago

Changing the max_sequence_length from 512 to 64 in run_classifier.py results in the error below:

     Traceback (most recent call last):
          File "run_classifier.py", line 855, in <module>
          tf.app.run()
          File "/home/garbacea/tf_bert2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
          _sys.exit(main(argv))
          File "run_classifier.py", line 797, in main
          for key, val in sorted(eval_results[0].items(), key=lambda x: x[0]):
          IndexError: list index out of range
ardofski commented 4 years ago

I have the same problem, do you use the all data or just a small subset of the data to test ?